/* Shared soft-glow finishing pass.
   Glow must fade into the surface, not terminate on a rectangular content edge.
   Keep decorative shadows subtle at rest and preserve stronger hover glow. */
:root{
  --glow-soft:rgba(219,132,194,.19);
  --glow-outer:rgba(212,111,193,.10);
}
html[data-theme="light"]{
  --glow-soft:rgba(173,85,153,.18);
  --glow-outer:rgba(184,111,190,.09);
}
/* Give the luminous edge enough breathing room inside normal flow containers. */
.site-header-actions,.site-footer-links,.resume-actions,.resume-next-links,
.footer-nav,.contact-actions,.chips,.lab .chips,.gallery-controls{
  overflow:visible!important;
}
#chapters .chapter-content-inner{overflow:visible!important}
#chapters .chapter-content{
  overflow-x:visible!important;
}
#chapters #home .chips{padding:5px 6px!important;margin-left:-6px!important}
#chapters #contact .contact-actions{padding:9px 7px!important;margin-left:-7px!important}
.resume-actions,.resume-next-links,.site-footer-links,.footer-nav{
  padding-top:8px!important;padding-bottom:10px!important;
}
/* Rounded radiance follows the button rather than drawing a rectangular
   background layer. Four falloff rings feather naturally into either theme. */
.site-nav-pill,.site-nav-universe,.site-header-shell .theme-toggle,
.resume-action,.resume-next-links .resume-action,
.philosophy-link,.contact-actions a,
.site-footer-links a,.footer-nav a,.cta,
.lab .action,.lab .pill,
.panel-pill,.gallery-action,.gallery-arrow{
  box-shadow:0 0 0 1px rgba(231,165,211,.08),
    0 0 9px 1px var(--glow-soft),
    0 0 22px 3px var(--glow-outer)!important;
  filter:none;
}
.site-nav-pill:hover,.site-nav-universe:hover,
.site-header-shell .theme-toggle:hover,.resume-action:hover,
.philosophy-link:hover,.contact-actions a:hover,
.site-footer-links a:hover,.footer-nav a:hover,.cta:hover,
.lab .action:hover,.lab .pill:hover,
.gallery-action:hover,.gallery-arrow:hover{
  box-shadow:0 0 0 1px rgba(233,169,221,.23),
    0 0 13px 2px rgba(224,128,194,.27),
    0 0 32px 6px rgba(204,99,189,.14)!important;
}
/* Skills, category and technology chips: visible aura, no big backdrop card. */
#chapters .chip,.panel-pill,.lab .pill{
  box-shadow:inset 0 1px 0 rgba(255,255,255,.20),
    0 0 8px 1px var(--glow-soft),
    0 0 18px 2px var(--glow-outer)!important;
}
#chapters .chip:hover,.panel-pill:hover,.lab .pill:hover{
  box-shadow:inset 0 1px 0 rgba(255,255,255,.25),
    0 0 14px 3px rgba(212,113,187,.24),
    0 0 25px 5px rgba(207,110,198,.12)!important;
}
/* Scrolling frames must have a fade zone inside their clipping edge. */
#project-track .panel-scroller{
  padding-bottom:max(32px,2.5rem)!important;
}
#gallery .gallery-controls{
  padding-top:11px!important;
  padding-bottom:11px!important;
}
#chapters #work .work-grid{
  padding-top:max(10px,1.2svh)!important;
  padding-bottom:max(10px,1.2svh)!important;
}
/* Avoid enlarging the gallery card shadows into the clipped carousel boundary. */
#gallery .work-panel{filter:none!important}
#gallery .panel-pill{filter:none!important}
@media(orientation:landscape) and (max-height:430px){
  #chapters #home .chips,#chapters #contact .contact-actions{padding-top:2px!important;padding-bottom:2px!important}
  #chapters #work .work-grid{padding-top:5px!important;padding-bottom:5px!important}
  #gallery .gallery-controls{padding-top:4px!important;padding-bottom:4px!important}
}
@media(prefers-reduced-motion:reduce){
  .site-nav-pill,.site-nav-universe,.resume-action,.cta{transition-duration:.01ms!important}
}

/* Shared glow correction: use feathered silhouettes, never clipped track backdrops. */
:root{--aura-close:rgba(215,115,188,.19);--aura-far:rgba(206,104,185,.075)}
html[data-theme="light"]{--aura-close:rgba(159,72,142,.17);--aura-far:rgba(162,86,159,.07)}
.site-header-actions,.resume-actions,.resume-next-links,.footer-nav,
.site-footer-links,.contact-actions,.chips,.gallery-controls{filter:none!important}
.site-nav-pill,.site-nav-universe,.site-header-shell .theme-toggle,
.resume-action,.philosophy-link,.contact-actions a,
.site-footer-links a,.footer-nav a,.cta,.gallery-action,.gallery-arrow,
.lab .action,.lab .pill,#chapters .chip,.panel-pill{
 box-shadow:0 0 8px var(--aura-close),0 0 22px var(--aura-far),
 0 0 36px rgba(209,116,187,.045)!important;
}
:is(.site-nav-pill,.site-nav-universe,.site-header-shell .theme-toggle,
.resume-action,.philosophy-link,.contact-actions a,.site-footer-links a,
.footer-nav a,.cta,.gallery-action,.gallery-arrow,.lab .action,.lab .pill,
#chapters .chip,.panel-pill):is(:hover,:focus-visible){
 box-shadow:0 0 12px rgba(217,112,190,.29),
 0 0 28px rgba(206,100,187,.13),0 0 48px rgba(208,111,195,.06)!important;
}
/* A scroll container clips its descendants. Pad *inside* the scrollport so
   card halos finish fading before reaching the container's outer rectangle. */
#chapters #work .work-grid{
 box-sizing:border-box!important;
 padding:22px 20px 24px!important;
 background:transparent!important;
 border:0!important;border-radius:0!important;
 box-shadow:none!important;filter:none!important;
 scroll-padding-left:20px!important;scroll-padding-right:20px!important;
}
#chapters #work .work-grid > .work{
 box-shadow:0 0 0 1px rgba(179,104,157,.12),
 0 4px 16px rgba(184,93,154,.13),0 0 22px rgba(216,118,189,.11)!important;
}
#chapters #work .work-grid > .work:is(:hover,:focus-visible,.is-lit){
 box-shadow:0 0 0 1px rgba(175,92,157,.24),
 0 7px 20px rgba(179,88,151,.17),0 0 26px rgba(209,119,185,.18)!important;
}
#gallery .work-panel{
 box-sizing:border-box!important;
 height:calc(100% - 32px)!important;
 max-height:calc(100% - 32px)!important;
 margin-block:16px!important;
 box-shadow:0 0 0 1px rgba(185,109,158,.10),
 0 5px 17px rgba(159,85,149,.12),0 0 23px rgba(210,114,191,.09)!important;
}
#gallery .gallery-frame,#gallery .gallery-shell,
#gallery #project-track{background:transparent!important;filter:none!important}
.constellation-arc .constellation-current{
 right:clamp(47px,8vw,70px)!important;
 bottom:max(2px,env(safe-area-inset-bottom,0px))!important;
 white-space:nowrap!important;
}
@media(max-width:650px){
 #chapters #work .work-grid{padding:18px 19px 21px!important;scroll-padding-left:19px!important}
 .constellation-arc .constellation-current{right:clamp(47px,12vw,62px)!important}
}
@media(orientation:landscape) and (max-height:680px){
 #chapters #work .work-grid{padding:13px 14px!important;scroll-padding-left:14px!important}
 #chapters #work .work-grid > .work{
  flex:0 0 calc(100% - 28px)!important;
  min-width:calc(100% - 28px)!important;
  max-width:calc(100% - 28px)!important;
 }
}
@media(prefers-contrast:more){
 .site-nav-pill,.site-nav-universe,.site-header-shell .theme-toggle,
 .resume-action,.site-footer-links a,.cta,#chapters .chip,.panel-pill{
  box-shadow:none!important;border-width:2px!important;
 }
}

/* Shared header controls have deliberately specific shell rules. Override those
   rules on the controls themselves so their soft radiance is retained. */
.site-header-shell .site-nav-pill,
.site-header-shell .site-nav-universe,
.site-header-shell .theme-toggle {
  box-shadow:0 0 8px var(--aura-close),
    0 0 22px var(--aura-far),
    0 0 36px rgba(209,116,187,.045)!important;
}
.site-header-shell .site-nav-pill:is(:hover,:focus-visible),
.site-header-shell .site-nav-universe:is(:hover,:focus-visible),
.site-header-shell .theme-toggle:is(:hover,:focus-visible){
  box-shadow:0 0 12px rgba(217,112,190,.29),
    0 0 28px rgba(206,100,187,.13),
    0 0 48px rgba(208,111,195,.06)!important;
}

/* A single, fully visible carousel card in compact landscape. */
@media(orientation:landscape) and (max-height:680px){
 #chapters #work .work-grid > .work{
  flex:0 0 100%!important;
  width:100%!important;min-width:100%!important;max-width:100%!important;
 }
}

/* 2026-12-02: remove clipping at the chapter content boundary, not just the pill row. */
#chapters #contact .chapter-content,
#chapters #approach .chapter-content{
 overflow:visible!important;
}
#chapters #contact .chapter-content-inner,
#chapters #approach .chapter-content-inner{
 overflow:visible!important;
}
#chapters #contact .contact-actions,
#chapters #approach .approach-links{
 overflow:visible!important;background:transparent!important;box-shadow:none!important;
}
#chapters #contact .contact-actions a,
#chapters #approach .philosophy-link{
 backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
}
.site-header-shell .site-nav-pill,
.site-header-shell .site-nav-universe,
.site-header-shell .theme-toggle{
 display:inline-flex!important;align-items:center!important;justify-content:center!important;
 padding-block:0!important;line-height:1.2!important;vertical-align:middle!important;
}
.site-header-shell .site-nav-pill svg,
.site-header-shell .site-nav-universe .site-sparkle{
 align-self:center;flex-shrink:0;vertical-align:middle;
}
.site-header-shell .site-nav-universe .site-sparkle{line-height:1!important}
.site-header-shell .site-nav-back :is(.nav-back-short,.nav-back-long){line-height:inherit!important}
:is(.resume-action,.site-footer-links a,.footer-nav a,.contact-actions a,.philosophy-link,.cta,.hero-secondary,.gallery-action,.lab .action){
 align-items:center!important;justify-content:center;line-height:1.25!important;
}
