/* v25: single fixed scene, no per-section paints or hard edges.
   Applied last, after the older 24 legacy stylesheets. */
:root,:root[data-theme="dark"] {
  --v25-scene: radial-gradient(ellipse 66% 84% at 68% 5%, rgba(36,52,75,.95) 0%, rgba(28,41,60,.55) 47%, rgba(19,29,43,0) 83%), linear-gradient(155deg,#111925 0%,#141d2b 51%,#0b111a 100%);
  --v25-panel: rgba(76,108,132,.13);
  --v25-panel-raised: rgba(94,128,150,.19);
  --v25-panel-faint: rgba(76,108,132,.11);
  --v25-border:rgba(172,206,228,.23);
  --v25-shadow: 0 15px 44px rgba(0,0,0,.16), inset 0 1px 0 rgba(255,255,255,.09);
}
:root[data-theme="light"] {
  --v25-scene: radial-gradient(ellipse 66% 84% at 68% 5%,rgba(190,217,232,.92) 0%,rgba(220,234,243,.52) 48%,rgba(241,247,251,0) 83%),linear-gradient(155deg,#eaf2f7,#f4f8fb 50%,#dfeaf1);
  --v25-panel:rgba(255,255,255,.28);
  --v25-panel-raised:rgba(255,255,255,.42);
  --v25-panel-faint:rgba(255,255,255,.2);
  --v25-border:rgba(68,101,124,.22);
  --v25-shadow:0 15px 44px rgba(26,60,91,.09),inset 0 1px 0 rgba(255,255,255,.7);
}
/* Only one gradient is painted, behind every section. */
html,body {background:#111925!important;}
:root[data-theme="light"],:root[data-theme="light"] body{background:#eaf2f7!important;}
body main#main {background:var(--v25-scene)!important;background-image:var(--v25-scene)!important;background-color:transparent!important;isolation:isolate!important;}
/* Override the very specific v21/v12 section backgrounds, even on active chapters. */
body main#main > section[id],
body main#main > section[id].deck-active,
body main#main > section[id].deck-past,
body main#main > section#home.hero.hero-v14,
body main#main > section#home.hero.hero-v14.deck-active,
body main#main > section#experience.journey-section,
body main#main > section#experience.journey-section.deck-active,
body main#main #experience .journey-sticky,
body main#main #experience .journey-viewport,
body main#main #skills .talent-forest,
body main#main #credentials .v21-gallery-stage,
body main#main #contact.contact-section,
body main#main #about.about-section {
  background:none!important;background-image:none!important;background-color:transparent!important;
}
/* The home-only atmosphere was forming a sharply bounded tinted rectangle. */
body main#main #home .hero-v14-atmosphere,
body main#main #home .hero-v14-halo,
body main#main #home .hero-v14-grid,
body main#main #home.hero-v14::before,
body main#main #experience .journey-ambient {
 display:none!important;background:none!important;opacity:0!important;
}
/* Glass material, not opaque/gradient boxes. */
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 .contact-links .btn-secondary {
  background:var(--v25-panel)!important;background-image:none!important;
  border:1px solid var(--v25-border)!important;
  box-shadow:var(--v25-shadow)!important;
  -webkit-backdrop-filter:blur(22px) saturate(125%)!important;
  backdrop-filter:blur(22px) saturate(125%)!important;
  border-radius:12px;
}
/* No nested opaque coating that defeats the glass surface. */
body main#main #experience .journey-card-main,
body main#main #experience .journey-card-top,
body main#main #experience .journey-tags,
body main#main #skills .talent-tree-head,
body main#main #credentials .v21-gallery-top,
body main#main #credentials .v21-gallery-stage,
body main#main #credentials .v21-gallery-canvas,
body main#main #credentials .v21-gallery-bottom {
 background:none!important;background-image:none!important;background-color:transparent!important;box-shadow:none!important;
}
body main#main #skills .talent-node,
body main#main #skills .talent-node-root,
body main#main #skills .talent-category,
body main#main #credentials .v21-gallery-nav,
body main#main #credentials .v21-gallery-dots button,
body main#main #experience .journey-tags span,
body main#main #about .inline-notes span {
 background:var(--v25-panel-raised)!important;background-image:none!important;
 border-color:var(--v25-border)!important;
 -webkit-backdrop-filter:blur(11px)!important;backdrop-filter:blur(11px)!important;
}
body main#main #skills .talent-node:hover,
body main#main #skills .talent-node.is-selected {background:var(--v25-panel-raised)!important;border-color:var(--accent)!important;}
/* Tiny but consistent text inset. */
body main#main #about .section-body {padding:14px 16px!important;}
body main#main #experience .journey-card {padding:clamp(18px,2.2vh,27px) clamp(24px,2.6vw,38px)!important;}
body main#main #experience .journey-card-main{padding-inline:6px!important;}
body main#main #skills .talent-tree {padding:clamp(14px,1.5vw,22px)!important;}
body main#main #skills .talent-inspector{padding:10px 14px!important;}
body main#main #credentials .v21-gallery {padding:clamp(12px,1.4vw,20px)!important;}
body main#main #credentials .education-compact-item{padding:11px 14px!important;}
body main#main #home .v22-portrait {padding:3px!important;}
/* Header and controls blend but remain legible. */
body .site-header {background:rgba(16,25,38,.60)!important;-webkit-backdrop-filter:blur(18px)!important;backdrop-filter:blur(18px)!important;}
:root[data-theme="light"] body .site-header{background:rgba(234,243,248,.62)!important;}
body .deck-controls {background:var(--v25-panel-raised)!important;border-color:var(--v25-border)!important;backdrop-filter:blur(16px)!important;}
@media(max-width:640px){body main#main #about .section-body{padding:11px 12px!important;} body main#main #experience .journey-card{padding:15px 16px!important;}}
@supports not ((backdrop-filter:blur(2px)) or (-webkit-backdrop-filter:blur(2px))){
 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(49,69,89,.72)!important;}
 :root[data-theme="light"] body main#main #about .section-body,:root[data-theme="light"] body main#main #experience .journey-card,:root[data-theme="light"] body main#main #skills .talent-tree,:root[data-theme="light"] body main#main #credentials .v21-gallery{background:rgba(255,255,255,.82)!important;}
}
