/* The opening story (Gianluca's WebGL world), restyled in the Never Just a Building system: Newsreader, Inter, IBM Plex Mono, cobalt.
   Colour tokens come from :root / html.dark in the page's own styles. */
:root { --gut: max(22px, 4.4vw); --mute2: rgba(94, 89, 79, .72); --shade: 255, 255, 255; --k-dc: #2B47C8; --k-fossil: #1B1B1A; --k-clean: #B0AA9E; --k-people: #8A8478; }
html.dark { --mute2: rgba(168, 162, 150, .72); --shade: 18, 18, 17; --k-dc: #4B96FF; --k-fossil: #FFB648; --k-clean: #45E19A; --k-people: #C4D0E8; color-scheme: dark; }
html { background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: Inter, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
[hidden] { display: none !important; }
.mono { font: 500 11px/1.4 'IBM Plex Mono', monospace; letter-spacing: .14em; text-transform: uppercase; }
sup { font-size: .55em; vertical-align: super; line-height: 0; color: var(--mute); font-family: 'IBM Plex Mono', monospace; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 70; padding: 10px 14px; background: var(--ink); color: var(--bg); }
.skip:focus { top: 12px; }
button.bt { background: none; border: 0; border-bottom: 1px dotted var(--acc); cursor: pointer; padding: 0 0 2px; }

/* the header sits over the world at the top of the page */
.site-hdr { position: fixed; top: 0; left: 0; right: 0; z-index: 25; margin: 0; max-width: none; padding: 18px max(var(--gut), calc((100% - 1280px) / 2 + 32px)); box-sizing: border-box; background: linear-gradient(rgba(var(--shade), .88), rgba(var(--shade), 0)); transition: background .4s, box-shadow .4s; }
.site-hdr.solid, .site-hdr.open { background: rgba(var(--shade), .94); box-shadow: 0 1px 0 var(--rule); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.navlinks { gap: 24px; }
.site-hdr .bd, .site-hdr .brand { flex: none; }
.navlinks .nl { font-size: 13.5px; white-space: nowrap; }
.menu-btn { display: none; align-items: center; gap: 10px; height: 38px; padding: 0 14px; border: 1px solid var(--rule2); border-radius: 999px; background: none; color: var(--ink); font: 500 11px 'IBM Plex Mono', monospace; letter-spacing: .14em; text-transform: uppercase; }
.menu-btn:hover, .menu-btn:focus-visible { border-color: var(--acc); color: var(--acc); }
.mb-i { display: grid; gap: 4px; width: 14px; }
.mb-i i { display: block; height: 1.5px; background: currentColor; transition: transform .3s; }
.site-hdr.open .mb-i i:first-child { transform: translateY(2.75px) rotate(45deg); }
.site-hdr.open .mb-i i:last-child { transform: translateY(-2.75px) rotate(-45deg); }
@media (max-width: 1300px) {
  .menu-btn { display: inline-flex; }
  .navlinks { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; padding: 4px var(--gut) 18px; background: rgba(var(--shade), .97); box-shadow: 0 1px 0 var(--rule); }
  .site-hdr.open .navlinks { display: flex; }
  .navlinks .nl { padding: 15px 0; font-size: 18px; border-bottom: 1px solid var(--rule); background: none; }
  .navlinks .nl:last-child { border-bottom: 0; }
}
.navlinks .nl-m { display: none; }
/* Frontier Briefing: date muted beside it on desktop; on the phone menu it adds the sign-up line under it */
.navlinks .nl-fb .fb-d { color: var(--mute); }
.navlinks .nl-fb .fb-s { display: none; }
@media (max-width: 1300px) { .navlinks .nl-fb .fb-s { display: block; margin-top: 4px; font-size: 14px; color: var(--acc); } }   /* in the dropdown menu there is room for the sign-up line */
@media (max-width: 560px) {
  .site-hdr .bd { display: none; }
  .site-hdr.open .navlinks .nl-m { display: block; color: var(--acc); }
}
section[id], #results { scroll-margin-top: 0; }
#project, #researchers, #contact, #signup { scroll-margin-top: 72px; }
.ch .sub2 { margin: 14px 0 0; max-width: 34em; font: 400 13px/1.6 'IBM Plex Mono', monospace; color: var(--mute); text-wrap: pretty; }
.ch.right .sub2 { margin-left: auto; }
.xthumb { position: relative; flex: 1.4 1 480px; min-width: 0; padding: 0; border: 0; background: none; color: var(--mute); display: flex; flex-direction: column; gap: 12px; text-align: left; }
.xthumb img { display: block; width: 100%; height: auto; aspect-ratio: 1920 / 1024; object-fit: cover; box-shadow: 0 0 0 1px var(--rule2), 0 40px 100px -50px rgba(0, 0, 0, .6); transition: box-shadow .35s, transform .6s cubic-bezier(.2, .8, .2, 1); }
.xthumb:hover img, .xthumb:focus-visible img { box-shadow: 0 0 0 2px var(--acc), 0 40px 100px -50px rgba(0, 0, 0, .6); transform: translateY(-3px); }
.xthumb:hover span, .xthumb:focus-visible span { color: var(--acc); }
.xthumb:focus-visible { outline: none; }
button.bi { font: inherit; }

/* ---------- the world ---------- */
#gl { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
html.js #gl { clip-path: circle(0 at 50% 50%); transition: clip-path 1.6s cubic-bezier(.7, 0, .2, 1); }
html.js.open #gl { clip-path: circle(150vmax at 50% 50%); }
html.js.opened #gl { clip-path: none; transition: none; }

/* the opening: one cobalt dot, counting up, which opens into the world */
.intro { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; pointer-events: none; transition: opacity .8s ease .6s; }
.intro .idot { position: relative; width: 12px; height: 12px; border-radius: 50%; background: var(--acc); }
.intro .idot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--acc); animation: introRing 1.6s ease-out infinite; }
@keyframes introRing { from { transform: scale(1); opacity: .7; } to { transform: scale(4); opacity: 0; } }
.intro .count { position: absolute; left: 50%; top: calc(50% + 28px); transform: translateX(-50%); color: var(--mute); }
html.open .intro { opacity: 0; }
html.open .intro .count { opacity: 0; transition: opacity .2s; }   /* the number goes first, so it never sits over the words */
@media (max-width: 760px) {
  /* on a phone the opening words fill the middle of the screen, so the dot opens from just under them
     (--iy is measured by js/world.js from where the opening words end) */
  .intro { display: block; transition-delay: 0s; transition-duration: .5s; }
  .intro .idot { position: absolute; left: calc(50% - 6px); top: calc(var(--iy, 82svh) - 6px); }
  .intro .count { top: calc(var(--iy, 82svh) + 22px); }
  html.js #gl { clip-path: circle(0 at 50% var(--iy, 82svh)); }
  html.js.open #gl { clip-path: circle(150vmax at 50% var(--iy, 82svh)); }
}
html.opened .intro { display: none; }
html.no-js .intro { display: none; }

/* ---------- the story: a world that the scroll flies through ---------- */
.story { position: relative; z-index: 2; height: 1050vh; margin-top: 0; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; pointer-events: none; isolation: isolate; }
.stage > * { pointer-events: auto; }
.ch { position: absolute; left: var(--gut); bottom: 15vh; width: min(620px, calc(100% - 2 * var(--gut))); opacity: 0; visibility: hidden; will-change: opacity, transform; }
.ch::before { content: ""; position: absolute; inset: -26vh -34vw -22vh -40vw; z-index: -1; pointer-events: none; background: radial-gradient(ellipse 58% 62% at 40% 54%, rgba(var(--shade), .97) 0%, rgba(var(--shade), .93) 42%, rgba(var(--shade), .6) 68%, rgba(var(--shade), 0) 100%); }
.ch.right::before { inset: -26vh -40vw -22vh -34vw; background: radial-gradient(ellipse 58% 62% at 60% 54%, rgba(var(--shade), .97) 0%, rgba(var(--shade), .93) 42%, rgba(var(--shade), .6) 68%, rgba(var(--shade), 0) 100%); }
.stage::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22vh; z-index: -1; pointer-events: none; background: linear-gradient(to top, rgba(var(--shade), .85), rgba(var(--shade), 0)); }
.stage::before { content: ""; position: absolute; top: 0; right: 0; width: 40vw; height: 34vh; z-index: -1; pointer-events: none; background: radial-gradient(ellipse at 100% 0%, rgba(var(--shade), .8), rgba(var(--shade), 0) 70%); }
.ch.hero::before { inset: -18vh -14vw; background: radial-gradient(closest-side, rgba(var(--shade), .98) 0%, rgba(var(--shade), .94) 50%, rgba(var(--shade), .65) 74%, rgba(var(--shade), 0) 100%); }
.ch h2 { margin: 0; font: 400 clamp(40px, 5vw, 76px)/1.02 Newsreader, Georgia, serif; letter-spacing: -.022em; text-wrap: balance; }
.ch.long h2 { font-size: clamp(30px, 3.3vw, 50px); line-height: 1.08; }
.ch .sub { margin: 22px 0 0; max-width: 30em; font: 400 clamp(17px, 1.3vw, 20px)/1.55 Inter, sans-serif; color: var(--mute); text-wrap: pretty; }
.ch > .n { margin: 0 0 20px; color: var(--acc); display: flex; align-items: center; gap: 12px; }
.ch > .n::before { content: ""; width: 26px; height: 1px; background: currentColor; }
.ch .more { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 26px 0 0; }
.ch .more .bt { font-size: 17px; color: var(--ink); }
.ch.hero { left: 50%; bottom: auto; top: 50%; width: min(1180px, calc(100% - 2 * var(--gut))); text-align: center; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; }
.ch.hero h1 { margin: 0; max-width: 15ch; font: 400 clamp(52px, 7vw, 112px)/1 Newsreader, Georgia, serif; letter-spacing: -.026em; text-wrap: balance; }
.ch.hero .kick { margin: 0 0 28px; color: var(--acc); }
.ch.hero .ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px; margin-top: 38px; }
.ch.hero .more { justify-content: center; margin-top: 22px; }
.ch.hero .more .bt { font-size: 16px; }
.ch.hero .src { margin: 22px 0 0; font: 400 12px/1.5 'IBM Plex Mono', monospace; color: var(--mute); }
.ch.right { left: auto; right: var(--gut); text-align: right; }
.ch.right > .n { justify-content: flex-end; }
.ch.right .sub { margin-left: auto; }

/* the key, the caption and the place in the story */
.key { position: absolute; top: 96px; right: var(--gut); display: grid; gap: 9px; justify-items: end; color: var(--mute); opacity: 0; transition: opacity .6s; }
.key span { display: inline-flex; align-items: center; gap: 9px; }
.key span::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
.key .k-dc { --c: var(--k-dc); } .key .k-fossil { --c: var(--k-fossil); } .key .k-clean { --c: var(--k-clean); } .key .k-people { --c: var(--k-people); }
.key .hint { margin-top: 6px; color: var(--mute2); }
.key .hint::after { display: none; }
.cap { position: absolute; left: var(--gut); bottom: 5vh; max-width: min(640px, 70vw); margin: 0; color: var(--mute); transition: opacity .5s; }
.prog { position: absolute; right: var(--gut); bottom: 5vh; display: flex; gap: 6px; }
.prog i { width: 22px; height: 2px; background: var(--rule2); overflow: hidden; position: relative; }
.prog i b { position: absolute; inset: 0; background: var(--acc); transform-origin: left; transform: scaleX(var(--k, 0)); }

/* a data center under the pointer */
.tip { position: absolute; z-index: 5; min-width: 220px; max-width: 300px; padding: 14px 16px; background: var(--paper); border: 1px solid var(--paperEdge); box-shadow: 0 20px 50px -24px rgba(0, 0, 0, .35); pointer-events: none; transform: translate(18px, -50%); }
.tip b { display: block; font: 400 18px/1.2 Newsreader, Georgia, serif; }
.tip p { margin: 6px 0 0; font: 400 13px/1.45 Inter, sans-serif; color: var(--mute); }
.tip .mono { display: block; margin-top: 10px; color: var(--acc); font-size: 10px; }
.ring { position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; border: 1.5px solid var(--acc); pointer-events: none; }

/* the explorer, floating over the place it shows */
.panel { position: absolute; right: var(--gut); top: 50%; width: min(620px, 46vw); margin: 0; opacity: 0; visibility: hidden; transform: translateY(-50%) perspective(1600px) rotateY(var(--ry, -10deg)) rotateX(var(--rx, 4deg)); transform-style: preserve-3d; }
.panel .win { overflow: hidden; box-shadow: 0 0 0 1px var(--rule2), 0 40px 90px -40px rgba(0, 0, 0, .45); }
.panel .shot { position: relative; aspect-ratio: 15 / 8; }
.panel .shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s; }
.panel .shot img.on { opacity: 1; }
.panel figcaption { margin-top: 14px; color: var(--mute); }
.wire { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0; }
.wire line { stroke: var(--acc); stroke-width: 1.2; }
.wire circle { fill: none; stroke: var(--acc); stroke-width: 1.5; }

/* the close of the story: the world goes into one dot, and the dot ends the name */
.final { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 26px; opacity: 0; visibility: hidden; pointer-events: none; text-align: center; }
.sigw { margin: 0; font: 400 clamp(30px, 6.2vw, 104px)/1 Newsreader, Georgia, serif; letter-spacing: -.025em; white-space: nowrap; }
.sigw span { opacity: var(--w, 0); }
.gdot { display: inline-block; width: .22em; height: .22em; margin-left: .05em; vertical-align: baseline; border-radius: 50%; background: var(--acc); box-shadow: 0 0 .5em rgba(143, 163, 255, .55); opacity: var(--d, 0); }   /* the same dot as the logo in the header */
.final .tag { position: static; margin: 0; font: 500 11px/1.4 'IBM Plex Mono', monospace; color: var(--mute); padding: 0 var(--gut); white-space: normal; opacity: var(--w, 0); }   /* .tag is also the study figures' corner label: keep this one under the name */

/* without the world: the words stand on their own */
html.no-gl #gl, html.no-js #gl { display: none; }
html.no-gl .story, html.no-js .story { height: auto; margin-top: 0; }
html.no-gl .stage, html.no-js .stage { position: relative; height: auto; overflow: visible; padding: 14vh 0; display: grid; gap: 14vh; }
html.no-gl .ch, html.no-js .ch { position: relative; inset: auto; transform: none; opacity: 1; visibility: visible; margin: 0 var(--gut); }
html.no-gl .ch::before, html.no-js .ch::before { display: none; }
html.no-js [data-explorer] { display: none; }
html.no-gl .ch.hero, html.no-js .ch.hero { left: 0; top: 0; width: auto; }
html.no-gl .panel, html.no-js .panel { position: relative; right: auto; top: 0; transform: none; opacity: 1; visibility: visible; width: auto; margin: 0 var(--gut); }
html.no-gl .final, html.no-gl .key, html.no-gl .cap, html.no-gl .prog, html.no-gl .wire, html.no-js .final, html.no-js .key, html.no-js .cap, html.no-js .prog, html.no-js .wire { display: none; }

/* ---------- the explorer preview (explorer.js), on our paper ---------- */
.xp { position: fixed; inset: 0; z-index: 60; overflow-y: auto; background: rgba(var(--shade), .97); color: var(--ink); clip-path: circle(0 at var(--ox, 50%) var(--oy, 50%)); transition: clip-path .9s cubic-bezier(.7, 0, .2, 1); }
.xp.open { clip-path: circle(150vmax at var(--ox, 50%) var(--oy, 50%)); }
.xp-in { min-height: 100%; display: grid; align-content: center; gap: 20px; width: min(1320px, 100%, calc((100svh - 360px) * 16 / 9 + 2 * var(--gut))); margin: 0 auto; padding: max(18px, env(safe-area-inset-top)) var(--gut) max(24px, env(safe-area-inset-bottom)); box-sizing: border-box; }
.xp-in > * { min-width: 0; margin: 0; }
.xp-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--mute); }
.xp-x { height: 36px; padding: 0 16px; border-radius: 999px; white-space: nowrap; background: none; border: 1px solid var(--rule2); color: var(--ink); cursor: pointer; }
.xp-x:hover { border-color: var(--acc); color: var(--acc); }
.xp-win { overflow: hidden; background: #f5f6f8; box-shadow: 0 0 0 1px var(--rule2), 0 50px 120px -50px rgba(0, 0, 0, .4); }
.xp-view { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: #f5f6f8; }
.xp-stage { position: absolute; inset: 0; transform-origin: 0 0; transition: transform 1.1s cubic-bezier(.6, 0, .2, 1); }
.xp-stage > img { position: absolute; left: 0; top: 5.1852%; width: 100%; height: 94.8148%; opacity: 0; transition: opacity .7s ease; user-select: none; -webkit-user-drag: none; }
.xp-stage > img.on { opacity: 1; }
.xp-head { position: absolute; left: 0; top: 0; width: 100%; height: 5.1852%; display: block; }
.xp-head text { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, system-ui, sans-serif; fill: #6b7280; }
.xp-head .tab rect { fill: transparent; transition: fill .3s; }
.xp-head[data-page="compare"] .tab[data-tab="compare"] rect, .xp-head[data-page="map"] .tab[data-tab="map"] rect { fill: #fff; filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, .16)); }
.xp-head[data-page="compare"] .tab[data-tab="compare"] text, .xp-head[data-page="map"] .tab[data-tab="map"] text { fill: #111827; }
.xp-venues { text-align: center; text-wrap: balance; color: var(--mute); font: 400 clamp(15px, 1.15vw, 18px)/1.5 Newsreader, Georgia, serif; }
.xp-venues > * { white-space: nowrap; }
.xp-venues .mono { color: var(--mute); margin-right: 6px; }
.xp-venues span:not(.mono):not(:last-child)::after { content: "·"; margin-left: .45em; color: var(--acc); }
.xp-spot { position: absolute; border-radius: 12px; box-shadow: 0 0 0 200vmax rgba(10, 16, 28, .1), inset 0 0 0 2px rgba(43, 71, 200, .8); transition: left .9s cubic-bezier(.6, 0, .2, 1), top .9s cubic-bezier(.6, 0, .2, 1), width .9s cubic-bezier(.6, 0, .2, 1), height .9s cubic-bezier(.6, 0, .2, 1), opacity .4s; pointer-events: none; }
.xp-hot { position: absolute; z-index: 2; padding: 0; border: 0; border-radius: 8px; background: transparent; cursor: pointer; }
.xp-hot:hover, .xp-hot:focus-visible { box-shadow: 0 0 0 2px #2B47C8; outline: none; }
.xp-ptr { position: absolute; z-index: 3; width: 26px; height: 26px; margin: -3px 0 0 -5px; transform: scale(calc(1 / var(--z, 1))); transform-origin: 5px 3px; pointer-events: none; transition: left .9s cubic-bezier(.6, 0, .2, 1), top .9s cubic-bezier(.6, 0, .2, 1); filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .35)); }
.xp-tap { position: absolute; z-index: 3; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; border: 2px solid #2B47C8; opacity: 0; pointer-events: none; }
.xp-tap.go { animation: tap .6s ease-out; }
@keyframes tap { from { transform: scale(calc(.3 / var(--z, 1))); opacity: 1; } to { transform: scale(calc(1.4 / var(--z, 1))); opacity: 0; } }
.xp-hint { position: absolute; z-index: 4; left: 50%; bottom: 14px; transform: translateX(-50%); padding: 8px 14px; border-radius: 999px; background: rgba(27, 27, 26, .88); color: #fff; font-size: 12.5px; white-space: nowrap; opacity: 0; transition: opacity .3s; pointer-events: none; }
.xp-hint.on { opacity: 1; }
.xp-cap { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 26px; align-items: baseline; min-height: 5.6em; }
.xp-cap .k { grid-row: span 2; color: var(--acc); margin: 0; }
.xp-cap h3 { margin: 0; font: 400 clamp(24px, 2.3vw, 34px)/1.1 Newsreader, Georgia, serif; letter-spacing: -.015em; }
.xp-cap .t { margin: 0; max-width: 46em; color: var(--mute); font-size: clamp(15px, 1.1vw, 17px); }
.xp-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding-top: 12px; border-top: 1px solid var(--rule); }
.xp-nav { display: flex; align-items: center; gap: 10px; }
.xp-nav button { height: 36px; min-width: 36px; padding: 0 12px; border-radius: 999px; white-space: nowrap; background: none; border: 1px solid var(--rule2); color: var(--ink); cursor: pointer; }
.xp-nav button:hover { border-color: var(--acc); color: var(--acc); }
.xp-dots { display: flex; gap: 6px; padding: 0 4px; }
.xp-dots i { width: 22px; height: 2px; background: var(--rule2); cursor: pointer; }
.xp-dots i.on { background: var(--acc); }
.xp-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; color: var(--mute); margin: 0; }
.xp-cta .btn { display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border: 1px solid var(--acc); border-radius: 999px; color: var(--acc); font: 500 14px Inter, sans-serif; text-decoration: none; text-transform: none; letter-spacing: 0; }
.xp-cta .btn:hover { background: var(--acc); color: var(--bg); }

/* the film: it opens out of the button that asks for it, full screen; the world behind waits */
.film { position: fixed; inset: 0; z-index: 60; background: #000; clip-path: circle(0 at var(--ox, 50%) var(--oy, 50%)); transition: clip-path .9s cubic-bezier(.7, 0, .2, 1); }
.film.open { clip-path: circle(150vmax at var(--ox, 50%) var(--oy, 50%)); }
.film iframe { width: 100%; height: 100%; border: 0; display: block; }
.film .shut { position: absolute; top: max(18px, env(safe-area-inset-top)); left: max(18px, env(safe-area-inset-left)); height: 40px; padding: 0 16px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .92); color: #111; cursor: pointer; }
html.no-js [data-film] { display: none; }

/* ---------- a phone ---------- */
@media (max-width: 860px) {
  .ch { bottom: 21vh; }
  .ch h2 { font-size: clamp(32px, 8vw, 44px); }
  .ch.long h2 { font-size: clamp(24px, 6.2vw, 32px); }
  .cap { max-width: none; right: var(--gut); font-size: 9.5px; }
  .ch.right { left: var(--gut); right: auto; text-align: left; }
  .ch.right > .n { justify-content: flex-start; }
  .ch.right .sub { margin-left: 0; }
  .ch.hero .ctas { gap: 4px; width: 100%; flex-direction: column; align-items: center; }
  .panel { left: var(--gut); right: var(--gut); top: 16vh; width: auto; transform: none; }
  .key { top: 100px; }
  .key .hint { display: none; }
  .prog { display: none; }
  .xp-cap { grid-template-columns: minmax(0, 1fr); min-height: 8.6em; }
  .xp-cap .k { grid-row: auto; }
}
@media (max-width: 720px) {
  .site-hdr { gap: 12px; }
  .site-hdr .brand.nj { font-size: 17px; white-space: nowrap; }
  .site-hdr .bd { padding: 0 13px 0 11px; font-size: 13px; }
}

.person .honors { margin: 4px 0 0; padding-top: 12px; border-top: 1px solid var(--rule); font: 500 11px/1.7 'IBM Plex Mono', monospace; letter-spacing: .12em; text-transform: uppercase; color: var(--acc); }

/* ---------- Gianluca's details, in the Never Just a Building system ---------- */
em { font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.ch h2 em, .h2 em, .h2s em, .cta h2 em, h1 em { font-family: Newsreader, Georgia, serif; font-style: italic; }
.ch.hero h1 em { letter-spacing: -.02em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* pill buttons, from Gianluca's landing page */
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.pill { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--ink); color: var(--bg); font: 500 15px/1 Inter, sans-serif; letter-spacing: -.005em; text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s; }
.pill:hover, .pill:focus-visible { transform: translateY(-2px); box-shadow: 0 14px 40px -12px rgba(75, 150, 255, .7); outline: none; }
.pill.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(242, 239, 232, .28); }
.pill.ghost:hover, .pill.ghost:focus-visible { box-shadow: inset 0 0 0 1px rgba(242, 239, 232, .6), 0 14px 40px -16px rgba(75, 150, 255, .5); }
.pill.solid { height: 56px; padding: 0 30px; font-size: 17px; background: #0A64D8; color: #fff; box-shadow: 0 20px 60px -20px rgba(10, 100, 216, .9); }
.ch.hero .pills { margin-top: 30px; }
html[data-paper-live] [data-paper] { cursor: pointer; }
/* the project */
.lead-in { max-width: 760px; }
.lead-in .h2 { margin-top: 16px; max-width: 16ch; }
.lede-p { margin: 26px 0 0; font: 400 clamp(19px, 1.5vw, 23px)/1.5 Inter, sans-serif; color: var(--mute); text-wrap: pretty; }
/* the researchers: photos and names open their pages */
.person a.ph { display: block; transition: border-color .3s; }
.person a.ph img { transition: transform .8s cubic-bezier(.2, .8, .2, 1), filter .5s; }
.person a.ph:hover img, .person a.ph:focus-visible img { transform: translateX(-50%) scale(1.03); filter: grayscale(.6) contrast(1.05); }
.person a.ph:hover, .person a.ph:focus-visible { border-color: var(--acc); outline: none; }
.person h3 a { color: inherit; text-decoration: none; background: linear-gradient(var(--acc), var(--acc)) left bottom / 0% 1px no-repeat; transition: background-size .5s cubic-bezier(.2, .8, .2, 1), color .3s; }
.person h3 a span { font: 400 .6em Inter, sans-serif; color: var(--mute); vertical-align: .35em; }
.person h3 a:hover, .person h3 a:focus-visible { color: var(--acc); background-size: 100% 1px; outline: none; }
/* the journals, moving slowly */
.mq { position: relative; padding: 96px 0 120px; overflow: hidden; }
.mq .eb { margin: 0 auto; }
.mq-row { margin-top: 24px; white-space: nowrap; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.mq-track { display: inline-flex; gap: .7em; padding-left: .7em; font: italic 400 clamp(24px, 2.4vw, 38px)/1.2 Newsreader, Georgia, serif; letter-spacing: -.01em; color: var(--mute); animation: mq 64s linear infinite; }
.mq-track span:nth-child(4n + 1) { color: var(--ink); }
.mq-track b { font-weight: 400; font-style: normal; color: var(--acc); }
@keyframes mq { to { transform: translateX(-50%); } }
/* keep me posted */
.updates .up-msg { margin: 0; min-height: 1.5em; font-size: 15px; color: var(--bandMute); }
.updates .up-msg.err { color: #F0A58F; }
.updates.done .email, .updates.done label, .updates.done .bi, .updates.done .up-note { display: none; }
.updates.done .up-msg { font: 400 clamp(24px, 2.4vw, 32px)/1.3 Newsreader, Georgia, serif; color: var(--bandInk); }
/* get in touch, as in Gianluca's version */
.cta { position: relative; padding: 18vh var(--gut) 24vh; text-align: center; overflow: hidden; }
.cta::before { content: ""; position: absolute; left: 50%; top: 58%; width: 140vmax; height: 140vmax; transform: translate(-50%, 0); border-radius: 50%; background: radial-gradient(closest-side, rgba(10, 100, 216, .24), rgba(10, 100, 216, 0)); pointer-events: none; }
.cta::after { content: ""; position: absolute; left: 50%; top: 88%; width: 230vmax; height: 230vmax; transform: translateX(-50%); border-radius: 50%; box-shadow: 0 -1px 0 rgba(160, 210, 255, .7), 0 -14px 50px -10px rgba(75, 150, 255, .5); pointer-events: none; }
.cta > * { position: relative; }
.cta h2 { max-width: 14em; margin: 0 auto; font: 400 clamp(44px, 6vw, 104px)/.98 Newsreader, Georgia, serif; letter-spacing: -.03em; text-wrap: balance; }
.cta .lede { max-width: 36em; margin: 28px auto 0; color: var(--mute); font-size: clamp(17px, 1.3vw, 20px); line-height: 1.55; text-wrap: pretty; }
.cta .who { display: grid; justify-items: center; gap: 14px; margin: 40px auto 0; }
.cta .who .mono { margin: 0; color: var(--mute); text-transform: uppercase; letter-spacing: .14em; font-size: 11px; transition: color .3s; }
.roles { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 760px; }
.roles button { height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: none; color: var(--mute); font: 500 15px/1 Inter, sans-serif; box-shadow: inset 0 0 0 1px rgba(242, 239, 232, .22); cursor: pointer; transition: color .25s, background .25s, box-shadow .25s; }
.roles button:hover { color: var(--ink); box-shadow: inset 0 0 0 1px rgba(242, 239, 232, .55); }
.roles button:focus-visible { outline: 2px solid #4B96FF; outline-offset: 3px; }
.roles button.on { color: #fff; background: rgba(75, 150, 255, .16); box-shadow: inset 0 0 0 1.5px #4B96FF; }
.cta .who.ask .mono { color: #4B96FF; }
.cta .who.ask .roles { animation: nudge .5s ease; }
@keyframes nudge { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 28px; margin-top: 30px; }
.cta-row .bt { font-size: 17px; }
/* Get in touch: a short note, kept in Sanity and emailed to the team */
.note-form { display: grid; gap: 26px; width: min(680px, 100%); margin: 40px auto 0; text-align: left; }
.note-form .nf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 32px; }
.note-form .nf { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.note-form .flabel { color: var(--mute); }
.note-form .flabel span { margin-left: 6px; letter-spacing: .08em; text-transform: none; opacity: .7; }
.note-form input, .note-form textarea { width: 100%; padding: 6px 0 10px; border: 0; border-bottom: 1px solid rgba(242, 239, 232, .22); border-radius: 0; background: transparent; color: var(--ink); font: 400 22px/1.35 Newsreader, Georgia, serif; letter-spacing: -.005em; outline: none; transition: border-color .25s; }
.note-form textarea { resize: vertical; min-height: 7.2em; }
.note-form input:focus, .note-form textarea:focus { border-bottom-color: var(--acc); }
.note-form .nf-send { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 24px; margin-top: 6px; }
.note-form .nf-msg { margin: 0; min-height: 1.5em; flex: 1 1 100%; text-align: center; color: var(--mute); font-size: 15px; }
.note-form .nf-msg.err { color: #F0A58F; }
.note-form.done .nf, .note-form.done .nf-row, .note-form.done .pill { display: none; }
.note-form.done .nf-msg { font: 400 clamp(24px, 2.4vw, 32px)/1.3 Newsreader, Georgia, serif; color: var(--ink); }
@media (max-width: 720px) { .note-form .nf-row { grid-template-columns: 1fr; } .note-form input, .note-form textarea { font-size: 20px; } }
.cta .mail { margin: 22px 0 0; color: var(--mute); font-size: 12px; letter-spacing: .04em; text-transform: none; }
.cta .mail .addr { color: var(--ink); user-select: all; }
.cta .mail .copy { margin-left: 10px; padding: 0; border: 0; background: none; color: var(--acc); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cta .open { display: inline-flex; align-items: center; gap: 10px; margin: 34px 0 0; color: var(--mute); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.cta .open i { position: relative; width: 7px; height: 7px; border-radius: 50%; background: #45E19A; }
.cta .open i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: rgba(69, 225, 154, .55); animation: beat 2.4s ease-out infinite; }
@keyframes beat { 0% { transform: scale(1); opacity: 1; } 70%, 100% { transform: scale(4.4); opacity: 0; } }
#project, #researchers, #contact, #signup { scroll-margin-top: 72px; }
@media (max-width: 720px) { .pills { gap: 10px; } .pill { height: 42px; padding: 0 18px; font-size: 14px; } .cta { padding: 14vh var(--gut) 20vh; } }
@media (prefers-reduced-motion: reduce) { .mq-track, .cta .open i::after { animation: none; } }

/* ---------- more of Gianluca's language: grain, glow, reveals and horizons ---------- */
.grain { position: fixed; inset: -8%; z-index: 30; pointer-events: none; opacity: .06; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); animation: grain 1.2s steps(5) infinite; }
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); } }
/* every dot glows a little, like the map's */
.bdot, .d, .pd { box-shadow: 0 0 .5em rgba(143, 163, 255, .55); }
.intro .idot { box-shadow: 0 0 28px rgba(143, 163, 255, .7); animation: breathe 1.4s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.35); box-shadow: 0 0 46px rgba(143, 163, 255, .9); } }
/* the study's numbers, lit from above as in Gianluca's version */
.stat { background: linear-gradient(180deg, #fff 35%, #A9B8FF 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .04em; }
/* sections rise into place as they arrive */
html.js .rv { opacity: 0; transform: translate3d(0, 40px, 0); transition: opacity 1.1s cubic-bezier(.2, .8, .2, 1), transform 1.2s cubic-bezier(.2, .8, .2, 1); }
html.js .rv.in { opacity: 1; transform: none; }
/* between chapters: the horizon, drawn in as each section arrives */
.hz { position: relative; height: 1px; margin: 0 auto; width: min(1200px, calc(100% - 2 * var(--gut))); }
.hz::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(143, 163, 255, 0), rgba(183, 196, 255, .85) 50%, rgba(143, 163, 255, 0)); transform: scaleX(0); transition: transform 1.6s cubic-bezier(.6, 0, .2, 1); }
.hz::after { content: ""; position: absolute; left: 20%; right: 20%; top: -40px; height: 80px; background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(143, 163, 255, .14), rgba(143, 163, 255, 0) 70%); opacity: 0; transition: opacity 1.6s ease .3s; pointer-events: none; }
.hz.in::before { transform: scaleX(1); } .hz.in::after { opacity: 1; }
/* the paper's links, until November 16 */
html:not([data-paper-live]) [data-paper] .t, html:not([data-paper-live]) [data-paper] .a { display: none; }
html:not([data-paper-live]) [data-paper]::after { content: attr(data-soon); font: 400 15px/1.4 'IBM Plex Mono', monospace; letter-spacing: .04em; color: var(--mute); }
html:not([data-paper-live]) .bi[data-paper] { cursor: default; opacity: .6; background-image: linear-gradient(var(--rule2), var(--rule2)); background-size: 100% 1px; }
html:not([data-paper-live]) .bt[data-paper] { border-bottom-color: var(--rule2); }
@media (prefers-reduced-motion: reduce) { .grain, .intro .idot { animation: none; } html.js .rv { opacity: 1; transform: none; transition: none; } .hz::before { transform: none; transition: none; } .hz::after { opacity: 1; } }

/* ---------- the ending: Keep me posted sits on the page, and the map lies down into the horizon ---------- */
#signup.quiet { background: transparent; }
#signup.quiet .wrap { padding-top: 48px; }
.cta { padding-bottom: 0; }
.cta::after { display: none; }
.endmap { position: relative; height: clamp(320px, 52vh, 560px); margin: 9vh calc(-1 * var(--gut)) 0; perspective: 900px; perspective-origin: 50% 0%; pointer-events: none; --t: 0; }
.endmap .plane { position: absolute; left: 50%; bottom: 0; width: min(1500px, 128vw); aspect-ratio: 1535 / 798; transform-origin: 50% 100%;
  transform: translateX(-50%) translateY(calc((1 - var(--t)) * 18%)) rotateX(calc(var(--t) * 74deg)) scale(calc(.86 + var(--t) * .34));
  opacity: calc(.35 + var(--t) * .65); will-change: transform, opacity; }
.endmap img { display: block; width: 100%; height: 100%; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 100%); }
.endmap::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30%; background: linear-gradient(to top, var(--bg), rgba(18, 18, 17, 0)); }
footer.z { margin-top: -1px; }
@media (max-width: 720px) { .endmap { height: 34vh; } .endmap .plane { width: 170vw; } .cta::before { opacity: .45; top: 70%; } }
@media (prefers-reduced-motion: reduce) { .endmap { --t: 1 !important; } }

/* ---------- The Researchers, sideways ---------- */
.hs-r { position: relative; }
.hs-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; align-content: center; }
.hs-track { display: flex; align-items: center; gap: 7vw; width: max-content; padding: 0 max(var(--gut), calc((100vw - 1200px) / 2 + 32px)); will-change: transform; }
.hp { flex: none; display: flex; flex-direction: column; gap: 18px; }
.hp-intro { width: min(640px, 70vw); }
.hp-intro .h2 { margin-top: 2px; max-width: 18ch; }
.hp-head { width: min(460px, 60vw); }
.hp-head .h2 { max-width: 11ch; }
.hp-head .authors { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--rule); max-width: 38ch; }
.hp-person { width: min(380px, 34vw, 42vh); }
.hp-person .person { margin: 0; }
.hs-bar { position: absolute; left: max(var(--gut), calc((100vw - 1200px) / 2 + 32px)); right: max(var(--gut), calc((100vw - 1200px) / 2 + 32px)); bottom: 8vh; height: 1px; background: var(--rule); }
.hs-bar i { position: absolute; inset: 0; background: var(--acc); transform-origin: left; transform: scaleX(0); }
@media (max-width: 900px) {
  .hs-pin { position: relative; height: auto; display: block; padding: 96px 0 24px; }
  .hs-track { flex-direction: column; align-items: stretch; width: auto; gap: 56px; padding: 0 var(--gut); }
  .hp-intro, .hp-head, .hp-person { width: auto; }
  .hs-bar { display: none; }
}
/* ---------- the menu marks the chapter you're in ---------- */
.navlinks .nl.on { color: var(--acc); background-size: 100% 1px; }
.navlinks .nl.on::before { content: ""; display: inline-block; width: 5px; height: 5px; margin: 0 8px 2px 0; border-radius: 50%; background: var(--acc); box-shadow: 0 0 8px rgba(143, 163, 255, .8); vertical-align: middle; }
/* the Project's opening row: words on the left, the dots of the study landing on the right */
.lead-row .art { flex: 1.3 1 480px; }

/* ---------- Two button styles, everywhere ----------
   1. Major actions: a pill with a dot. Filled (periwinkle, dark text) for the main action, outlined for the rest.
      On hover the dot grows and fills the pill, so the filled one turns dark and the outlined one turns periwinkle.
   2. Secondary links: text with a dotted periwinkle underline and an arrow; the underline turns solid on hover.
   Toggles (Who are you?) are plain pills with no dot. */
.pill, .pill.ghost, .pill.solid { position: relative; overflow: hidden; isolation: isolate; display: inline-flex; align-items: center; gap: 11px; height: 44px; padding: 0 20px 0 17px; border: 1px solid var(--acc); border-radius: 999px; font: 500 14.5px/1 Inter, sans-serif; letter-spacing: -.005em; text-decoration: none; white-space: nowrap; cursor: pointer; box-shadow: none; transform: none; transition: color .35s, box-shadow .35s; }
.pill::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; z-index: -1; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.pill { background: var(--acc); color: #121211; }
.pill::before { background: #121211; }
.pill:hover, .pill:focus-visible { color: var(--ink); transform: none; box-shadow: 0 14px 40px -16px rgba(143, 163, 255, .6); outline: none; }
.pill.ghost { background: transparent; color: var(--acc); }
.pill.ghost::before { background: var(--acc); }
.pill.ghost:hover, .pill.ghost:focus-visible { color: #121211; box-shadow: none; }
.pill:hover::before, .pill:focus-visible::before { transform: scale(110); }
.cta-row .pill { height: 52px; padding: 0 26px 0 22px; font-size: 16px; }
.updates .pill { align-self: flex-start; }
.updates .pill:disabled { opacity: .6; cursor: wait; }
.xp-cta .pill { height: 40px; }
/* the header's Get updates already works this way (.bd); keep it the same size as the others */
.bd { height: 40px; }
/* secondary links */
.bt { cursor: pointer; }
.bt .a { transition: transform .35s cubic-bezier(.2, .8, .2, 1); display: inline-block; }
.bt:hover .a, .bt:focus-visible .a { transform: translateX(4px); }
.links { flex-direction: row; flex-wrap: wrap; gap: 12px 28px; margin-top: 8px; }
/* toggles: no dot, periwinkle when chosen */
.roles button.on { color: #121211; background: var(--acc); box-shadow: inset 0 0 0 1.5px var(--acc); }
.roles button:focus-visible { outline-color: var(--acc); }
.cta .who.ask .mono { color: var(--acc); }
/* the menu: a dot marks where you are; a dotted underline means you can click */
.navlinks .nl, .navlinks .nl.on { background: none; border-bottom: 1px dotted transparent; padding-bottom: 3px; transition: border-color .25s, color .25s; }
.navlinks .nl:hover, .navlinks .nl:focus-visible { color: var(--ink); background: none; border-bottom-color: var(--acc); }
.navlinks .nl.on { color: var(--ink); }
@media (max-width: 1300px) { .navlinks .nl, .navlinks .nl.on { border-bottom: 1px solid var(--rule); padding-bottom: 15px; } .navlinks .nl:hover { border-bottom-color: var(--rule); color: var(--acc); } }
/* inside the page template, links inherit color; the pills keep their own */
.pg a.pill { color: #121211; }
.pg a.pill:hover, .pg a.pill:focus-visible { color: var(--ink); }
.pg a.pill.ghost { color: var(--acc); }
.pg a.pill.ghost:hover, .pg a.pill.ghost:focus-visible { color: #121211; }

/* ---------- The Project: three panels that fade and swoop in, one after another ----------
   The section pins, and as you scroll the site, then the platform, then the explorer take the stage:
   each one fades up from the lower right while the last drifts up and away. */
.stack .hz-door { margin: 0 auto; }
.stack .hz-door::before { transform: scaleX(var(--w, 0)); transition: none; }
.stack .hz-door::after { top: -60px; height: 120px; opacity: var(--w, 0); transition: none; }
@media (min-width: 901px) {
  .stack { height: 330vh; }
  .stack > .wrap { position: sticky; top: 0; height: 100vh; height: 100svh; }
  .stk { position: absolute; left: 32px; right: 32px; top: 72px; bottom: 0; display: flex; flex-direction: column; justify-content: center; --o: 1; --x: 0; --y: 0;
    opacity: var(--o); transform: translate3d(calc(var(--x) * 1vw), calc(var(--y) * 1vh), 0); will-change: opacity, transform; }
  .stk-2, .stk-3 { --o: 0; }
  .stk-1 .lead-row, .stk-3 .row { padding: 0; }
  .stk-2 .card { margin: 0; }
  .stack-dots { position: absolute; right: 32px; bottom: 7vh; display: flex; gap: 8px; }
  .stack-dots i { width: 22px; height: 2px; background: var(--rule2); transition: background .4s; }
  .stack-dots i.on { background: var(--acc); }
}
@media (max-width: 900px) { .stack { padding: 40px 0 0 !important; } .stack .hz-door { margin-bottom: 56px; } .stack > .wrap > .stk + .stk { margin-top: 72px; } .stack-dots { display: none; } }
@media (prefers-reduced-motion: reduce) { .stack { height: auto !important; } .stack > .wrap { position: relative !important; height: auto !important; } .stk { position: relative !important; inset: auto !important; opacity: 1 !important; transform: none !important; } .stk + .stk { margin-top: 72px; } .stack-dots { display: none; } .stack .hz-door { --w: 1 !important; } }
/* the lab's work, drawn: a plume spreads downwind, then each affected place is traced back to its source */
.hp-art { margin: 0; width: min(560px, 42vw); display: flex; flex-direction: column; gap: 14px; }
.hp-art canvas { display: block; width: 100%; aspect-ratio: 1.15; }
.hp-art figcaption { color: var(--mute); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
@media (max-width: 900px) { .hp-art { width: auto; } }
/* the two researchers share a panel, side by side and the same size */
.hp-people { display: flex; flex-direction: row; align-items: flex-start; gap: 40px; }
.hp-people .person { width: min(340px, 26vw, 38vh); margin: 0; }
@media (max-width: 900px) { .hp-people { flex-direction: column; gap: 56px; } .hp-people .person { width: auto; } }
