/* The landing page's own rules, on top of the desktop's stylesheet (styles.css,
   copied as it is). Only what a scrolling page needs: the desktop's sheet is
   for a fixed screen. The window is the deck's plain dialog from the film's
   scenes (diary-scene.html), the caret the diary's, the cursor the film's. */

html, body { height: auto; overflow: visible; font-size: 17px; font-weight: 400; color: var(--text); line-height: 1.5; }
body { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: #FFFFFF; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
p { margin: 0 0 1em; max-width: 36rem; }
p:last-child { margin-bottom: 0; }

/* white type with the film's bloom; the lit phrase goes pink, like a label under the cursor */
.glow { color: #FFFFFF; text-shadow: 0 0 2px #FFFFFF, 0 0 10px rgba(255,255,255,0.2); }
.lit { color: var(--accent); text-shadow: 0 0 2px var(--accent), 0 0 12px rgba(255,138,247,0.3); }
h1, h2, h3 { font-family: var(--font-ui); font-weight: 700; line-height: 1.2; margin: 0 0 1rem; color: #FFFFFF; text-shadow: 0 0 2px #FFFFFF, 0 0 10px rgba(255,255,255,0.2); }
h2 { font-size: 24px; }
h3 { font-size: 17px; }
/* the diary's caret: a block that holds solid while keys go in and blinks at rest */
.caret { display: inline-block; width: 0.5em; height: 0.95em; vertical-align: text-bottom; margin-left: 0.06em; background: currentColor; box-shadow: 0 0 6px currentColor; animation: caret-blink 1s steps(1) infinite; }
@keyframes caret-blink { 50% { opacity: 0; } }
/* a text cursor holds solid while keys are going in and blinks only at rest */
.caret.typing { animation: none; opacity: 1; }
@media (prefers-reduced-motion: reduce) { .caret { animation: none; } }

/* ---- the icons' type, one size everywhere: the label under an icon and the line of meta under that ----
   The desk scenes are drawn on a 1600px canvas and scaled to fit (desktop.js sets --desk-scale on each), with the
   icons at zoom 1.2 in desk coordinates, so there the size is divided back out to land at the same rendered size. */
:root { --icon-label: 12px; --icon-meta: 11px; }
.desktop-icon .label, .desktop-icon .topic { font-size: var(--icon-label); }
.desktop-icon .meta, .desktop-icon .metadata, .desktop-icon.interview-icon .meta { font-size: var(--icon-meta); }
.scene-desk .desktop-icon .label, .scene-desk .desktop-icon .topic { font-size: calc(var(--icon-label) / (1.2 * var(--desk-scale, 1))); }
.scene-desk .desktop-icon .meta { font-size: calc(var(--icon-meta) / (1.2 * var(--desk-scale, 1))); }
.desktop.mobile .desktop-icon .label, .desktop.mobile .desktop-icon .topic { font-size: var(--icon-label); }
.desktop.mobile .desktop-icon .meta { font-size: var(--icon-meta); }

/* ---- Delta, the botmaker, as the site draws her clips: name / role / the topic in quotes, and a play pill ---- */
.desktop-icon.interview-icon .label { font-weight: 700; letter-spacing: 0.5px; }
.desktop-icon.interview-icon .meta-group { margin-top: 0; }
.desktop-icon.interview-icon .meta { text-transform: lowercase; }
.desktop-icon .topic { display: block; margin-top: 6px; max-width: 150px; text-align: center; font-family: var(--font-ui-2, var(--font-ui)); letter-spacing: 0; line-height: 1.3; color: var(--accent); overflow-wrap: anywhere; }
.desktop-icon .topic::before { content: '\201C'; }
.desktop-icon .topic::after { content: '\201D'; }
.desktop-icon.interview-icon.playing .play-pill { color: var(--accent); border-color: rgba(255,138,247,0.6); }
/* the clip in the thread window: the question, her answer with the words lighting as she says them, and the player under it */
.thread-body .dc-text .w.on { color: var(--accent); text-shadow: 0 0 2px var(--accent), 0 0 10px rgba(255,138,247,0.3); }
.thread-body .dc-text .w.said { color: rgba(249,248,248,0.92); }
.thread-body .dc-text.captioned { color: rgba(249,248,248,0.6); }
.dc-player { display: flex; align-items: center; gap: 12px; margin: 12px 0 4px; }
.dc-player .pp { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border: 1px solid rgba(249,248,248,0.32); border-radius: 999px; background: rgba(249,248,248,0.05); color: var(--text); font-family: var(--font-ui); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; }
.dc-player .pp:hover { background: rgba(249,248,248,0.12); }
.dc-player .pp svg { width: 8px; height: 10px; fill: currentColor; display: block; }
.dc-player .bar { flex: 1; height: 3px; border-radius: 2px; background: rgba(249,248,248,0.14); cursor: pointer; position: relative; }
.dc-player .bar .fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 2px; background: var(--accent); box-shadow: 0 0 6px rgba(255,138,247,0.6); }
.dc-player .t { flex: none; font-family: var(--font-meta); font-size: 11px; color: rgba(226,225,225,0.45); min-width: 72px; text-align: right; }

/* ---- the hero's windows: a chapter folder lists the archive's items; a thread shows its messages (styles.css draws both) ---- */
/* the chapter listing: a file list, one line per item, its kind's icon, the name, what it is on the right; a hairline between rows */
/* the listing and the thread windows share one height; what is longer scrolls inside */
.folder-window.archive, .thread-window { max-height: min(520px, 72vh); }
.folder-window.archive { width: 44%; max-width: 620px; }
.folder-window.archive .folder-list { padding: 6px 10px 10px; }
.folder-window.archive .folder-item { display: flex; align-items: center; gap: 12px; padding: 9px 12px; margin: 0; border-radius: 6px; border-bottom: 1px solid rgba(249,248,248,0.07); }
.folder-window.archive .folder-item:last-child { border-bottom: 0; }
.folder-window.archive .folder-item:hover { background: rgba(249,248,248,0.04); }
.folder-window.archive .folder-item .item-icon { width: 20px; height: 20px; flex: none; color: rgba(249,248,248,0.55); display: block; }
.folder-window.archive .folder-item .item-icon svg { width: 100%; height: 100%; display: block; }
.folder-window.archive .folder-item .item-icon.thumb { width: 26px; height: 26px; border-radius: 4px; overflow: hidden; border: 1px solid rgba(249,248,248,0.18); }
.folder-window.archive .folder-item .item-icon.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.folder-window.archive .folder-item .item-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.folder-window.archive .folder-item .item-desc { flex: none; font-family: var(--font-meta); font-size: 12px; color: rgba(226,225,225,0.4); white-space: nowrap; }
/* a diary note in the window, and a character file */
.thread-body .note { padding: 6px 2px 4px; }
.thread-body .note p { font-family: var(--font-quote, var(--font-ui)); font-size: 15px; line-height: 1.65; color: rgba(249,248,248,0.88); margin: 0 0 14px; }
.thread-body .note p:last-child { margin-bottom: 0; }
.thread-body .note .np-strike { text-decoration: line-through; }
.thread-body .note .note-title { font-family: var(--font-ui); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(226,225,225,0.5); margin: 0 0 14px; }
.thread-body pre.code { margin: 4px 0; white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--font-code, var(--font-meta)); font-size: 12px; line-height: 1.55; color: rgba(249,248,248,0.55); }
.thread-body pre.code .j-key { color: var(--accent-2, #90F1EF); }
.thread-body pre.code .j-str { color: rgba(249,248,248,0.92); }
.thread-body pre.code .j-num { color: #FFB86C; }
.thread-body pre.code .j-kw { color: var(--accent); }
/* the diary on the desk: the desktop's pixel notebook */
.desktop-icon.note-icon .portrait-icon { width: 44px; height: 44px; }
@media (max-width: 860px) { .folder-window.archive { width: min(92vw, 620px); } }
/* on a phone the listing and thread windows are bottom sheets (styles.css makes them full screen; this overrides it),
   with one close control big enough for a thumb in place of the three lights */
@media (max-width: 700px) {
    .folder-window.archive, .thread-window { top: auto !important; bottom: 0 !important; left: 0 !important; width: 100vw !important; max-width: none !important; height: 86vh !important; max-height: 86vh !important; border-radius: 18px 18px 0 0 !important; border: 0 !important; border-top: 1px solid rgba(249,248,248,0.2) !important; transform: none !important; position: fixed !important; }
    .folder-window.archive .window-titlebar, .thread-window .window-titlebar { padding: 8px 10px 8px 20px; min-height: 56px; align-items: center; }
    .folder-window.archive .traffic-minimize, .folder-window.archive .traffic-maximize, .thread-window .traffic-minimize, .thread-window .traffic-maximize { display: none; }
    .folder-window.archive .traffic-close, .thread-window .traffic-close { width: 44px; height: 44px; border-radius: 50%; background: rgba(249,248,248,0.08); position: relative; }
    .folder-window.archive .traffic-close::before, .folder-window.archive .traffic-close::after, .thread-window .traffic-close::before, .thread-window .traffic-close::after { content: ''; position: absolute; left: 50%; top: 50%; width: 16px; height: 1.6px; background: rgba(249,248,248,0.85); border-radius: 1px; transform: translate(-50%, -50%) rotate(45deg); }
    .folder-window.archive .traffic-close::after, .thread-window .traffic-close::after { transform: translate(-50%, -50%) rotate(-45deg); }
    .thread-body { padding: 10px 16px 24px; }
}
.thread-window { width: 46%; max-width: 640px; }
.thread-body { padding: 10px 22px 16px; }
.thread-body .dc-msg { cursor: default; }
.thread-body .dc-images { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.thread-body .dc-images img { width: 96px; height: 96px; object-fit: cover; border-radius: 6px; border: 1px solid var(--border); cursor: zoom-in; }
@media (max-width: 860px) { .thread-window { width: min(92vw, 640px); } }

/* ---- the deck's plain window, as the film draws it ---- */
.win { display: flex; flex-direction: column; background: var(--bg); border: 1px solid rgba(249,248,248,0.28); border-radius: 13px; overflow: hidden; }
.win .bar { display: flex; align-items: center; justify-content: space-between; flex: none; font-family: var(--font-window); font-size: 20px; line-height: 1; padding: 14px 22px; border-bottom: 1px solid rgba(249,248,248,0.14); background: var(--surface); }
.win .bar .name { color: #FFFFFF; text-shadow: 0 0 2px #FFFFFF, 0 0 10px rgba(255,255,255,0.2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* a badge on a reference picture (another artist's event, not this work), bottom right, over the picture */
.win.ref { position: relative; }
.badge { display: inline-block; padding: 6px 10px; border: 1px solid rgba(249,248,248,0.28); border-radius: 999px; background: rgba(0,0,0,0.6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-family: var(--font-meta); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(249,248,248,0.7); line-height: 1; }
.win .badge { position: absolute; right: 12px; bottom: 12px; z-index: 1; pointer-events: none; }
.grid.two .win .badge { right: 8px; bottom: 8px; font-size: 10px; padding: 5px 8px; }
/* the mark at the top left, fixed like the toggle: whose work this is, in the scroll cue's small capitals; it follows the side */
.mark { position: fixed; left: 20px; top: 44px; z-index: 81; margin: 0; max-width: none; font-family: var(--font-ui); font-size: 14px; letter-spacing: 0.02em; line-height: 1; color: rgba(226,225,225,0.6); text-shadow: 0 0 8px rgba(0,0,0,0.8); white-space: nowrap; pointer-events: none; }
@media (max-width: 520px) { .mark { left: 16px; top: calc(82px + env(safe-area-inset-top)); font-size: 13px; } }   /* under the toggle, which takes the top on a phone */
/* the way into the admin, and out: the same badge, fixed at the top right, faint until the pointer finds it */
.admin-link { position: fixed; right: 16px; top: 39px; z-index: 81; text-decoration: none; opacity: 0.45; transition: opacity 150ms, color 150ms; }
.admin-link:hover, .admin-link:focus-visible, html.admin .admin-link { opacity: 1; color: #FFFFFF; }
html.admin .admin-link { border-color: var(--accent); color: var(--accent); }
@media (max-width: 520px) { .admin-link { top: calc(76px + env(safe-area-inset-top)); right: 12px; opacity: 0.55; } }   /* under the toggle, which takes the top on a phone */
.win .bar .close { width: 18px; height: 18px; flex: none; margin-left: 14px; display: block; color: var(--text-muted); }
.win .bar .close svg { width: 100%; height: 100%; display: block; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; }
.win .page { padding: clamp(24px, 4vw, 48px) clamp(20px, 5vw, 60px); }
.win > img { width: 100%; }
/* a picture window's picture: the film keeps the window the picture's own shape; a grid of them keeps one shape */
.win.still > img { aspect-ratio: 16 / 9; object-fit: cover; }
/* a video window: the player fills the window below the bar */
.win .video { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.win .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
/* the poster frame: the film's own still, a little dimmed, and the play pill in the desktop's dress over it */
.win .video .play { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; background: #000; cursor: pointer; display: block; }
.win .video .play img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0.72; transition: opacity 0.25s; }
.win .video .play:hover img, .win .video .play:focus-visible img { opacity: 0.9; }
.play-pill-big { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 12px; padding: 14px 26px 14px 22px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.7); background: rgba(0,0,0,0.55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #FFFFFF; font-family: var(--font-ui); font-size: clamp(14px, 1.4vw, 19px); letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; text-shadow: 0 0 2px #FFFFFF, 0 0 12px rgba(255,255,255,0.25); box-shadow: 0 0 0 0 rgba(255,255,255,0.35), 0 12px 40px rgba(0,0,0,0.5); transition: background 0.2s, box-shadow 0.2s, transform 0.2s; }
.play-pill-big svg { width: 0.75em; height: 0.9em; fill: currentColor; filter: drop-shadow(0 0 4px rgba(255,255,255,0.6)); }
.play-pill-big .dur { font-family: var(--font-meta); font-size: 0.75em; letter-spacing: 0.06em; color: rgba(255,255,255,0.6); text-shadow: none; text-transform: none; }
.win .video .play:hover .play-pill-big, .win .video .play:focus-visible .play-pill-big { background: rgba(0,0,0,0.7); box-shadow: 0 0 0 6px rgba(255,255,255,0.12), 0 12px 40px rgba(0,0,0,0.5); transform: translate(-50%, -50%) scale(1.04); }

/* ---- the hero: the desktop ---- */
.hero { position: relative; min-height: 100svh; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; }
.title { max-width: 100%; box-sizing: border-box; }
.desk { position: absolute; inset: 0; }
/* the desktop's icons, at zoom 1 like everywhere else on the page */
/* width: max-content, so an icon near the right edge is not squeezed into the space left of the edge before it is centred */
.desk .desktop-icon { left: var(--x); top: var(--y); transform: translate(-50%, -50%); width: max-content; zoom: 1; text-decoration: none; color: inherit; }
.desk .desktop-icon .label { color: var(--text); }
.desk .desktop-icon.folder .icon { width: 72px; height: 72px; }
.desk .desktop-icon.folder .label { margin-top: 12px; }
.title { position: relative; z-index: 1; text-align: center; padding: 0 16px; pointer-events: none; }   /* an icon laid under the title still takes the click */
.title h1 { font-size: clamp(30px, 7.6vw, 100px); line-height: 1; letter-spacing: 0.02em; margin: 0; text-transform: uppercase; }
.title h1 .line { display: block; white-space: nowrap; }
.title h1 .caret { width: 0.12em; height: 0.85em; vertical-align: -0.04em; margin-left: 0.06em; margin-right: -0.18em; }
.title .by { margin: clamp(24px, 3.4vw, 48px) auto 0; font-size: clamp(18px, 2vw, 30px); text-transform: uppercase; letter-spacing: 0.12em; color: #FFFFFF; text-shadow: 0 0 2px #FFFFFF, 0 0 12px rgba(255,255,255,0.25); max-width: none; }
.title .sub { margin: clamp(10px, 1.2vw, 16px) auto 0; font-size: clamp(15px, 1.6vw, 24px); letter-spacing: 0.06em; color: var(--text); max-width: none; }
/* the film's cursor, resting on the desk */
.sim { position: absolute; left: 58%; top: 82%; height: 6vh; min-height: 36px; aspect-ratio: 24 / 30; transform: translate(-8.3%, -6.7%); z-index: 2; pointer-events: none; filter: drop-shadow(0 1px 3px rgba(0,0,0,0.5)); }
.sim svg { width: 100%; height: 100%; display: block; }
.down { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 12px; font-family: var(--font-meta); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(226,225,225,0.45); text-decoration: none; }
.down .down-chev { width: 16px; height: 10px; display: block; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; animation: down-bob 1.8s ease-in-out infinite; }
.down:hover { color: var(--accent); }
@keyframes down-bob { 0%, 100% { transform: translateY(0); opacity: 0.7; } 50% { transform: translateY(5px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .down .down-chev { animation: none; } }

/* ---- the page ---- */
main { width: min(1120px, 100% - 32px); margin: 0 auto; padding-top: clamp(64px, 9vw, 120px); position: relative; }
main > * + *, .lower > * + * { margin-top: clamp(64px, 9vw, 120px); }
#teaser { margin-top: clamp(96px, 14vw, 200px); }   /* more room between the overview and the teaser */
/* the archive's things in the margins below the hero, on a screen wide enough to have margins; the desk of them otherwise.
   y is of the whole main column, so they can sit beside the overview and the teaser as well as the lower sections */
.margin-desk { position: absolute; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%); pointer-events: none; display: none; z-index: 3; }   /* above the sections, so a thing laid over one still takes the pointer; the layer itself lets clicks through */
.margin-desk > * { position: absolute; pointer-events: auto; margin: 0; }
.margin-desk .desktop-icon { transform: translate(-50%, -50%); width: max-content; zoom: 1; }
.margin-desk .win { width: clamp(120px, 12vw, 210px); }
.margin-desk .win .bar { font-size: 15px; padding: 10px 14px; }
.margin-desk .win .bar .close { width: 14px; height: 14px; margin-left: 10px; background: none; border: 0; padding: 0; cursor: pointer; }
.margin-desk .win .bar .close:hover { color: #FFFFFF; }
.margin-desk .win.code { width: clamp(150px, 15vw, 250px); }
/* a thing dragged from the margins onto the hero's desk, or a hero icon dragged onto the page: both layers draw them the same */
.desk > .win { position: absolute; width: clamp(120px, 12vw, 210px); }
.desk > .win.code { width: clamp(150px, 15vw, 250px); }
.desk > .win .bar { font-size: 15px; padding: 10px 14px; }
.desk > .win .bar .close { width: 14px; height: 14px; margin-left: 10px; background: none; border: 0; padding: 0; cursor: pointer; }
.margin-desk .desktop-icon.folder .icon { width: 72px; height: 72px; }
.margin-desk .desktop-icon.folder .label { margin-top: 12px; }
.margin-desk a.desktop-icon { text-decoration: none; color: inherit; }
.margin-desk .win.code .text { font-size: 11px; max-height: 230px; padding: 10px 12px 12px; }
@media (min-width: 1024px) {
    .margin-desk { display: block; }
    /* the lower column keeps clear of the margins: 190px each side at the narrow end */
    .lower .people { width: min(1000px, 100vw - 380px); }
    .lower .stack { width: min(900px, 100vw - 380px); }
}
@media (max-width: 1023px) {
    #visuals { display: none; }   /* on a phone the desk scenes' things are dealt out between the sections instead */
}
.narrow { width: min(820px, 100%); margin-left: auto; margin-right: auto; }
/* two windows on the desk: the first to the left, the second laid over its lower right corner */
.stack { width: min(900px, 100%); margin-left: auto; margin-right: auto; position: relative; }
.stack .win { width: min(600px, 100%); }
.stack .win + .win { width: min(560px, 100%); margin: -40px 0 0 auto; position: relative; z-index: 2; box-shadow: 0 24px 60px rgba(0,0,0,0.7); }
@media (max-width: 860px) { .stack .win { width: 100%; } .stack .win + .win { margin-top: 24px; box-shadow: none; } }
.lede + .lede { margin-top: 0.9em; }
.lede { font-size: clamp(17px, 1rem + 0.45vw, 21px); line-height: 1.5; color: #FFFFFF; text-shadow: 0 0 2px #FFFFFF, 0 0 12px rgba(255,255,255,0.25); max-width: 30em; }
.facts { display: flex; flex-wrap: wrap; gap: 12px 40px; margin: 28px 0 0; padding-top: 20px; border-top: 1px solid rgba(249,248,248,0.14); }
/* the credits window above the bios, in the bios' own column and as wide as Shakti's window: the facts alone, no lede over them */
.people.credits .win { width: min(400px, 100%); }
.credits .facts { margin-top: 0; padding-top: 0; border-top: 0; gap: 10px 28px; }
.credits .facts dd { font-size: 15px; }
.credits .page { padding: 18px 22px 20px; }
.credits .win .bar { font-size: 17px; padding: 11px 18px; }
.facts div { margin: 0; }
.facts dt { font-family: var(--font-meta); color: rgba(226, 225, 225, 0.34); font-size: 13px; }
.facts dd { margin: 0; color: #FFFFFF; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: center; }   /* the text sits level with the middle of the picture */
.split h2 { max-width: 16em; }
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid li { min-width: 0; }
.grid.two { gap: 12px; }
.grid.two .win .bar { font-size: 15px; padding: 10px 14px; }
.grid.two .win .bar .close { width: 14px; height: 14px; }
.grid.two .win.still > img { aspect-ratio: 3 / 2; }
/* the visuals: the frames plain, one to a row */
/* the desks run the full width of the browser, out of the page's column, one under the other */
.desks { width: 100vw; margin-left: calc(50% - 50vw); margin-top: 28px; display: grid; gap: 0; }
.desktop { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: visible; background: transparent; }   /* nothing clipped at the edge of a scene */
/* ---- the desktop, working (js/desktop.js): a 1600x900 desk scaled to its row, the site's own parts on it ---- */
.scene-desk { position: absolute; left: 0; top: 0; width: 1600px; height: 900px; transform-origin: 0 0; }
.scene-desk .desktop-icon { zoom: 1.2; transform: translate(-50%, -50%); z-index: 2; }
.scene-desk .desktop-icon.thread { cursor: default; }
.scene-desk .desktop-icon.folder .icon { width: 72px; height: 72px; }
.scene-desk .desktop-icon .label { max-width: 175px; }
.scene-desk .win { position: absolute; }
/* the desk on a phone (desktop.js builds it this way under 700px): two columns, the pictures as windows you can see */
.desktop.mobile { aspect-ratio: auto; height: auto; overflow: visible; background: none; }
.desktop.mobile .scene-desk { position: static; width: auto; height: auto; transform: none; display: grid; grid-template-columns: 1fr 1fr; gap: 30px 14px; align-items: center; padding: 8px 16px 24px; }
.desktop.mobile .win { position: static; width: 100%; }
.desktop.mobile .win .bar { font-size: 14px; padding: 9px 12px; }
.desktop.mobile .win .bar .close { width: 14px; height: 14px; margin-left: 10px; }
.desktop.mobile .desktop-icon { position: static; zoom: 1; justify-self: center; width: max-content; max-width: 100%; padding: 0 10px; }   /* the nudge off the cell is set per icon (desktop.js) */
.desktop.mobile .desktop-icon .label { max-width: 150px; }
.desks .desktop.mobile + .desktop.mobile { margin-top: 10px; }
.desktop.strip { width: 100vw; margin-left: calc(50% - 50vw); }
.hero + .desktop.strip { margin-top: 24px; margin-left: 0; }   /* the one right under the hero, before main's column */
.desktop.strip .scene-desk { padding: 0 16px; }
.scene-desk .win.closed { display: none; }
.scene-desk .win > img { cursor: pointer; }
/* a file open on the desk: the start of a character's JSON, or of a diary entry */
.win.code .text, .win.note .text { margin: 0; padding: 14px 16px 16px; max-height: 300px; overflow: hidden; cursor: pointer; font-size: 12.5px; line-height: 1.55; color: rgba(249,248,248,0.85); white-space: pre-wrap; overflow-wrap: anywhere; -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent); }
.win.code .text { font-family: var(--font-code, var(--font-meta)); }
.win.note .text { font-family: var(--font-quote, var(--font-ui)); font-size: 13.5px; line-height: 1.6; }
.desktop-icon.char-file-icon .icon.pixel-icon img { image-rendering: pixelated; }
.desktop.mobile .win.code .text, .desktop.mobile .win.note .text { max-height: 260px; }
.scene-desk .win .bar .close { background: none; border: 0; padding: 0; cursor: pointer; }
.scene-desk .win .bar .close:hover { color: #FFFFFF; }
.scene-desk .sim { position: absolute; height: 54px; aspect-ratio: 24 / 30; transform: translate(-8.3%, -6.7%); z-index: 200; pointer-events: none; filter: drop-shadow(0 1px 3px rgba(0,0,0,0.5)); }
.scene-desk .sim svg { width: 100%; height: 100%; display: block; }
.note { color: var(--text-muted); }
.meta-line { font-family: var(--font-meta); color: rgba(226, 225, 225, 0.34); font-size: 13px; margin-top: 10px; }
/* the two windows on the desk: Shakti's to the left, Kiana's a little smaller, lower, laid over its right edge */
.people { width: min(1000px, 100%); margin: 0 auto; position: relative; }
.people .win { width: min(580px, 100%); }
.people .win + .win { width: min(500px, 100%); margin: -44px 0 0 auto; position: relative; z-index: 2; box-shadow: 0 24px 60px rgba(0,0,0,0.7); }
@media (max-width: 860px) { .people .win { width: 100%; } .people .win + .win { margin-top: 20px; box-shadow: none; } }
.person img { height: 136px; width: auto; margin-bottom: 20px; border-radius: var(--border-radius, 6px); }
.person h3 .role { display: block; font-weight: 400; color: var(--text); text-shadow: none; margin-top: 4px; }
.person p { font-size: 15px; }
.contact { text-align: center; padding: clamp(64px, 12vw, 140px) 16px clamp(80px, 14vw, 180px); }
.contact p { margin-left: auto; margin-right: auto; }
/* the desktop's play pill (styles.css draws it only under a .desktop-icon), for the download */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; margin-top: 28px; border: 1px solid rgba(249,248,248,0.28); border-radius: 999px; background: rgba(249,248,248,0.05); color: rgba(249,248,248,0.7); font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; text-decoration: none; line-height: 1; transition: background 120ms, color 120ms, border-color 120ms; }
.pill:hover { background: rgba(249,248,248,0.12); color: var(--text); border-color: rgba(249,248,248,0.45); }
.foot { display: flex; justify-content: space-between; gap: 8px; padding: 24px 16px 32px; margin-top: clamp(64px, 9vw, 120px); font-family: var(--font-meta); font-size: 13px; color: rgba(226, 225, 225, 0.34); border-top: 1px solid rgba(249,248,248,0.14); }

@media (max-width: 860px) {
    .split, .grid { grid-template-columns: 1fr; }
    .grid.two { grid-template-columns: 1fr 1fr; }
    .desk .desktop-icon { zoom: 1; }
    .desk .desktop-icon.hide-m { display: none; }
}
@media (max-width: 520px) {
    /* the phone's desk: the four folders in the corners, two threads between, the title in the middle band */
    .desk .desktop-icon .label { max-width: 170px; }
    .desk a[data-chapter="bot-requests"]:not([data-thread]):not([data-note]) { left: 25%; top: 12%; }
    .desk a[data-chapter="craft"]:not([data-thread]):not([data-note])        { left: 75%; top: 12%; }
    .desk a[data-thread="voice-requests"]                   { left: 25%; top: 29%; }
    .desk a[data-thread="get-laid-or-god-destroys-humanity"] { display: none; }
    .desk a[data-chapter="bot-makers"]:not([data-thread]):not([data-note])   { left: 25%; top: 77%; }
    .desk a[data-chapter="user"]:not([data-thread]):not([data-note])         { left: 75%; top: 77%; }
    .sim { left: 56%; top: 65%; height: 4.5vh; min-height: 28px; }
    .down { bottom: calc(100px + env(safe-area-inset-bottom)); }   /* above the sign-up bar */
    .down .down-text { display: none; }   /* on a phone the chevron alone, so no stray word at the fold */
    .down .down-chev { width: 20px; height: 12px; }
    /* the longer title on a phone: smaller type, and the subtitle may wrap */
    .title h1 { font-size: clamp(22px, 7vw, 112px); }
    .title .by { font-size: 16px; letter-spacing: 0.08em; }
    .title .sub { font-size: 13px; letter-spacing: 0.08em; white-space: normal; }
    .desk .desktop-icon.hide-s { display: none; }
    .foot { flex-direction: column; }
}
/* a short phone (most iPhones once Safari's bars are counted, or a phone in landscape): everything a size smaller,
   the folders pushed to the corners, one thread and the diary between the top folders and the title */
@media (max-width: 520px) and (max-height: 700px) {
    .desk .desktop-icon { zoom: 0.85; }
    .desk a[data-thread="voice-requests"] { top: 31%; }
    .desk a[data-chapter="bot-requests"]:not([data-thread]):not([data-note]), .desk a[data-chapter="craft"]:not([data-thread]):not([data-note]) { top: 12%; }
    .desk a[data-chapter="bot-makers"]:not([data-thread]):not([data-note]), .desk a[data-chapter="user"]:not([data-thread]):not([data-note]) { top: 82%; }
    .sim { top: 68%; }
}

/* ---- film or performance: the toggle at the top of the hero. It changes copy only: anything marked data-copy
   shows in its own mode (html[data-mode], set by js/main.js) and is hidden in the other ---- */
html[data-mode="film"] [data-copy="performance"]:not(.title *), html[data-mode="performance"] [data-copy="film"]:not(.title *) { display: none !important; }
/* the hero's title: both sides are laid out in the same cell (the two titles over each other, the two by-lines under them), the other side
   transparent, so the block keeps one height, the taller title's, and nothing moves up or down when a side erases itself and the other types */
.title { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; align-items: center; }
.title h1 { grid-row: 1; grid-column: 1; align-self: end; }   /* the shorter title sits at the foot of the row, so its gap to the by-line is the taller one's */
.title .by { grid-row: 2; grid-column: 1; }
html[data-mode="film"] .title [data-copy="performance"], html[data-mode="performance"] .title [data-copy="film"] { opacity: 0; pointer-events: none; }
/* it stays at the top of the screen as the page scrolls, under the desktop's windows and overlay (98 and up) */
.mode { position: fixed; top: 20px; left: 0; right: 0; width: max-content; max-width: calc(100vw - 24px); box-sizing: border-box; margin: 0 auto; z-index: 80; display: flex; padding: 5px; border: 1px solid rgba(249,248,248,0.55); border-radius: 999px; background: rgba(0,0,0,0.72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 10px 40px rgba(0,0,0,0.7), 0 0 24px rgba(255,255,255,0.08); font-family: var(--font-meta); font-size: 18px; letter-spacing: 0.1em; text-transform: uppercase; }
/* each side is its word; the pressed one slides open to show the title of what you are looking at, the other closes to its word */
.mode-btn { position: relative; z-index: 1; appearance: none; -webkit-appearance: none; border: 0; background: none; margin: 0; padding: 17px 30px; border-radius: 999px; color: rgba(249,248,248,0.55); font: inherit; letter-spacing: inherit; text-transform: inherit; line-height: 1; cursor: pointer; flex: none;
            display: inline-grid; grid-template-columns: auto 0fr; align-items: baseline; column-gap: 0; transition: color 120ms, grid-template-columns 300ms cubic-bezier(0.2, 0, 0, 1), column-gap 300ms cubic-bezier(0.2, 0, 0, 1); }
.mode-btn:hover { color: var(--text); }
.mode-btn[aria-pressed="true"] { color: #FFFFFF; text-shadow: 0 0 2px #FFFFFF, 0 0 14px rgba(255,255,255,0.45); cursor: default; grid-template-columns: auto 1fr; column-gap: 10px; flex: 0 1 auto; min-width: 0; }
.mode-btn small { display: block; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 14px; letter-spacing: 0.02em; text-transform: none; color: var(--text); text-shadow: none; opacity: 0; transition: opacity 160ms; }
.mode-btn small::before { content: "\00b7  "; color: rgba(249,248,248,0.35); }
.mode-btn[aria-pressed="true"] small { opacity: 1; transition: opacity 240ms 120ms; }
@media (prefers-reduced-motion: reduce) { .mode-btn { transition: color 120ms; } }
/* the highlight under the pressed side, sliding across when the other is pressed and growing with it as it opens (js/main.js sets its place and width) */
.mode-ind { position: absolute; top: 5px; left: 5px; bottom: 5px; width: 0; border-radius: 999px; background: rgba(249,248,248,0.2); }
.mode-ind.placed { transition: transform 300ms cubic-bezier(0.2, 0, 0, 1), width 300ms cubic-bezier(0.2, 0, 0, 1); }
@media (max-width: 520px) {
    .mode { top: calc(12px + env(safe-area-inset-top)); font-size: 15px; }   /* the open side's title shortens to fit the screen */
    .mode-btn { padding: 14px 18px; }
    .mode-btn small { font-size: 12px; }
    .desk { top: calc(76px + env(safe-area-inset-top)); }   /* the phone's desk begins under the toggle, so the top folders keep clear of it */
}
/* switching sides: the copy of the old side fades, the title with it; then the new side's comes in */
[data-copy] { transition: opacity 220ms ease; }
html.switching [data-copy] { opacity: 0; }
html.copy-in [data-copy] { animation: copy-in 420ms ease-out; }
@keyframes copy-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { [data-copy] { transition: none; } html.copy-in [data-copy] { animation: none; } }

/* the page holds still under an open window (desktop.js sets this); the sheet's body is what scrolls */
html.modal-open body { position: fixed; left: 0; right: 0; overflow: hidden; }
.thread-body, .folder-window .folder-body { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }

/* ---- the screening sign-up: the input and the button, in the desktop's dress; bottom right on a desktop, a bar along the bottom on a phone ---- */
.signup { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 340px; max-width: calc(100vw - 32px); display: flex; flex-direction: column; gap: 8px; padding: 12px; background: var(--bg); border: 1px solid rgba(249,248,248,0.28); border-radius: 12px; box-shadow: 0 16px 48px rgba(0,0,0,0.65); font-family: var(--font-ui); letter-spacing: 0; }
.signup .signup-bot { position: absolute; left: -9999px; }
.signup-heading { font-size: 13px; color: var(--text); padding: 2px 2px 0; }
.signup-input { width: 100%; box-sizing: border-box; height: 46px; background: rgba(255,138,247,0.06); border: 1px solid rgba(255,138,247,0.45); border-radius: 8px; color: var(--text); font-family: inherit; font-size: 14px; padding: 0 14px; outline: none; transition: border-color 0.2s, background 0.2s, box-shadow 0.2s; }
.signup-input:focus { border-color: var(--accent); background: rgba(255,138,247,0.1); box-shadow: 0 0 0 3px rgba(255,138,247,0.18); }
.signup-input::placeholder { color: rgba(226,225,225,0.45); }
.signup-submit { width: 100%; height: 46px; background: var(--accent); border: 1px solid var(--accent); border-radius: 8px; color: var(--bg); font-family: inherit; font-size: 14px; font-weight: 700; cursor: pointer; box-shadow: 0 0 16px rgba(255,138,247,0.3), 0 2px 0 rgba(0,0,0,0.25); animation: signup-glow 2.8s ease-in-out infinite; }
.signup-submit:hover { filter: brightness(1.08); }
.signup-submit:disabled { opacity: 0.7; cursor: default; animation: none; }
@keyframes signup-glow { 0%, 100% { box-shadow: 0 0 16px rgba(255,138,247,0.3), 0 2px 0 rgba(0,0,0,0.25); } 50% { box-shadow: 0 0 28px rgba(255,138,247,0.55), 0 2px 0 rgba(0,0,0,0.25); } }
@media (prefers-reduced-motion: reduce) { .signup-submit { animation: none; } }
.signup-done, .signup-status { margin: 0; padding: 6px 2px; font-size: 14px; color: var(--text); }
/* the other way in, for a curator rather than an audience: the address, under the button */
.signup-note { margin: 0; padding: 2px 2px 0; font-size: 12px; color: rgba(226,225,225,0.55); max-width: none; }
.signup-note a { color: var(--text); }
.signup-status { color: rgba(226,225,225,0.6); font-size: 12px; }
html.admin .signup { display: none; }   /* out of the way while laying things out */
@media (max-width: 700px) {
    /* a bar along the bottom: the input and the button side by side */
    .signup { right: 0; left: 0; bottom: 0; width: auto; max-width: none; flex-direction: row; flex-wrap: wrap; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); border-radius: 0; border-width: 1px 0 0; box-shadow: 0 -12px 40px rgba(0,0,0,0.6); }
    .signup-heading { flex: 0 0 100%; padding: 0 2px; font-size: 12px; }
    .signup-input { flex: 1; min-width: 0; height: 44px; font-size: 16px; }
    .signup-submit { width: auto; flex: none; height: 44px; padding: 0 16px; }
    .signup.done { justify-content: center; }
    .signup-note { flex: 0 0 100%; padding: 0 2px; font-size: 11px; }
    body { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }   /* the page scrolls clear of the bar */
}

/* ---- the layout admin (/admin, js/admin.js): everything draggable, nothing else on screen ---- */
/* the icons are for looking at: nothing opens on a click (the admin still drags them) */
html:not(.admin) .desktop-icon, html:not(.admin) .desktop-icon * { pointer-events: none; cursor: default; }
html.admin .hero .desk [data-id], html.admin #marginDesk [data-id], html.admin .scene-desk [data-id] { cursor: move; user-select: none; touch-action: none; -webkit-user-select: none; -webkit-touch-callout: none; }   /* a finger on a thing drags it; the page scrolls from anywhere else */
html.admin .sim { pointer-events: auto; }   /* the cursors take the pointer in the admin, to be dragged; on the page they never do */
html.admin main [data-win] { cursor: move; user-select: none; -webkit-user-select: none; touch-action: none; }   /* the page's windows drag as a whole, from anywhere on them */
main [data-win].nudged { position: relative; z-index: 1; }   /* a window moved from its place lies over the sections after it, under the margins' things */
html.admin main [data-win] a, html.admin main [data-win] button { pointer-events: none; }
