html[data-home-background="double-slit"] { background: #08090c; }
html[data-home-background="double-slit"] :is(.landscape, .home-main, .skip-link) { display: none; }

.home-double-slit {
  display: none;
  position: fixed;
  inset: 0;
  isolation: isolate;
  overflow: hidden;
  background: radial-gradient(ellipse at 59% 51%, #101117, #08090c 70%);
}
html[data-home-background="double-slit"] .home-double-slit { display: block; }
.home-double-slit-stage {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(100%, 1180px, calc(100svh * 2.666667));
  aspect-ratio: 8 / 3;
  transform: translate(-50%, -50%);
}
.home-double-slit-optics {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent),
    linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
  mask-composite: intersect;
}
.home-double-slit-gpu { opacity: 0; transition: opacity 380ms ease; }
.home-double-slit-stage[data-renderer="vgpu"] .home-double-slit-gpu { opacity: 1; }
.home-double-slit-screen {
  position: absolute;
  top: 13%;
  left: 73%;
  width: 23%;
  height: 74%;
  overflow: hidden;
}
.home-double-slit-impacts { display: block; width: 100%; height: 100%; }
.home-double-slit-count {
  position: absolute;
  right: max(clamp(20px, 4vw, 60px), env(safe-area-inset-right));
  bottom: max(clamp(18px, 4vh, 36px), env(safe-area-inset-bottom));
  margin: 0;
  color: #a19d92;
  font: 11px/1.2 "Helvetica Neue", Arial, sans-serif;
  font-variant-numeric: tabular-nums;
  letter-spacing: .06em;
}
.home-double-slit-count > span { color: #c9c1af; }
.home-double-slit-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.home-double-slit-observer { display: none; }
html[data-home-background="double-slit"] .home-double-slit-observer:not([hidden]) {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #d1cbc1;
  cursor: pointer;
  transition: color 180ms ease, background-color 180ms ease;
}
html[data-home-background="double-slit"] .home-double-slit-observer:hover { background: #fff1; }
html[data-home-background="double-slit"][data-double-slit-entry="opening"] .home-double-slit-observer { color: #a9dcff; }
html[data-home-background="double-slit"]:not([data-double-slit-entry="entered"]) .home-header > .mind-search-trigger,
html[data-home-background="double-slit"]:not([data-double-slit-entry="entered"]) .home-background-control:not(:has(.home-background-toggle[aria-expanded="true"])),
html[data-home-background="double-slit"]:not([data-double-slit-entry="entered"]) .home-header:has(.home-background-toggle[aria-expanded="true"]) > .home-double-slit-observer {
  display: none;
}
@media (prefers-reduced-motion: no-preference) {
  html[data-home-background="double-slit"][data-double-slit-entry="opening"] .home-double-slit-observer {
    animation: home-double-slit-eye-dismiss 500ms ease both;
  }
  html[data-home-background="double-slit"][data-double-slit-entry="entered"] .home-header > :is(.mind-search-trigger, .home-background-control) {
    animation: home-double-slit-nav-reveal 360ms cubic-bezier(.22, 1, .36, 1) both;
  }
  @keyframes home-double-slit-eye-dismiss {
    0%, 60% { opacity: 1; }
    100% { opacity: 0; }
  }
  @keyframes home-double-slit-nav-reveal {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
.home-double-slit-eye { position: relative; display: block; width: 35px; height: 22px; }
.home-double-slit-lid {
  position: absolute;
  inset-inline: 1px;
  height: 11px;
  transition: transform 260ms cubic-bezier(.2, .75, .2, 1), opacity 180ms ease;
}
.home-double-slit-lid.upper {
  top: 0;
  border-top: 1.5px solid currentColor;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  transform-origin: bottom;
  transform: scaleY(.08);
  opacity: 0;
}
.home-double-slit-lid.lower {
  bottom: 0;
  border-bottom: 1.5px solid currentColor;
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
  transform-origin: top;
  transform: scale(.93, .37);
}
.home-double-slit-iris {
  position: absolute;
  top: 5px;
  left: 12px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: radial-gradient(circle at 42% 33%, #eaf8ff 12%, #97d5ff 20%, #4e8bb8 50%, #173b59 70%, #a9dcff 76%);
  box-shadow: 0 0 11px #83cbff75;
  opacity: 0;
  transform: scaleY(0);
  transition: transform 240ms cubic-bezier(.2, .75, .2, 1), opacity 160ms ease;
}
[data-double-slit-entry="opening"] .home-double-slit-observer :is(.home-double-slit-lid, .home-double-slit-iris) {
  opacity: 1;
  transform: scale(1);
}
.home-background-list > button[data-home-background="double-slit"] > img { object-fit: contain; background: #08090c; }
@media (max-aspect-ratio: 1/1) {
  .home-double-slit-stage {
    width: min(calc(100svh - 132px), 1180px, calc(100vw * 2.666667));
    transform: translate(-50%, -50%) rotate(90deg);
  }
}
