/* ═══════════════════════════════════════════════════════
* Shared with daemon-sec.xyz: the contour field, the dot field band and
* the cursor pill. Scripts: src/scripts/dmn/. Tokens are this site's
* mode-flipping set.
* ═══════════════════════════════════════════════════════ */
/* The contour field: the ground under the home hero and every section
banner. The host plate positions and clips it; the body row above it is
z-index 2. Its ground is the shader's `--base`, pinned here to the
plate's own ground so the canvas has no edge against the band and the
band looks the same if WebGL is missing and the canvas is removed. */
.contour-field {
--base: var(--plate);
position: absolute;
inset: 0;
width: 100%;
height: 100%;
display: block;
pointer-events: none;
/* It arrives on a long fade the first time it draws. */
opacity: 0;
transition: opacity 2400ms var(--ease-out-soft);
}
.contour-field.is-live { opacity: 1; }
/* The dot field behind the top of the page, on the plain ground. It
fades out downward so it never sits behind a long read. Page content
is positioned (without a z-index, so no new stacking context) and so
paints over it in document order. */
.dmn-page-field {
position: absolute;
inset-inline: 0;
top: 0;
height: 70vh;
max-height: 720px;
overflow: hidden;
pointer-events: none;
z-index: 0;
/* Thins out early: this site's pages open straight into dense mono
text and controls, and the dots must stay behind the words. */
-webkit-mask-image: linear-gradient(180deg, #000 0%, rgb(0 0 0 / 0.55) 35%, transparent 85%);
mask-image: linear-gradient(180deg, #000 0%, rgb(0 0 0 / 0.55) 35%, transparent 85%);
}
.dmn-page-field canvas {
display: block;
width: 100%;
height: 100%;
opacity: 0;
transition: opacity 2400ms var(--ease-out-soft, ease-out);
}
.dmn-page-field canvas.is-live { opacity: 0.6; }
#main, .dfooter { position: relative; }
/* ── The cursor ──
A disc that trails the pointer, a ring over anything clickable, and a
pill that names the action over links, images and PDFs. */
@media (pointer: fine) {
html.has-dmn-cursor,
html.has-dmn-cursor * { cursor: none; }
.dmn-cursor {
position: fixed;
top: 0;
left: 0;
z-index: 99999;
width: 9px;
height: 9px;
border: 1px solid transparent;
border-radius: 50%;
background: var(--love);
pointer-events: none;
transform: translate(-50%, -50%);
transition: width 180ms ease, height 180ms ease, background-color 180ms ease, border-color 180ms ease, opacity 200ms ease;
}
.dmn-cursor.on-dark { background: var(--color-night-love); }
.dmn-cursor.hot { width: 34px; height: 34px; background: transparent; border-color: var(--love); }
.dmn-cursor.hot.on-dark { border-color: var(--color-night-love); }
.dmn-cursor-pill {
position: absolute;
top: 50%;
left: 50%;
display: inline-flex;
align-items: center;
gap: 8px;
padding: 8px 14px 8px 11px;
border: 1px solid color-mix(in srgb, var(--text) 25%, transparent);
border-radius: 999px;
background: var(--surface);
color: var(--text);
font: 500 11.5px/1 var(--font-mono);
letter-spacing: 0.08em;
text-transform: uppercase;
white-space: nowrap;
opacity: 0;
transform: translate(-50%, -50%) scale(0);
transition: transform 200ms cubic-bezier(0.4, 0, 1, 1), opacity 160ms ease;
}
.dmn-cursor-icon { display: inline-flex; }
.dmn-cursor[data-mode] { background: transparent; border-color: transparent; }
.dmn-cursor[data-mode] .dmn-cursor-pill {
opacity: 1;
transform: translate(-50%, -50%) scale(1);
transition: transform 320ms cubic-bezier(0.34, 1.56, 0.64, 1), opacity 200ms ease;
}
.dmn-cursor.on-dark .dmn-cursor-pill {
border-color: color-mix(in srgb, var(--color-night-text) 28%, transparent);
background: var(--color-night-surface);
color: var(--color-night-text);
}
}
@media (pointer: coarse) { .dmn-cursor { display: none; } }
/* The site's own motion switch, for every page: it used to live in the
catalog's stylesheet, so it only took effect on /catalog. */
html[data-motion=reduce] *,
html[data-motion=reduce] *::before,
html[data-motion=reduce] *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }