/* v26: visual correction — one viewport scene, inset portrait and visible layered glass. */
:root, :root[data-theme="dark"] {
  --scene26-base:#111925;
  --scene26-panel:rgba(152,200,222,.085);
  --scene26-border:rgba(205,242,255,.23);
  --scene26-sheen:linear-gradient(123deg,rgba(225,250,255,.155) 0%,rgba(151,209,225,.055) 28%,rgba(38,72,92,.025) 76%,rgba(179,222,236,.09) 100%);
  --scene26-shadow:0 16px 50px rgba(0,0,0,.22), inset 0 1px 0 rgba(235,255,255,.16), inset 1px 0 0 rgba(235,255,255,.055);
}
:root[data-theme="light"] {
  --scene26-base:#eaf2f7;
  --scene26-panel:rgba(255,255,255,.29);
  --scene26-border:rgba(70,124,147,.25);
  --scene26-sheen:linear-gradient(125deg,rgba(255,255,255,.51),rgba(237,252,255,.13) 45%,rgba(186,217,232,.16));
  --scene26-shadow:0 15px 40px rgba(37,72,101,.12),inset 0 1px 0 rgba(255,255,255,.68);
}
/* Fixed full-viewport backdrop. No gradients or clipped rectangular backgrounds on chapters. */
html,body,body main#main{background:var(--scene26-base)!important;}
body main#main {background-color:var(--scene26-base)!important;background-image:none!important;isolation:isolate!important;}
body main#main::before {content:"";position:absolute;inset:0;z-index:0;pointer-events:none;
  background:radial-gradient(ellipse 79% 93% at 75% 5%,rgba(48,70,100,.58) 0%,rgba(31,46,69,.27) 44%,transparent 86%),linear-gradient(155deg,#111925,#151e2c 55%,#0e1520);
}
:root[data-theme="light"] body main#main::before{background:radial-gradient(ellipse 79% 93% at 75% 5%,rgba(168,205,222,.55) 0%,rgba(216,234,242,.2) 49%,transparent 86%),linear-gradient(155deg,#eaf2f7,#f2f7fa 55%,#e2ebf1);}
body main#main > section[id],body main#main > section[id].deck-active,
body main#main > section#home.hero.hero-v14,body main#main > section#home.hero.hero-v14.deck-active,
body main#main #home .hero-v14-copy,body main#main #home .hero-v14-bottom,
body main#main #experience .journey-sticky,body main#main #experience .journey-viewport,
body main#main #about .section-grid,body main#main #skills .talent-forest,
body main#main #credentials .v21-gallery-stage {
 background:transparent!important;background-image:none!important;background-color:transparent!important;
}
/* A diffuse reflected glow makes the translucency physically legible without another color block. */
body main#main > section#home.hero.hero-v14::after {
 content:"";position:absolute;pointer-events:none;z-index:0;
 width:80vw;height:85vh;left:27%;top:-1%;
 background:radial-gradient(ellipse at center,rgba(98,194,193,.105),rgba(98,194,193,.037) 36%,transparent 72%);
 filter:blur(28px);
}
body main#main #home .hero-v14-copy,body main#main #home .v22-portrait{z-index:1;}
/* Move the photo panel toward the name: a comfortable margin to the right. */
body main#main #home .v22-portrait{transform:translateX(clamp(-82px,-5vw,-34px));}
/* Real glass material with a lit edge and low-opacity gradient, not an opaque blue slab. */
body main#main #home .v22-portrait,
body main#main #about .section-body,
body main#main #experience .journey-card,
body main#main #skills .talent-tree,
body main#main #skills .talent-inspector,
body main#main #credentials .v21-gallery,
body main#main #credentials .education-compact,
body main#main #credentials .education-compact-item,
body main#main #contact .btn-secondary {
 background-color:var(--scene26-panel)!important;
 background-image:var(--scene26-sheen)!important;
 border:1px solid var(--scene26-border)!important;
 box-shadow:var(--scene26-shadow)!important;
 -webkit-backdrop-filter:blur(30px) saturate(150%)!important;
 backdrop-filter:blur(30px) saturate(150%)!important;
}
/* Keep portrait placeholder transparent so its backdrop shows through the new glass frame. */
body main#main #home .v22-portrait-placeholder{background:transparent!important;background-image:none!important;}
/* Retain small text-to-border spacing and avoid internal opaque regions. */
body main#main #about .section-body{padding:16px 19px!important;}
body main#main #experience .journey-card-main,body main#main #experience .journey-card-top,
body main#main #experience .journey-tags,body main#main #credentials .v21-gallery-top,
body main#main #credentials .v21-gallery-stage,body main#main #credentials .v21-gallery-bottom,
body main#main #skills .talent-tree-head {background:transparent!important;background-image:none!important;}
@media(max-width:850px){body main#main #home .v22-portrait{transform:translateX(-16px)}}
@media(max-width:640px){body main#main #home .v22-portrait{transform:none} body main#main #about .section-body{padding:12px 14px!important}}
@media(prefers-reduced-transparency:reduce){body main#main #home .v22-portrait,body main#main #about .section-body,body main#main #experience .journey-card,body main#main #skills .talent-tree,body main#main #credentials .v21-gallery{background:rgba(36,53,70,.86)!important;}}
