/* Displace only the scene behind the glass. */
.hdi-lens-definitions {
  position: absolute;
  width: 0;
  height: 0;
  pointer-events: none;
}
.hdi-glass-panel nav a { grid-template-columns: minmax(0, 1fr) auto; }

.hdi-atelier .hdi-glass-panel.hdi-refracting,
.hdi-atelier :is(.hdi-shop-paths, .hdi-intentions-preview) .hdi-photo-card-grid > a > .hdi-glass-caption.hdi-refracting {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #22291f;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: 0 16px 44px #15181155, inset 0 1px 0 #fff8e661;
}
.hdi-refraction-lens,
.hdi-refraction-photo,
.hdi-refraction-lens::before,
.hdi-refraction-lens::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hdi-refraction-lens { z-index: -1; border-radius: inherit; overflow: hidden; }
.hdi-refraction-photo {
  background-repeat: no-repeat;
  filter: url("#hdi-glass-bend");
}
.hdi-refraction-lens::before {
  content: "";
  z-index: 1;
  background: linear-gradient(112deg, #1c251ab3, #141d15a3 57%, #171f1680);
}
.hdi-refraction-lens::after {
  content: "";
  z-index: 2;
  border-radius: inherit;
  box-shadow: inset 0 1px 1px #fff2d775, inset 0 -1px 1px #e8c99654;
  background: linear-gradient(145deg, #fff0c829 0%, transparent 28%, transparent 77%, #f2c88a20);
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .hdi-refracting:hover .hdi-refraction-lens::after {
    background:
      radial-gradient(ellipse 125px 90px at var(--hdi-light-x, 20%) var(--hdi-light-y, 0%), #fff1d14d, transparent 100%),
      linear-gradient(145deg, #fff0c820, transparent 33%, transparent 77%, #f2c88a20);
  }
}

/* Keep a darker tint directly behind the type while the bevel stays clear. */
.hdi-glass-panel.hdi-refracting :is(h2, p, .hdi-glass-label, nav a),
.hdi-glass-caption.hdi-refracting :is(strong, span) {
  text-shadow: 0 1px 4px #0b110af2, 0 0 13px #10170e85;
}

/* The sticky bar samples the page beneath it once content starts moving. */
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  body.hdi-atelier > header.hdi-glass-scrolled:not(.hdi-menu-open) {
    background: linear-gradient(105deg, #18251bc2, #18251b91 47%, #1d261bbf);
    -webkit-backdrop-filter: blur(5px) saturate(118%);
    backdrop-filter: blur(5px) saturate(118%);
    box-shadow: 0 8px 25px #10160f28, inset 0 1px 0 #fff4d854;
  }
  body.hdi-atelier > header.hdi-glass-scrolled:not(.hdi-menu-open) :is(.brand, .hdi-article-brand, nav a) {
    color: #fff5e4;
    text-shadow: 0 1px 3px #080e08d9;
  }
  body.hdi-atelier > header.hdi-glass-scrolled:not(.hdi-menu-open) nav a:is(:hover, :focus-visible, [aria-current="page"]) {
    color: #f3d09b;
  }
  body.hdi-atelier > header.hdi-glass-scrolled.hdi-native-refraction:not(.hdi-menu-open) {
    backdrop-filter: blur(2px) saturate(118%) url("#hdi-header-bend");
  }
}
