/* The hero stays behind the rising white content, like the original website. */
main.glass-stage{position:relative;isolation:isolate;overflow:visible!important}
main.glass-stage > .glass-stage-hero{position:sticky!important;top:0;z-index:0}
main.glass-stage > .glass-content{--glass-depth:360px;position:relative;z-index:2;display:flow-root;background:linear-gradient(to bottom,transparent 0,transparent var(--glass-depth),#fff var(--glass-depth));padding-bottom:1px}
main.glass-stage > .glass-content::before{content:"";position:absolute;inset:0 0 auto;height:var(--glass-depth);z-index:-1;background:linear-gradient(to bottom,rgba(255,255,255,.6),#fff);-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);pointer-events:none}
main.glass-stage > .glass-content > :first-child{background:transparent!important}
main.glass-stage > .legal-intro.glass-stage-hero{top:80px}
@media(max-width:700px){main.glass-stage > .glass-content{--glass-depth:260px}}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){main.glass-stage > .glass-content::before{background:linear-gradient(rgba(255,255,255,.87),#fff)}}
@media(prefers-reduced-motion:reduce){main.glass-stage > .glass-stage-hero{position:relative!important;top:auto}}

/* Keep the sticky hero inside main; the footer always paints above it. */
main.glass-stage{overflow:clip!important}
main.glass-stage + footer.site-footer{position:relative;z-index:3;isolation:isolate;background:#fff}

/* Use the Visualisierung first-content offset for the blog overview and articles. */
body.blog-index main.glass-stage > .glass-content > #blog{padding-top:100px}
body.article-page main.glass-stage > .glass-content > .article-hero{padding-top:100px!important}

/* Slightly larger supporting lines and more space below page titles. */
main.glass-stage .glass-stage-hero :is(.sub-hero-copy,.visual-hero-copy,.case-intro,.first-copy,.section-heading)>h1,main.glass-stage .legal-intro>h1{margin-bottom:24px!important}
main.glass-stage .glass-stage-hero :is(.sub-hero-copy,.visual-hero-copy,.case-intro,.first-copy,.section-heading)>p,main.glass-stage .legal-intro>p{font-size:clamp(18px,1.65vw,22px)!important;line-height:1.6}

/* Extend the glass surface upward rather than pushing the article opening down. */
body.article-page main.glass-stage > .glass-content{margin-top:-96px}

/* Raise hero copy without changing the artwork or glass transition height. */
main.glass-stage .glass-stage-hero :is(.sub-hero-copy,.visual-hero-copy,.case-intro,.section-heading){position:relative;top:-16px}
.article-page .article-intro{position:relative;top:-16px}

/* Keep the full panorama and its copy in normal flow on narrow screens. */
@media (max-width: 700px) {
  main.glass-stage:has(> :is(.sub-hero,.visual-hero,.case-hero,.first-hero,.blog-hero,.article-cover-hero).glass-stage-hero) {
    padding-top: 80px;
  }

  html body:has(main.glass-stage > :is(.sub-hero,.visual-hero,.case-hero,.first-hero,.blog-hero,.article-cover-hero).glass-stage-hero) > header.site-glass-nav.on-hero {
    background-color: #102940 !important;
  }

  html body main.glass-stage > :is(.sub-hero,.visual-hero,.case-hero,.first-hero,.blog-hero,.article-cover-hero,.legal-intro).glass-stage-hero {
    position: relative !important;
    top: auto;
  }

  html body main.glass-stage > :is(.sub-hero,.visual-hero,.case-hero,.first-hero,.blog-hero).glass-stage-hero {
    min-height: calc(100svh - 80px) !important;
    height: auto !important;
  }

  main.glass-stage > .glass-stage-hero :is(.sub-hero-photo,.visual-hero-art,.case-hero-photo,.first-art,.blog-hero-image),
  main.glass-stage > .article-cover-hero {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: auto !important;
  }

  main.glass-stage > .glass-stage-hero :is(.sub-hero-photo,.visual-hero-art,.case-hero-photo,.first-art,.blog-hero-image) > img,
  main.glass-stage > .article-cover-hero > img {
    display: block;
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
  }

  main.glass-stage > .glass-stage-hero :is(.sub-hero-photo,.visual-hero-art,.case-hero-photo,.first-art,.blog-hero-image)::after,
  main.glass-stage > .article-cover-hero::before,
  main.glass-stage > .article-cover-hero::after {
    display: none;
  }

  main.glass-stage > .glass-stage-hero :is(.sub-hero-copy,.visual-hero-copy,.case-intro,.first-copy,.section-heading) {
    top: auto;
    margin-top: 0 !important;
    padding: 28px 20px 36px !important;
  }

  main :is(h1,h2,h3) {
    min-width: 0;
    overflow-wrap: anywhere;
    hyphens: auto;
  }

  main :is(h1,h2,h3) span,
  main :is(h1,h2,h3,.section-heading > p,.glass-stage-hero p) {
    white-space: normal !important;
  }

  main .brand-hero:not(.sub-hero) h1 {
    white-space: nowrap !important;
  }

  body.article-page main.glass-stage > .glass-content {
    margin-top: 0;
  }

  body.article-page main.glass-stage > .glass-content > .article-hero {
    min-height: calc(100svh - 80px - 33.333vw);
    padding: 28px 20px 24px !important;
  }

  .article-page .article-intro {
    top: auto;
  }
}
