/* ------------------------------------------------------------------
   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); }

/* a long list of questions scrolls inside its card, so an opened answer never pushes the card under the header */
.faq-card .faq { max-height: 54vh; overflow-y: auto; padding-right: 3px; scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--accent) 55%, transparent) transparent; }
.faq-card .faq::-webkit-scrollbar { width: 5px; }
.faq-card .faq::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--accent) 55%, transparent); border-radius: 5px; }
/* the five groups by who is asking: each opens to its own questions */
.faq .faq-more { margin: 10px 0 2px; font-family: var(--f-label); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.faq .faq-aud > summary { font-family: var(--f-label); font-weight: 400; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; line-height: 1.4; }
.faq .faq-aud > summary .faq-n { margin-left: 10px; font-family: var(--f-body); font-size: 12px; letter-spacing: 0; color: var(--muted); }
.faq .faq-aud > div { display: flex; flex-direction: column; gap: 6px; padding: 0 8px 10px; }
.faq .faq-aud > div details { background: transparent; }
/* the share icon in a card's corner (its address is the card's own mini-page), and the small note that says the link is copied */
.panel .share { position: absolute; top: 12px; right: 12px; z-index: 3; }
.niche .share { position: absolute; top: 12px; left: 50%; margin-left: -18px; z-index: 3; width: 36px; height: 36px; background: var(--card-solid); }          /* the story arch is round at the top, so its icon sits at the top of the arch, where the keystone would be */
.share { width: 38px; height: 38px; padding: 0; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 62%, transparent); color: var(--ink); cursor: pointer; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: border-color .2s, color .2s; }
.share:hover, .share:focus-visible { border-color: var(--accent); color: var(--accent); }
#toast { position: fixed; z-index: 60; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translate(-50%, 8px); max-width: calc(100vw - 32px); padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--card-solid); color: var(--ink); font-family: var(--f-label); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; text-align: center; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
#toast.on { opacity: 1; transform: translate(-50%, 0); }

/* the secret passage: the instruction line congratulates whoever arrived through the three words under the logo (two lines: the cheer, then the bonus shortcut) */
#status.note { color: var(--accent); line-height: 1.7; }
#status.note span { display: block; text-wrap: balance; }

/* the search: its own small button beside the Light button, and the window it opens */
.tool-icon { display: inline-grid; place-items: center; width: 42px; height: 36px; padding: 0; }
#find { position: fixed; inset: 0; z-index: 70; display: flex; justify-content: center; align-items: flex-start; padding: max(76px, calc(env(safe-area-inset-top) + 64px)) 14px 14px; }
#find[hidden] { display: none; }
#find .find-scrim { position: absolute; inset: 0; background: color-mix(in srgb, var(--bg) 72%, transparent); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
#find .find-card { position: relative; width: min(560px, 100%); max-height: calc(100vh - 110px); overflow-y: auto; padding: 18px 18px 14px; border: 1px solid var(--line); border-radius: var(--card-radius, 18px); background: var(--card-solid); box-shadow: var(--card-shadow, 0 10px 30px rgba(0,0,0,.3)); }
#find .find-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
#find .find-title { font-family: var(--f-label); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
#find .find-x { width: 32px; height: 32px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink); font-size: 20px; line-height: 1; cursor: pointer; }
#find .find-x:hover, #find .find-x:focus-visible { border-color: var(--accent); color: var(--accent); }
#find .find-field { display: flex; align-items: center; gap: 10px; padding: 0 14px; border: 1px solid var(--line); border-radius: 14px; background: color-mix(in srgb, var(--lav) 8%, transparent); color: var(--muted); }
#find .find-field:focus-within { border-color: var(--accent); color: var(--accent); }
#find #find-input { flex: 1; min-width: 0; padding: 14px 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-family: var(--f-body); font-size: 17px; }
#find #find-input::placeholder { color: var(--muted); opacity: .8; }
#find #find-input::-webkit-search-cancel-button { filter: grayscale(1); }
#find .find-msg { margin: 12px 2px 0; font-size: 14px; line-height: 1.45; color: var(--muted); }
#find #find-list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
#find #find-list li { position: relative; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "label label" "line why"; column-gap: 12px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; background: color-mix(in srgb, var(--lav) 8%, transparent); cursor: pointer; }
#find #find-list li.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
#find .fo-label { grid-area: label; font-family: var(--f-link); font-weight: 700; font-size: 15px; line-height: 1.3; }
#find .fo-line { grid-area: line; margin-top: 2px; font-size: 13px; line-height: 1.4; color: var(--muted); }
#find .fo-why { grid-area: why; align-self: end; justify-self: end; margin-top: 3px; font-family: var(--f-label); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); white-space: nowrap; max-width: 40vw; overflow: hidden; text-overflow: ellipsis; }
#find .find-hint { margin: 12px 2px 0; font-size: 12px; color: var(--muted); }

/* ---------- Pictures that grow (Nikita, 17 Oct 2026: "enlarge my photos when someone hovers above them... the same for all the images in the doors") ---------- */
.door .door-art { transition: width .45s cubic-bezier(.2,.8,.2,1), height .45s cubic-bezier(.2,.8,.2,1), margin-left .45s cubic-bezier(.2,.8,.2,1), top .45s cubic-bezier(.2,.8,.2,1); }
.door .inner.hasart { transition: padding-top .45s cubic-bezier(.2,.8,.2,1), transform .3s, filter .3s; }
@media (hover: hover) {
  .door:hover .door-art, .door:focus-visible .door-art { width: 196px; height: 196px; margin-left: -98px; top: 24px; }
  .door:hover .inner.hasart, .door:focus-visible .inner.hasart { padding-top: 236px; }
}
.mid .door .door-art { width: 160px; height: 160px; margin-left: -80px; top: 24px; }
.mid .door .inner.hasart { padding-top: 200px; }
.portrait { transition: width .45s cubic-bezier(.2,.8,.2,1), height .45s cubic-bezier(.2,.8,.2,1); cursor: zoom-in; }
.portrait.big { width: 220px; height: 220px; cursor: zoom-out; }
@media (hover: hover) { .portrait:hover { width: 220px; height: 220px; } }
@media (prefers-reduced-motion: reduce) { .door .door-art, .door .inner.hasart, .portrait { transition: none; } }
/* from research to a project (Nikita, 17 Oct 2026): in each research reading sheet, a short line and a way to the full page */
.doc .usebox { margin: 22px 0 26px; padding: 16px 18px; border-left: 3px solid var(--c, var(--lime)); background: color-mix(in srgb, var(--c, var(--lime)) 9%, transparent); border-radius: 0 10px 10px 0; display: grid; gap: 12px; justify-items: start; }
.doc .usebox p { margin: 0; }
/* the research behind Zuiora: one small line on the small card */
.zhero .zres { margin: 6px 0 0; font-size: 13px; }
.zhero .zres a { color: var(--lime); text-decoration: underline; text-underline-offset: 3px; }
/* the research behind a design project (Nikita, 17 Oct 2026): one small line on the project card, each name opens its research page */
.resby a { color: var(--lime); text-decoration: underline; text-underline-offset: 3px; }
/* ---------- Justified text (Nikita, 29 Oct 2026: "make it all justified at both sides") ----------
   Every paragraph, list item, caption and answer is set flush on both sides. Hyphenation keeps the
   word gaps even on narrow phone cards. One-line labels, buttons and titles are not paragraphs, so
   they keep their place (a single line has nothing to spread). */
p, li, dd, blockquote, figcaption, .faq details > div, .doc .cap { text-align: justify; text-justify: inter-word; -webkit-hyphens: auto; hyphens: auto; }

/* Musings (Nov 2026): the deeper readings in the Musings corridor carry a sign-off and a numbered list of sources */
.doc .signoff { font-style: italic; color: var(--muted); margin: 26px 0 18px; }
.doc ol.sources { padding-left: 22px; font-size: 14px; line-height: 1.5; }
.doc ol.sources li { margin-bottom: 8px; overflow-wrap: anywhere; }
.doc p a, .doc ol.sources a { color: var(--accent); }
.doc ol.sources li { text-align: left; -webkit-hyphens: none; hyphens: none; }

/* ---- Musings and essays in the reading sheet: inclusive reading (Nikita, 14 Nov 2026); the same rules as the readable pages (css/static.css) ---- */
@font-face { font-family: 'Atkinson Hyperlegible Next'; src: url('../assets/fonts/AtkinsonNext-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Atkinson Hyperlegible Next'; src: url('../assets/fonts/AtkinsonNext-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Atkinson Hyperlegible Next'; src: url('../assets/fonts/AtkinsonNext-latin-400-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Atkinson Hyperlegible Next'; src: url('../assets/fonts/AtkinsonNext-latin-ext-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; 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: 'Atkinson Hyperlegible Next'; src: url('../assets/fonts/AtkinsonNext-latin-ext-700-normal.woff2') format('woff2'); font-weight: 700; font-style: normal; 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; }
.doc.reading { font-family: 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', system-ui, sans-serif; font-size: calc(18px * var(--rs, 1)); line-height: 1.65; }
.doc.reading p, .doc.reading li { font-size: inherit; text-align: justify; text-justify: inter-word; -webkit-hyphens: auto; hyphens: auto; max-width: 68ch; }
.doc.reading ol.sources li { text-align: left; -webkit-hyphens: none; hyphens: none; }
.doc.reading h1, .doc.reading h3, .doc.reading h4 { font-family: inherit; font-weight: 700; text-transform: none; letter-spacing: 0; color: var(--ink); }
.doc.reading h1 { font-size: clamp(26px, 3.6vw, 36px); line-height: 1.2; }
.doc.reading h3 { font-size: 1.4em; line-height: 1.3; margin: 2em 0 .5em; }
.doc.reading h4 { font-size: 1.12em; line-height: 1.35; margin: 1.6em 0 .4em; }
.doc.reading .meta { font-size: .85em; margin: -8px 0 12px; }
.doc.reading p a:not(.btn), .doc.reading ol.sources a { font-family: inherit; font-weight: 400; color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.doc.reading.wide { line-height: 1.95; letter-spacing: .035em; word-spacing: .12em; }
.doc.reading.wide p, .doc.reading.wide li { margin-bottom: 1.3em; }
.doc.reading ol.sources { font-size: .85em; }
.doc .rtools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 24px; font-size: 15px; color: var(--muted); }
.doc .rtools button { font: inherit; font-size: 15px; color: var(--ink); background: transparent; border: 1px solid var(--line, rgba(127,127,127,.4)); border-radius: 999px; min-width: 44px; min-height: 44px; padding: 0 16px; cursor: pointer; }
.doc .rtools button[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.doc .rtools button:disabled, .rtools button:disabled { opacity: .4; cursor: default; }
.doc .rtools button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.doc .rtools .rs-state { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* the window at the first junction (Nikita, 1 Dec 2026): opposite the founder's door, a BAY of three arched windows, one for each way to work with us.
   As she drew it: the bay juts out towards you in one-point perspective (the middle window stands forward; the side windows run back to the wall, their outer edges farther and smaller);
   each window has only its round head, no other glazing bars; the sill follows the base of each window; each name sits inside its window */
.door.window { position: relative; height: 420px; width: 270px; }
.door.window:hover .inner { transform: none; filter: none; }
.door.window .inner, .mid .door.window .inner { height: auto; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; overflow: visible; }
.door.window .inner::before { display: none; }
.door.window .pane { display: flex; justify-content: center; align-items: flex-start; perspective: 380px; perspective-origin: 50% 122px; padding-top: 4px; }      /* one-point perspective (Nikita, 2 Dec 2026): the eye at the middle of the centre window, which is the far face; the side windows come toward you */
.door.window .wpane { position: relative; display: block; text-decoration: none; color: var(--ink); width: 62px; transform-style: preserve-3d; }
.door.window .wpane:nth-child(2) { width: 106px; z-index: 1; }      /* the flat centre window is the widest; the two in perspective read narrower (Nikita, 2 Dec 2026) */
.door.window .wpane:first-child { transform: rotateY(18deg); transform-origin: right center; }
.door.window .wpane:last-child { transform: rotateY(-18deg); transform-origin: left center; }
.door.window .glass { display: flex; align-items: center; justify-content: center; width: 100%; height: 236px; border: 3px solid var(--c); border-radius: 31px 31px 2px 2px; box-sizing: border-box; padding: 33px 3px 0;
  background:
    linear-gradient(var(--c), var(--c)) 50% 35px / 100% 3px no-repeat,
    linear-gradient(160deg, color-mix(in srgb, var(--c) 6%, var(--card)) 0%, color-mix(in srgb, var(--c) 6%, var(--card)) 40%, color-mix(in srgb, #F1EEF2 13%, var(--card)) 46%, color-mix(in srgb, var(--c) 8%, var(--card)) 54%, color-mix(in srgb, var(--c) 14%, var(--card)) 100%);
  box-shadow: var(--card-shadow); transition: filter .25s; }
.door.window .wpane:nth-child(2) .glass { border-radius: 53px 53px 2px 2px; background-position: 50% 53px, 0 0; padding-top: 56px; }
.door.window .wpane:not(:nth-child(2)) .glass { background-position: 50% 31px, 0 0; } .door.window .wpane:not(:nth-child(2)) .wl { font-size: 11px; }
.door.window .wl { font-family: var(--f-body, inherit); font-size: 14px; font-weight: 500; letter-spacing: .01em; line-height: 1.2; text-align: center; color: var(--ink); }
.door.window .wsill { display: block; height: 9px; margin: -1px -5px 0; border-radius: 2px; background: var(--c); opacity: .7; }
.door.window .wpane { transition: transform .3s, filter .3s; }
.door.window .glass { transition: box-shadow .3s; }
/* the same highlight as a door (Nikita, 1 Dec 2026): the window you point at lifts a little, brightens and gains the door's soft ring of its colour */
.door.window .wpane:hover, .door.window .wpane:focus-visible { filter: brightness(1.12); }
.door.window .wpane:hover .glass, .door.window .wpane:focus-visible .glass { transform: translateY(-6px); }
.door.window .wpane:first-child:hover, .door.window .wpane:first-child:focus-visible { transform: rotateY(18deg); }
.door.window .wpane:last-child:hover, .door.window .wpane:last-child:focus-visible { transform: rotateY(-18deg); }
.door.window .wpane:hover .glass, .door.window .wpane:focus-visible .glass { box-shadow: var(--card-shadow), 0 0 0 6px color-mix(in srgb, var(--c) 22%, transparent); }
.door.window .wpane:focus-visible { outline: none; }
.door.window .wname { display: block; margin-top: 20px; text-decoration: none; color: var(--ink); }
.door.window .wname .name, .door.window .wname .sub { display: block; }
.door.window .wname .sub { margin-top: 6px; }
.door.window .wname .go { position: static; display: block; margin-top: 10px; }
@media (max-width: 700px) { .door.window { height: 360px; width: 228px; } .door.window .wpane { width: 54px; } .door.window .wpane:nth-child(2) { width: 90px; } .door.window .glass { height: 198px; border-radius: 27px 27px 2px 2px; padding-top: 28px; } .door.window .wpane:not(:nth-child(2)) .glass { background-position: 50% 26px, 0 0; } .door.window .wpane:nth-child(2) .glass { border-radius: 45px 45px 2px 2px; background-position: 50% 44px, 0 0; padding-top: 48px; } .door.window .wl { font-size: 12px; } .door.window .wpane:not(:nth-child(2)) .wl { font-size: 10px; } .door.window .wname { margin-top: 14px; } }

/* research map: the bar of threads sits at the very top, the card small in the bottom-left corner (Nikita, 2 Dec 2026: "reduce the size of the pop-ups and keep them more towards the sides... move it to the top") */
#journey.space #jroutes { top: 18px; left: 16px; max-width: calc(100vw - 160px); gap: 5px; }
#journey.space #jroutes button { font-size: 9.5px; padding: 5px 10px; }
#journey.space #jcap { left: 16px; bottom: 16px; width: min(320px, calc(100vw - 32px)); padding: 10px 14px 12px; border-radius: 14px; }
#journey.space #jcap h2 { font-size: 13.5px; margin: 2px 0 6px; }
#journey.space #jcap .sp-t { font-size: 14px; margin: 2px 0 8px; }
#journey.space .jc-eyebrow { font-size: 10px; } #journey.space .jc-eyebrow b { font-size: 11px; }
#journey.space .jc-text, #journey.space .jc-cross { font-size: 12px; margin-bottom: 6px; }
#journey.space .jc-cross button { font-size: 11px; padding: 3px 9px; }
#journey.space .jc-row .btn { font-size: 11px; padding: 8px 14px; }
#journey.space #space-hint { top: 66px; }
@media (max-width: 760px) { #journey.space #jroutes { top: 14px; left: 12px; max-width: calc(100vw - 76px); flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } #journey.space #jcap { left: 10px; right: auto; bottom: 12px; width: min(300px, calc(100vw - 20px)); } #journey.space #space-hint { top: 52px; } }
/* the bay, after Nikita's three photos (2 Dec 2026): a pier of wall between each window, one ledge running along all three */
.door.window .wpane:nth-child(2) { margin: 0 9px; }
.door.window .wpane:nth-child(2) .wsill { margin: -1px -14px 0; }
@media (max-width: 700px) { .door.window .wpane:nth-child(2) { margin: 0 7px; } .door.window .wpane:nth-child(2) .wsill { margin: -1px -11px 0; } }
/* the bay as an alcove, after Nikita's drawing (2 Dec 2026): each window sits in its own face of wall, with the head track along the top and a panel of wall below the ledge down to the skirting; the faces turn with their windows, so the top and the floor line follow the one-point perspective */
.door.window .wpane { padding: 14px 8px 0; border-top: 4px solid var(--c); border-bottom: 3px solid var(--c); background: color-mix(in srgb, var(--c) 9%, transparent); box-sizing: content-box; }
.door.window .wpane:nth-child(2) { margin: 0; padding: 14px 10px 0; }
.door.window .wpane .glass { transition: box-shadow .3s, transform .3s; }
.door.window .wpane .wsill, .door.window .wpane:nth-child(2) .wsill { margin: -1px -4px 0; }
.door.window .wpane::after { content: ""; display: block; height: 46px; margin: 0 -8px; border-top: 1px solid color-mix(in srgb, var(--c) 45%, transparent); background: linear-gradient(transparent 70%, color-mix(in srgb, var(--c) 10%, transparent)); }
.door.window .wpane:nth-child(2)::after { margin: 0 -10px; }
.door.window .pane { perspective-origin: 50% 136px; }
@media (max-width: 700px) { .door.window .wpane { padding: 10px 5px 0; } .door.window .wpane:nth-child(2) { margin: 0; padding: 10px 7px 0; } .door.window .wpane::after { height: 34px; margin: 0 -5px; } .door.window .wpane:nth-child(2)::after { margin: 0 -7px; } .door.window .pane { perspective-origin: 50% 116px; } }
/* true perspective for the side windows (Nikita, 2 Dec 2026: "the semicircular arches... also need to follow the same perspective", "a little narrower"): the side windows are real arched windows turned toward you, so their arches skew with the turn instead of being drawn narrow; all three are slimmer, closer to her alcove drawing */
.door.window .pane { perspective: 340px; }
.door.window .wpane { width: 74px; }
.door.window .wpane:nth-child(2) { width: 88px; }
.door.window .wpane:first-child, .door.window .wpane:first-child:hover, .door.window .wpane:first-child:focus-visible { transform: rotateY(34deg); }
.door.window .wpane:last-child, .door.window .wpane:last-child:hover, .door.window .wpane:last-child:focus-visible { transform: rotateY(-34deg); }
.door.window .glass { border-radius: 37px 37px 2px 2px; padding-top: 40px; }
.door.window .wpane:not(:nth-child(2)) .glass { background-position: 50% 37px, 0 0; }
.door.window .wpane:nth-child(2) .glass { border-radius: 44px 44px 2px 2px; background-position: 50% 44px, 0 0; padding-top: 48px; }
@media (max-width: 700px) { .door.window .wpane { width: 62px; } .door.window .wpane:nth-child(2) { width: 74px; } .door.window .glass { border-radius: 31px 31px 2px 2px; padding-top: 33px; } .door.window .wpane:not(:nth-child(2)) .glass { background-position: 50% 31px, 0 0; } .door.window .wpane:nth-child(2) .glass { border-radius: 37px 37px 2px 2px; background-position: 50% 37px, 0 0; padding-top: 40px; } }
/* no head track or floor line (Nikita, 2 Dec 2026: "you don't need those floor lines and roof lines") */
.door.window .wpane { border-top: 0; border-bottom: 0; }
.door.window .wpane::after { background: none; }
/* the side arches spring from the same line as the centre arch where the windows meet (Nikita, 2 Dec 2026: "they should be converging at the same line as the arch base of the central window"): the side glass starts lower by the difference in arch radius, and ends at the same sill */
.door.window .wpane:not(:nth-child(2)) .glass { margin-top: 7px; height: 229px; }
@media (max-width: 700px) { .door.window .wpane:not(:nth-child(2)) .glass { margin-top: 6px; height: 192px; } }
/* research map: no frosted glass over the moving map; re-blurring it every frame slowed the map (Nikita, 2 Dec 2026, "INP issue"); the buttons and the card get a more solid fill instead */
#journey.space #jroutes button, #journey.space #jcap, #journey.space #space-x, #journey.space #space-tip { -webkit-backdrop-filter: none; backdrop-filter: none; }
#journey.space #jroutes button { background: color-mix(in srgb, var(--card-solid) 94%, transparent); }
#journey.space #jcap { background: color-mix(in srgb, var(--card-solid) 94%, transparent); }
#journey.space #space-cv { touch-action: none; }      /* the map handles its own pinch and swipe on phones */
/* the 2D plan of one research area, drawn the way the Project E Miro board draws it (Nikita, 2 Dec 2026; js/plan.js) */
@font-face { font-family: "Roboto Slab"; src: url("../assets/fonts/roboto-slab-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Roboto Slab"; src: url("../assets/fonts/roboto-slab-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
#plan2d { position: fixed; inset: 0; z-index: 140; display: none; background: #F4F2F0; color: #2B1A22; }
#plan2d.on { display: block; }
:root[data-theme="dark"] #plan2d { background: #1C1418; }
#plan2d .p2-svg { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: grab; display: block;
  background-image: radial-gradient(circle, rgba(60, 40, 50, .14) 1px, transparent 1.2px); background-size: 22px 22px; }
:root[data-theme="dark"] #plan2d .p2-svg { background-image: radial-gradient(circle, rgba(241, 238, 242, .10) 1px, transparent 1.2px); }
#plan2d .p2-svg.grab { cursor: grabbing; }
#plan2d .p2-bar { position: absolute; left: 0; right: 0; top: 0; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 14px 16px; pointer-events: none; }
#plan2d .p2-t { margin: 0; font-family: "Roboto Slab", Georgia, serif; font-size: 15px; line-height: 1.3; padding: 8px 14px; border-radius: 10px; background: color-mix(in srgb, var(--card-solid) 94%, transparent); color: var(--ink); max-width: calc(100vw - 100px); pointer-events: auto; }
#plan2d .p2-t b { font-weight: 600; margin-right: 4px; }
#plan2d .p2-x { margin-left: auto; 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; pointer-events: auto; flex: none; }
#plan2d .p2-hint { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); margin: 0; padding: 6px 12px; border-radius: 999px; background: color-mix(in srgb, var(--card-solid) 90%, transparent); font-family: var(--f-label); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); white-space: nowrap; pointer-events: none; }
@media (max-width: 600px) { #plan2d .p2-hint { white-space: normal; width: calc(100vw - 32px); text-align: center; } }
/* the board's lines: black on the light ground, light on the dark */
#plan2d .p2-l { fill: none; stroke: #1E1418; stroke-width: 1.3; transition: stroke-width .2s, opacity .2s; }
#plan2d .p2-s.p2-l, #plan2d .p2-l.p2-s { stroke-width: 1.4; }
#plan2d .p2-d, #plan2d .p2-dc { stroke-dasharray: 5 4; stroke-width: 1.1; }
#plan2d .p2-o { stroke-dasharray: 1.2 3.4; stroke-linecap: round; stroke-width: 1.3; }
#plan2d .p2-ah { fill: #1E1418; }
#plan2d .p2-ring { fill: #F4F2F0; stroke: #1E1418; stroke-width: 1.4; }
:root[data-theme="dark"] #plan2d .p2-l { stroke: #E9E1E6; }
:root[data-theme="dark"] #plan2d .p2-ah { fill: #E9E1E6; }
:root[data-theme="dark"] #plan2d .p2-ring { fill: #1C1418; stroke: #E9E1E6; }
#plan2d .p2-w { font-family: "Roboto Slab", Georgia, serif; text-anchor: middle; dominant-baseline: middle; letter-spacing: .02em; pointer-events: none; }
#plan2d .p2-title .p2-w { font-weight: 400; text-decoration: underline; text-underline-offset: 3px; letter-spacing: .03em; }
#plan2d .p2-n { cursor: pointer; transition: opacity .2s; }
#plan2d .p2-n .p2-s { stroke: rgba(30, 20, 24, .12); stroke-width: 1; transition: stroke .2s, stroke-width .2s; }
#plan2d .p2-n:hover .p2-s { stroke: rgba(30, 20, 24, .55); stroke-width: 1.6; }
:root[data-theme="dark"] #plan2d .p2-n:hover .p2-s { stroke: #F1EEF2; }
/* a tap: the box, its lines and the boxes they reach stay; the rest steps back */
#plan2d.lit .p2-n { opacity: .28; }
#plan2d.lit .p2-n.on, #plan2d.lit .p2-n.near { opacity: 1; }
#plan2d.lit .p2-n.on .p2-s { stroke: #1E1418; stroke-width: 2.6; }
:root[data-theme="dark"] #plan2d.lit .p2-n.on .p2-s { stroke: #F1EEF2; }
#plan2d.lit .p2-l { opacity: .16; }
#plan2d.lit .p2-l.on { opacity: 1; stroke-width: 2.1; }
#plan2d .p2-t { text-align: left; hyphens: none; }
#journey.space #jroutes button { white-space: nowrap; flex: none; }
@media (max-width: 760px) { #journey.space #space-x { right: 12px; top: 12px; } #journey.space #jroutes { max-width: calc(100vw - 68px); } }
/* clearer lines and boxes, a key, and the Light/Dark button (Nikita, 2 Dec 2026: "the other connections are not as clear", "no light mode and dark mode for this") */
#plan2d .p2-l { stroke-width: 1.7; }
#plan2d .p2-d, #plan2d .p2-dc { stroke-width: 1.5; stroke-dasharray: 6 4; }
#plan2d .p2-o { stroke-width: 1.9; stroke-dasharray: 1.4 4; }
#plan2d.lit .p2-l.on { stroke-width: 2.8; }
#plan2d .p2-n .p2-s { stroke: rgba(30, 20, 24, .28); stroke-width: 1.1; }
:root[data-theme="dark"] #plan2d .p2-n .p2-s { stroke: rgba(241, 238, 242, .35); }
#plan2d .p2-th { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--card-solid); color: var(--ink); font-size: 18px; line-height: 1; cursor: pointer; pointer-events: auto; flex: none; margin-left: auto; }
#plan2d .p2-th + .p2-x { margin-left: 0; }
#plan2d .p2-key { position: absolute; left: 16px; bottom: 52px; z-index: 2; display: flex; flex-wrap: wrap; gap: 6px 12px; max-width: min(560px, calc(100vw - 32px)); padding: 8px 12px; border-radius: 12px; background: color-mix(in srgb, var(--card-solid) 92%, transparent); font-size: 11.5px; color: var(--ink); pointer-events: none; }
#plan2d .p2-key .k { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
#plan2d .p2-key i { width: 14px; height: 10px; border-radius: 3px; border: 1px solid rgba(30, 20, 24, .3); }
#plan2d .p2-key svg .p2-l { stroke-width: 1.6; }
@media (max-width: 600px) { #plan2d .p2-key { bottom: 74px; font-size: 10.5px; } }
/* the research map by tiers (Nikita, 2 Dec 2026): a trail of where you are, a ladder of the tiers, and a card that lists what is inside */
#journey.space #jtrail { position: absolute; left: 16px; top: 54px; z-index: 4; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; max-width: calc(100vw - 200px); font-size: 12px; }
#journey.space #jtrail button, #journey.space #jtrail .here { font: inherit; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: color-mix(in srgb, var(--card-solid) 92%, transparent); color: var(--ink); cursor: pointer; }
#journey.space #jtrail .here { background: var(--ink); color: var(--bg); border-color: var(--ink); cursor: default; font-weight: 600; }
#journey.space #jtrail i { color: var(--muted); font-style: normal; }
#journey.space #jladder { position: absolute; right: 16px; top: 76px; z-index: 4; list-style: none; margin: 0; padding: 8px 10px; border-radius: 12px; background: color-mix(in srgb, var(--card-solid) 90%, transparent); font-size: 11px; color: var(--muted); display: flex; flex-direction: column; gap: 3px; }
#journey.space #jladder li { display: flex; align-items: center; gap: 7px; opacity: .7; }
#journey.space #jladder li b { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line); font-size: 10px; font-weight: 600; }
#journey.space #jladder li.past { opacity: .9; }
#journey.space #jladder li.on { opacity: 1; color: var(--ink); font-weight: 600; }
#journey.space #jladder li.on b { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
#journey.space #jladder li.th { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--line); }
#journey.space #jcap { opacity: 1 !important; transform: none !important; pointer-events: auto !important; max-height: min(52vh, 460px); overflow: auto; width: min(340px, calc(100vw - 32px)); }
#journey.space .jc-sub { margin: 8px 0 4px; font-family: var(--f-label); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
#journey.space .jc-kids { display: flex; flex-wrap: wrap; gap: 5px; margin: 0 0 6px; }
#journey.space .jc-kids button { font: 500 11.5px/1.3 "Roboto Slab", Georgia, serif; text-align: left; padding: 4px 9px; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; }
#journey.space .jc-kids button:hover { border-color: var(--accent); }
#journey.space .jc-kids button.lk { border-style: dashed; }
#journey.space .jc-kids button.fr { border-style: dotted; }
#journey.space .jc-kids.th button { background: #1B1030; color: #F1EEF2; border-color: #1B1030; }
#journey.space .jc-switch { display: flex; gap: 6px; margin: 6px 0; }
#journey.space .jc-switch button { font: 600 11px var(--f-body, inherit); padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; }
#journey.space .jc-switch button.on { background: var(--ink); color: var(--bg); }
#journey.space #space-hint { top: auto; bottom: 18px; left: 50%; max-width: min(640px, 90vw); }
@media (max-width: 760px) { #journey.space #jladder { display: none; } #journey.space #jtrail { top: 50px; max-width: calc(100vw - 24px); font-size: 11px; } #journey.space #jcap { max-height: 40vh; } #journey.space #space-hint { display: none; } }
#journey.space .jc-th summary { cursor: pointer; margin: 8px 0 4px; font-family: var(--f-label); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 760px) { #journey.space #space-nav { display: none; } #journey.space #jcap { max-height: 36vh; } }
/* research map, fewer things on screen (Nikita, 2 Dec 2026: "keep only the essentials"): the trail at the top, one small card, the close button */
#journey.space #jcap .jc-board { font-size: 12px; line-height: 1.45; color: var(--muted); font-style: italic; margin: 4px 0 8px; }
#journey.space #jcap .jc-hint { font-size: 12.5px; line-height: 1.45; color: var(--muted); margin: 6px 0 0; }
#journey.space #jtrail { top: 16px; max-width: calc(100vw - 80px); }
/* the research GLOBE (Nikita, 2 Dec 2026): only the trail (top left), Threads and × (top right), one small card (bottom left) and the
   spectrum, Architecture to Psychology, which shows where a tapped box stands (bottom middle) */
#journey.globe #jtrail { top: 16px; left: 16px; max-width: calc(100vw - 210px); }
#journey.globe #jtrail .jt-on { border-color: var(--accent); }
#journey.globe #jthreads { position: absolute; top: 14px; right: 68px; z-index: 5; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
#journey.globe .jt-open { font: 600 11px/1 var(--f-label); letter-spacing: .12em; text-transform: uppercase; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: color-mix(in srgb, var(--card-solid) 92%, transparent); color: var(--ink); cursor: pointer; }
#journey.globe .jt-open[aria-expanded="true"] { background: var(--ink); color: var(--bg); }
#journey.globe .jt-list { display: flex; flex-direction: column; align-items: stretch; gap: 4px; padding: 8px; border-radius: 14px; background: color-mix(in srgb, var(--card-solid) 96%, transparent); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0,0,0,.25); min-width: 190px; }
#journey.globe .jt-list[hidden] { display: none; }
#journey.globe .jt-list button { text-align: left; font: 500 13px/1.3 var(--f-body, inherit); padding: 7px 10px; border-radius: 9px; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
#journey.globe .jt-list button:hover, #journey.globe .jt-list button.on { background: color-mix(in srgb, var(--accent) 22%, transparent); }
#journey.globe #jcap { transition: opacity .6s; }
#journey.globe #jcap.quiet { opacity: .0 !important; pointer-events: none; }
#journey.globe #jspec { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 4; display: flex; align-items: center; gap: 10px; font: 600 10.5px/1 var(--f-label); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); pointer-events: none; }
#journey.globe #jspec i { position: relative; display: block; width: min(260px, 30vw); height: 3px; border-radius: 2px; background: linear-gradient(90deg, #D9A35B, #8F86A8 50%, #6FA8DC); }
#journey.globe #jspec b { position: absolute; top: 50%; width: 13px; height: 13px; border-radius: 50%; background: var(--ink); border: 2px solid var(--bg); transform: translate(-50%, -50%); opacity: 0; transition: left .5s, opacity .3s; }
#journey.globe #jspec.on b { opacity: 1; }
#journey.globe #jcap .jc-eyebrow { font-size: 10.5px; }
@media (max-width: 760px) {
  #journey.globe #jtrail { top: 12px; left: 10px; max-width: calc(100vw - 150px); }
  #journey.globe #jthreads { top: 10px; right: 58px; }
  #journey.globe #jspec { bottom: auto; top: 56px; gap: 6px; font-size: 9px; }
  #journey.globe #jspec i { width: 34vw; }
  #journey.globe #jcap { left: 10px; right: 10px; bottom: 12px; width: auto; max-height: 34vh; }
}
#journey.globe #space-x { top: 12px; right: 16px; }
#journey.globe #jthreads { top: 14px; right: 68px; }
@media (max-width: 760px) { #journey.globe #space-x { top: 10px; right: 10px; } #journey.globe #jthreads { top: 12px; right: 58px; } }
@media (max-width: 760px) {
  #journey.globe #jtrail { flex-wrap: nowrap; overflow: hidden; }
  #journey.globe #jtrail button, #journey.globe #jtrail .here { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 46vw; flex: 0 1 auto; }
  #journey.globe #jspec { top: 52px; }
}
@media (max-width: 760px) { #journey.globe #jtrail { max-width: calc(100vw - 172px); } }
#journey.globe { background: radial-gradient(ellipse at 50% 42%, #2A1B3A 0%, #150E1C 55%, #09060C 100%); }
:root[data-theme="light"] #journey.globe { background: radial-gradient(ellipse at 50% 42%, #F6F0FD 0%, #E6DDF2 60%, #CFC3E3 100%); }
/* the globe's card (Nikita, 2 Dec 2026: "the breathing space between the buttons is not sufficient... no elegance"): one quiet column,
   the tier as a small line, the words, where it leans in plain words, then one button and two quiet text links */
#journey.globe #jcap { padding: 18px 20px 18px; width: min(360px, calc(100vw - 32px)); }
#journey.globe #jcap .jc-eyebrow { font-size: 10px; letter-spacing: .16em; line-height: 1.5; margin: 0 0 8px; opacity: .85; }
#journey.globe #jcap .sp-t { font-size: 17px; line-height: 1.3; margin: 0 0 6px; }
#journey.globe #jcap .jc-lean { font: italic 400 13px/1.4 "Barlow", sans-serif; color: var(--muted); margin: 0 0 4px; }
#journey.globe #jcap .jc-hint { margin: 8px 0 0; }
#journey.globe #jcap .jc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 18px; }
#journey.globe #jcap .jc-actions .btn { padding: 10px 18px; font-size: 11px; letter-spacing: .14em; }
#journey.globe #jcap .jc-links { display: inline-flex; gap: 18px; }
#journey.globe #jcap .jc-links button { background: none; border: 0; padding: 4px 0; font: 500 13px/1 "Barlow", sans-serif; letter-spacing: .02em; color: var(--ink); opacity: .78; cursor: pointer; border-bottom: 1px solid color-mix(in srgb, var(--ink) 35%, transparent); }
#journey.globe #jcap .jc-links button:hover { opacity: 1; border-bottom-color: var(--accent); }
#journey.globe #jcap .jc-kids { margin-top: 10px; }
/* only two corners are used (Nikita, 2 Dec 2026: "4 things coming up in the 4 corners... so many things"): the trail and Threads
   share the top-left line, × the top right; the card shows bottom left only for the intro and after a tap */
#journey.globe #jtop { position: absolute; top: 14px; left: 16px; right: 72px; z-index: 5; display: flex; align-items: flex-start; gap: 10px; flex-wrap: nowrap; pointer-events: none; }
#journey.globe #jtop > * { pointer-events: auto; }
#journey.globe #jtop #jtrail { position: static; max-width: none; flex: 0 1 auto; min-width: 0; }
#journey.globe #jtop #jthreads { position: relative; top: auto; right: auto; align-items: flex-start; flex: 0 0 auto; }
#journey.globe #jtop .jt-list { position: absolute; top: calc(100% + 6px); left: 0; }
@media (max-width: 760px) { #journey.globe #jtop { top: 10px; left: 10px; right: 58px; } #journey.globe #jtop #jtrail { max-width: calc(100vw - 180px); } }
/* while the research globe is open, the maze beneath leaves the screen entirely, so each frame composites only the globe (speed, INP) */
html.inglobe #scene, html.inglobe #things, html.inglobe #reach, html.inglobe #portal-link { visibility: hidden !important; }

/* the map link answers a tap at once while the map opens (speed) */
.panel .mapbox.opening img { opacity: .55; transform: scale(.985); transition: none; }
/* the picture is its own layer: growing under the pointer and dimming on the tap are then done by the graphics chip, not by repainting a large picture every frame (3 Dec 2026: those repaints made the tap on "Step into the map" wait) */
.panel .mapbox img { will-change: transform, opacity; }
.panel .mapbox.opening span { opacity: .7; }
#journey.cloud { will-change: opacity; }      /* the map is its own layer, painted in advance: opening it only uncovers it (speed) */

/* ---------- the research map, rebuilt (js/space2.js; 3 Dec 2026). One clean block: nothing above applies to #atlas ---------- */
#atlas { position: fixed; inset: 0; z-index: 120; opacity: 0; pointer-events: none; will-change: opacity; background: radial-gradient(ellipse at 50% 44%, #2A1B3A 0%, #150E1C 55%, #09060C 100%); }
:root[data-theme="light"] #atlas { background: radial-gradient(ellipse at 50% 44%, #F6F0FD 0%, #E6DDF2 60%, #CFC3E3 100%); }
#atlas.on { opacity: 1; pointer-events: auto; }
#atlas.planned .at-top, #atlas.planned .at-card, #atlas.planned .at-x { visibility: hidden; }
#atlas .at-cv { position: absolute; inset: 0; display: block; cursor: grab; touch-action: none; }
#atlas .at-top { position: absolute; top: 14px; left: 16px; right: 72px; z-index: 5; display: flex; align-items: flex-start; gap: 10px; pointer-events: none; }
#atlas .at-top > * { pointer-events: auto; }
#atlas .at-trail { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; min-width: 0; font: 500 12px/1.2 var(--f-body, inherit); }
#atlas .at-trail button, #atlas .at-trail .here { font: inherit; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: color-mix(in srgb, var(--card-solid) 92%, transparent); color: var(--ink); cursor: pointer; max-width: 46vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#atlas .at-trail > :first-child { flex: none; max-width: none; }
#atlas .at-trail .here { background: var(--ink); color: var(--bg); border-color: var(--ink); cursor: default; font-weight: 600; }
#atlas .at-trail button:hover, #atlas .at-trail button.on { border-color: var(--accent); }
#atlas .at-trail i { color: var(--muted); font-style: normal; }
#atlas .at-threads { position: relative; flex: 0 0 auto; }
#atlas .at-thopen { font: 600 11px/1 var(--f-label); letter-spacing: .12em; text-transform: uppercase; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: color-mix(in srgb, var(--card-solid) 92%, transparent); color: var(--ink); cursor: pointer; }
#atlas .at-thopen[aria-expanded="true"] { background: var(--ink); color: var(--bg); }
#atlas .at-thlist { position: absolute; top: calc(100% + 6px); left: 0; display: flex; flex-direction: column; gap: 4px; padding: 8px; min-width: 200px; border-radius: 14px; background: var(--card-solid); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0,0,0,.25); }
#atlas .at-thlist[hidden] { display: none; }
#atlas .at-thlist button { text-align: left; font: 500 13px/1.3 var(--f-body, inherit); padding: 7px 10px; border-radius: 9px; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
#atlas .at-thlist button:hover, #atlas .at-thlist button.on { background: color-mix(in srgb, var(--accent) 22%, transparent); }
#atlas .at-x { position: absolute; top: 12px; right: 16px; 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; }
#atlas .at-card { position: absolute; left: 16px; bottom: 16px; z-index: 4; width: min(340px, calc(100vw - 32px)); max-height: min(56vh, 460px); overflow: auto; padding: 18px 20px; border-radius: 16px; border: 1px solid var(--line); background: color-mix(in srgb, var(--card-solid) 95%, transparent); color: var(--ink); box-shadow: 0 10px 30px rgba(0,0,0,.22); transition: opacity .6s; }
#atlas .at-card.quiet { opacity: 0; pointer-events: none; }
#atlas .at-eyebrow { margin: 0 0 8px; font: 400 10px/1.5 var(--f-label); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
#atlas .at-card h2 { margin: 0 0 6px; font: 600 16.5px/1.32 "Roboto Slab", Georgia, serif; letter-spacing: 0; text-transform: none; }
#atlas .at-plain { margin: 6px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); text-align: left; hyphens: none; }
#atlas .at-ph { display: none; }
#atlas .at-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; }
#atlas .at-chips button { font: 500 11.5px/1.3 "Roboto Slab", Georgia, serif; text-align: left; padding: 5px 10px; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; }
#atlas .at-chips button:hover { border-color: var(--accent); }
#atlas .at-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 16px; }
#atlas .at-actions .btn { padding: 10px 18px; font-size: 11px; letter-spacing: .14em; }
#atlas .at-links { display: inline-flex; gap: 18px; }
#atlas .at-links button { background: none; border: 0; padding: 4px 0; font: 500 13px/1 var(--f-body, inherit); color: var(--ink); opacity: .8; cursor: pointer; border-bottom: 1px solid color-mix(in srgb, var(--ink) 35%, transparent); }
#atlas .at-links button:hover { opacity: 1; border-bottom-color: var(--accent); }
#atlas .at-tip { position: absolute; z-index: 6; max-width: 270px; padding: 8px 12px; border-radius: 12px; background: var(--card-solid); border: 1px solid var(--line); color: var(--ink); font: 400 12.5px/1.4 "Roboto Slab", Georgia, serif; pointer-events: none; opacity: 0; transition: opacity .12s; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
#atlas .at-tip.on { opacity: 1; }
@media (max-width: 760px) {
  #atlas .at-top { top: 10px; left: 10px; right: 58px; gap: 6px; }
  #atlas .at-trail { flex-wrap: nowrap; font-size: 11px; }
  #atlas .at-trail button, #atlas .at-trail .here { max-width: 34vw; padding: 6px 10px; }
  #atlas .at-thopen { padding: 8px 11px; font-size: 10px; }
  #atlas .at-x { top: 8px; right: 10px; }
  #atlas .at-card { left: 10px; right: 10px; bottom: 12px; width: auto; max-height: 34vh; padding: 14px 16px; }
  #atlas .at-card h2 { font-size: 14.5px; }
  #atlas .at-plain:not(.on) { display: none; }
  #atlas .at-ph { display: inline; }
  #atlas .at-card h2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  #atlas .at-eyebrow { margin-bottom: 6px; }
  #atlas .at-actions { margin-top: 12px; }
}
@media (max-width: 1100px), (max-height: 500px) { #atlas .at-plain:not(.on) { display: none; } }
@media (max-height: 500px) { #atlas .at-card { width: min(300px, calc(100vw - 32px)); max-height: calc(100vh - 70px); padding: 12px 14px; left: 10px; bottom: 10px; } #atlas .at-card h2 { font-size: 14px; } #atlas .at-top { top: 8px; } #atlas .at-x { top: 6px; } }
/* the switch between the two maps: only in a browser that has opened the comparison link (app.js) */
#map-switch { position: fixed; left: 50%; transform: translateX(-50%); bottom: 16px; z-index: 130; display: none; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card-solid); color: var(--ink); font: 500 12.5px/1 var(--f-body, inherit); box-shadow: 0 10px 30px rgba(0,0,0,.3); }
#map-switch.on { display: inline-flex; }
#map-switch button { font: 600 11px/1 var(--f-label); letter-spacing: .12em; text-transform: uppercase; padding: 9px 14px; border-radius: 999px; border: 0; background: var(--accent); color: var(--on-accent); cursor: pointer; }
@media (max-width: 760px) { #map-switch { bottom: auto; top: 56px; padding: 6px 6px 6px 12px; font-size: 11.5px; } }
