/* ------------------------------------------------------------------
   Mu.S.Ex. : the maze
   Brand colours come from the logo: #0D090F #E73B3C #D83666 #83B9E5 #DBDE5B
   Fonts: Quint (purchased), Barlow for reading (stand-in for DIN Next)
------------------------------------------------------------------- */

@font-face { font-family: "Ubuntu"; src: url("../assets/fonts/Ubuntu-Bold-latin-ext.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Ubuntu"; src: url("../assets/fonts/Ubuntu-Bold-latin.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Quint Extended"; src: url("../assets/fonts/QuintExtended-Regular.otf") format("opentype"); font-display: swap; }
@font-face { font-family: "Quint"; src: url("../assets/fonts/Quint-Normal.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Quint"; src: url("../assets/fonts/Quint-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --f-display: "Quint Extended", "Quint", system-ui, sans-serif;
  --f-label: "Quint", system-ui, sans-serif;
  --f-link: "Ubuntu", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --red: #E73B3C; --mag: #D83666; --sky: #83B9E5; --lime: #DBDE5B;
  --lav: #C5BBDE; --slate: #3F4C78;
}
:root[data-theme="dark"] {
  --bg: #0D090F; --bg2: #1A1226;
  --card: rgba(26, 18, 38, .78); --card-solid: #1A1226;
  --ink: #F0EBF7; --muted: #A99CC4;
  --line: rgba(197, 187, 222, .3);
  --accent: var(--lime); --on-accent: #0D090F;
  --shape-a: #3F4C78; --shape-b: #C5BBDE; --shape-c: #D83666; --shape-d: #83B9E5;
  --shape-op: .3; --frame-op: .85;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #F5F0FC; --bg2: #ECE5F8;
  --card: rgba(241, 238, 242, .8); --card-solid: #F1EEF2;
  --ink: #1B1030; --muted: #5B4C7A;
  --line: rgba(63, 76, 120, .32);
  --accent: #7E8418; --on-accent: #F1EEF2;
  --shape-a: #C0B2E9; --shape-b: #7CC0EE; --shape-c: #F8A0C1; --shape-d: #DFE756;
  --shape-op: .5; --frame-op: .78;
  --sky: #3784D0; --lime: #94A01D; --lav: #8F7BD5; --mag: #D02C66; --red: #DF373A;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; transition: background .4s, color .4s; }
a { color: var(--sky); }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--accent); color: var(--on-accent); padding: 10px 14px; border-radius: 8px; transition: top .2s; }
.skip-link:focus { top: 12px; }

/* ---------- the space ---------- */
#scene { position: fixed; inset: 0; z-index: 1; display: block; }
#things { position: fixed; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
#scroller { width: 1px; pointer-events: none; }
.item { position: absolute; left: 50%; top: 50%; opacity: 0; transform-origin: 50% 50%; will-change: transform, opacity; }

/* ---------- one component for every stop ---------- */
.panel { width: min(520px, calc(100vw - 32px)); padding: 30px 32px 32px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 10px 30px rgba(0,0,0,.3); transform: scale(var(--fit, 1)); transform-origin: 50% 50%; position: relative; }
.panel.wide { width: min(640px, calc(100vw - 32px)); }
.panel .eyebrow { font-family: var(--f-label); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin: 0 0 12px; }
.panel h2 { font-family: var(--f-display); font-weight: 400; font-size: clamp(21px, 2.4vw, 28px); line-height: 1.22; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 16px; }
.panel p { margin: 0 0 13px; }
.panel p:last-child { margin-bottom: 0; }
.panel .small { font-size: 15px; color: var(--muted); }
.panel .num { font-family: var(--f-display); font-size: 54px; line-height: 1; color: var(--c, var(--accent)); letter-spacing: .04em; margin-bottom: 8px; }
.panel .quote { font-size: 20px; line-height: 1.45; font-style: italic; }
.panel .plain-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; font-size: 15.5px; }
.panel .plain-list b { font-weight: 600; }
.tag { font-family: var(--f-label); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; border: 1px solid var(--accent); color: var(--accent); border-radius: 999px; padding: 1px 8px; margin-left: 6px; vertical-align: middle; font-weight: 400; }
.aims { padding-left: 18px; margin: 0 0 4px; font-size: 15.5px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.chips li { border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; font-size: 13px; color: var(--muted); }
.chips a { color: inherit; text-decoration: none; }
.chips a:hover { color: var(--accent); }
.psi-large { width: 96px; height: 120px; margin: 0 0 16px; color: var(--lime); display: block; }
.panel .thumb { display: block; position: relative; margin: -30px -32px 18px; border-radius: 17px 17px 0 0; overflow: hidden; aspect-ratio: 16 / 9; background: #0D090F; }
.panel .thumb img { width: 100%; height: 100%; object-fit: cover; }
.panel .play { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; background: rgba(13,9,15,.72); border: 2px solid var(--lime); color: var(--lime); display: grid; place-items: center; font-size: 22px; padding-left: 4px; }
.panel .map-thumb { margin: -30px -32px 18px; width: calc(100% + 64px); max-width: none; border-radius: 17px 17px 0 0; aspect-ratio: 16 / 9; object-fit: cover; background: #F1EEF2; }

.title-block { text-align: center; width: min(820px, calc(100vw - 32px)); transform: scale(var(--fit, 1)); }
.title-block img.lockup { width: clamp(120px, 20vw, 210px); height: auto; margin: 0 auto 30px; border-radius: 26px; box-shadow: 0 0 0 8px color-mix(in srgb, var(--mag) 20%, transparent); }
.title-block h1 { font-family: var(--f-display); font-weight: 400; font-size: clamp(28px, 5vw, 60px); line-height: 1.1; letter-spacing: .05em; text-transform: uppercase; margin: 0 0 18px; }
.title-block .pillars { font-family: var(--f-label); letter-spacing: .3em; text-transform: uppercase; color: var(--muted); font-size: clamp(13px, 1.6vw, 18px); }
.title-block .pillars b { color: var(--accent); font-weight: 400; padding: 0 .5em; }

.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.btn { display: inline-block; font-family: var(--f-label); letter-spacing: .16em; text-transform: uppercase; font-size: 12.5px; padding: 12px 20px; border-radius: 999px; border: 2px solid var(--accent); background: var(--accent); color: var(--on-accent); text-decoration: none; transition: transform .2s, filter .2s; }
.btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--accent); }

/* ---------- doors at a junction ---------- */
.door { display: block; width: 250px; padding: 0; border: 0; background: none; text-align: center; color: var(--ink); }
.door .inner { height: 420px; border: 3px solid var(--c); border-radius: 125px 125px 6px 6px; padding: 150px 18px 0; position: relative; overflow: hidden; background: linear-gradient(to top, color-mix(in srgb, var(--c) 34%, var(--card-solid)), var(--card-solid) 78%); box-shadow: 0 0 0 6px color-mix(in srgb, var(--c) 22%, transparent); transition: transform .3s, filter .3s; }
.door .inner::before { content: ""; position: absolute; left: 50%; top: 56px; width: 70px; height: 70px; transform: translateX(-50%); border-radius: 50%; border: 2px dashed var(--c); opacity: .85; }
.door .name { font-family: var(--f-display); font-size: 22px; letter-spacing: .06em; text-transform: uppercase; line-height: 1.2; margin-top: 8px; }
.door .sub { font-size: 14px; color: var(--muted); margin-top: 10px; line-height: 1.4; }
.door .go { position: absolute; left: 0; right: 0; bottom: 20px; font-family: var(--f-label); letter-spacing: .24em; text-transform: uppercase; font-size: 12px; color: var(--c); }
.door:hover .inner, .door:focus-visible .inner { transform: translateY(-8px); filter: brightness(1.12); }

/* ---------- Psi-fig: the visitor ---------- */
#psi { position: fixed; z-index: 30; left: 50%; bottom: max(8px, env(safe-area-inset-bottom)); width: 62px; margin-left: -31px; color: var(--lime); pointer-events: none; }
:root[data-theme="light"] #psi { color: #7E8418; }
#psi svg { width: 100%; height: auto; display: block; overflow: visible; }
#p-all { transform-box: fill-box; transform-origin: 50% 100%; }

/* ---------- HUD ---------- */
#hud { position: fixed; z-index: 40; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: max(14px, env(safe-area-inset-top)) 18px 14px; pointer-events: none; }
#hud > * { pointer-events: auto; }
#brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
#brand img { border-radius: 8px; background: #0D090F; }
#where { font-family: var(--f-label); font-size: 13px; letter-spacing: .24em; text-transform: uppercase; }
#tools { display: flex; gap: 8px; }
.tool, #plan-toggle, #skip { font-family: var(--f-label); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); text-decoration: none; line-height: 1.6; }
.tool:hover, #skip:hover, #plan-toggle:hover { border-color: var(--accent); }

#plan { position: fixed; z-index: 40; left: 16px; bottom: 16px; }
#plan-toggle { display: none; }
#plan-body { width: 210px; height: 148px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); padding: 4px; }
#plan-body svg { width: 100%; height: 100%; display: block; overflow: visible; }
#plan-body .road { opacity: .55; }
#plan-body .road.here { opacity: 1; filter: drop-shadow(0 0 5px currentColor); }
#plan-body .stub { cursor: pointer; opacity: .85; }
#plan-body .stub:hover { opacity: 1; }
#plan-body .stub.passed { opacity: .5; }
#plan-body .stub text { fill: var(--ink); font-family: var(--f-label); }
#plan-body .marker { fill: var(--lime); stroke: var(--bg); stroke-width: 120; }

#choose { position: fixed; z-index: 40; left: 50%; bottom: 96px; transform: translate(-50%, 14px); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; width: min(92vw, 640px); }
#choose.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
#choose span { width: 100%; text-align: center; font-family: var(--f-label); font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
#choose button { font-family: var(--f-label); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; padding: 11px 20px; border-radius: 999px; border: 2px solid var(--c); background: var(--card-solid); box-shadow: 0 6px 18px rgba(0,0,0,.25); color: var(--ink); }
#choose button:hover { background: var(--c); color: var(--on-accent); }
#status { position: fixed; z-index: 30; left: 50%; bottom: 92px; transform: translateX(-50%); font-family: var(--f-label); font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); text-align: center; opacity: 0; transition: opacity .3s; pointer-events: none; width: min(90vw, 520px); }
#status.on { opacity: 1; }
#choose.on ~ #status { opacity: 0; }
#skip { position: fixed; z-index: 40; right: 16px; bottom: 16px; }

#veil { position: fixed; inset: 0; z-index: 90; background: var(--bg); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
#veil.on { opacity: 1; pointer-events: auto; }

/* ---------- detail sheet ---------- */
#sheet { position: fixed; inset: 0; z-index: 100; pointer-events: none; visibility: hidden; }
#sheet::before { content: ""; position: absolute; inset: 0; background: rgba(8, 4, 12, .62); opacity: 0; transition: opacity .35s; }
#sheet-inner { position: absolute; top: 0; right: 0; bottom: 0; width: min(780px, 100%); background: var(--bg2); border-left: 1px solid var(--line); overflow-y: auto; transform: translateX(100%); transition: transform .45s cubic-bezier(.2, .8, .2, 1), width .3s; padding: 28px clamp(18px, 4vw, 48px) 80px; overscroll-behavior: contain; }
#sheet.wide #sheet-inner { width: min(1180px, 100%); }
#sheet.open { pointer-events: auto; visibility: visible; }
#sheet.open::before { opacity: 1; }
#sheet.open #sheet-inner { transform: none; }
#sheet-close { position: sticky; top: 0; float: right; z-index: 5; font-family: var(--f-label); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card-solid); }
#sheet-close:hover { border-color: var(--accent); }
#sheet-body { clear: both; padding-top: 6px; }
.doc .num { font-family: var(--f-display); font-size: clamp(56px, 9vw, 96px); line-height: 1; color: var(--c, var(--accent)); margin: 12px 0 8px; letter-spacing: .04em; }
.doc h1 { font-family: var(--f-display); font-weight: 400; font-size: clamp(24px, 3.6vw, 36px); line-height: 1.2; letter-spacing: .03em; text-transform: uppercase; margin: 0 0 22px; }
.doc h3 { font-family: var(--f-label); font-size: 13px; letter-spacing: .28em; text-transform: uppercase; color: var(--accent); margin: 34px 0 12px; font-weight: 400; }
.doc h4 { font-family: var(--f-label); font-size: 16px; margin: 28px 0 8px; font-weight: 700; }
.doc p, .doc li { max-width: 66ch; }
.doc ul.aims { padding-left: 20px; }
.doc ul.aims li { margin-bottom: 8px; }
.doc .people { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.doc .people li { padding: 8px 16px; border: 1px solid var(--accent); border-radius: 999px; }
.doc .meta { color: var(--muted); font-size: 15px; margin: -8px 0 22px; }
.doc .pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 46px; padding-top: 22px; border-top: 1px solid var(--line); }
.doc .pager button { background: none; border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; font-family: var(--f-label); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.doc .pager button:hover { border-color: var(--accent); }
.doc iframe { width: 100%; border: 0; border-radius: 12px; background: #F1EEF2; display: block; }
.doc iframe.deck { height: min(72vh, 780px); }
.doc iframe.slides { aspect-ratio: 16 / 9; height: auto; max-height: 76vh; background: #F1EEF2; }
.doc .video { aspect-ratio: 16 / 9; max-height: 72vh; }
.doc .video iframe { height: 100%; }

/* the Research Synthesis map */
.mv { position: relative; }
.mv-view { height: min(70vh, 760px); overflow: hidden; border-radius: 12px; border: 1px solid var(--line); background: #F1EEF2; cursor: grab; touch-action: none; position: relative; }
.mv-view.drag { cursor: grabbing; }
.mv-stage { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.mv-stage img { display: block; width: 100%; height: auto; max-width: none; user-select: none; -webkit-user-drag: none; }
.mv-stage .hi { position: absolute; inset: 0; opacity: 0; transition: opacity .5s; }
.mv-stage .hi.ready { opacity: 1; }
.pin { position: absolute; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; transform: translate(-50%, -50%) scale(calc(1 / var(--k, 1))); background: var(--lime); color: #0D090F; border: 3px solid #0D090F; font-family: var(--f-display); font-size: 11px; text-decoration: none; box-shadow: 0 0 0 3px rgba(219,222,91,.45); letter-spacing: 0; }
.pin:hover { background: var(--mag); color: #F1EEF2; }
.mv-ctl { position: absolute; right: 12px; bottom: 12px; display: flex; gap: 6px; }
.mv-ctl button { min-width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line); background: var(--card-solid); font-family: var(--f-label); font-size: 16px; padding: 0 12px; }
.mv-ctl button:hover { border-color: var(--accent); }

/* ---------- plain view: the same content as a simple page ---------- */
html.plain #scene, html.plain #things, html.plain #scroller, html.plain #status, html.plain #choose, html.plain #skip, html.plain #psi, html.plain #plan { display: none !important; }
#plain { display: none; outline: none; }
#measure { position: fixed; left: -99999px; top: 0; width: 1200px; visibility: hidden; pointer-events: none; }
html.plain #plain { display: block; position: relative; z-index: 2; max-width: 860px; margin: 0 auto; padding: 96px 20px 120px; }
html.plain #plain .item { position: static; left: auto; top: auto; opacity: 1 !important; transform: none !important; margin: 0 0 26px; will-change: auto; visibility: visible !important; display: block !important; }
html.plain #plain .niche { width: 100%; border-radius: 22px; padding-top: 22px; text-align: left; }
html.plain #plain .niche::before { display: none; }
html.plain #plain .panel, html.plain #plain .title-block { width: 100%; box-shadow: none; transform: none; }
html.plain #plain .title-block { text-align: left; }
html.plain #plain .title-block img.lockup { margin-left: 0; }
html.plain #plain .plain-h { font-family: var(--f-display); font-weight: 400; font-size: 26px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin: 64px 0 22px; padding-top: 24px; border-top: 1px solid var(--line); }
html:not(.plain) #plain { position: absolute; left: -9999px; top: 0; width: 1px; height: 1px; overflow: hidden; display: block; }

/* ---------- small screens ---------- */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .panel { padding: 22px 22px 24px; }
  .panel .thumb, .panel .map-thumb { margin: -22px -22px 16px; }
  .panel .map-thumb { width: calc(100% + 44px); }
  #where, #btn-reach { }
  #where { display: none; }
  .tool { padding: 8px 11px; font-size: 11px; letter-spacing: .1em; }
  #plan-toggle { display: inline-block; }
  #plan-body { display: none; position: absolute; left: 0; bottom: 46px; }
  #plan.open #plan-body { display: block; }
  #skip { right: 12px; padding: 9px 12px; }
  #psi { width: 50px; margin-left: -25px; }
  #status, #choose { bottom: 84px; }
  .door { width: 210px; }
  .door .inner { height: 360px; padding-top: 128px; }
  .cap span { font-size: 54px; }
  .pin { width: 38px; height: 38px; }
}
@media (max-height: 700px) and (min-width: 761px) {
  .panel { padding: 22px 26px 24px; }
  .door .inner { height: 360px; padding-top: 128px; }
  .door { width: 220px; }
}
@media (prefers-reduced-motion: reduce) {
  #psi.walk { animation: none; }
  #veil { transition-duration: .01s !important; }
}

.portrait { width: 132px; height: 132px; border-radius: 50%; object-fit: cover; object-position: 50% 22%; border: 3px solid var(--accent); margin: 0 0 16px; display: block; }
.byline { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 2px 0 0; }
.byline .by { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 500; }

/* ---------- the talk with its slides ---------- */
.talk { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.talk-slides iframe.slides { width: 100%; aspect-ratio: 16 / 9; height: auto; border-radius: 12px; border: 1px solid var(--line); }
.talk-side .yt { aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #0D090F; }
.talk-side .yt iframe, .talk-side .yt > div { width: 100%; height: 100%; display: block; }
.talk-side .follow { display: flex; align-items: center; gap: 10px; margin: 14px 0 6px; font-family: var(--f-label); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.talk-side .follow input { width: 18px; height: 18px; accent-color: var(--lime); }
.talk-side .small { font-size: 14px; color: var(--muted); margin: 0; }
@media (max-width: 980px) { .talk { grid-template-columns: 1fr; } .talk-side .yt { max-width: 420px; } }
html.plain #plain .portrait { margin-left: 0; }

/* ---------- the stories: windows and niches set into the walls ---------- */
.niche { width: 260px; padding: 52px 20px 20px; border: 2px solid var(--lav); border-radius: 130px 130px 14px 14px; background: var(--card); text-align: center; box-shadow: 0 0 0 5px color-mix(in srgb, var(--lav) 18%, transparent); position: relative; }
.niche::before { content: ""; position: absolute; left: 50%; top: 14px; width: 26px; height: 26px; margin-left: -13px; border-radius: 50%; border: 2px dashed var(--lav); opacity: .8; }
.niche .eyebrow { font-family: var(--f-label); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin: 0 0 8px; }
.niche h3 { font-family: var(--f-display); font-weight: 400; font-size: 15.5px; letter-spacing: .04em; text-transform: uppercase; line-height: 1.25; margin: 0 0 10px; }
.niche p { font-size: 13.5px; line-height: 1.5; margin: 0 0 12px; color: var(--muted); }
.btn.sm { padding: 8px 14px; font-size: 11px; letter-spacing: .12em; }
.soc { display: inline-block; margin-left: 8px; font-family: var(--f-label); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--sky); text-decoration: none; border-bottom: 1px dotted currentColor; }
.soc:hover { color: var(--accent); }
.byline .by { flex-wrap: wrap; row-gap: 2px; }
.doc .people li { padding: 8px 16px; flex-wrap: wrap; gap: 4px 0; }
.roster { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 22px; font-size: 14.5px; }
.roster .by { display: block; }
.roster .soc { margin-left: 0; margin-right: 8px; }
@media (max-width: 760px) { .roster { grid-template-columns: 1fr; } }

.pname { color: var(--ink); font-weight: 600; text-decoration: none; border-bottom: 1.5px solid var(--accent); }
.pname:hover { color: var(--accent); }
.doc .people .role { display: block; width: 100%; font-size: 13px; color: var(--muted); margin: 2px 0 2px; }
.doc .people li .soc:first-of-type { margin-left: 0; }

/* ---------- Zuiora: one card that owns the room ---------- */
.panel.hero { width: min(780px, calc(100vw - 40px)); padding: 46px 54px 50px; border-color: var(--accent); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 16%, transparent), 0 20px 60px rgba(0,0,0,.35); }
.panel.hero h2 { font-size: clamp(38px, 4.6vw, 62px); letter-spacing: .08em; margin-bottom: 8px; }
.panel.hero .small { font-size: 17px; letter-spacing: .04em; margin-bottom: 20px; }
.panel.hero .lead { font-size: 21px; line-height: 1.5; margin-bottom: 18px; }
.panel.hero .quote { font-size: 24px; line-height: 1.45; margin: 0 0 6px; }
.panel.hero .btn { font-size: 14px; padding: 15px 28px; }
@media (max-width: 760px) { .panel.hero { padding: 28px 26px 30px; } .panel.hero .lead { font-size: 17px; } .panel.hero .quote { font-size: 19px; } }

/* ---------- the talk, playing inside its own card ---------- */
.panel.stage { width: min(900px, calc(100vw - 32px)); }
.panel.stage .stage-slides iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 12px; background: #0D090F; display: block; }
.stage-bar { display: grid; grid-template-columns: 250px 1fr; gap: 18px; margin-top: 14px; align-items: start; }
.stage-bar .yt { aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #0D090F; }
.stage-bar .yt iframe, .stage-bar .yt > div { width: 100%; height: 100%; display: block; }
.stage-side .follow { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-family: var(--f-label); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.stage-side .follow input { width: 18px; height: 18px; accent-color: var(--lime); }
.stage-side .small { font-size: 14px; margin: 0 0 12px; }
button.thumb { border: 0; padding: 0; cursor: pointer; width: calc(100% + 64px); }
@media (max-width: 760px) { .stage-bar { grid-template-columns: 1fr; } button.thumb { width: calc(100% + 44px); } }

/* the presentation, playing in its card: just the slides */
.panel.stage { width: min(900px, calc(100vw - 32px)); padding: 12px 12px 14px; }
.stage-slides { position: relative; border-radius: 12px; overflow: hidden; background: #0D090F; }
.stage-hit { position: absolute; inset: 0; background: none; border: 0; cursor: pointer; }
.stage-x { position: absolute; top: 10px; right: 10px; z-index: 3; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(240,235,247,.5); background: rgba(13,9,15,.6); color: #F0EBF7; font-size: 20px; line-height: 1; cursor: pointer; }
.stage-cap { margin: 10px 6px 0; font-family: var(--f-label); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.stage.paused .stage-slides::after { content: "Paused"; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); font-family: var(--f-label); letter-spacing: .3em; text-transform: uppercase; color: #F0EBF7; background: rgba(13,9,15,.55); padding: 10px 18px; border-radius: 999px; pointer-events: none; }

.stage-speed { display: flex; align-items: center; gap: 6px; margin: 8px 6px 0; font-family: var(--f-label); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.stage-speed span { margin-right: 4px; }
.stage-speed button { font: inherit; letter-spacing: .06em; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line, rgba(128,128,128,.4)); background: transparent; color: inherit; cursor: pointer; }
.stage-speed button.on { background: var(--ink, #222); color: var(--bg, #F1EEF2); }

/* the countdown ring around the close button */
.stage-timer { position: absolute; top: 6px; right: 6px; width: 48px; height: 48px; z-index: 3; touch-action: none; }
.stage-timer svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.stage-timer .trk { fill: none; stroke: rgba(240,235,247,.28); stroke-width: 3; }
.stage-timer .arc { fill: none; stroke: var(--lime, #DBDE5B); stroke-width: 3; stroke-linecap: round; filter: drop-shadow(0 0 3px rgba(13,9,15,.6)); }
.stage-timer .ring-hit { fill: none; stroke: transparent; stroke-width: 14; pointer-events: stroke; cursor: pointer; }
.stage-timer[role="slider"]:focus-visible { outline: 2px solid var(--lime, #DBDE5B); outline-offset: 2px; border-radius: 50%; }
.stage-timer .stage-x { top: 7px; right: 7px; }
.stage-left { margin-left: auto; padding-right: 6px; font-variant-numeric: tabular-nums; }

/* legibility over the scene lines: glass that is a little firmer, and a soft halo of the card colour around every glyph */
:root[data-theme="dark"] { --card: rgba(26, 18, 38, .9); }
:root[data-theme="light"] { --card: rgba(241, 238, 242, .9); }
.panel :is(h2, p, li, .eyebrow, .small, .quote, b) { text-shadow: 0 0 5px var(--card-solid), 0 0 12px var(--card-solid), 0 0 2px var(--card-solid); }
/* the presentation, while it plays: room to breathe between the slides and the title below them */
.panel.stage { padding: 14px 14px 22px; }
.stage-cap { margin: 20px 8px 0; }
.stage-speed { margin: 14px 8px 0; }
.panel.stage .stage-cap { margin: 22px 8px 0; }
.panel.stage .stage-speed { margin: 14px 8px 0; }
.stage-slides iframe { color-scheme: dark; background: #0D090F; }

/* the presentation frame: a 12 px margin all round, the title centred at the top */
.panel.stage { padding: 12px; }
.panel.stage .stage-cap { margin: 0 0 12px; text-align: center; }
.panel.stage .stage-speed { margin: 12px 0 0; padding: 0 4px; }
/* a little tighter still */
.panel.stage { padding: 8px; }
.panel.stage .stage-cap { margin: 2px 0 8px; }
.panel.stage .stage-speed { margin: 8px 0 0; padding: 0 4px 2px; }

/* sized to the window, so it never runs up into the header: its height (title + slides + controls) stays inside the viewport with room above and below */
.panel.stage { width: max(320px, min(900px, calc(100vw - 32px), calc((100vh - 280px) * 16 / 9 + 16px))); }
/* the title row, with a small close button at its right end */
.stage-top { position: relative; margin: 2px 0 8px; }
.panel.stage .stage-top .stage-cap { margin: 0; }
.stage-close { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--ink); font-size: 17px; line-height: 1; cursor: pointer; }
.stage-close:hover { border-color: var(--accent); }
/* play / pause in the ring */
.stage-timer .stage-play { position: absolute; top: 7px; right: 7px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(240,235,247,.5); background: rgba(13,9,15,.6); cursor: pointer; padding: 0; display: grid; place-items: center; }
.stage-play .ic { display: block; width: 12px; height: 12px; border-left: 4px solid #F0EBF7; border-right: 4px solid #F0EBF7; box-sizing: border-box; }
.stage.paused .stage-play .ic { width: 0; height: 0; border: 0; border-left: 11px solid #F0EBF7; border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 3px; }
.stage-timer .stage-play:hover { border-color: var(--lime, #DBDE5B); }

.panel.stage { width: max(280px, min(900px, calc(100vw - 24px), calc((100vh - 2 * var(--stage-inset, 96px) - 96px) * 16 / 9 + 16px))); }
@media (max-height: 699px) { :root { --stage-inset: 80px; } }
@media (max-height: 519px) { :root { --stage-inset: 60px; } }
/* room for the title row, the controls and the card's own padding, plus the header above and the controls below */
.panel.stage { width: max(280px, min(900px, calc(100vw - 24px), calc((100vh - 2 * var(--stage-inset, 96px) - 136px) * 16 / 9 + 16px))); }
@media (max-height: 699px) { :root { --stage-inset: 84px; } }
@media (max-height: 519px) { :root { --stage-inset: 66px; } }

.stage-close { display: none; }

/* the registered logo (maze mark with the trademarked wordmark), with its own clear border */
.title-block img.lockup-reg { display: block; width: clamp(240px, 50vw, 600px); height: auto; margin: 0 auto 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* the map: a small square, the drawing centred in it */
#plan-body { width: 140px; height: 140px; padding: 6px; box-sizing: content-box; }
#plan-body svg { overflow: hidden; }

/* Reach out: not a tab but the sun / moon itself, floating in the space */
#reach { position: fixed; left: 0; top: 0; z-index: 1; display: grid; place-items: center; border-radius: 50%; text-decoration: none; color: var(--ink); opacity: 0; pointer-events: none; will-change: transform, opacity; transition: box-shadow .25s; }
#reach span { font-family: var(--f-label); letter-spacing: .22em; text-transform: uppercase; font-size: clamp(10px, 1.15vw, 14px); line-height: 1.6; text-align: center; padding: 0 14%; text-shadow: 0 0 8px var(--bg), 0 0 2px var(--bg); }
#reach:hover, #reach:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent), 0 0 44px 8px color-mix(in srgb, var(--accent) 40%, transparent); }

/* ================= one standard for every card: colour, transparency, margins, bleed, edge, shadow ================= */
:root { --card-pad-y: 28px; --card-pad-x: 30px; --card-radius: 18px; --card-shadow: 0 10px 30px rgba(0,0,0,.3); }
@media (max-width: 760px) { :root { --card-pad-y: 22px; --card-pad-x: 22px; } }
.panel, .panel.wide, .panel.hero { padding: var(--card-pad-y) var(--card-pad-x); border: 1px solid var(--line); border-radius: var(--card-radius); background: var(--card); box-shadow: var(--card-shadow); }
.panel.hero { border-color: var(--accent); }                               /* the lead cards differ only in size of type and an accent edge */
.panel.stage { padding: 8px; }                                              /* the presentation is a frame around the slides */
/* pictures run to the very edge of the card (bleed = the card's own margin) */
.panel .thumb, .panel .map-thumb { margin: calc(-1 * var(--card-pad-y)) calc(-1 * var(--card-pad-x)) 18px; border-radius: calc(var(--card-radius) - 1px) calc(var(--card-radius) - 1px) 0 0; }
.panel .map-thumb { width: calc(100% + 2 * var(--card-pad-x)); }
/* arched doors and niches: the same glass, the same shadow */
.door .inner { background: linear-gradient(to top, color-mix(in srgb, var(--c) 30%, var(--card)), var(--card) 78%); box-shadow: var(--card-shadow), 0 0 0 6px color-mix(in srgb, var(--c) 22%, transparent); }
.niche { background: var(--card); box-shadow: var(--card-shadow), 0 0 0 5px color-mix(in srgb, var(--lav) 18%, transparent); padding-left: var(--card-pad-x); padding-right: var(--card-pad-x); }

#reach { will-change: opacity; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 28%, transparent); }
#reach span { text-shadow: none; font-weight: 600; color: var(--ink); }
.title-block .pillars { text-shadow: 0 0 6px var(--bg), 0 0 14px var(--bg), 0 0 2px var(--bg); color: var(--ink); }

/* ---------- the map, as a navigation map ---------- */
#plan { display: flex; flex-direction: column; gap: 6px; }
#plan-body { overflow: hidden; }
#plan-body .road { opacity: .6; }
#plan-body .stub.passed { opacity: .55; }
#plan-body .maplabel { fill: var(--ink); font-family: var(--f-label); font-size: 5.6px; letter-spacing: .05em; text-transform: uppercase; paint-order: stroke; stroke: var(--card-solid); stroke-width: 1.8px; stroke-linejoin: round; pointer-events: none; }
#plan-body .marker { fill: var(--lime); stroke: var(--card-solid); stroke-width: 1; }
#plan-body .heading { fill: var(--lime); stroke: var(--card-solid); stroke-width: .8; stroke-linejoin: round; }
#plan-nav { display: flex; justify-content: space-between; gap: 6px; width: 154px; }
#plan-nav button { flex: 1 1 0; min-width: 0; overflow: hidden; font-family: var(--f-label); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; padding: 7px 4px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; white-space: nowrap; }
#plan-nav button:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
#plan-nav button:disabled { opacity: .3; cursor: default; }
@media (max-width: 760px) { #plan { flex-direction: row; align-items: center; } #plan-nav { width: auto; } #plan-nav button span { display: none; } #plan-nav button { padding: 9px 12px; font-size: 13px; } }

/* ---------- the top-left logo ---------- */
#brand { gap: 16px; }
#brand img { width: 72px; height: 72px; border-radius: 0; background: none; display: block; }
@media (max-width: 760px) { #brand img { width: 52px; height: 52px; } }

/* ---------- Reach out: glows where a choice or an ending waits ---------- */
@keyframes reach-pulse { 0%, 100% { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 70%, transparent), 0 0 26px 4px color-mix(in srgb, var(--accent) 38%, transparent); } 50% { box-shadow: inset 0 0 0 2px var(--accent), 0 0 54px 14px color-mix(in srgb, var(--accent) 52%, transparent); } }
#reach.glow { animation: reach-pulse 2.8s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { #reach.glow { animation: none; box-shadow: inset 0 0 0 2px var(--accent), 0 0 34px 8px color-mix(in srgb, var(--accent) 45%, transparent); } }

/* ---------- text keeps its due: room for "Choose a way", and a soft plate behind floating words ---------- */
#choose span { width: auto; display: block; margin: 0 auto 14px; padding: 4px 4px; text-shadow: 0 0 8px var(--bg), 0 0 18px var(--bg), 0 0 3px var(--bg); }
#choose { bottom: 104px; }
#status { text-shadow: 0 0 8px var(--bg), 0 0 18px var(--bg), 0 0 3px var(--bg); }
#choose span { flex: 0 0 100%; width: 100%; }

/* the name of the space: quiet caption at top centre, not tied to the logo */
#where { position: fixed; z-index: 30; top: 30px; left: 50%; transform: translateX(-50%); max-width: calc(100vw - 220px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; pointer-events: none; color: var(--ink); opacity: .8; text-shadow: 0 0 8px var(--bg), 0 0 3px var(--bg); }
@media (max-width: 760px) { #where { display: block; top: 24px; font-size: 11px; letter-spacing: .16em; max-width: calc(100vw - 190px); } }

/* crossfade picture used when moving between stretches of the maze */
#xfade { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; opacity: 0; }
/* note shown by the Reach out circle */
#reach-note { position: fixed; z-index: 60; transform: translate(-50%, 6px); width: min(350px, 90vw); padding: 12px 16px; border-radius: 14px; background: var(--card-solid); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0,0,0,.25); color: var(--ink); font-size: 14px; line-height: 1.45; text-align: center; opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; }
#reach-note.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
#reach-note b { font-family: var(--f-body); font-weight: 700; font-size: 15px; letter-spacing: 0; text-transform: none; white-space: nowrap; user-select: all; }
#reach-note span { color: var(--muted); font-size: 12px; }
/* the cover slide holds the place of the presentation until it has loaded */
.stage-poster { position: absolute; inset: 0; z-index: 2; background: #0D090F; transition: opacity .55s ease; display: grid; place-items: center; }
.stage-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stage-poster .stage-wait { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); font-family: var(--f-label); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: #F1EEF2; background: rgba(13,9,15,.55); padding: 6px 12px; border-radius: 999px; animation: fx-pulse 1.4s ease-in-out infinite; }
.stage-poster.gone { opacity: 0; pointer-events: none; }
.stage-slides { aspect-ratio: 16 / 9; }

/* linked words in running text, and addresses: Ubuntu Bold */
#reach-note b, .doc p a:not(.btn), .doc li a:not(.btn):not(.soc):not(.pname), .panel p a:not(.btn), .chips a, .meta a { font-family: var(--f-link); font-weight: 700; letter-spacing: 0; text-transform: none; }
.soc, .pname { font-family: var(--f-link); font-weight: 700; letter-spacing: .02em; text-transform: none; font-size: 12.5px; }
.pname { font-size: inherit; letter-spacing: 0; }


/* ---------- videos that play inside the card ---------- */
.panel .thumb[data-yt] { cursor: pointer; }
.thumb iframe.yt-in { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 2; background: #0D090F; }
.thumb.playing .play { display: none; }
.thumb.playing { cursor: default; }

/* ---------- Design Dialogues: the collage of conversations and stories ---------- */
.collage { display: grid; grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(3, 1fr); aspect-ratio: 2 / 1; gap: 3px; margin: calc(-1 * var(--card-pad-y)) calc(-1 * var(--card-pad-x)) 18px; border-radius: calc(var(--card-radius) - 1px) calc(var(--card-radius) - 1px) 0 0; overflow: hidden; background: #0D090F; }
.collage .ct { position: relative; overflow: hidden; background: color-mix(in srgb, var(--lav) 40%, #0D090F); }
.collage .ct img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.collage .ct:hover img { transform: scale(1.06); }
.collage .ct1 { grid-area: 1 / 1 / 3 / 3; } .collage .ct2 { grid-area: 1 / 3 / 2 / 5; } .collage .ct3 { grid-area: 1 / 5 / 3 / 7; }
.collage .ct4 { grid-area: 2 / 3 / 3 / 4; } .collage .ct5 { grid-area: 2 / 4 / 3 / 5; }
.collage .ct6 { grid-area: 3 / 1 / 4 / 3; } .collage .ct7 { grid-area: 3 / 3 / 4 / 4; } .collage .ct8 { grid-area: 3 / 4 / 4 / 5; } .collage .ct9 { grid-area: 3 / 5 / 4 / 7; }
.collage .ct::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
/* the questions as a cloud of speech bubbles */
.bubbles { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 9px 8px; }
.bubbles li { position: relative; font-size: 14.5px; line-height: 1.35; padding: 8px 14px; border-radius: 16px 16px 16px 4px; border: 1.5px solid var(--bc); background: color-mix(in srgb, var(--bc) 14%, transparent); transform: rotate(var(--r)); }
.bubbles li:nth-child(odd) { border-radius: 16px 16px 4px 16px; }
.bubbles li { --bc: var(--lav); } .bubbles li[style*="--k:1"] { --bc: var(--sky); } .bubbles li[style*="--k:2"] { --bc: var(--mag); } .bubbles li[style*="--k:3"] { --bc: var(--lime); }
/* story windows carry their picture */
.niche .niche-img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; margin: 0 0 12px; }

/* ---------- infographics ---------- */
.panel .vizbox { margin: calc(-1 * var(--card-pad-y)) calc(-1 * var(--card-pad-x)) 16px; padding: 14px 16px 6px; border-radius: calc(var(--card-radius) - 1px) calc(var(--card-radius) - 1px) 0 0; background: linear-gradient(to bottom, color-mix(in srgb, var(--c, var(--lav)) 20%, transparent), transparent); }
.panel .vizbox.art { padding: 0; background: none; overflow: hidden; }
.sheetviz { margin: 4px 0 18px; padding: 14px 10px 6px; border-radius: 14px; background: linear-gradient(to bottom, color-mix(in srgb, var(--c, var(--lav)) 16%, transparent), transparent); }
.viz { display: block; width: 100%; height: auto; overflow: visible; font-family: var(--f-body); color: var(--ink); }
.viz .vz-halo { fill: color-mix(in srgb, var(--c) 18%, transparent); }
.viz .vz-hub { fill: var(--c); }
.viz .vz-num { font-family: var(--f-display); font-size: 22px; fill: var(--on-accent-viz, #0D090F); }
.viz .vz-link { fill: none; stroke: var(--c); stroke-width: 1.6; opacity: .6; }
.viz .vz-pill rect { fill: color-mix(in srgb, var(--c) 16%, var(--card-solid)); stroke: var(--c); stroke-width: 1.2; }
.viz .vz-pill text { font-size: 11px; font-weight: 600; fill: var(--ink); }
.viz .vz-more { font-size: 10.5px; fill: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.vz-stats { margin: 4px 0 2px; text-align: center; font-size: 13px; color: var(--muted); }
.vz-stats b { color: var(--ink); font-weight: 700; }
.viz-glance .vz-ring { fill: none; stroke: var(--line); stroke-width: 1.4; stroke-dasharray: 3 5; }
.viz-glance .vz-ring.in { stroke-dasharray: none; opacity: .5; }
.viz .vz-node { fill: color-mix(in srgb, var(--c) 82%, var(--card-solid)); stroke: var(--card-solid); stroke-width: 2; transition: transform .2s; transform-box: fill-box; transform-origin: center; }
.viz a:hover .vz-node { transform: scale(1.18); }
.viz .vz-nt { font-size: 11.5px; font-weight: 700; fill: #0D090F; pointer-events: none; }
.viz .vz-core { font-family: var(--f-display); font-size: 13px; letter-spacing: .18em; fill: var(--ink); }
.viz .vz-big { font-family: var(--f-display); font-size: 36px; fill: var(--ink); }
.viz .vz-lab { font-size: 13px; fill: var(--muted); letter-spacing: .04em; }
.viz .vz-lab.c { font-size: 12.5px; font-weight: 600; fill: var(--ink); }
.viz .vz-path { fill: none; stroke: var(--lav); stroke-width: 2; stroke-dasharray: 2 7; stroke-linecap: round; }
.viz-art { height: 96px; }
.roster .withmono { display: flex; align-items: center; gap: 10px; }
.roster .withmono .by { flex: 1; min-width: 0; }
.mono { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: color-mix(in srgb, var(--c) 80%, var(--card-solid)); color: #0D090F; font-family: var(--f-label); font-size: 12px; letter-spacing: .04em; }

/* ---------- Design: the deck in its door, PDFs in cards ---------- */
.door .inner.hasart::before { display: none; }
.door .door-art { position: absolute; left: 50%; top: 40px; width: 108px; height: 108px; margin-left: -54px; border-radius: 50%; object-fit: cover; border: 2px dashed var(--c); padding: 3px; background: #0D090F; }
.door .inner.hasart { padding-top: 168px; }
.panel.stage.doc { width: min(920px, calc(100vw - 32px)); }
.docstage { aspect-ratio: 16 / 10; }
.docstage iframe.docframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #F1EEF2; }
.docstage .stage-x { position: absolute; top: 10px; right: 10px; z-index: 4; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(240,235,247,.5); background: rgba(13,9,15,.6); color: #F0EBF7; font-size: 20px; line-height: 1; cursor: pointer; }

/* contributor boxes: a rounded rectangle with room around the text, a little smaller (the same everywhere) */
.doc .people { gap: 8px; align-items: flex-start; }
.doc .people li { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 12px; row-gap: 2px; padding: 12px 18px 11px; border: 1px solid var(--accent); border-radius: 14px; font-size: 15px; line-height: 1.35; }
.doc .people .pname, .doc .people li > b { font-size: 15px; }
.doc .people .role { flex: 0 0 100%; width: 100%; font-size: 12.5px; margin: 0 0 4px; line-height: 1.3; }
.doc .people li .soc, .doc .people li .soc:first-of-type { font-size: 11.5px; margin: 0; }

/* ---------- the map journey ---------- */
#journey { position: fixed; inset: 0; z-index: 1; opacity: 0; pointer-events: none; }
#jview { position: absolute; left: max(16px, 9vw); right: max(16px, 9vw); top: 92px; bottom: 150px; overflow: hidden; border-radius: 18px; border: 1px solid var(--line); background: #F3EFF6; box-shadow: var(--card-shadow, 0 10px 30px rgba(0,0,0,.3)); }
:root[data-theme="dark"] #jview .jworld img { filter: brightness(.92); }
.jworld { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; --inv: 1; }
.jworld img { mix-blend-mode: multiply; position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; user-select: none; -webkit-user-drag: none; }
.jworld img.hi { opacity: 0; transition: opacity .6s; } .jworld img.hi.ready { opacity: 1; }
.jworld svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.jworld svg path { fill: none; stroke-width: 2.2px; vector-effect: non-scaling-stroke; opacity: .28; stroke-dasharray: 3 7; stroke-linecap: round; transition: opacity .4s; }
.jworld svg path.on { opacity: .9; stroke-width: 3px; stroke-dasharray: 10 8; animation: jflow 1.4s linear infinite; }
.jworld svg path[data-r="all"]:not(.on) { opacity: .12; }
@keyframes jflow { to { stroke-dashoffset: -36; } }
.jpin { position: absolute; transform: translate(-50%, -50%) scale(var(--inv)); display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border-radius: 50%; border: 2px solid #1B1030; background: color-mix(in srgb, var(--pc) 85%, #fff); color: #1B1030; font-family: var(--f-label); font-size: 12px; cursor: pointer; pointer-events: auto; transition: box-shadow .3s, opacity .3s; }
.jpin.off { opacity: .35; }
.jpin.x { box-shadow: 0 0 0 4px rgba(255,255,255,.9), 0 0 0 6px #1B1030; }
.jpin.cur { box-shadow: 0 0 0 5px color-mix(in srgb, var(--pc) 55%, transparent), 0 0 24px 8px color-mix(in srgb, var(--pc) 65%, transparent); }
#jroutes { position: absolute; left: calc(max(16px, 9vw) + 12px); top: 104px; display: flex; flex-wrap: wrap; gap: 6px; max-width: calc(100vw - 2 * max(16px, 9vw) - 24px); }
#jroutes button { font-family: var(--f-label); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; padding: 7px 12px; border-radius: 999px; border: 1.5px solid #3F4C78; background: rgba(244,240,250,.92); color: #1B1030; cursor: pointer; }
#jroutes button.on { background: #1B1030; color: #F4F0FA; border-color: #1B1030; }
#jcap { position: absolute; left: calc(max(16px, 9vw) + 14px); bottom: calc(150px + 14px); width: min(400px, calc(100vw - 2 * max(16px, 9vw) - 28px)); padding: 13px 18px 15px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: var(--card-shadow, 0 10px 30px rgba(0,0,0,.3)); color: var(--ink); opacity: 0; }
#jcap h2 { font-family: var(--f-display); font-weight: 400; font-size: 17px; letter-spacing: .04em; text-transform: uppercase; line-height: 1.25; margin: 2px 0 8px; }
.jc-eyebrow { margin: 0; font-family: var(--f-label); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.jc-eyebrow b { font-weight: 400; font-size: 13px; }
.jc-text { margin: 0 0 8px; font-size: 13.5px; line-height: 1.5; color: var(--ink); }
.jc-hint { margin: 8px 0 0; font-size: 12.5px; color: var(--muted); }
.jc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; padding: 0; list-style: none; }
.jc-chips li { font-size: 12px; padding: 2px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.jc-cross { margin: 0 0 8px; font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.jc-cross button { font-family: var(--f-link); font-weight: 700; font-size: 12.5px; padding: 5px 12px; border-radius: 999px; border: 1.5px solid var(--accent); background: transparent; color: var(--ink); cursor: pointer; }
.jc-cross button:hover { background: var(--accent); color: var(--on-accent); }
.jc-row { margin-top: 4px; }
html.injourney #plan, html.injourney #status, html.injourney #choose { opacity: 0 !important; pointer-events: none !important; }
@media (max-width: 760px) {
  #jview { top: 70px; bottom: 300px; left: 12px; right: 12px; }
  #jroutes { left: 20px; top: 80px; }
  #jcap { left: 12px; right: 12px; width: auto; bottom: 96px; padding: 12px 16px 14px; }
  #jcap h2 { font-size: 14.5px; } .jc-text { font-size: 13px; }
}
.jworld.hiok img.lo { opacity: 0; }

/* a small thumbnail of the mind map, on the first research card */
.map-mini { display: flex; align-items: center; gap: 14px; margin: 14px 0 0; padding: 8px 14px 8px 8px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); background: color-mix(in srgb, var(--lav) 10%, transparent); transition: border-color .2s; }
.map-mini:hover { border-color: var(--accent); }
.map-mini img { flex: none; width: 92px; height: 79px; object-fit: cover; border-radius: 8px; background: #F3EFF6; }
.map-mini span { display: flex; flex-direction: column; gap: 2px; }
.map-mini b { font-family: var(--f-link); font-weight: 700; font-size: 14px; }
.map-mini i { font-style: normal; font-size: 12.5px; color: var(--muted); }

/* ---------- the Psi-fig answers to a click ---------- */
#psi { pointer-events: auto; cursor: pointer; -webkit-tap-highlight-color: transparent; }
#psi:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 12px; }
#psi-card { position: fixed; z-index: 28; left: 50%; bottom: 118px; transform: translate(-50%, 12px); width: min(430px, calc(100vw - 28px)); max-height: calc(100vh - 210px); overflow: auto; padding: 18px 22px 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: var(--card-shadow, 0 10px 30px rgba(0,0,0,.3)); color: var(--ink); opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; }
#psi-card.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
#psi-card .note-x { position: absolute; top: 8px; right: 10px; border: 0; background: none; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; padding: 4px 8px; }
#psi-card .psi-mini { float: left; width: 46px; height: 56px; margin: 0 14px 4px 0; color: var(--lime); }
:root[data-theme="light"] #psi-card .psi-mini { color: #7E8418; }
#psi-card .eyebrow { margin: 4px 0 8px; font-family: var(--f-label); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
#psi-card .psi-text p { margin: 0 0 8px; font-size: 14px; line-height: 1.55; }
#psi-card .psi-text p:last-child { margin-bottom: 0; }
@media (max-width: 760px) { #psi-card { bottom: 100px; } }

/* the flood on the bridge: a pop-up that explains the wait */
#flood-card { position: fixed; z-index: 45; left: 50%; top: 110px; transform: translate(-50%, -10px); width: min(380px, calc(100vw - 28px)); padding: 16px 20px 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: var(--card-shadow, 0 10px 30px rgba(0,0,0,.3)); color: var(--ink); text-align: center; opacity: 0; pointer-events: none; transition: opacity .4s, transform .4s; }
#flood-card.on { opacity: 1; transform: translate(-50%, 0); }
#flood-card .eyebrow { margin: 0 0 6px; font-family: var(--f-label); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
#flood-card h3 { margin: 0 0 6px; font-family: var(--f-display); font-weight: 400; font-size: 16px; letter-spacing: .05em; text-transform: uppercase; line-height: 1.25; }
#flood-card .ftxt { margin: 0 0 12px; font-size: 14px; line-height: 1.5; color: var(--muted); }
#flood-card .fbar { height: 6px; border-radius: 99px; background: color-mix(in srgb, var(--sky) 22%, transparent); overflow: hidden; }
#flood-card .fbar i { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--sky); transition: width .3s linear; }
@media (max-width: 760px) { #flood-card { top: 84px; } }

/* ---------- the questions and the social links at every dead end ---------- */
.faq-card .faq { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 0; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: color-mix(in srgb, var(--lav) 8%, transparent); transition: border-color .2s; }
.faq details[open] { border-color: var(--accent); }
.faq summary { cursor: pointer; list-style: none; padding: 10px 40px 10px 14px; font-family: var(--f-link); font-weight: 700; font-size: 14px; line-height: 1.35; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 18px; color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0; padding: 0 14px 12px; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.faq-find { margin: 14px 0 6px !important; font-family: var(--f-label); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.faq-social { margin: 0 !important; }

/* ---------- the deck, as an editorial spread ---------- */
.mag-thumb { position: relative; background: #0D090F; }
.mag-spread { position: absolute; inset: 0; display: flex; justify-content: center; align-items: stretch; padding: 14px 0 0; background: radial-gradient(120% 90% at 50% 40%, #2A1B33, #0D090F 75%); }
.mag-spread img { width: auto !important; height: 100% !important; aspect-ratio: 1 / 1.4142; object-fit: cover; box-shadow: 0 8px 20px rgba(0,0,0,.5); }
.mag-spread img:first-child { border-radius: 3px 0 0 0; } .mag-spread img:last-child { border-radius: 0 3px 0 0; }
.mag-thumb::after { content: ""; position: absolute; right: 0; bottom: 0; width: 46px; height: 46px; background: linear-gradient(135deg, transparent 50%, rgba(255,255,255,.22) 50%, rgba(0,0,0,.35)); border-radius: 0 0 0 10px; }
.mag-open { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); font-family: var(--f-label); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: #F1EEF2; background: rgba(13,9,15,.72); border: 1.5px solid var(--lime); padding: 9px 16px; border-radius: 999px; white-space: nowrap; }
.panel.stage.mag { width: min(980px, calc(100vw - 32px)); padding: 12px 12px 12px; }
.mag-stage { position: relative; height: min(66vh, 640px); margin-top: 6px; border-radius: 12px; background: radial-gradient(120% 90% at 50% 40%, #2A1B33, #0D090F 75%); perspective: 2600px; overflow: hidden; display: grid; place-items: center; }
.mag .book { --ph: min(60vh, 600px); position: relative; height: var(--ph); aspect-ratio: 1 / 1.4142; transform-style: preserve-3d; transition: transform .8s cubic-bezier(.3,.7,.2,1); transform: translateX(0); filter: drop-shadow(0 22px 28px rgba(0,0,0,.55)); cursor: pointer; outline: none; }
.mag .book.closed-back { transform: translateX(calc(var(--ph) * 0.7071)); }
.mag .book:not(.closed-front):not(.closed-back) { transform: translateX(calc(var(--ph) * 0.3535)); }
.mag .leaf { position: absolute; left: 0; top: 0; width: 100%; height: 100%; transform-origin: 0 50%; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.5,.05,.25,1); }
.mag .leaf.turned { transform: rotateY(-180deg); }
.mag .face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: #F1EEF2; overflow: hidden; }
.mag .face.back { transform: rotateY(180deg); }
.mag .face img { width: 100%; height: 100%; object-fit: cover; display: block; user-select: none; }
.mag .face.blank { background: #0D090F; }
.mag .face .shade { position: absolute; inset: 0; pointer-events: none; }
.mag .face.front .shade { background: linear-gradient(to right, rgba(0,0,0,.28), rgba(0,0,0,.05) 7%, transparent 16%); }
.mag .face.back .shade { background: linear-gradient(to left, rgba(0,0,0,.28), rgba(0,0,0,.05) 7%, transparent 16%); }
.mag .leaf.turning .face.front .shade { animation: mag-shade .9s ease-in-out; }
.mag .leaf.turning .face.back .shade { animation: mag-shade .9s ease-in-out reverse; }
@keyframes mag-shade { 0% { box-shadow: inset 0 0 0 0 rgba(0,0,0,0); } 50% { box-shadow: inset 0 0 90px 10px rgba(0,0,0,.45); } 100% { box-shadow: inset 0 0 0 0 rgba(0,0,0,0); } }
.mag-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 6; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(240,235,247,.45); background: rgba(13,9,15,.6); color: #F0EBF7; font-size: 24px; line-height: 1; cursor: pointer; }
.mag-nav.prev { left: 10px; } .mag-nav.next { right: 10px; } .mag-nav:disabled { opacity: .25; cursor: default; }
.mag-stage .stage-x { position: absolute; top: 10px; right: 10px; z-index: 7; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(240,235,247,.5); background: rgba(13,9,15,.6); color: #F0EBF7; font-size: 20px; line-height: 1; cursor: pointer; }
.mag-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 10px 4px 2px; }
.mag-count { font-family: var(--f-label); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 760px) {
  .mag-stage { height: min(62vh, 520px); }
  .mag .book { --ph: min(50vh, 440px); }
  .mag-nav { width: 36px; height: 36px; }
}

.mag .face canvas.live { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .35s; background: #F1EEF2; }
.mag .face canvas.live.on { opacity: 1; }
.mag .face .sr-page { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.mag .face { background: #E9E4EE; }
.mag-wait { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); margin: 0; font-family: var(--f-label); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: #F1EEF2; z-index: 5; pointer-events: none; animation: fx-pulse 1.4s ease-in-out infinite; }
.mag-stage.plain { perspective: none; display: block; }
.mag-stage.plain iframe.docframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #F1EEF2; }

#skip-bio { align-self: stretch; margin-top: 2px; font-family: var(--f-label); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; padding: 8px 10px; border-radius: 999px; border: 1px solid var(--sky); background: var(--card); color: var(--ink); cursor: pointer; width: 152px; line-height: 1.3; }
#skip-bio:hover { background: var(--sky); color: #0D090F; }
#skip-bio[hidden] { display: none; }
@media (max-width: 760px) { #plan { flex-wrap: wrap; } #skip-bio { width: auto; padding: 9px 12px; font-size: 11px; } }

/* editorial look: a quiet masthead, paper, a crease, folios in a serif italic */
.mag { --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif; }
.mag .stage-top { margin: 2px 6px 8px; }
.mag .stage-cap { display: flex; align-items: center; gap: 14px; margin: 6px 0 2px; font-family: var(--serif); font-size: 12px; letter-spacing: .34em; text-transform: uppercase; color: var(--ink); text-align: center; }
.mag .stage-cap::before, .mag .stage-cap::after { content: ""; flex: 1; height: 1px; background: color-mix(in srgb, var(--ink) 32%, transparent); }
.mag-stage { background: radial-gradient(110% 90% at 50% 35%, #3A2B45, #150E1A 78%); border: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); }
:root[data-theme="light"] .mag-stage { background: radial-gradient(110% 90% at 50% 35%, #E4DEEA, #C3BACD 80%); }
.mag .face { background: #EFEBE3; }                                   /* warm paper, never pure white */
.mag .face::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, rgba(255,255,255,.07), transparent 40%, rgba(0,0,0,.05)); mix-blend-mode: multiply; }
.mag .face.front .shade { background: linear-gradient(to right, rgba(20,10,30,.34), rgba(20,10,30,.08) 6%, transparent 15%); }
.mag .face.back .shade { background: linear-gradient(to left, rgba(20,10,30,.34), rgba(20,10,30,.08) 6%, transparent 15%); }
.mag .book { filter: drop-shadow(0 26px 30px rgba(10,5,15,.55)) drop-shadow(0 2px 3px rgba(10,5,15,.35)); }
.mag-foot { align-items: baseline; justify-content: center; }
.mag-count { font-family: var(--serif); font-style: italic; font-size: 13px; letter-spacing: .06em; text-transform: none; color: var(--muted); }
.mag-why { position: absolute; left: 12px; right: 12px; bottom: 8px; margin: 0; padding: 6px 10px; border-radius: 10px; background: rgba(13,9,15,.72); color: #F1EEF2; font-size: 12px; text-align: center; z-index: 5; }
.mag-open { font-family: var(--f-label); }

.mag .face img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; user-select: none; }
.mag .face img.on { opacity: 1; }

/* the mind map, large and without its white board, at the top of the first research card */
.panel .mapbox { position: relative; display: block; margin: calc(-1 * var(--card-pad-y)) calc(-1 * var(--card-pad-x)) 14px; padding: 10px 6px 0; border-radius: calc(var(--card-radius) - 1px) calc(var(--card-radius) - 1px) 0 0; text-decoration: none; background: radial-gradient(90% 70% at 50% 45%, color-mix(in srgb, var(--lav) 16%, transparent), transparent); }
.panel .mapbox img { display: block; width: auto; max-width: 100%; height: auto; max-height: 380px; margin: 0 auto; aspect-ratio: 2572 / 2218; transition: transform .5s ease; }
.panel .mapbox:hover img { transform: scale(1.025); }
.panel .mapbox span { position: absolute; right: 16px; bottom: 10px; font-family: var(--f-label); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); background: var(--card-solid); border: 1px solid var(--line); padding: 5px 11px; border-radius: 999px; }

/* ---------- the map as a space ---------- */
#journey.space #space-cv { position: absolute; inset: 0; cursor: grab; display: block; }
#journey.space #jroutes { left: max(16px, 4vw); top: 84px; max-width: calc(100vw - 2 * max(16px, 4vw)); }
#journey.space #jroutes button { background: color-mix(in srgb, var(--card-solid) 88%, transparent); color: var(--ink); border-color: var(--line); backdrop-filter: blur(8px); }
#journey.space #jroutes button.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
#journey.space #jcap { left: max(16px, 4vw); bottom: 96px; width: min(440px, calc(100vw - 2 * max(16px, 4vw))); }
#journey.space #jcap .sp-t { font-family: var(--f-body); font-weight: 600; text-transform: none; letter-spacing: 0; font-size: 16px; line-height: 1.4; margin: 4px 0 10px; }
#journey.space #jcap .note-x { position: absolute; top: 6px; right: 10px; border: 0; background: none; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; padding: 4px 8px; }
#space-tip { position: absolute; z-index: 3; max-width: 260px; padding: 8px 12px; border-radius: 12px; background: var(--card-solid); border: 1px solid var(--line); color: var(--ink); font-size: 13px; line-height: 1.4; pointer-events: none; opacity: 0; transition: opacity .15s; box-shadow: var(--card-shadow, 0 8px 24px rgba(0,0,0,.3)); }
#space-tip.on { opacity: 1; }
#space-hint { position: absolute; left: 50%; top: 178px; transform: translateX(-50%); margin: 0; font-family: var(--f-label); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); text-align: center; pointer-events: none; transition: opacity .4s; width: min(90vw, 560px); }
@media (max-width: 760px) { #journey.space #jroutes { top: 76px; } #journey.space #jcap { left: 12px; right: 12px; bottom: 84px; width: auto; } #space-hint { top: 190px; font-size: 10px; letter-spacing: .12em; } }

/* the map as its own full-screen view */
#journey.space #space-x { position: absolute; top: 20px; right: 90px; z-index: 5; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--card-solid); color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; }
#space-nav { position: absolute; right: max(16px, 4vw); bottom: 96px; display: flex; gap: 8px; z-index: 5; }
#space-nav button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--card-solid); color: var(--ink); font-size: 24px; line-height: 1; cursor: pointer; }
.mapstats { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; margin: 4px 0 0; padding: 0 12px 10px; list-style: none; font-size: 13px; color: var(--muted); }
.mapstats b { font-family: var(--f-display); font-weight: 400; font-size: 20px; color: var(--ink); margin-right: 3px; }

/* ---- Project E talk: infographic slides ---- */
.talk-thumb { cursor: pointer; background: #1A0F1C; }
.talk-thumb .viz { width: 100%; height: 100%; object-fit: cover; }
.panel.etalk .ets { position: relative; aspect-ratio: 16 / 9; background: #1A0F1C; color: #F1EEF2; overflow: hidden; }
.et { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .6s; pointer-events: none; padding: 4%; }
.et.on { opacity: 1; pointer-events: auto; }
.et svg.ts { width: 100%; height: 100%; }
.ts .rip { fill: none; stroke: var(--lav); stroke-width: 1.5; opacity: .5; animation: tsrip 4s ease-in-out infinite; animation-delay: var(--d); }
@keyframes tsrip { 0%, 100% { opacity: .15; } 50% { opacity: .6; } }
.ts .dot { fill: var(--lime); }
.ts .big { font: 700 24px var(--f-label, sans-serif); fill: #F1EEF2; }
.ts .lab { font: 700 15px var(--f-label, sans-serif); letter-spacing: .14em; fill: #F1EEF2; }
.ts .sub { font: 14px var(--f-label, sans-serif); letter-spacing: .1em; fill: #CFC6D6; }
.ts .tag { font: 700 11px var(--f-label, sans-serif); letter-spacing: .2em; fill: var(--lime); }
.ts .huge { font: 700 54px var(--f-label, sans-serif); fill: var(--lime); }
.ts .num { font: 700 24px var(--f-label, sans-serif); fill: #1A0F1C; }
.ts .ini { font: 700 11px var(--f-label, sans-serif); fill: #1A0F1C; }
.ts .c1 { fill: var(--sky); opacity: .55; } .ts .c2 { fill: var(--mag); opacity: .5; }
.ts .psi { fill: #F1EEF2; } .ts .psi use { fill: #F1EEF2; }
.ts .path { fill: none; stroke: #CFC6D6; stroke-width: 2; stroke-dasharray: 6 6; }
.ts .nd { fill: var(--c); }
.ts .book rect, .ts .book path { fill: none; stroke: #F1EEF2; stroke-width: 2; }
.ts-html { width: 100%; max-height: 100%; overflow: hidden; }
.ts-aims { display: grid; gap: 14px; width: 100%; }
.ts-aims .aim { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; padding: 12px 16px; border-radius: 16px; border: 1px solid var(--c); background: rgba(241,238,242,.06); }
.ts-aims b { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #1A0F1C; font: 700 18px var(--f-label, sans-serif); }
.ts-aims p { margin: 0; font-size: clamp(13px, 2vw, 18px); line-height: 1.35; }
.ts-threads { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; width: 100%; }
.ts-threads .th { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 8px 12px; border-radius: 14px; border: 1px solid var(--c); font-size: clamp(11px, 1.6vw, 15px); }
.ts-threads i { display: flex; gap: 3px; font-style: normal; flex-wrap: wrap; justify-content: flex-end; }
.ts-threads em { font: 700 10px var(--f-label, sans-serif); font-style: normal; padding: 2px 6px; border-radius: 999px; background: var(--c); color: #1A0F1C; }
.ts-cloud { text-align: center; width: 100%; }
.ts-cloud .n79 { display: block; font: 700 clamp(34px, 8vw, 64px) var(--f-label, sans-serif); color: var(--lime); line-height: 1; }
.ts-cloud > p { margin: 0 0 8px; letter-spacing: .2em; text-transform: uppercase; font-size: 12px; color: #CFC6D6; }
.ts-cloud div { display: flex; flex-wrap: wrap; gap: 5px 7px; justify-content: center; }
.ts-cloud span { font-size: clamp(9px, 1.5vw, 13px); padding: 2px 9px; border-radius: 999px; border: 1px solid var(--c); }
.ts-cloud span.ft { background: var(--c); color: #1A0F1C; font-weight: 700; }
.ts-map { display: grid; gap: 8px; justify-items: center; height: 100%; width: 100%; }
.ts-map img { max-height: calc(100% - 28px); max-width: 100%; object-fit: contain; }
.ts-map p { margin: 0; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #CFC6D6; }
.et-cap { margin: 12px 6px 0; font-size: 15px; line-height: 1.5; min-height: 3em; }
.et-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 10px 6px 0; }
.et-dots { display: flex; gap: 6px; } .et-dots i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: .25; cursor: pointer; } .et-dots i.on { opacity: 1; background: var(--lime); }
.panel.etalk .stage-slides { background: #1A0F1C; }
@media (max-width: 560px) { .et { padding: 2%; } .ts-threads { grid-template-columns: 1fr; } .et-cap { font-size: 14px; } }
.ts-html { display: flex; align-items: center; justify-content: center; height: 100%; }
.ts-html .viz { max-height: 100%; width: auto; max-width: 100%; }
.et-nav .btn { white-space: nowrap; padding-left: 14px; padding-right: 14px; }
.ts .rip:nth-child(n+5) { display: none; }
.panel.etalk .stage-hit { z-index: 2; }
.panel.etalk .et { z-index: 1; }
/* the dark picture area keeps light ink in light mode too */
.talk-thumb, .panel.etalk .ets { --ink: #F1EEF2; --muted: #CFC6D6; --line: rgba(241,238,242,.4); color: #F1EEF2; }
.talk-thumb .viz { opacity: .55; }
.talk-thumb .viz text, .panel.etalk .viz text { fill: #F1EEF2; }
.talk-thumb .viz .vz-nt, .panel.etalk .viz .vz-nt { fill: #0D090F; }
.panel.etalk .stage-cap, .panel.etalk .et-cap { color: var(--ink); }
.panel.etalk .stage-cap { color: var(--muted); }
.ts .fld rect { fill: none; stroke: var(--c); stroke-width: 1.6; }
.ts .fld text { font: 600 12px var(--f-label, sans-serif); letter-spacing: .06em; fill: #F1EEF2; }
.ts .fld rect { fill: #1A0F1C; }
.et-cap:empty { display: none; }
/* ---- the story of a research area: a small sound player inside the card ---- */
.aplay { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 999px; background: color-mix(in srgb, var(--c, var(--lime)) 12%, transparent); }
.aplay .ap-btn { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer; background: var(--c, var(--lime)); color: #0D090F; display: grid; place-items: center; }
.aplay .ap-btn .ic { width: 0; height: 0; margin-left: 3px; border-left: 12px solid currentColor; border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.aplay.playing .ap-btn .ic { width: 12px; height: 14px; margin: 0; border: 0; background: linear-gradient(90deg, currentColor 0 4px, transparent 4px 8px, currentColor 8px 12px); }
.aplay .ap-mid { flex: 1; min-width: 0; display: grid; gap: 7px; }
.aplay .ap-title { font-family: var(--f-label); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.aplay .ap-bar { height: 14px; display: flex; align-items: center; cursor: pointer; position: relative; }
.aplay .ap-bar::before { content: ""; position: absolute; left: 0; right: 0; height: 4px; border-radius: 4px; background: color-mix(in srgb, var(--ink) 18%, transparent); }
.aplay .ap-bar i { position: relative; display: block; height: 4px; width: 0; border-radius: 4px; background: var(--c, var(--lime)); }
.aplay .ap-bar:focus-visible { outline: 2px solid var(--c, var(--lime)); outline-offset: 3px; border-radius: 4px; }
.aplay .ap-left { flex: none; min-width: 3.2em; text-align: right; font-variant-numeric: tabular-nums; font-size: 13px; color: var(--muted); }
.aplay .ap-speed { flex: none; font: inherit; font-size: 12px; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: inherit; cursor: pointer; }
.aplay.failed { opacity: .6; }
@media (max-width: 560px) { .aplay { gap: 8px; padding: 8px 10px; } .aplay .ap-title { font-size: 10px; } }
.panel .chips + .small { margin-top: 16px; }
.panel .chips { margin-bottom: 4px; }
/* a project's pictures, played inside its card */
.galthumb .galcount { position: absolute; left: 12px; bottom: 10px; font-family: var(--f-label); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #F1EEF2; background: rgba(13,9,15,.6); padding: 5px 10px; border-radius: 999px; }
.panel.stage.gal { width: min(940px, calc(100vw - 32px)); }
.galstage { position: relative; background: #0D090F; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; max-height: min(66vh, 640px); width: 100%; }
.galview { position: absolute; inset: 0; touch-action: none; cursor: zoom-in; outline: none; }
.galview.zoomed { cursor: grab; }
.galview:focus-visible { box-shadow: inset 0 0 0 2px var(--lime); }
.galimg { width: 100%; height: 100%; object-fit: contain; display: block; transform-origin: 50% 50%; user-select: none; -webkit-user-drag: none; opacity: 0; transition: opacity .5s; will-change: transform; }
.galimg.in { opacity: 1; }
.gal-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(240,235,247,.5); background: rgba(13,9,15,.55); color: #F0EBF7; font-size: 26px; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0 0 4px; }
.gal-nav.prev { left: 10px; } .gal-nav.next { right: 10px; }
.gal-zoom { position: absolute; right: 10px; bottom: 10px; z-index: 3; display: flex; gap: 6px; }
.gal-zoom button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(240,235,247,.5); background: rgba(13,9,15,.6); color: #F0EBF7; font-size: 20px; line-height: 1; cursor: pointer; }
.gal-cap { margin: 12px 6px 0; font-size: 15px; line-height: 1.45; min-height: 3em; }
.gal-bar { display: flex; align-items: center; gap: 12px; margin: 8px 6px 0; }
.gal-play { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer; background: var(--lime); color: #0D090F; display: grid; place-items: center; }
.gal-play .ic { width: 12px; height: 14px; background: linear-gradient(90deg, currentColor 0 4px, transparent 4px 8px, currentColor 8px 12px); }
.gal.paused .gal-play .ic { width: 0; height: 0; margin-left: 3px; background: none; border-left: 12px solid currentColor; border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.gal-dots { display: flex; gap: 6px; flex: 1; flex-wrap: wrap; } .gal-dots i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: .25; cursor: pointer; } .gal-dots i.on { opacity: 1; background: var(--lime); }
.gal-hint { font-size: 11px; letter-spacing: .06em; color: var(--muted); }
@media (max-width: 560px) { .gal-hint { display: none; } .gal-cap { font-size: 14px; } .gal-nav { width: 36px; height: 36px; } }

/* deep-zoom panels (the tiled drawings stay sharp at any zoom) */
.galosd { position: absolute !important; inset: 0; width: 100%; height: 100%; z-index: 1; background: #0D090F; }
.galview.deep .galimg { display: none; }
.galview.deep { cursor: grab; }

/* the three pillars under the logo are quiet shortcuts: they look like plain text */
.title-block .pillars a { color: inherit; text-decoration: none; letter-spacing: inherit; }
.title-block .pillars a:focus-visible { outline: 1px dotted currentColor; outline-offset: 4px; }

/* ---------- the Zuiora room: a home to look around in ---------- */
#room { position: fixed; inset: 0; z-index: 1; display: none; touch-action: pan-y; }
#room canvas { display: block; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
#room canvas.grab { cursor: grabbing; }
.room-turn { position: fixed; z-index: 35; top: 50%; width: 46px; height: 46px; margin-top: -23px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-size: 26px; line-height: 1; display: grid; place-items: center; padding: 0 0 4px; }
.room-turn.l { left: 14px; } .room-turn.r { right: 14px; }
.room-turn:hover, .room-turn:focus-visible { background: var(--card-solid); }
.room-hint { position: fixed; z-index: 35; left: 50%; bottom: 150px; transform: translateX(-50%); margin: 0; font-family: var(--f-label); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); transition: opacity .6s; pointer-events: none; white-space: nowrap; }
@media (max-width: 760px) { .room-turn { top: auto; bottom: 150px; margin-top: 0; } .room-turn.l { left: 14px; } .room-turn.r { right: 14px; } .room-hint { bottom: 210px; } }

/* the Zuiora card: smaller than the standard hero card */
.panel.hero.zhero { width: min(400px, calc(100vw - 40px)); padding: 22px 26px 24px; }          /* the Zuiora card in the room: small, so the room stays the picture */
.panel.hero.zhero .eyebrow { margin-bottom: 8px; font-size: 11px; letter-spacing: .14em; }
.panel.hero.zhero h2 { font-size: clamp(24px, 2.6vw, 32px); margin: 0; }
.panel.hero.zhero .lead { font-size: 15.5px; line-height: 1.45; margin: 6px 0 0; }

/* the link in the middle of the teleporter rings */
.room-portal { position: fixed; left: 0; top: 0; z-index: 36; padding: 12px 20px; border-radius: 999px; border: 2px solid var(--lime); background: var(--card-solid); color: var(--ink); font-family: var(--f-label); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; white-space: nowrap; opacity: 0; pointer-events: none; box-shadow: 0 6px 22px rgba(0,0,0,.25); }
.room-portal:hover, .room-portal:focus-visible { background: var(--lime); color: var(--on-accent); }

/* the teleporter link: the inner ring of the gate itself, behind the cards; its words sit in the middle of the rings; it glows once the card has gone */
#portal-link { --g: 0; position: fixed; left: 0; top: 0; z-index: 1; width: 300px; height: 300px; border-radius: 50%; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--lime); font-family: var(--f-label); font-size: 22px; line-height: 1.5; letter-spacing: .24em; text-indent: .24em; text-transform: uppercase; text-decoration: none; text-shadow: 0 0 calc(10px + 18px * var(--g)) color-mix(in srgb, var(--lime) 80%, transparent); opacity: 0; pointer-events: none; }
#portal-link::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--lime) 55%, transparent) 0%, color-mix(in srgb, var(--lime) 22%, transparent) 55%, transparent 72%); opacity: calc(var(--g) * 0.95); box-shadow: 0 0 calc(70px * var(--g)) calc(18px * var(--g)) color-mix(in srgb, var(--lime) 55%, transparent); animation: portalGlow 2.6s ease-in-out infinite; pointer-events: none; }
@keyframes portalGlow { 0%, 100% { transform: scale(0.94); } 50% { transform: scale(1.06); } }
#portal-link span { position: relative; }
#portal-link:hover::before, #portal-link:focus-visible::before { opacity: 1; }
:root[data-theme="light"] #portal-link { color: #7E8418; text-shadow: none; }
@media (prefers-reduced-motion: reduce) { #portal-link::before { animation: none; } }
/* the Psi-fig card: title, a small line under it, then the words */
#psi-card .psi-title { font-family: var(--f-display); font-weight: 400; font-size: 20px; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 4px; }
#psi-card .psi-sub { font-size: 12.5px; line-height: 1.45; color: var(--muted); margin: 0 0 10px; }

/* ---------- type: larger, easier to read, on every screen (cards, doors, labels, controls) ---------- */
.panel { font-size: 19px; }
.panel .small { font-size: 16.5px; }
.panel .eyebrow { font-size: 13.5px; }
.chips li { font-size: 14.5px; }
.door .sub { font-size: 15.5px; }
.door .go, #choose span, #status, #where, .tool, #plan-toggle, #skip { font-size: 13.5px; }
.niche .eyebrow { font-size: 12.5px; }
.talk-side .small, .stage-side .small { font-size: 15.5px; }
.talk-side .follow, .stage-side .follow { font-size: 13px; }
.stage-cap, .stage-speed { font-size: 12.5px; }
.btn.sm, .tag { font-size: 12.5px; }
@media (max-width: 759px) {
  .panel { font-size: 17.5px; }
  .panel .small { font-size: 15.5px; }
  .door .sub { font-size: 14.5px; }
  .door .go, #choose span, #status, .tool, #plan-toggle, #skip { font-size: 13px; }
}

/* first screen: Research · Design · Pedagogy sit close under the logo (the artwork keeps a transparent band along its bottom edge; the words are drawn up into it, the artwork itself is never changed) */
.title-block { --lw: clamp(240px, 50vw, 600px); }
.title-block img.lockup-reg { width: var(--lw); margin-bottom: 0; }
.title-block .pillars { margin-top: calc(var(--lw) * -0.036); }

/* phones: the Psi-fig card rests above the two-line instruction under the figure, never over it */
@media (max-width: 760px) { #psi-card { bottom: 158px; max-height: calc(100vh - 290px); } }

/* ---- Zuiora room: the voice that walks with you, the pointers on its zones, and the small pause circle ---- */
.panel.hero.zhero { background: color-mix(in srgb, var(--card-solid) 38%, transparent); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 6px 22px rgba(0,0,0,.22); }          /* glass you can see the room through */
.panel.hero.zhero .eyebrow, .panel.hero.zhero h2, .panel.hero.zhero .lead { text-shadow: 0 1px 7px color-mix(in srgb, var(--card-solid) 92%, transparent), 0 0 2px color-mix(in srgb, var(--card-solid) 92%, transparent); }
.panel.hero.zhero > * { opacity: var(--zc, 1); }          /* the words fade first when the card folds into the small play circle */
.zhead { display: flex; align-items: center; justify-content: space-between; gap: 14px; }          /* the name, and the play/pause circle in the empty space to its right */
.zhero .aplay.zv { flex: none; gap: 0; margin: 0; padding: 0; border: 0; background: none; }
.zhero .aplay.zv .ap-btn { width: 34px; height: 34px; }
.zhero .aplay.zv .ap-btn .ic { margin-left: 2px; border-left-width: 10px; border-top-width: 6px; border-bottom-width: 6px; }
.zhero .aplay.zv.playing .ap-btn .ic { width: 10px; height: 12px; margin: 0; background: linear-gradient(90deg, currentColor 0 3.5px, transparent 3.5px 6.5px, currentColor 6.5px 10px); }
.zhero .aplay.zv .ap-mid { display: none; }
.zhero .aplay.zv .ap-left { display: block; flex: none; min-width: 0; margin-right: 10px; font-family: var(--f-label); font-size: 12.5px; letter-spacing: .14em; color: var(--ink); font-variant-numeric: tabular-nums; }
.zplay { position: relative; flex: none; width: 44px; height: 44px; display: grid; place-items: center; }          /* the play/pause circle with its ring */
.zring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); pointer-events: none; overflow: visible; }
.zr-bg { fill: none; stroke: color-mix(in srgb, var(--lime) 24%, transparent); stroke-width: 2.4; }
.zr-arc { fill: none; stroke: var(--lime); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 122.52 122.52; transition: stroke-dasharray .3s linear; }          /* the arc unravels as the voice plays */
#zvoice .zring { inset: -5px; width: calc(100% + 10px); height: calc(100% + 10px); }
#zpoints { position: fixed; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
/* a pointer drawn like an architect's callout: a dot on the thing, a leader that bends, and its name sitting above the horizontal part; it glows while the voice speaks about it */
.zpt { --d: 34px; position: absolute; left: 0; top: 0; width: 0; height: 0; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; opacity: 0; pointer-events: none; cursor: pointer; will-change: transform, opacity; transition: color .35s ease; -webkit-tap-highlight-color: transparent; }
.zpt .hit { position: absolute; left: -22px; top: -22px; width: 44px; height: 44px; border-radius: 50%; }
.zpt .dot { position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, var(--bg) 60%, transparent); transition: transform .35s ease; }
.zpt .dot::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 1px solid currentColor; opacity: 0; }
.zpt .leg { position: absolute; left: 0; top: 0; width: calc(var(--d) * 1.4142); height: 0; border-top: 1.5px solid currentColor; transform-origin: 0 0; transform: rotate(-45deg); }
.zpt .lab { position: absolute; left: var(--d); top: calc(var(--d) * -1); transform: translateY(-100%); padding: 0 14px 5px 3px; border-bottom: 1.5px solid currentColor; font-family: var(--f-label); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; color: currentColor; text-shadow: 0 1px 8px color-mix(in srgb, var(--bg) 90%, transparent), 0 0 3px color-mix(in srgb, var(--bg) 90%, transparent); }
.zpt.flip .leg { transform: rotate(-135deg); }
.zpt.flip .lab { left: auto; right: var(--d); padding: 0 3px 5px 14px; text-align: right; }
.zpt.down .leg { transform: rotate(45deg); }
.zpt.down .lab { top: var(--d); }
.zpt.flip.down .leg { transform: rotate(135deg); }
.zpt:hover .dot, .zpt:focus-visible .dot { transform: scale(1.3); }
.zpt:focus-visible { outline: none; }
.zpt:focus-visible .hit { outline: 2px solid var(--lime); outline-offset: 2px; }
.zpt.on { color: var(--lime); filter: drop-shadow(0 0 2px var(--lime)) drop-shadow(0 0 8px color-mix(in srgb, var(--lime) 95%, transparent)) drop-shadow(0 0 22px color-mix(in srgb, var(--lime) 80%, transparent)); }
.zpt.on .dot { transform: scale(1.75); }
.zpt.on .leg { border-top-width: 2px; }
.zpt.on .lab { border-bottom-width: 2px; font-size: 12px; text-shadow: 0 0 10px color-mix(in srgb, var(--lime) 85%, transparent), 0 0 2px color-mix(in srgb, var(--bg) 90%, transparent); }
.zpt.on .dot::after { animation: zpulse 1.8s ease-out infinite; }
@keyframes zpulse { 0% { transform: scale(.6); opacity: .85; } 100% { transform: scale(1.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .zpt.on .dot::after { animation: none; opacity: .6; } }
#zvoice { position: fixed; z-index: 41; top: 62px; left: 50%; width: 38px; height: 38px; margin-left: -19px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; background: var(--lime); color: var(--bg); display: grid; place-items: center; opacity: 0; pointer-events: none; transform: translateY(-6px) scale(.9); transition: opacity .35s ease, transform .35s ease; box-shadow: 0 6px 22px rgba(0, 0, 0, .35); }
#zvoice.on { opacity: 1; pointer-events: auto; transform: none; }
#zvoice .ic { width: 0; height: 0; margin-left: 3px; border-left: 11px solid currentColor; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
#zvoice.playing .ic { width: 12px; height: 14px; margin: 0; border: 0; background: linear-gradient(90deg, currentColor 0 4px, transparent 4px 8px, currentColor 8px 12px); }
#zvoice:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
@media (max-width: 760px) { #zvoice { top: 54px; } }
#zcue { position: fixed; z-index: 41; top: 50%; right: 12px; transform: translateY(-50%); display: flex; flex-direction: row-reverse; align-items: center; gap: 8px; padding: 8px 12px 8px 14px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--lime) 60%, transparent); background: color-mix(in srgb, var(--bg) 82%, transparent); color: var(--ink); font-family: var(--f-label); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .3s ease; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
#zcue.on { opacity: 1; pointer-events: auto; }
#zcue .ar { width: 8px; height: 8px; border-top: 2px solid var(--lime); border-right: 2px solid var(--lime); transform: rotate(45deg); }
#zcue.left { right: auto; left: 12px; flex-direction: row; padding: 8px 14px 8px 12px; }
#zcue.left .ar { transform: rotate(-135deg); }
