/* One photographic dissolve. The persistent header always stays above it. */
.eve-entry-photo{position:fixed;inset:0;z-index:100;overflow:hidden;pointer-events:none}
.eve-entry-photo img{position:absolute;max-width:none}
.entry-model{position:fixed!important;inset:0!important;width:100vw!important;height:100vh!important;z-index:90;pointer-events:none}
.entry-leaving .masthead,.entry-arriving .masthead,.entry-returning .masthead{z-index:110}
.entry-leaving .hero{overflow:visible}
.entry-leaving .intro,.entry-leaving .story,.entry-leaving .steps,.entry-leaving .scene-controls,.entry-leaving .stage>:not(canvas),.entry-leaving .scene-copy,.entry-leaving .scene-nav,.entry-leaving .next{opacity:0!important;transition:opacity var(--m-feedback) var(--m-ease-out);pointer-events:none}
.entry-arriving .scene-copy,.entry-arriving .scene-nav,.entry-arriving .next{opacity:0!important}
.entry-arriving .living-stage .engineering{opacity:0}
.entry-arriving .hero>:not(.stage),.entry-returning .hero>:not(.stage),.entry-returning .stage>:not(canvas){opacity:0!important;pointer-events:none}
.entry-settled .chapter:first-child .scene-copy{animation:entry-title var(--m-title) var(--m-ease-out) both}
@keyframes entry-title{from{opacity:0;translate:0 18px}to{opacity:1;translate:0 0}}
@media(prefers-reduced-motion:reduce){.eve-entry-photo{display:none}.entry-settled .chapter:first-child .scene-copy{animation:none}}
/* Stable header geometry makes the photo swap invisible on phones as well. */
@media(max-width:800px){
  body:has(.chapter) .masthead{height:112px;min-height:112px;padding:0;margin:0 22px;display:grid;grid-template-columns:1fr auto;column-gap:14px;row-gap:0;align-content:center}
  body:has(.chapter) .masthead .brand{grid-column:1;grid-row:1;width:77px;min-height:44px;display:grid;align-content:center;gap:4px}
  body:has(.chapter) .masthead .brand img{width:77px}
  body:has(.chapter) .masthead .brand span{font-size:6px}
  body:has(.chapter) .masthead nav{grid-column:1/-1;grid-row:2;margin:0;gap:18px}
  body:has(.chapter) .masthead nav a{font-size:11px;min-width:44px;min-height:44px;padding:0;display:flex;align-items:center;justify-content:center}
  body:has(.chapter) .masthead .inquiry{grid-column:2;grid-row:1;margin-left:auto;font-size:11px;min-height:44px;padding:10px 0;border:0;gap:10px;display:flex;align-items:center;justify-content:center}
}
body:has(.chapter) .masthead{background:none}
body:has(.chapter) .masthead::after,.entry-leaving .masthead::after,.entry-arriving .masthead::after,.entry-returning .masthead::after{content:'';position:fixed;inset:0 0 auto;height:112px;background:linear-gradient(#061b16e6,#061b1690,transparent);z-index:-1;pointer-events:none}
