/* Scoped to the blog About page; the academic site and other blog pages keep their styles. */
body:has(#about-page.bento-about){--ba-bg:#fff;--ba-card:rgba(255,255,255,.88);--ba-ink:#24304a;--ba-muted:#65738b;--ba-line:rgba(97,119,175,.2);--ba-accent:#526bdf}
[data-theme=dark] body:has(#about-page.bento-about){--ba-bg:#0e0e14;--ba-card:rgba(29,30,40,.87);--ba-ink:#edeef7;--ba-muted:#a4a7bc;--ba-line:rgba(167,172,214,.19);--ba-accent:#a6aaff;background:var(--ba-bg)}
body:has(#about-page.bento-about) #web_bg{background:var(--ba-bg)}
body:has(#about-page.bento-about) #page{background:none;border:0;box-shadow:none;padding:0}
body:has(#about-page.bento-about) #page>.page-title{display:none}
body:has(#about-page.bento-about) #content-inner{max-width:1240px;padding:38px 30px 24px}
body:has(#about-page.bento-about) .ba-stars{position:fixed;inset:0;pointer-events:none;z-index:-1;opacity:.45;background-image:radial-gradient(1px 1px at 14% 23%,#adc2ff 100%,transparent),radial-gradient(1px 1px at 72% 57%,#e9db9b 100%,transparent),radial-gradient(1px 1px at 37% 85%,#989df2 100%,transparent);background-size:310px 370px,430px 280px,260px 410px}
#about-page.bento-about{color:var(--ba-ink);width:100%;margin:0;line-height:1.8;font-size:16px}
#about-page.bento-about *{box-sizing:border-box}
#about-page.bento-about h1,#about-page.bento-about h2,#about-page.bento-about h3{color:var(--ba-ink);margin:0;line-height:1.25;letter-spacing:-.035em}
#about-page.bento-about h1{font-size:clamp(34px,4.2vw,58px);max-width:750px}
#about-page.bento-about h2{font-size:clamp(25px,2.7vw,35px);margin:14px 0 20px}
#about-page.bento-about h3{font-size:20px;letter-spacing:-.015em}
#about-page.bento-about p{margin:0 0 16px;line-height:1.9}
#about-page.bento-about a{color:var(--ba-accent);text-decoration:none;border:0}
#about-page.bento-about a:hover{color:var(--ba-ink)}
#about-page.bento-about a:focus-visible{outline:2px solid var(--ba-accent);outline-offset:5px;border-radius:4px}
#about-page .ba-eyebrow{font-size:11px;font-weight:650;letter-spacing:.13em;color:var(--ba-muted);display:block}
#about-page .ba-muted{color:var(--ba-muted);font-size:14px}
#about-page .ba-hero{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:40px;align-items:center;padding:20px 12px 36px}
#about-page .ba-hero h1{margin:20px 0 18px}
#about-page .ba-subtitle{font-size:23px;font-weight:650}
#about-page .ba-intro{max-width:620px;color:var(--ba-muted)}
#about-page .ba-portrait{align-self:center;text-align:center}
#about-page .ba-portrait img{display:block;width:230px;height:285px;max-width:100%;object-fit:contain;margin:0 auto 10px;border-radius:28px}
#about-page .ba-portrait>span{color:var(--ba-muted);font-size:11px;letter-spacing:.07em}
#about-page .ba-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:20px;align-items:start}
#about-page .ba-card{min-width:0;border:1px solid var(--ba-line);border-radius:26px;background:var(--ba-card);padding:30px;overflow:hidden}
#about-page .ba-who{grid-column:span 5;background:linear-gradient(140deg,rgba(89,69,229,.16),rgba(40,105,232,.07)),var(--ba-card)}
#about-page .ba-build{grid-column:span 7}
#about-page .ba-who,#about-page .ba-build{align-self:stretch;padding:24px}
#about-page .ba-who{display:flex;flex-direction:column}
#about-page .ba-who h2,#about-page .ba-build h2{margin:10px 0 16px}
#about-page .ba-who .ba-link{margin-top:auto;align-self:flex-start}
#about-page .ba-keywords{display:flex;flex-wrap:wrap;gap:7px;margin:14px 0 12px}
#about-page .ba-who .ba-keywords{margin-top:auto}
#about-page .ba-who .ba-link{margin-top:10px}
#about-page .ba-keyword{display:inline-flex;align-items:center;gap:5px;padding:4px 8px;border:1px solid var(--ba-line);border-radius:8px;background:rgba(116,95,235,.09);color:var(--ba-ink);font-size:11px;font-weight:550;line-height:1.45;white-space:nowrap}
#about-page .ba-keyword svg{width:14px;height:14px;flex:none;fill:none;stroke:var(--ba-accent);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
[data-theme=dark] #about-page .ba-keyword{background:rgba(136,127,241,.13)}
#about-page .ba-build .ba-tech-wall{margin-bottom:16px}
#about-page .ba-link{display:inline-block;font-size:14px;font-weight:600;margin-top:8px}
#about-page .ba-education-strip{grid-column:1/-1;padding:18px 26px;border-radius:20px}
#about-page .ba-education-strip h2{font-size:11px;letter-spacing:.13em;line-height:1.6;color:var(--ba-muted);margin:0 0 12px}
#about-page .ba-education{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin:0;padding:0;font-size:13px}
#about-page .ba-education>div{display:grid;grid-template-columns:35px minmax(0,1fr);gap:12px}
#about-page .ba-education dt{color:var(--ba-accent)}
#about-page .ba-education dd{margin:0;line-height:1.6}
#about-page .ba-education small{display:block;color:var(--ba-muted);font-size:11px;margin-top:3px}
@media(max-width:768px){html:has(#about-page.bento-about),body:has(#about-page.bento-about){overflow-x:visible}}
#about-page .ba-tech-wall{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px 10px;margin-bottom:22px}
#about-page .ba-tech{display:flex;flex-direction:column;gap:7px;align-items:center;text-align:center;font-size:11px;line-height:1.4;color:var(--ba-muted)}
#about-page .ba-tech-icon{display:grid;place-items:center;width:48px;height:48px;background:rgba(126,136,231,.11);border:1px solid var(--ba-line);border-radius:14px;color:var(--ba-accent);font-size:19px;font-weight:750;letter-spacing:-.04em}
#about-page .ba-tech-icon svg{width:27px;height:27px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
#about-page .ba-build>.ba-muted{margin-bottom:0}
#about-page .ba-travel{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);gap:16px 40px;padding:30px 35px;background:linear-gradient(120deg,rgba(46,120,121,.12),transparent 65%),var(--ba-card)}
#about-page .ba-travel .ba-travel-lead{font-size:clamp(17px,1.7vw,21px);line-height:1.7;font-weight:500;letter-spacing:0;color:#80b6a7;margin:0;text-wrap:pretty}
#about-page .ba-travel-notes{padding-top:12px}
#about-page .ba-title-dot{color:#80b6a7}
#about-page .ba-stamps{display:flex;flex-wrap:wrap;gap:8px;margin-top:22px}
#about-page .ba-stamps span{border:1px solid var(--ba-line);border-radius:20px;padding:4px 11px;font-size:11px;color:var(--ba-muted)}
#about-page .ba-gallery{grid-column:1/-1;display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px}
#about-page .ba-gallery figure{margin:0;min-width:0}
#about-page .ba-gallery img{width:100%;height:220px;object-fit:cover;border-radius:16px;display:block}
#about-page .ba-gallery figcaption{font-size:12px;color:var(--ba-muted);padding-top:8px}
#about-page .ba-personality{grid-column:span 7;display:grid;grid-template-columns:minmax(0,1fr) 160px;align-items:center;gap:10px}
#about-page .ba-personality h2{font-size:28px}
#about-page .ba-personality p{font-size:14px;color:var(--ba-muted)}
#about-page .ba-personality small{display:block;font-size:11px;color:var(--ba-muted);margin-top:14px}
#about-page .ba-infj{width:100%;height:210px;object-fit:contain;display:block}
#about-page .ba-philosophy{grid-column:span 5;background:linear-gradient(145deg,rgba(116,95,235,.18),transparent),var(--ba-card)}
#about-page .ba-philosophy p{margin:22px 0;font-size:clamp(27px,3vw,38px);font-weight:750;letter-spacing:-.045em;line-height:1.4}
#about-page .ba-philosophy p span{display:block}
#about-page .ba-philosophy-line{display:block;width:65px;height:2px;background:linear-gradient(90deg,#a09aff,#709bd7)}
#about-page .ba-journey{grid-column:1/-1}
#about-page .ba-timeline{list-style:none;margin:28px 0 0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
#about-page .ba-timeline li{list-style:none;position:relative;border-top:1px solid var(--ba-line);padding-top:20px}
#about-page .ba-timeline li:before{content:"";position:absolute;top:-4px;left:0;width:7px;height:7px;border-radius:50%;background:var(--ba-accent)}
#about-page .ba-timeline h3{margin:12px 0}
#about-page .ba-timeline p{font-size:13px;color:var(--ba-muted);margin:0}
#about-page .ba-story{grid-column:1/-1;display:grid;grid-template-columns:1fr 1.7fr;gap:45px;padding:40px}
#about-page .ba-story h2{font-size:36px;line-height:1.45}
#about-page .ba-story-mark{display:block;margin-top:32px;color:var(--ba-muted);font-size:15px;line-height:1.7;letter-spacing:.02em}
#about-page .ba-story-prose{max-width:620px}
#about-page .ba-story-prose p{font-size:15px;line-height:2.05;margin-bottom:19px}
#about-page .ba-story-prose p:last-child{color:var(--ba-accent);margin:0}
#about-page .ba-contact{display:flex;gap:20px;justify-content:space-between;align-items:center;padding:30px 8px;color:var(--ba-muted);font-size:12px}
#about-page .ba-contact nav{display:flex;gap:20px;flex-wrap:wrap}
@media(max-width:700px){#about-page .ba-card.ba-education-strip{padding:18px 24px}#about-page .ba-education{grid-template-columns:1fr;gap:16px}#about-page .ba-who .ba-link{margin-top:8px}}
@media(max-width:1000px){#about-page .ba-hero{grid-template-columns:minmax(0,1fr) 200px;gap:25px}#about-page .ba-portrait img{height:240px}#about-page .ba-personality{grid-template-columns:minmax(0,1fr) 130px}#about-page .ba-card{padding:24px}#about-page .ba-timeline{grid-template-columns:1fr 1fr;gap:28px}#about-page .ba-contact{flex-direction:column;align-items:flex-start}}
@media(max-width:700px){body:has(#about-page.bento-about) #content-inner{padding:22px 16px}#about-page .ba-hero{grid-template-columns:1fr;padding:0 6px 26px;gap:20px}#about-page .ba-hero-copy{order:2}#about-page .ba-portrait{order:1;justify-self:start;display:flex;align-items:center;gap:15px}#about-page .ba-portrait img{width:100px;height:125px;margin:0;border-radius:16px}#about-page .ba-portrait>span{max-width:140px;text-align:left}#about-page .ba-hero h1{font-size:34px;margin-top:15px}#about-page .ba-subtitle{font-size:19px}#about-page .ba-intro{font-size:14px}#about-page .ba-grid{gap:16px}#about-page .ba-card{grid-column:1/-1;border-radius:22px;padding:24px}#about-page .ba-travel,#about-page .ba-story{grid-template-columns:1fr;gap:20px}#about-page .ba-travel-notes{padding:0}#about-page .ba-personality{grid-template-columns:minmax(0,1fr) 115px;gap:7px}#about-page .ba-personality h2{font-size:23px}#about-page .ba-infj{height:190px}#about-page .ba-philosophy p{font-size:34px}#about-page .ba-story h2 br{display:none}#about-page .ba-story h2{font-size:28px}#about-page .ba-story-mark{margin-top:16px;font-size:12px}#about-page .ba-contact nav{gap:12px 20px}#about-page .ba-timeline{grid-template-columns:1fr;margin-left:3px;gap:0}#about-page .ba-timeline li{border-top:0;border-left:1px solid var(--ba-line);padding:0 0 28px 24px}#about-page .ba-timeline li:before{left:-4px;top:5px}#about-page .ba-timeline li:last-child{padding-bottom:0}#about-page .ba-tech-wall{gap:16px 6px}}
@media(prefers-reduced-motion:reduce){body:has(#about-page.bento-about) *,body:has(#about-page.bento-about) *:before,body:has(#about-page.bento-about) *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}body:has(#about-page.bento-about) canvas{display:none!important}}
