/* A continuous luminous ground. No section paints an opaque rectangular edge. */
html body.has-soft-atmosphere {
 isolation:isolate;
 background:#eee8f1!important;
}
.site-colour-atmosphere {
 position:fixed;inset:-14%;z-index:-10;pointer-events:none;
 background:
  radial-gradient(ellipse at 23% 27%,#fff5dded 0%,#fff2d577 17%,#fff2d500 48%),
  radial-gradient(ellipse at 80% 66%,#defff6cc 0%,#b2eddf70 23%,#b2eddf00 53%),
  radial-gradient(ellipse at 15% 76%,#e58ab889 0%,#efafd452 27%,#efafd400 58%),
  radial-gradient(ellipse at 76% 16%,#9985e69c 0%,#b2a0ee68 25%,#b2a0ee00 57%),
  radial-gradient(ellipse at 59% 89%,#efc37499 0%,#efd7a65c 25%,#efd7a600 57%),
  linear-gradient(125deg,#eae3f0,#f5e8e6 48%,#dbe9ef);
 animation:atmosphere-breathe 28s ease-in-out infinite alternate;
}
@keyframes atmosphere-breathe {
 from{transform:translate3d(-2%,-1%,0) scale(1)}
 to{transform:translate3d(3%,2%,0) scale(1.06)}
}
html body .soft-page-wrapper,html body .has-colour-surface,
html body.has-soft-atmosphere :is(.time-runway,.project-shelves) {background:transparent!important}
.has-colour-surface{isolation:isolate}
.soft-surface-relative{position:relative}
.section-colour-surface {
 position:absolute;inset:0;z-index:-3;pointer-events:none;border-radius:inherit;
 --surface-mask:linear-gradient(to bottom,transparent,#000 var(--surface-fade-top,120px),#000 calc(100% - var(--surface-fade-bottom,120px)),transparent);
 -webkit-mask-image:var(--surface-mask);mask-image:var(--surface-mask);
}
/* A broad glow is painted inside the faded surface, never over readable type. */
.section-colour-surface::after {
 content:"";position:absolute;inset:0;pointer-events:none;opacity:.48;
 background:radial-gradient(ellipse at 18% 37%,#f5b3cf70,transparent 65%),radial-gradient(ellipse at 84% 60%,#a2e5d985,transparent 65%),radial-gradient(ellipse at 58% 24%,#ffedb57a,transparent 58%);
}
/* Retire the old flat-colour seam covers now that paint has its own soft edge. */
html body.has-soft-atmosphere :is(.time-world,.opening-sticky,.contact-ending)::after,
html body.has-soft-atmosphere .time-world::before,
html body.has-soft-atmosphere .about-education-stage::before {background:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
html body.research-page.has-soft-atmosphere::before,
html body.research-page.has-soft-atmosphere::after {content:none}
html body.has-soft-atmosphere :is(.projects-world-label,.end){background:transparent!important}
html body.has-soft-atmosphere .end::before{content:none!important}
html body.has-soft-atmosphere .about-world::after{background:none!important}
html body.has-soft-atmosphere .candy-reader{background:transparent!important}

/* Opaque animation buffers need the same feather as CSS backgrounds. */
html body .contact-colour {
 --field-mask:linear-gradient(to bottom,transparent,#000 22%,#000 76%,transparent);
 -webkit-mask-image:var(--field-mask);mask-image:var(--field-mask);
}
html body .contact-stage .contact-colour {
 --field-mask:linear-gradient(to bottom,#000,#000 80%,transparent);
}
html body .contact-stage::after {content:none}
html body.research-index-page .contact-colour {--field-mask:linear-gradient(#000,#000)}
html body :is(.contact-stage,.contact-ending)>.section-colour-surface {
 background:radial-gradient(ellipse at 14% 25%,#ea8fbd99,transparent 65%),radial-gradient(ellipse at 86% 64%,#89d6c7a6,transparent 65%),radial-gradient(ellipse at 77% 14%,#9f7ad68c,transparent 60%),radial-gradient(ellipse at 30% 89%,#f5d08ca6,transparent 65%)!important;
}
/* Carry the ending's light up behind the category entry. Only paint overlaps;
   the controls and projects stay above it in their own stacking contexts. */
html body.projects-page :is(.time-runway,.project-shelves){position:relative;z-index:1}
html body.projects-page .contact-ending{--invitation-bleed:clamp(150px,26svh,260px);overflow:visible;z-index:0}
html body.projects-page .contact-ending>.contact-colour {
 top:calc(-1 * var(--invitation-bleed));bottom:auto;height:calc(100% + var(--invitation-bleed));opacity:.58;
 --field-mask:linear-gradient(to bottom,transparent,rgba(0,0,0,.06) 8%,rgba(0,0,0,.24) 18%,rgba(0,0,0,.52) 32%,rgba(0,0,0,.82) 48%,#000 62%,#000 78%,rgba(0,0,0,.4) 92%,transparent);
}
html body.projects-page .contact-ending>.section-colour-surface {
 top:calc(-1 * var(--invitation-bleed));opacity:.44;
 --surface-mask:linear-gradient(to bottom,transparent,rgba(0,0,0,.1) 10%,rgba(0,0,0,.45) 28%,#000 55%,#000 78%,transparent);
}
html body.projects-page .time-world>.section-colour-surface{--surface-fade-bottom:clamp(180px,28svh,320px)}
html body.projects-page .time-grain {
 -webkit-mask-image:linear-gradient(transparent,#000 12%,#000 60%,transparent);
 mask-image:linear-gradient(transparent,#000 12%,#000 60%,transparent);
}
html body .time-atmosphere {
 inset:0;transform:none;filter:none;
 background:radial-gradient(ellipse at 22% 48%,#a28bd987,transparent 67%),radial-gradient(ellipse at 76% 46%,#ffe3aabd,transparent 65%),radial-gradient(ellipse at 66% 80%,#91d9d888,transparent 64%);
 -webkit-mask-image:linear-gradient(transparent,#000 22%,#000 75%,transparent);
 mask-image:linear-gradient(transparent,#000 22%,#000 75%,transparent);
}
html body .time-atmosphere i{filter:blur(65px);opacity:.7}
html body .time-atmosphere i:nth-child(1){background:#ffedc4}
html body .time-atmosphere i:nth-child(2){background:#ca9fe3}
html body .time-atmosphere i:nth-child(3){background:#a6f1dd;top:45%}
html body :is(.about-world>canvas,.about-fallback,.opening-art,.opening-tint,.about-education-landscape) {
 --scene-fade:linear-gradient(to bottom,
  rgba(0,0,0,1) 55%,rgba(0,0,0,.97) 62%,rgba(0,0,0,.87) 70%,
  rgba(0,0,0,.68) 78%,rgba(0,0,0,.42) 85%,rgba(0,0,0,.18) 92%,
  rgba(0,0,0,.04) 97%,rgba(0,0,0,0) 100%);
 -webkit-mask-image:var(--scene-fade);
 mask-image:var(--scene-fade);
}
/* The backing colour must disappear alongside the canvas. Otherwise its
   dark base still creates a band when the sticky hero releases. */
html body .about-education-landscape{
 -webkit-mask-image:linear-gradient(to bottom,transparent 0,rgba(0,0,0,.02) 24px,rgba(0,0,0,.13) 60px,rgba(0,0,0,.4) 110px,rgba(0,0,0,.75) 160px,#000 220px,#000 78%,transparent 100%)!important;
 mask-image:linear-gradient(to bottom,transparent 0,rgba(0,0,0,.02) 24px,rgba(0,0,0,.13) 60px,rgba(0,0,0,.4) 110px,rgba(0,0,0,.75) 160px,#000 220px,#000 78%,transparent 100%)!important;
}
html body .about-education-landscape::after{
 content:"";position:absolute;inset:0 0 auto;height:180px;pointer-events:none;
 backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
 -webkit-mask-image:linear-gradient(#000,transparent);mask-image:linear-gradient(#000,transparent);
}
html body .about-methods-stage>.section-colour-surface{
 top:-56px;
 --surface-mask:linear-gradient(to bottom,transparent 0,rgba(0,0,0,.04) 25px,rgba(0,0,0,.16) 58px,rgba(0,0,0,.4) 96px,rgba(0,0,0,.72) 132px,rgba(0,0,0,.94) 164px,#000 190px,#000 calc(100% - 180px),rgba(0,0,0,.85) calc(100% - 140px),rgba(0,0,0,.5) calc(100% - 95px),rgba(0,0,0,.13) calc(100% - 42px),transparent);
}
html body #projects-world .opening-sticky>.section-colour-surface,
html body #about .opening-sticky>.section-colour-surface {
 --surface-fade-top:0px;--surface-fade-bottom:45%;
}
/* An opaque central window protects the sculpture from the pale page ground.
   Its elliptical falloff joins the existing bottom feather without a new edge. */
html body #projects-world :is(.about-world>canvas,.about-fallback) {
 --sculpture-window:radial-gradient(ellipse 34% 25% at 50% 49%,
  rgba(0,0,0,1) 0%,rgba(0,0,0,1) 50%,rgba(0,0,0,.86) 65%,
  rgba(0,0,0,.38) 82%,rgba(0,0,0,0) 100%);
 -webkit-mask-image:var(--sculpture-window),var(--scene-fade);
 -webkit-mask-composite:source-over;
 mask-image:var(--sculpture-window),var(--scene-fade);
 mask-composite:add;
}
html body #projects-world .opening-sticky>.section-colour-surface::after {
 -webkit-mask-image:radial-gradient(ellipse at 50% 49%,transparent 12%,#000 70%);
 mask-image:radial-gradient(ellipse at 50% 49%,transparent 12%,#000 70%);
}
/* Full-bleed photographs fade independently of captions and zoom controls. */
html body :is(.case-scene .archive-hero-art,.case-scene .iris-entrance-art,.tpms-opening-photo,.iris-detail>img,.iris-models .zoom-trigger,.archive-frames>.wide .zoom-trigger,.portfolio-board,.candy-sketch-pan,.candy-lookbook-stage,.candy-final>.zoom-trigger) {
 -webkit-mask-image:linear-gradient(transparent,#000 6%,#000 91%,transparent);
 mask-image:linear-gradient(transparent,#000 6%,#000 91%,transparent);
}
html body :is(.case-scene,.tpms-opening)::after {
 -webkit-mask-image:linear-gradient(#000 65%,transparent);
 mask-image:linear-gradient(#000 65%,transparent);
}
/* Remove decorative rules. Focus indicators, dial marks and artwork remain usable. */
html body :is(main section,main article,.end,.contact-details,.about-languages,.cv-entry,.about-more,.about-current-threads,.about-project-row,.cv-project-group,.thread-reading li,.research-related,.research-list,.research-lenses li,.archive-branch,.iris-intro-bottom dl div,.proposal-roles details) {
 border-color:transparent!important;
}
html body :is(.contact-email,.about-reading-link,.about-invitation-link,.opening-copy>a,.shelf-nav a,.category-toggle,.time-all,.invitation-orbit) {border-color:transparent!important}
html body .contact-details {padding-top:0}
html body .about-education-glass {box-shadow:0 14px 70px -36px #75659940;border-color:transparent!important}
html body .portrait-auxiliary {border-color:transparent;box-shadow:0 12px 44px #69544720}
html body .contact-statement,html body .contact-ending h2 {overflow:visible;will-change:auto;transform:none!important;clip-path:none!important;opacity:1!important;text-shadow:none}
@media(max-width:650px){
 /* Keep the connected glass menu, but diffuse its one-pixel perimeter. */
 html body.site-page header.nav,html body.site-page header.nav.menu-open {
  box-shadow:0 3px 16px #e3eaff80,0 14px 36px -20px #8b72bd36!important;
 }
 html body.site-page header.nav::after {filter:blur(2px);opacity:.6}
 .section-colour-surface::after{opacity:.38}
}
@media(prefers-reduced-motion:reduce){
 .site-colour-atmosphere{animation:none}
 html body .contact-statement,html body .contact-ending h2{will-change:auto}
}
.site-colour-atmosphere.is-paused{animation-play-state:paused}
