html[data-home-background="prism-trio"] { background: #030405; }
html[data-home-background="prism-trio"] :is(.landscape, .home-main, .skip-link) { display: none; }
.home-prism {
  display: none;
  position: fixed;
  inset: 0;
  isolation: isolate;
  overflow: hidden;
  touch-action: none;
  background: #030405 url("assets/home/prism-trio-cover-v1.jpg") center / contain no-repeat;
}
html[data-home-background="prism-trio"] .home-prism { display: block; }
.home-prism canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 420ms ease;
}
.home-prism[data-renderer="vgpu"] .home-prism-gpu,
.home-prism[data-renderer="canvas"] .home-prism-fallback { opacity: 1; }
.home-background-list > button[data-home-background="prism-trio"] > img { object-fit: contain; background: #030405; }

.home-prism-wordmark {
  position: absolute;
  top: calc(5.1svh + 12px);
  left: max(3.65vw, calc(env(safe-area-inset-left, 0px) + 16px));
  margin: 0;
  color: #000;
  opacity: min(1, calc(var(--wordmark-light-level, 0) * 4));
  mix-blend-mode: multiply;
  font: 400 clamp(10px, 1.1vw, 15px)/1.4 "Helvetica Neue", Arial, sans-serif;
  letter-spacing: .19em;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.home-prism-wordmark-light {
  position: absolute;
  top: 0;
  left: 0;
  width: clamp(164px, 23vw, 310px);
  height: clamp(80px, 10vw, 145px);
  background: radial-gradient(ellipse, #f7ebd7a6 0%, #f7ebd754 26%, #f7ebd719 49%, transparent 72%);
  transform: translate3d(var(--light-x, 0px), var(--light-y, 0px), 0) translate(-50%, -50%);
  opacity: var(--wordmark-light-level, 0);
  pointer-events: none;
}

@media (max-width: 700px) {
  .home-prism-wordmark { top: 42px; left: max(7vw, env(safe-area-inset-left, 0px)); }
}

.home-background-prism-row { position: relative; }
.home-background-prism-row > [data-home-background] > span { margin-inline-end: 46px; }
.home-background-prism-row > [data-home-background]:not([aria-pressed="true"]):not(:has(small:not(:empty))) > span {
  margin-inline-end: 64px;
}

:is(.home-prism-light-handles, .home-prism-position-handles) button,
.home-prism-light-controls button {
  border: 1px solid #ccc1ad55;
  border-radius: 6px;
  background: #1d1b19;
  color: #f3eee4;
}
.home-background-list .home-background-prism-row
:is(.home-background-lights, [data-home-background] > small:not(:empty)) {
  box-sizing: border-box;
  display: inline-grid;
  place-items: center;
  flex: 0 0 28px;
  width: 28px;
  height: 19px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--menu-border, #63737845);
  border-radius: 5px;
  background: transparent;
  color: var(--menu-muted, #6c7c7b);
  font-family: inherit;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
}
.home-background-lights {
  position: absolute;
  inset: 50% 25px auto auto;
  transform: translateY(-50%);
}
.home-background-prism-row:has([aria-pressed="true"]) .home-background-lights { right: 41px; }
.home-background-prism-row:has([aria-pressed="false"] > small:not(:empty)) .home-background-lights { right: 61px; }
.home-background-lights::before { content: ""; position: absolute; inset: -8px -4px; }
.home-background-list .home-background-prism-row .home-background-lights:hover {
  background: var(--menu-hover, #63737819);
}
:is(.home-prism-light-handles, .home-prism-position-handles) button:hover,
.home-prism-light-controls button:hover:not(:disabled) { background: #39322b; }


.home-background-menu:has(.home-prism-light-controls:not([hidden]))
> :is(.home-background-actions, .home-background-list, .home-background-footer, .home-background-note, .home-background-login) {
  display: none;
}
.home-prism-light-controls:not([hidden]) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 4px;
  color: var(--menu-text, #f3eee4);
  font: 12px/1.4 system-ui, sans-serif;
}
.home-prism-light-heading {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 2px;
}
.home-prism-light-heading h2 { margin: 0; font-size: 15px; }
.home-prism-light-heading span,
.home-prism-light-controls small { color: var(--menu-muted, #b9b1a5); }
.home-prism-light-controls button { padding: 6px; min-height: 36px; }
.home-prism-light-controls button:disabled { opacity: .42; cursor: default; }
.home-prism-light-controls :is([data-light-done], [data-prism-move], small) { grid-column: 1 / -1; }
:is(.home-prism-light-handles, .home-prism-position-handles) button {
  position: absolute;
  left: clamp(20px, var(--source-x), calc(100% - 20px));
  top: clamp(20px, var(--source-y), calc(100% - 20px));
  width: 36px;
  height: 36px;
  padding: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  font: 600 13px/1 system-ui, sans-serif;
  cursor: grab;
  touch-action: none;
}
:is(.home-prism-light-handles, .home-prism-position-handles) button:active { cursor: grabbing; }

.home-prism-light-controls [data-prism-move][aria-pressed="true"] {
  border-color: #eee3ce;
  background: #39322b;
}
.home-prism-position-handles button {
  border-color: #bed1ef8c;
  background: #141a23;
}
