/* Existing content, clearer chapter rhythm; the identity layout stays intact. */
body.has-opening-avatar main{counter-reset:home-chapter}
body.has-opening-avatar .editorial-opening{padding-bottom:clamp(64px,7vw,112px)}
body.has-opening-avatar main>.section{counter-increment:home-chapter;margin-top:0;padding-block:clamp(60px,7vw,104px);border-top:1px solid var(--border-strong)}
body.has-opening-avatar .section>.section-head{padding:0;margin-bottom:22px;background:none;border:0;border-radius:0;align-items:end;gap:24px}
body.has-opening-avatar .section-head>div{position:relative}
body.has-opening-avatar .section-head .kicker{font-size:13px;line-height:1.6;letter-spacing:.1em;margin-bottom:10px;color:var(--text-muted)}
body.has-opening-avatar .section-head h2{font-size:clamp(34px,4vw,52px);line-height:1.2;letter-spacing:-.035em}
body.has-opening-avatar .section-head h2::before{content:counter(home-chapter,decimal-leading-zero);font-size:13px;vertical-align:top;display:inline-block;margin:5px 16px 0 0;color:var(--text-muted);font-weight:400;letter-spacing:0}
body.has-opening-avatar .section>.section-intro{max-width:44em;margin-bottom:38px;font-size:17px;line-height:1.9;text-wrap:pretty}
body.has-opening-avatar .section-more{flex-shrink:0;min-height:44px;display:inline-flex;align-items:center;gap:8px}
body.has-opening-avatar .research-split{gap:clamp(32px,5vw,72px)}
body.has-opening-avatar .research-direct{padding:22px 24px;border-left:2px solid var(--brand);background:var(--bg-raised)}
body.has-opening-avatar .research-dir-p{font-size:16px;line-height:1.9}
body.has-opening-avatar .research-direct h3{font-size:14px;letter-spacing:.02em}
body.has-opening-avatar .research-results .entry-row{padding-block:26px;background:transparent;box-shadow:none;border-radius:0}
body.has-opening-avatar .section-dev .entry-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:30px;align-items:stretch}
body.has-opening-avatar .entry-cards .entry-card{display:flex;flex-direction:column;gap:24px;padding:28px 0;border:0;border-top:1px solid var(--border-strong);border-radius:0;background:none;box-shadow:none;min-width:0}
body.has-opening-avatar .entry-cards .entry-card:first-child{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:48px;padding:36px;background:var(--bg-raised);border:1px solid var(--border-strong);border-radius:4px}
body.has-opening-avatar .entry-cards .entry-card h3{font-size:clamp(22px,2.2vw,28px);line-height:1.5;text-wrap:pretty}
body.has-opening-avatar .entry-cards .entry-card:first-child h3{font-size:clamp(25px,2.6vw,34px)}
body.has-opening-avatar .entry-card-side{flex:1;gap:24px}
body.has-opening-avatar .entry-cards .entry-card:hover,body.has-opening-avatar .entry-cards .entry-card:focus-within{box-shadow:none;border-color:var(--brand)}
body.has-opening-avatar .entry-card .entry-lead{font-size:17px;line-height:1.9;max-width:38em}
body.has-opening-avatar .entry-card .entry-role{font-size:14px;line-height:1.8}
body.has-opening-avatar .section-photo>.section-intro{margin-bottom:44px}
.home-destinations{gap:clamp(24px,4vw,56px)}
.home-destination{padding:30px 0;border:0;border-top:1px solid var(--border-strong);border-radius:0;background:none}
.home-destination h3{margin-block:18px}
.home-destination>p{max-width:34em}
.home-destination .destination-action>span:last-child{transition:translate 180ms ease}
@media(hover:hover){.home-destination:hover .destination-action>span:last-child{translate:3px -3px}}
body.has-opening-avatar .nav-links a[aria-current="location"]{color:var(--brand-strong);text-decoration:underline;text-underline-offset:10px;text-decoration-thickness:2px}
body.has-opening-avatar .site-header{transition:background 180ms ease,border-color 180ms ease}
body.has-opening-avatar .section{scroll-margin-top:12px}
body.has-opening-avatar .section-head.reveal,body.has-opening-avatar .home-destination.reveal{transition-duration:380ms}

/* Shared personal-site lightbox: controls sit outside the photograph. */
.lightbox .lb-counter{font-size:14px;letter-spacing:.04em}
.lightbox .lb-close{font-size:27px}
.lightbox .lb-cap{font-family:var(--font-cjk);font-size:15px;line-height:1.7;letter-spacing:0;max-width:72ch;margin:18px auto 0;color:#ddd8cf}
.lightbox .lb-figure{max-width:calc(100vw - 112px)}
.lightbox .lb-img{max-width:100%;max-height:calc(100dvh - 230px);border-radius:2px}
.lightbox .lb-prev,.lightbox .lb-next{top:auto;bottom:22px;transform:none;width:48px;height:48px;border-radius:4px}
.lightbox .lb-prev{left:calc(50% - 58px)}
.lightbox .lb-next{right:calc(50% - 58px)}
.lightbox .lb-share-row{margin-top:12px;gap:10px}
.lightbox .lb-share,.lightbox .lb-zoom{font-size:14px;min-height:44px}
.lb-load-status{position:absolute;top:calc(50% - 12px);left:20px;right:20px;text-align:center;color:#ddd8cf;font-size:15px;pointer-events:none}
.lb-load-status:empty{display:none}
@media(max-width:860px){
 body.has-opening-avatar .nav-menu-toggle{width:78px;padding-right:42px;position:relative;flex-shrink:0;border-radius:6px}
 body.has-opening-avatar .nav-menu-toggle::after{content:attr(data-section-label);position:absolute;right:8px;top:50%;translate:0 -50%;font-size:12px;line-height:1.5;max-width:4em;overflow:hidden;white-space:nowrap;color:var(--text-muted)}
 body.has-opening-avatar .nav-links a[aria-current="location"]{text-underline-offset:5px}
 body.has-opening-avatar .section>.section-head{padding:0;gap:16px;flex-wrap:wrap}
 body.has-opening-avatar .section-head h2::before{margin-right:12px}
}
@media(max-width:680px){
 body.has-opening-avatar main>.section{padding-block:48px}
 body.has-opening-avatar .editorial-opening{padding-bottom:52px}
 body.has-opening-avatar .section>.section-intro{font-size:16px;margin-bottom:28px}
 body.has-opening-avatar .section-head h2{font-size:34px}
 body.has-opening-avatar .section-dev .entry-cards{grid-template-columns:1fr;gap:12px}
 body.has-opening-avatar .entry-cards .entry-card:first-child{grid-template-columns:1fr;gap:26px;padding:24px}
 body.has-opening-avatar .entry-cards .entry-card{padding-block:28px;gap:20px}
 body.has-opening-avatar .research-direct{padding:18px}
 .home-destination{padding:24px 0}
 .lightbox .lb-figure{max-width:calc(100vw - 28px)}
 .lightbox .lb-img{max-height:calc(100dvh - 260px)}
 .lightbox .lb-cap{font-size:14px;margin-top:14px}
 .lightbox .lb-counter,.lightbox .lb-close{top:max(14px,env(safe-area-inset-top,0px))}
 .lightbox .lb-prev,.lightbox .lb-next{bottom:max(16px,env(safe-area-inset-bottom,0px))}
}
@media(max-height:480px) and (orientation:landscape){.lightbox .lb-img{max-height:calc(100dvh - 154px)}.lightbox .lb-prev,.lightbox .lb-next{top:50%;bottom:auto;transform:translateY(-50%)}.lightbox .lb-prev{left:14px}.lightbox .lb-next{right:14px}.lightbox .lb-cap{margin-top:8px;font-size:13px}.lightbox .lb-share-row{margin-top:6px}.lightbox .lb-counter,.lightbox .lb-close{top:8px}}
@media(prefers-reduced-motion:reduce){body.has-opening-avatar .site-header,.home-destination .destination-action>span:last-child,body.has-opening-avatar .section-head.reveal,body.has-opening-avatar .home-destination.reveal{transition:none!important;animation:none!important}}
