/* Two directions, one fixed-quarter window inside the opened portrait. */
.crew-profile__portrait{background:radial-gradient(ellipse at 56% 42%,#58171d44,transparent 65%),#100b0e}
.crew-profile__portrait::after{pointer-events:none;background:linear-gradient(180deg,#100b0e1a,transparent 25%,transparent 53%,#100b0ef2 100%)}
.profile-reveal__stage{position:absolute;inset:33px 0 105px;z-index:1;overflow:hidden;outline:none;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-tap-highlight-color:transparent;cursor:crosshair}
.profile-reveal__stage[hidden],.profile-reveal__placeholder[hidden]{display:none}
.profile-reveal__stage:focus-visible{outline:2px solid #ff8c69;outline-offset:-6px}
.profile-reveal__stage>canvas{position:absolute;inset:0;width:100%;height:100%;max-width:none;pointer-events:none;filter:drop-shadow(-14px 0 18px #f132201a) drop-shadow(18px 4px 30px #ff393025)}
.profile-reveal__fallback{position:absolute;inset:0;pointer-events:none}
.profile-reveal__fallback>img{position:absolute;left:var(--portrait-x,0px);top:var(--portrait-y,0px);width:var(--portrait-w,100%);height:var(--portrait-h,100%);max-width:none}
.profile-reveal__fallback-mask{position:absolute;inset:0;mask-image:radial-gradient(circle var(--reveal-radius,70px) at var(--reveal-x,50%) var(--reveal-y,40%),rgba(0,0,0,var(--reveal-mask-alpha,1)) 75%,rgba(0,0,0,var(--reveal-mask-outside,1)) 100%);-webkit-mask-image:radial-gradient(circle var(--reveal-radius,70px) at var(--reveal-x,50%) var(--reveal-y,40%),rgba(0,0,0,var(--reveal-mask-alpha,1)) 75%,rgba(0,0,0,var(--reveal-mask-outside,1)) 100%)}
.profile-reveal__fallback-mask>img{position:absolute;left:var(--portrait-mx,0px);top:var(--portrait-my,0px);width:var(--portrait-mw,100%);height:var(--portrait-mh,100%);max-width:none}
.crew-profile__portrait[data-renderer=canvas] .profile-reveal__fallback{visibility:hidden}
.profile-reveal__hint{position:absolute;left:30px;right:28px;top:64px;z-index:4;font:600 max(13px,var(--type-label))/1.5 var(--body);color:#e5b8a3;pointer-events:none}
.crew-profile__portrait[data-has-portrait=false] .profile-reveal__hint{display:none}
.crew-profile__discipline{pointer-events:none}
.crew-profile__identity{pointer-events:none}
.crew-profile__identity>button{pointer-events:auto}
.profile-reveal__placeholder{position:absolute;inset:0;z-index:0}
.profile-reveal__placeholder>img{width:100%;height:100%;max-width:none;object-fit:cover;object-position:50% 48%;filter:saturate(.55) brightness(.7)}
.profile-reveal__placeholder>span{position:absolute;z-index:4;left:30px;right:28px;top:65px;font:700 var(--type-label)/1.6 var(--body);color:#e8c2b0;letter-spacing:.025em}
.crew-profile__copy h3>b{font:inherit}
.site-footer>span.reveal-version{display:block;font-size:var(--type-label);color:#bb9d90}
@media(max-width:800px){.profile-reveal__hint,.profile-reveal__placeholder>span{left:24px;right:24px;top:80px;font-size:13px}.profile-reveal__stage{top:65px}}
@media(max-width:600px){.crew-profile__portrait{height:clamp(460px,65svh,560px);min-height:460px}.profile-reveal__stage{inset:35px 0 104px}.profile-reveal__hint,.profile-reveal__placeholder>span{top:55px;left:24px;right:24px;font-size:13px;max-width:32ch}.crew-profile__discipline{font-size:13px}.crew-profile__identity h2{margin-top:9px}}
@media(max-height:500px) and (orientation:landscape){.crew-profile__portrait{height:auto;min-height:550px}.profile-reveal__stage{inset:65px 0 105px}}

.profile-reveal__controls{display:grid;grid-template-columns:1fr 1fr 1.25fr;gap:12px;align-items:center;padding:15px 20px;background:linear-gradient(110deg,#301115,#140c0e);border-bottom:1px solid #ff5a423b;position:relative;z-index:5}
.profile-reveal__controls>button{display:flex;flex-direction:column;gap:4px;justify-content:center;min-height:62px;padding:10px 15px;border:1px solid #805047;background:#130c10;color:#efd5c7;text-align:left;font:800 max(14px,var(--type-label))/1.4 var(--body);letter-spacing:.025em;cursor:pointer}
.profile-reveal__controls>button>span{white-space:nowrap}.profile-reveal__controls b{color:#ff735a;font-size:20px;line-height:1;padding:0 4px}.profile-reveal__controls small{font:500 13px/1.4 var(--body);letter-spacing:0;color:#caaea3}
.profile-reveal__controls>button[aria-pressed=true]{border-color:#ff7559;background:linear-gradient(105deg,#702321,#2c1116);box-shadow:inset 3px 0 #ff5841,0 0 20px #ff342615;color:#fff0e3}
.profile-reveal__controls>button:hover:not(:disabled){border-color:#ffc2a4}.profile-reveal__controls>button:focus-visible{outline:2px solid #ffd2b4;outline-offset:3px}.profile-reveal__controls>button:disabled{opacity:.45;cursor:wait}
.profile-reveal__controls>p{font:600 max(13px,var(--type-label))/1.55 var(--body);color:#dbb9a9;margin:0 0 0 8px}
@media(max-width:800px){.profile-reveal__controls{grid-template-columns:1fr 1fr;padding:13px 16px;gap:10px}.profile-reveal__controls>p{grid-column:1/-1;margin:0;font-size:13px}}
@media(max-width:400px){.profile-reveal__controls{padding:11px;gap:8px}.profile-reveal__controls>button{padding:9px 10px;font-size:13px}.profile-reveal__controls b{padding:0 2px;font-size:18px}}

/* Match per-portrait source cropping when Canvas is unavailable. */
.profile-reveal__fallback>img{clip-path:inset(0 0 var(--portrait-face-crop,0%) 0)}

/* A supplied photo without a face/mask pair opens as a real, static portrait. */
.profile-reveal__controls[hidden]{display:none}
