:root { --paper: #f3f1ec; --ink: #161616; --sign: #121314; color-scheme: light; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #0c0d0e; color: var(--ink); font-family: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }
#app { position: fixed; inset: 0; overflow: hidden; }
:focus-visible { outline: 3px solid #ffd23f; outline-offset: 3px; }

/* ------------------------------------------------------------ the map */
#mapview { position: fixed; inset: 0; z-index: 5; background: #d9d6cf url(art/tile.webp) repeat 0 0 / 551px auto; transition: opacity .35s ease, visibility .35s; }
#mapview::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, 0) 30%, rgba(0, 0, 0, .10)); pointer-events: none; }
#mapview.away { opacity: 0; visibility: hidden; }
/* the system map, behind glass in a steel frame on the wall */
.mapframe { position: absolute; inset: max(18px, 2.4vh) max(18px, 1.6vw); display: flex; flex-direction: column; border-radius: 3px;
  box-shadow: 0 0 0 7px #c9cdd0, 0 0 0 8px #8f9497, 0 0 0 9px rgba(255, 255, 255, .5), 0 18px 40px rgba(0, 0, 0, .28); }
.band { position: relative; flex: none; height: 58px; background: #111213; display: flex; align-items: center; padding: 0 26px; border-radius: 3px 3px 0 0; }
.bandline { position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: #fff; opacity: .9; }
.bandtitle { all: unset; cursor: pointer; color: #fff; font-size: 30px; font-weight: 700; letter-spacing: -.015em; padding-top: 6px; }
.bandtitle:hover, .bandtitle:focus-visible { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.bandtitle:focus-visible { outline: 3px solid #ffd23f; outline-offset: 4px; }
.mappaper { position: relative; flex: 1; min-height: 0; background: var(--paper); border-radius: 0 0 3px 3px; overflow: hidden; }
.mappaper::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 60px rgba(255, 252, 240, .5); }
.mapglass { position: absolute; inset: 0; pointer-events: none; border-radius: 3px; background: linear-gradient(112deg, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, .05) 22%, rgba(255, 255, 255, 0) 34%, rgba(255, 255, 255, 0) 72%, rgba(255, 255, 255, .07) 86%, rgba(255, 255, 255, 0) 100%); }
#net { position: absolute; inset: 0; width: 100%; height: 100%; display: block; user-select: none; -webkit-user-select: none; }
#net .river { fill: #cfe1ea; }
#net .casing { fill: none; stroke: var(--paper); stroke-width: 24; stroke-linecap: round; stroke-linejoin: round; }
#net .line { fill: none; stroke-width: 13; stroke-linecap: round; stroke-linejoin: round; }
#net .tick { stroke-width: 9; stroke-linecap: butt; }
#net .dot { fill: #fff; stroke: #1a1a1a; stroke-width: 5; transition: fill .15s; }
#net .xdot { stroke-width: 6; }
#net .st { cursor: pointer; outline: none; }
#net .st .hit { fill: transparent; }
#net .st .name { font-size: 19px; font-weight: 700; fill: #1a1a1a; letter-spacing: -.005em; }
#net .st:hover .dot, #net .st:focus-visible .dot { fill: #ffd23f; }
#net .st:hover .name, #net .st:focus-visible .name { fill: #000; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
#net .st .ring { fill: none; stroke: #e2231a; stroke-width: 5; opacity: 0; }
#net .st.here .ring { opacity: 1; animation: here 1.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
#net .st.here .dot { fill: #e2231a; }
@keyframes here { 0%, 100% { transform: scale(.85); opacity: 1; } 50% { transform: scale(1.15); opacity: .35; } }
#net .lgname { font-size: 11px; font-weight: 700; letter-spacing: .07em; fill: #3b3b3b; }

#peek { position: fixed; left: 0; top: 0; z-index: 6; width: 260px; padding: 8px 8px 12px; background: #fff; border-radius: 6px; pointer-events: none; opacity: 0; transition: opacity .14s;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .22), 0 0 0 1px rgba(0, 0, 0, .06); }
#peek.on { opacity: 1; }
#peek img { display: block; width: 244px; height: 163px; object-fit: cover; border-radius: 3px; background: #ddd; }
#peek b { display: block; margin: 9px 4px 0; font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
#peek small { display: block; margin: 2px 4px 0; font-size: 10px; font-weight: 700; letter-spacing: .1em; color: #77736b; }
#peek .stripe { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; border-radius: 0 0 6px 6px; background: var(--line); }

/* the line diagram on a phone */
#stripwrap { display: none; position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.strip { list-style: none; margin: 0; padding: 8px 0 calc(76px + env(safe-area-inset-bottom)); }
.strip li { margin: 0; }
.strip button { position: relative; display: grid; grid-template-columns: 56px 36px minmax(0, 1fr) 66px; align-items: center; column-gap: 12px; width: 100%; min-height: 64px; padding: 6px 16px 6px 0; border: 0; background: none; text-align: left; cursor: pointer; }
.strip button:active { background: rgba(0, 0, 0, .04); }
.rail { position: absolute; left: 0; top: 0; bottom: 0; width: 56px; }
.rail::before, .rail::after { content: ""; position: absolute; left: 22px; width: 12px; }
.rail::before { top: 0; height: 50%; background: var(--up); }
.rail::after { top: 50%; height: 50%; background: var(--dn); }
.sdot { position: absolute; left: 15px; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%; background: #fff; border: 5px solid #1a1a1a; z-index: 1; }
.xfer .sdot { width: 28px; height: 28px; margin-top: -14px; left: 14px; border-width: 6px; }
.strip .here .sdot { background: #e2231a; }
.sthumb { grid-column: 4; width: 66px; height: 44px; border-radius: 3px; object-fit: cover; display: block; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); background: #e4e0d6; }
.spic { grid-column: 2; width: 34px; height: 34px; display: block; }
.swords { grid-column: 3; display: flex; flex-direction: column; min-width: 0; }
.sname { font-size: 18px; font-weight: 700; line-height: 1.15; letter-spacing: -.01em; }
.sclient { font-size: 11px; font-weight: 700; letter-spacing: .08em; color: #6d6a63; margin-top: 3px; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 760px), (max-aspect-ratio: 4/5) {
  #net { display: none; }
  #stripwrap { display: block; }
  .mapframe { inset: 0; border-radius: 0; box-shadow: none; }
  .band { height: calc(54px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 18px 0; border-radius: 0; }
  .bandline { top: calc(7px + env(safe-area-inset-top)); }
  .bandtitle { font-size: 26px; }
  .mappaper { border-radius: 0; }
  .mapglass { display: none; }
}

/* ------------------------------------------------------------ the platform */
#station { position: static; }
#station[hidden] { display: none; }
#platform { position: fixed; inset: 0; z-index: 10; transform-origin: 0 0; background: #0b0c0d; }
#platform.inride { z-index: 31; background: transparent; }
#pscroll { position: absolute; inset: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; cursor: grab; }
#pscroll::-webkit-scrollbar { display: none; }
#pscroll.dragging { cursor: grabbing; }
#pscroll.free { overflow: visible; }
#pwall { position: relative; height: 100%; background: url(art/wall.webp) repeat-x; --u: 1; }
.frieze { position: absolute; left: 0; right: 0; background: var(--line); mix-blend-mode: multiply; pointer-events: none; }
.tablet { display: block; box-shadow: 0 1px 2px rgba(0, 0, 0, .18), 0 4px 14px rgba(0, 0, 0, .10); pointer-events: none; }
.bench { pointer-events: none; user-select: none; -webkit-user-drag: none; }
.mural { padding: 0; border: 0; background: #2a2a2a; cursor: pointer; box-shadow: 0 0 0 4px #bfc3c6, 0 0 0 5px #8e9396, 0 8px 22px rgba(0, 0, 0, .22); }
.mural img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; }
.mural::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, 0) 30%, rgba(0, 0, 0, .06)); pointer-events: none; }
.ad { padding: 0; border: 0; background: none; cursor: pointer; }
.ad::before { content: ""; position: absolute; inset: -10px; border-radius: 3px; z-index: 0;
  background: linear-gradient(180deg, #dfe2e4 0%, #b7bcbf 45%, #cfd3d5 55%, #9fa4a7 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6), 0 10px 24px rgba(0, 0, 0, .22), 0 2px 4px rgba(0, 0, 0, .18); }
.ad .face { position: absolute; inset: 0; z-index: 1; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .25), 0 0 26px rgba(255, 255, 255, .45); }
.ad .face img { display: block; width: 100%; height: 100%; object-fit: contain; }
.ad.screen::before, .ad.totem::before { inset: -9px; border-radius: 6px; background: linear-gradient(180deg, #2b2d30, #111214 60%, #1c1d20); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 10px 24px rgba(0, 0, 0, .3); }
.ad.screen .face, .ad.totem .face { background: #000; box-shadow: 0 0 18px rgba(170, 200, 255, .18); }
.ad.totem .face img { height: auto; animation: page 18s ease-in-out infinite alternate; }
@keyframes page { 0%, 12% { transform: translateY(0); } 88%, 100% { transform: translateY(var(--travel, 0px)); } }
.ad .glare { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(118deg, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, .04) 28%, rgba(255, 255, 255, 0) 46%, rgba(255, 255, 255, 0) 70%, rgba(255, 255, 255, .06) 100%); }
.ad .play { position: absolute; z-index: 3; left: 12px; bottom: 12px; width: 44px; height: 44px; border-radius: 50%; background: rgba(0, 0, 0, .55); box-shadow: 0 0 0 2px rgba(255, 255, 255, .85); pointer-events: none; }
.ad .play::after { content: ""; position: absolute; left: 17px; top: 13px; border-style: solid; border-width: 9px 0 9px 14px; border-color: transparent transparent transparent #fff; }
.ad:hover .face img, .mural:hover img { filter: brightness(1.05); }
.ad:focus-visible, .mural:focus-visible { outline: 4px solid #ffd23f; outline-offset: 14px; }

/* the station sign */
#sign { position: fixed; z-index: 20; left: 0; right: 0; top: 0; height: 60px; padding-top: env(safe-area-inset-top); display: grid; grid-template-columns: 60px minmax(0, 1fr) auto minmax(0, 1fr) 60px; align-items: center;
  background: var(--sign); color: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); transition: opacity .25s; }
body.riding #sign { opacity: 0; pointer-events: none; }
#sign .stripe, .studyhead .stripe { position: absolute; left: 0; right: 0; bottom: -6px; height: 6px; background: var(--line); }
.signbtn { width: 60px; height: 60px; border: 0; background: none; color: #fff; display: grid; place-items: center; cursor: pointer; }
.signbtn svg { width: 28px; height: 28px; }
.signbtn:hover { background: rgba(255, 255, 255, .08); }
.dir { height: 60px; border: 0; background: none; color: #d7d9db; display: flex; align-items: center; gap: 10px; cursor: pointer; min-width: 0; padding: 0 14px; font-size: 15px; font-weight: 600; }
.dir.prev { justify-content: flex-start; }
.dir.next { justify-content: flex-end; }
.dir:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.dir[hidden] { visibility: hidden; display: flex; }
.dname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.arrow { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--to, #fff); position: relative; }
.arrow::after { content: ""; position: absolute; top: 8px; border-style: solid; }
.prev .arrow::after { left: 7px; border-width: 5px 8px 5px 0; border-color: transparent #fff transparent transparent; }
.next .arrow::after { left: 10px; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent #fff; }
.here { display: flex; align-items: center; gap: 12px; padding: 0 18px; min-width: 0; justify-content: center; }
.herepic { width: 34px; height: 34px; flex: none; }
.herename { font-size: 24px; font-weight: 800; letter-spacing: -.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hereclient { font-size: 11px; font-weight: 700; letter-spacing: .1em; color: #9b9fa3; white-space: nowrap; }

@media (max-width: 760px), (max-aspect-ratio: 4/5) {
  #sign { height: auto; grid-template-columns: 52px minmax(0, 1fr) 52px; grid-template-rows: 54px 40px; }
  .signbtn { width: 52px; height: 54px; grid-row: 1; grid-column: 1; }
  .here { grid-row: 1; grid-column: 2; padding: 0 6px; gap: 8px; justify-content: flex-start; }
  .herename { font-size: 19px; }
  .hereclient { display: none; }
  .herepic { width: 28px; height: 28px; }
  .dir { grid-row: 2; height: 40px; font-size: 13px; padding: 0 12px; border-top: 1px solid rgba(255, 255, 255, .08); }
  .dir.prev { grid-column: 1 / 3; justify-self: start; max-width: 50vw; }
  .dir.next { grid-column: 2 / 4; justify-self: end; max-width: 50vw; }
  .arrow { width: 22px; height: 22px; }
  .arrow::after { top: 6px; }
  .prev .arrow::after { left: 6px; }
  .next .arrow::after { left: 9px; }
  .ad .play { width: 36px; height: 36px; left: 8px; bottom: 8px; }
  .ad .play::after { left: 14px; top: 10px; border-width: 8px 0 8px 12px; }
}

/* ------------------------------------------------------------ the ride */
#ride { display: none; }
#ride.on { display: block; }
#tunnel { position: fixed; inset: 0; z-index: 30; overflow: hidden; background: radial-gradient(120% 70% at 50% 50%, #15171a 0%, #08090a 60%, #040405 100%); }
#tunnel .ribs { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0) 0 150px, rgba(255, 255, 255, .045) 150px 168px, rgba(0, 0, 0, 0) 168px 260px, rgba(255, 255, 255, .02) 260px 268px, rgba(0, 0, 0, 0) 268px 420px); }
#tunnel .lamp { position: absolute; left: 0; width: 22vw; height: 5vh; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 244, 220, 1), rgba(255, 214, 150, .7) 35%, rgba(255, 190, 110, 0)); will-change: transform; mix-blend-mode: screen; }
#tunnel::after { content: ""; position: absolute; left: 0; right: 0; top: 47%; height: 1.2vh; background: linear-gradient(180deg, rgba(120, 130, 140, .0), rgba(120, 130, 140, .18), rgba(120, 130, 140, 0)); }
#tunnel .lamp:nth-child(2) { top: 30%; }
#tunnel .lamp:nth-child(3) { top: 52%; width: 10vw; }
#tunnel .lamp:nth-child(4) { top: 38%; width: 26vw; }
#tunnel .lamp:nth-child(5) { top: 64%; width: 14vw; height: 3vh; }
.carlayer { position: fixed; left: 0; top: 0; width: 2304px; height: 1536px; transform-origin: 0 0; pointer-events: none; will-change: transform, opacity; }
#doors { z-index: 32; }
#glass { z-index: 33; mix-blend-mode: screen; }
#carbody { z-index: 34; }
.carlayer > img { position: absolute; left: 0; top: 0; width: 2304px; height: 1536px; }
.doorclip { position: absolute; left: 650px; top: 302px; width: 1010px; height: 898px; overflow: hidden; }
.leaf { position: absolute; top: 0; height: 898px; will-change: transform; }
.leaf.l { left: 200px; width: 302px; }
.leaf.r { left: 502px; width: 308px; }
.lcd { position: absolute; left: 862px; top: 185px; width: 584px; height: 77px; display: flex; align-items: center; gap: 16px; padding: 0 18px; background: linear-gradient(180deg, #0d1218, #070a0e); color: #fff; overflow: hidden; }
.lcdline { flex: none; width: 12px; height: 52px; border-radius: 3px; background: var(--line); }
.lcdtext { min-width: 0; display: flex; flex-direction: column; }
.lcdtext small { font-size: 15px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #ffb547; }
.lcdtext b { font-size: 33px; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lcdpic { flex: none; width: 50px; height: 50px; margin-left: auto; }
.card { position: absolute; left: 0; top: 0; width: 528px; height: 118px; transform-origin: 0 0; display: flex; align-items: center; overflow: hidden; background: linear-gradient(90deg, #f6f5f1 0 64%, var(--line) 64%); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.card img { display: block; height: 100%; width: 64%; object-fit: contain; background: #f6f5f1; }
.card .cardpic { width: 62px; height: 62px; margin: 0 auto; }

/* ------------------------------------------------------------ the case study, in a lightbox */
#study, #about { width: 100vw; height: 100vh; height: 100dvh; max-width: 100vw; max-height: 100vh; max-height: 100dvh; margin: 0; padding: 0; border: 0; background: transparent; overflow: hidden; }
#study::backdrop, #about::backdrop { background: rgba(6, 7, 8, .66); }
.lightbox { position: absolute; top: 26px; bottom: 26px; left: max(26px, calc(50vw - 540px)); right: max(26px, calc(50vw - 540px)); display: flex; flex-direction: column; background: #fbfbf9; border-radius: 4px;
  box-shadow: 0 0 0 10px #c3c7ca, 0 0 0 11px #8b9093, 0 0 60px rgba(255, 255, 255, .12), 0 30px 90px rgba(0, 0, 0, .55); }
.studyhead { position: relative; flex: none; display: flex; align-items: center; gap: 14px; padding: 14px 14px 14px 18px; background: var(--sign); color: #fff; border-radius: 4px 4px 0 0; }
.studypic { width: 40px; height: 40px; flex: none; }
.studywords { min-width: 0; }
.studyhead h2 { margin: 0; font-size: 26px; line-height: 1.1; font-weight: 800; letter-spacing: -.015em; }
.studyhead p { margin: 4px 0 0; font-size: 11px; font-weight: 700; letter-spacing: .1em; color: #a2a6aa; text-transform: uppercase; }
.close { margin-left: auto; flex: none; width: 44px; height: 44px; border-radius: 22px; border: 0; background: rgba(255, 255, 255, .12); color: #fff; font: 28px/44px system-ui, sans-serif; cursor: pointer; }
.close:hover { background: rgba(255, 255, 255, .22); }
.studybody:focus { outline: none; }
.studybody { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 30px 30px 44px; font-size: 16px; line-height: 1.55; font-weight: 500;
  --ab-fg: #1b1b1b; --ab-muted: #62666b; --ab-accent: #1b1b1b; --ab-chrome: 150px; }
.studybody .ab-lede { font-size: 19px; line-height: 1.45; font-weight: 600; }
.studybody .ab-heading { font-size: 13px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: #3a3d40; }
.studybody .ab-credits { white-space: pre-line; }
.infopanel { left: max(26px, calc(50vw - 360px)); right: max(26px, calc(50vw - 360px)); top: auto; bottom: auto; max-height: calc(100% - 52px); top: 50%; transform: translateY(-50%); --line: #f08c00; }
.infopanel .studybody { padding: 26px 28px 32px; }
#about-bio { margin-top: 0; }
#about-jobs { padding-left: 18px; margin: 14px 0; }
#about-jobs li { margin: 4px 0; }
#about-contact a { color: inherit; }
@media (max-width: 760px), (max-aspect-ratio: 4/5) {
  .lightbox { top: max(10px, env(safe-area-inset-top)); bottom: max(10px, env(safe-area-inset-bottom)); left: 10px; right: 10px; box-shadow: 0 0 0 5px #c3c7ca, 0 0 0 6px #8b9093, 0 20px 60px rgba(0, 0, 0, .55); }
  .studyhead h2 { font-size: 21px; }
  .studybody { padding: 20px 16px 36px; --ab-chrome: 120px; }
  .infopanel { top: 50%; bottom: auto; }
}

/* ------------------------------------------------------------ sound, loading */
#sound { position: fixed; z-index: 40; right: max(14px, env(safe-area-inset-right)); bottom: max(14px, env(safe-area-inset-bottom)); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(18, 19, 20, .78); color: #fff; cursor: pointer; display: grid; place-items: center; }
#sound[hidden] { display: none; }
#sound span { width: 18px; height: 18px; display: block; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 9h4l5-4v14l-5-4H3z'/%3E%3Cpath d='M16 8.5a5 5 0 0 1 0 7M18.6 6a8.5 8.5 0 0 1 0 12' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 9h4l5-4v14l-5-4H3z'/%3E%3Cpath d='M16 8.5a5 5 0 0 1 0 7M18.6 6a8.5 8.5 0 0 1 0 12' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; }
#sound[aria-pressed="false"] span { opacity: .45; }
body.riding #sound { opacity: .5; }

#loader { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: var(--paper); transition: opacity .6s ease, visibility .6s; }
#loader.done { opacity: 0; visibility: hidden; }
#loadtab { display: block; max-width: 92vw; height: auto; grid-area: 1 / 1; }
#loader .lay { grid-area: 1 / 1; align-self: center; justify-self: center; display: block; background: #c4beb2; transform-origin: right center; transition: transform .25s steps(6); pointer-events: none; }
