/* Experiments, shared by Home and the AI page (2026-11-24). */
/* ---------- Experiments: one screen. Point at a name and the screen shows it; click the screen to enter the live experiment.
   Nothing live loads until that click, so the page stays light. ---------- */
.xp:not(:has(.xp__list > li)) { display: none; }
.lab { display: grid; gap: 1.5rem clamp(2rem, 1rem + 3vw, 4.5rem); align-items: start; }
.xp__list { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
.xp__list > li:nth-child(n+4) { display: none; }
.xp__item { border-bottom: 1px solid var(--line); }
.xp__name { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; width: 100%; min-height: 3.5rem; padding: 0.75rem 0; border: 0; background: none; color: var(--muted); font: inherit; font-family: var(--font-display); font-size: var(--fs-h3); line-height: 1.1; text-align: left; cursor: pointer; transition: color 0.2s var(--ease); }
.xp__name:hover, .xp__item.is-on .xp__name { color: var(--ink); }
.xp__name::after { content: ""; flex: none; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--accent); opacity: 0; transition: opacity 0.2s var(--ease); }
.xp__item.is-on .xp__name::after { opacity: 1; }
.xp__media { display: none; }
.xp__detail { display: none; gap: 0.75rem; padding: 0 0 1.25rem; }
.xp__item.is-on .xp__detail { display: grid; }
.xp__tool { display: flex; align-items: center; gap: 0.5rem; color: var(--muted); font-size: var(--fs-small); }
.xp__tool img { flex: none; width: 1.25rem; height: 1.25rem; }
.xp__notes { display: grid; margin: 0; }
.xp__notes div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1rem; padding: 0.55rem 0; border-top: 1px solid var(--line); }
.xp__notes dt { color: var(--muted); font-size: var(--fs-small); line-height: 1.6; }
.xp__notes dd { margin: 0; font-size: var(--fs-small); line-height: 1.6; }
.xp__links { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 1.25rem; }
.xp__links a { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 500; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 0.3em; }
.xp__links p { color: var(--muted); font-size: var(--fs-small); }
/* the screen: a still until someone clicks in */
.xp__screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border: 10px solid var(--ink); border-radius: calc(var(--r) * 2); background: var(--ink); box-shadow: var(--shadow); }
.xp__screen > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.xp__enter { position: absolute; inset: 0; display: grid; place-items: center; border: 0; background: rgba(30, 25, 20, 0); cursor: pointer; transition: background-color 0.2s var(--ease); }
.xp__enter span { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 3rem; padding: 0 1.5rem; border-radius: var(--r); background: var(--ink); color: var(--paper); font: inherit; font-weight: 500; opacity: 0; transform: translateY(4px); transition: opacity 0.2s var(--ease), transform 0.2s var(--ease); }
.xp__screen:hover .xp__enter, .xp__enter:focus-visible { background: rgba(30, 25, 20, 0.28); }
.xp__screen:hover .xp__enter span, .xp__enter:focus-visible span { opacity: 1; transform: none; }
@media (hover: none) { .xp__enter span { opacity: 1; transform: none; } }
.xp__live { position: absolute; left: 0; top: 0; border: 0; background: var(--ink); transform-origin: 0 0; }
video.xp__live { width: 100%; height: 100%; object-fit: cover; }
.xp__close { position: absolute; top: 0.6rem; right: 0.6rem; z-index: 2; min-height: 2.5rem; padding: 0 1rem; border: 0; border-radius: var(--r); background: var(--ink); color: var(--paper); font: inherit; font-size: var(--fs-small); font-weight: 500; cursor: pointer; }
.xp__close[hidden], .xp__enter[hidden], .xp__screen > img[hidden] { display: none; }
.xp__under { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; margin-top: 0.75rem; color: var(--muted); font-size: var(--fs-small); }
.xp__under a { color: var(--ink); font-weight: 500; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 0.3em; }
@media (min-width: 60rem) { .lab { grid-template-columns: minmax(18rem, 1fr) minmax(0, 2.1fr); } }
@media (max-width: 59.99rem) { .xp__stage { order: -1; } }
