/* The portrait's alpha is preserved; depth and light belong to the page. */
#about .about-photo{margin:0;position:relative;isolation:isolate;perspective:1200px}
#about .about-photo::before{content:'';position:absolute;inset:12% 12% 16%;z-index:-1;pointer-events:none;background:radial-gradient(ellipse at 45% 35%,#a5dde023,transparent 64%),radial-gradient(ellipse at 58% 60%,#dfa76d12,transparent 65%);filter:blur(32px)}
#about .about-photo::after{content:'';position:absolute;bottom:2.3%;left:33%;width:38%;height:3%;border-radius:50%;background:#304b4c35;filter:blur(12px);z-index:-1;pointer-events:none}
#about .portrait-cutout{display:block;position:relative;z-index:1;width:100%;height:auto;max-height:780px;aspect-ratio:2/3;object-fit:contain;object-position:center;border-radius:0;filter:drop-shadow(0 25px 20px #17273033);transform:translateY(0);transition:transform .85s var(--ease),filter .85s var(--ease)}
#about .about-photo:hover .portrait-cutout{transform:translateY(-7px);filter:drop-shadow(0 34px 26px #1727303d)}
#about .photo-note{z-index:3;left:8%;right:12%;bottom:9%;padding:19px 23px;transform:rotate(-5deg);border-radius:13px;backdrop-filter:blur(25px);-webkit-backdrop-filter:blur(25px);box-shadow:0 18px 50px #24364018,inset 0 1px 0 #ffffff55;animation:portrait-note-drift 9s ease-in-out infinite}
#about .portrait-star{z-index:0;top:14%;right:9%;font-size:70px;opacity:.65;animation:spin 45s linear infinite}
html[data-theme=dark] #about .about-photo::before{background:radial-gradient(ellipse at 45% 35%,#98dbdf28,transparent 64%),radial-gradient(ellipse at 58% 60%,#dfa76d0d,transparent 65%)}
html[data-theme=dark] #about .about-photo::after{background:#0008;filter:blur(15px)}
html[data-theme=dark] #about .portrait-cutout{filter:drop-shadow(0 28px 23px #0007)}
html[data-theme=dark] #about .about-photo:hover .portrait-cutout{filter:drop-shadow(0 36px 30px #0008)}
html[data-theme=dark] #about .photo-note{background:linear-gradient(135deg,#6c9ea14d,#29373f80);border-color:#9fd6d95e;box-shadow:0 20px 45px #0003,inset 0 1px 0 #ffffff24}
@keyframes portrait-note-drift{0%,100%{translate:0 0}50%{translate:0 -5px}}
@media(max-width:1000px){#about .portrait-star{right:1%;font-size:55px}#about .photo-note{left:0;right:2%;font-size:10px;padding:16px 18px}}
@media(max-width:640px){#about{gap:42px}#about .about-photo{width:100%;max-width:430px;margin:0 auto}#about .portrait-cutout{height:min(145vw,650px);max-height:none;aspect-ratio:auto}#about .photo-note{bottom:8%;left:5%;right:5%;padding:16px 19px;font-size:10px}#about .portrait-star{font-size:49px;right:8%;top:15%}}
@media(prefers-reduced-motion:reduce){#about .portrait-cutout{transition:none}#about .about-photo:hover .portrait-cutout{transform:none}#about .photo-note,#about .portrait-star{animation:none}}
/* Light stays on the tailoring, leaving the face and university name clear. */
#about .about-photo::before{animation:portrait-aura 12s ease-in-out infinite}
#about .portrait-preview{position:relative;display:block;width:100%;padding:0;border:0;background:none;border-radius:20px;isolation:isolate;cursor:zoom-in;transition:transform .85s var(--ease)}
#about .about-photo:hover .portrait-cutout{transform:none}
#about .portrait-preview:hover{transform:translateY(-7px)}
#about .identity-card{position:relative;z-index:1;display:flex;flex-direction:column;justify-content:flex-end;gap:8px;min-height:520px;padding:36px 32px 32px;border-radius:28px;color:#f4fbfa;background:radial-gradient(ellipse at 28% 18%,#8fd0c866,transparent 52%),linear-gradient(165deg,#16383f 0%,#0c1c22 68%);box-shadow:0 25px 40px #17273033}
#about .identity-kicker{font-size:11px;letter-spacing:.16em;opacity:.72}
#about .identity-mark{font-size:clamp(88px,10vw,132px);line-height:.82;letter-spacing:-.07em;font-weight:500}
#about .identity-role{font-size:18px;letter-spacing:-.03em;max-width:12em}
#about .identity-place{font-size:12px;letter-spacing:.04em;opacity:.75}
html[data-theme=dark] #about .identity-card{box-shadow:0 28px 40px #0007}
#about .portrait-glint{position:absolute;z-index:2;width:5px;height:5px;pointer-events:none;background:#fff6;border-radius:50%;box-shadow:0 0 8px 2px #d0f1eb3d;opacity:0;animation:portrait-glint 9s ease-in-out infinite}
#about .portrait-glint-one{left:57.4%;top:22.4%}
#about .portrait-glint-two{left:65.6%;top:94%;animation-delay:4s}
#about .portrait-zoom-hint{position:absolute;left:50%;bottom:3%;transform:translateX(-50%);display:inline-flex;align-items:center;gap:25px;border-radius:30px;padding:11px 18px;font-size:10px;white-space:nowrap;z-index:3;box-shadow:0 12px 30px #0002}
#about .portrait-zoom-hint>span{font-size:16px}
#about .portrait-caption{display:flex;align-items:center;flex-direction:column;gap:7px;text-align:center;margin-top:22px;color:var(--ink)}
#about .portrait-caption [lang=am],#portrait-dialog [lang=am]{font-family:'Kefa','Nyala','Noto Sans Ethiopic',sans-serif;font-size:clamp(19px,1.9vw,28px);line-height:1.6;letter-spacing:.02em}
#about .portrait-caption>span:nth-child(2){font-size:12px;letter-spacing:.025em}
#about .portrait-caption small{font-size:9px;color:var(--muted);line-height:1.6}
#portrait-dialog{width:min(760px,calc(100% - 32px));max-width:760px;max-height:calc(100svh - 32px);padding:24px;background:var(--paper);color:var(--ink);border:1px solid var(--line);overflow:auto;border-radius:24px}
#portrait-dialog::backdrop{background:#060e12b8;backdrop-filter:blur(18px)}
#portrait-dialog .portrait-dialog-header{display:flex;justify-content:space-between;align-items:center;gap:18px}
#portrait-dialog h2{font-size:27px;letter-spacing:-.04em;margin:0;font-weight:450}
#portrait-dialog .portrait-close{flex-shrink:0}
#portrait-dialog .portrait-view-controls{display:flex;gap:8px;margin:20px 0}
#portrait-dialog .portrait-view-controls button{border:1px solid var(--line);border-radius:30px;background:transparent;padding:10px 15px;font-size:11px;transition:background .25s ease}
#portrait-dialog .portrait-view-controls button[aria-pressed=true]{background:#9ad2d528;border-color:var(--purple)}
#portrait-dialog .portrait-full-view{position:relative;height:min(60svh,720px)}
#portrait-dialog .portrait-full-view img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 18px 30px #0003)}
#portrait-dialog .portrait-certificate-view{position:relative;overflow:hidden;width:min(100%,560px,calc(100svh - 280px));aspect-ratio:1;margin:auto;border-radius:16px;background:radial-gradient(ellipse,#9ad2d51a,transparent 70%)}
#portrait-dialog .portrait-certificate-crop{position:absolute;width:300%;aspect-ratio:2/3;left:-136%;top:-150%}
#portrait-dialog .portrait-certificate-crop img{display:block;width:100%;height:auto;max-width:none}
.portrait-board-lettering{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:2}
#portrait-dialog .portrait-board-lettering{filter:none}
#portrait-dialog [hidden]{display:none!important}
#portrait-dialog #portrait-dialog-caption{display:flex;flex-direction:column;gap:5px;text-align:center;color:var(--ink);font-size:11px;line-height:1.6;margin:20px 0 0}
body.portrait-viewer-open{overflow:hidden}
@keyframes portrait-aura{0%,100%{transform:translate3d(-3%,0,0) scale(.95);opacity:.65}50%{transform:translate3d(3%,-2%,0) scale(1.05);opacity:1}}
@keyframes portrait-tailored-shine{0%,65%{background-position:100% 0;opacity:0}72%{opacity:.22}86%{background-position:0 0;opacity:.22}94%,100%{background-position:0 0;opacity:0}}
@keyframes portrait-glint{0%,70%,100%{opacity:0;transform:scale(.6)}80%{opacity:.65;transform:scale(1)}90%{opacity:0;transform:scale(.7)}}
@media(max-width:640px){#about .portrait-caption{margin-top:20px}#about .portrait-caption [lang=am]{font-size:23px}#about .portrait-sheen{clip-path:polygon(0 20%,100% 20%,100% 33%,0 33%)}#portrait-dialog{padding:18px}#portrait-dialog h2{font-size:23px}#portrait-dialog [lang=am]{font-size:23px}}
@media(prefers-reduced-motion:reduce){#about .about-photo::before,#about .portrait-sheen,#about .portrait-glint{animation:none}#about .portrait-preview{transition:none}#about .portrait-preview:hover{transform:none}#about .portrait-sheen,#about .portrait-glint{display:none}}
