:root {
  --ink: #fffaf2;
  --ink-dim: rgba(255, 250, 242, .78);
  --gold: #e8c48a;
  --paper: #fbf6ea;
  --paper-ink: #3b2f22;
  --bg: #0b0d12;
}
* { box-sizing: border-box; margin: 0; }
html { background: var(--bg); }
body { background: var(--bg); color: var(--ink); font: 400 16px/1.5 Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
/* no page scroll: main.js turns wheel / swipe / keys into moves between stages */
html, body { height: 100%; overflow: hidden; overscroll-behavior: none; }
body { touch-action: none; }
#macm, #macscreen, #lightbox { touch-action: pan-y; }
/* sized in px by main.js to innerWidth x innerHeight: 100vh is the LARGE viewport on phones (taller than what shows under the
   address bar), which stretched the picture vertically and pulled it off the DOM ink (card, screens) */
#gl { position: fixed; left: 0; top: 0; width: 100vw; height: 100dvh; display: block; }
#stage { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }

.beat { position: absolute; opacity: 0; will-change: opacity, transform; text-shadow: 0 2px 24px rgba(0, 0, 0, .35); }
.eyebrow { font: 600 12px/1 Inter, sans-serif; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
h1 { font: 500 clamp(44px, 7vw, 104px)/.95 'Cormorant Garamond', serif; letter-spacing: -.01em; }
h2 { font: 500 clamp(30px, 4.2vw, 60px)/1.05 'Cormorant Garamond', serif; }
.lede { font-size: clamp(15px, 1.3vw, 19px); color: var(--ink-dim); margin-top: 16px; max-width: 34ch; }
.small { font-size: 13px; color: var(--ink-dim); margin-top: 10px; }

.intro { left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; }
.intro .lede { margin-inline: auto; }
.intro::before { content: ''; position: absolute; z-index: -1; inset: -30dvh -30vw; background: radial-gradient(closest-side, rgba(25, 30, 45, .42), transparent); pointer-events: none; }
.hint { margin-top: 48px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-dim); display: flex; flex-direction: column; align-items: center; gap: 12px; }
/* the cue: a mouse with its wheel turning, or (.touch) a fingertip swiping up; the words follow the device */
.cue { position: relative; width: 22px; height: 34px; border: 1.5px solid var(--ink); border-radius: 12px; opacity: .9; }
.cue::before { content: ''; position: absolute; left: 50%; top: 6px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--ink); animation: wheelcue 1.7s ease-in-out infinite; }
@keyframes wheelcue { 0% { transform: translateY(0); opacity: 1 } 65% { transform: translateY(11px); opacity: 0 } 100% { transform: translateY(0); opacity: 0 } }
.touch .cue { border: none; width: 24px; height: 44px; }
.touch .cue::before { top: auto; bottom: 2px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: rgba(255, 250, 242, .92);
  box-shadow: 0 0 0 4px rgba(255, 250, 242, .18); animation: swipecue 1.9s ease-in-out infinite; }
@keyframes swipecue { 0% { transform: translateY(0); opacity: 0 } 15% { opacity: 1 } 70% { transform: translateY(-28px); opacity: 1 } 100% { transform: translateY(-28px); opacity: 0 } }
.for-touch { display: none; } .touch .for-touch { display: inline; } .touch .for-mouse { display: none; }
.cue-k { font-style: normal; font-size: 10px; letter-spacing: .16em; opacity: .7; margin-top: -6px; }
.intro-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.intro-acts .skip { margin-top: 0; }
.skip.play { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; gap: 9px; cursor: pointer; pointer-events: auto; font: 600 13px Inter, sans-serif;
  letter-spacing: .08em; color: #21180e; padding: 9px 17px; border-radius: 999px; background: var(--gold); border: 1px solid var(--gold); }
.skip.play svg { width: 9px; height: 11px; fill: currentColor; }
.skip.play:hover { background: #f1d4a2; } .skip.play:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .cue::before { animation: none; } }
@media (max-height: 500px) { .hint .cue { display: none; } .hint { margin-top: 26px; } }   /* a phone held sideways: room for the buttons */

.caption.left { left: 7vw; bottom: 14dvh; }
.caption.right { right: 7vw; bottom: 14dvh; text-align: right; }
.caption.top { left: 50%; top: 7dvh; transform: translateX(-50%); text-align: center; white-space: nowrap; }
.caption.bottom { left: 50%; bottom: 3.5dvh; transform: translateX(-50%); text-align: center; white-space: nowrap; }
.caption h2 { color: #fff; }

/* certificates are positioned by main.js onto the frames in the office image */
#certs { position: absolute; inset: 0; }
/* certificates: ink printed onto the photographed paper. main.js maps each 300x440 box onto the paper quad (medal at the
   top 30 % comes from the photo); the whole layer multiplies onto the canvas, so paper texture, glass and light show through */
#gl { z-index: 0; }
#certs { position: fixed; inset: 0; z-index: 1; pointer-events: none; mix-blend-mode: multiply; }
#stage { z-index: 2; }
#stage2 { position: fixed; inset: 0; z-index: 5; pointer-events: none; }   /* above the card ink layer */
.caption.contact { max-width: min(30vw, 420px); }
.caption.upper { top: 13dvh; bottom: auto; }   /* the living city and its billboards are in the lower half */
.caption.upper::before { content: ''; position: absolute; z-index: -1; inset: -40% -30% -40% -20%; background: radial-gradient(closest-side, rgba(30, 24, 18, .38), transparent); pointer-events: none; }
@media (max-width: 760px) { .caption.contact { top: 6dvh; bottom: auto; max-width: none; } }
.cert {
  position: absolute; left: 0; top: 0; width: 320px; height: 230px; transform-origin: 0 0; opacity: 0;
  padding: 22px 26px; text-align: center; cursor: pointer; color: var(--cert-ink, #2f2618);
  display: flex; flex-direction: column; align-items: center; justify-content: center; filter: blur(calc(var(--dof, 0px) + .3px));
}
.cert:hover { --cert-ink: #120c05; }
.cert .k, .paper .k { font: 600 10px/1.2 Inter, sans-serif; letter-spacing: .28em; text-transform: uppercase; color: #8a6a3a; }
.cert .t, .paper .t { font: 600 21px/1.1 'Cormorant Garamond', serif; margin-top: 8px; }
.cert .p, .paper .p { font: italic 500 11px/1.2 'Cormorant Garamond', serif; margin-top: 10px; opacity: .8; }
.cert .n, .paper .n { font: 400 24px/1.15 'Pinyon Script', cursive; margin-top: 2px; white-space: nowrap; }
.cert .i, .paper .i { font: 500 10px/1.3 Inter, sans-serif; letter-spacing: .06em; margin-top: 8px; opacity: .8; }
.cert .d, .paper .d { font: 500 10px/1.3 Inter, sans-serif; margin-top: 3px; opacity: .65; }
#lightbox .paper.wide { aspect-ratio: 4 / 3; width: min(620px, 90vw); padding: 7% 9%; justify-content: center; }
#lightbox .paper.wide .t { font-size: clamp(24px, 4.4vw, 36px); } #lightbox .paper.wide .n { font-size: clamp(30px, 6vw, 46px); }
#lightbox .paper.wide .k, #lightbox .paper.wide .i, #lightbox .paper.wide .d { font-size: clamp(10px, 1.8vw, 13px); }
.outro h1 span { display: inline-block; opacity: 0; filter: blur(8px); translate: 0 18px;
  transition: opacity .45s ease, filter .45s ease, translate .45s ease; transition-delay: calc(var(--i) * 26ms); }
.outro.named h1 span { opacity: 1; filter: none; translate: 0 0; transition-delay: calc(.15s + var(--i) * 55ms); }

.outro { left: 7vw; bottom: 9dvh; max-width: 520px; }   /* low on the left: the certificates hang above it */
.outro::before { content: ''; position: absolute; z-index: -1; inset: -60dvh -40vw -60dvh -20vw; background: radial-gradient(closest-side, rgba(20, 12, 4, .55), transparent); pointer-events: none; }
.links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.links a { pointer-events: auto; text-decoration: none; color: var(--ink); font: 500 15px Inter, sans-serif; padding: 13px 22px; border-radius: 999px;
  border: 1px solid rgba(255, 240, 220, .45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); background: rgba(30, 22, 14, .25); transition: background .2s, transform .2s; }
.links a:hover { background: rgba(255, 240, 220, .18); transform: translateY(-2px); }
.links a.primary { background: var(--gold); color: #21180e; border-color: var(--gold); }
.links a.primary:hover { background: #f3d6a6; }

#lightbox { position: fixed; inset: 0; z-index: 20; background: rgba(8, 6, 4, .72); backdrop-filter: blur(6px); display: grid; place-items: center; cursor: zoom-out; }
#lightbox[hidden] { display: none; }
/* the lightbox shows the certificate as a paper card: ivory stock with fibre noise, gold foil double rule, medal on a ribbon */
#lightbox .paper {
  position: relative; width: min(460px, 86vw); aspect-ratio: 300 / 420; padding: 34% 9% 9%; color: #2f2214; cursor: default;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .38 0 0 0 0 .28 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(130% 100% at 35% 20%, #fffdf7, #f8f1e2 60%, #ece0c6);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45), inset 0 0 0 16px transparent, inset 0 0 60px rgba(150, 110, 50, .12);
}
#lightbox .paper::before { content: ''; position: absolute; inset: 5%; border: 1.5px solid #b8914a; outline: .5px solid #d9bd85; outline-offset: -6px; pointer-events: none; }
#lightbox .paper .rib { position: absolute; top: 0; left: 50%; width: 9%; height: 17%; transform: translateX(-50%);
  background: linear-gradient(90deg, #1f3a73 0 33%, #f2ede2 33% 66%, #a82a2f 66%); box-shadow: inset 0 -8px 12px rgba(0, 0, 0, .15); }
#lightbox .paper .medal { position: absolute; top: 12%; left: 50%; width: 15%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff1c4, #d8ae52 35%, #9c7024 70%, #6e4d17); box-shadow: 0 3px 8px rgba(0, 0, 0, .35), inset 0 0 0 3px rgba(255, 236, 190, .45), inset 0 0 0 6px rgba(120, 85, 25, .35); }
#lightbox .paper .n { font-size: clamp(34px, 7vw, 52px); }
#lightbox .paper .t { font-size: clamp(22px, 4.6vw, 32px); }
#lightbox .paper .k { font-size: clamp(11px, 2.2vw, 14px); }
#lightbox .paper .p, #lightbox .paper .i { font-size: clamp(12px, 2.2vw, 14px); }

#loader { position: fixed; inset: 0; z-index: 30; background: var(--bg); display: grid; place-content: center; gap: 14px; text-align: center; transition: opacity .8s; }
#loader .bar { width: 220px; height: 2px; background: rgba(255, 255, 255, .12); }
#loader .bar i { display: block; height: 100%; width: 0; background: var(--gold); transition: width .2s; }
#loader p { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-dim); }
#loader.done { opacity: 0; pointer-events: none; }

/* ---------- the computer on the desk: a small desktop OS (1344x720, mapped onto the iMac glass by main.js) ---------- */
#screen { position: fixed; inset: 0; z-index: 1; pointer-events: none; }
#screenglow { position: absolute; left: 0; top: 0; opacity: 0; border-radius: 50%; mix-blend-mode: screen;
  background: radial-gradient(closest-side, rgba(150, 175, 230, .32), rgba(120, 140, 210, .1) 55%, transparent); filter: blur(8px); }
#macscreen { position: absolute; left: 0; top: 0; width: 1344px; height: 720px; transform-origin: 0 0; display: none; overflow: hidden; }
.devscreen { position: absolute; left: 0; top: 0; transform-origin: 0 0; display: none; overflow: hidden; }
.devlive, .devidle { position: absolute; inset: 0; }
/* the quiet lock screen on the devices that are not the visitor's */
.lockmini { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; color: #fff; font-family: Inter, system-ui, sans-serif;
  background: radial-gradient(60% 80% at 20% 90%, #f3a35f 0, transparent 60%), radial-gradient(55% 70% at 85% 20%, #6d5bd0 0, transparent 60%),
    radial-gradient(70% 90% at 60% 75%, #d0567b 0, transparent 65%), linear-gradient(160deg, #23234a, #3a2f6b 45%, #b34d6a 80%, #f0a15e); }
.lockmini .ld { order: -1; margin-top: 7%; font: 500 2.4cqw/1 Inter, sans-serif; opacity: .9; }
.lockmini .lt { font: 600 11cqw/1 Inter, sans-serif; letter-spacing: -.02em; margin-top: 1%; }
.lockmini .lh { position: absolute; bottom: 6%; font: 500 1.6cqw/1 Inter, sans-serif; opacity: .8; }
.devlive, .devidle, #macscreen { container-type: size; }
.lockmini.dev-iphone .ld { margin-top: 26%; font-size: 4.6cqw; } .lockmini.dev-iphone .lt { font-size: 22cqw; } .lockmini.dev-iphone .lh { font-size: 3.6cqw; }
#macm { position: fixed; inset: 0; z-index: 3; display: none; transform-origin: 50% 50%; }
/* case study in the lightbox */
#lightbox .case { width: min(720px, 92vw); max-height: 88dvh; overflow: auto; padding: 36px 40px; border-radius: 18px; cursor: default;
  background: linear-gradient(160deg, #0f1c2c, #070b11); border: 1px solid rgba(120, 170, 220, .25); color: #d4e3f2; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
#lightbox .case h3 { font: 600 clamp(26px, 4vw, 38px)/1.1 Inter, sans-serif; color: #fff; margin-bottom: 18px; }
#lightbox .case .lbl { font: 600 12px/1 Inter, sans-serif; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin: 16px 0 6px; }
#lightbox .case .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
#lightbox .case .chips span { font-size: 13px; padding: 6px 11px; border-radius: 999px; background: rgba(120, 170, 230, .12); border: 1px solid rgba(120, 170, 230, .28); }
#lightbox .case .mrow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px; }
#lightbox .case .mrow b { display: block; font: 600 28px/1 Inter, sans-serif; color: #fff; } #lightbox .case .mrow i { font-style: normal; font-size: 13px; color: #8aa6c2; }
#lightbox .case .links { margin-top: 24px; }

/* the business card: .bcp is ink printed onto the card in your hand (inside #certs, which multiplies onto the canvas);
   .bc.big is the same card in the lightbox */
.bcp, .bc { width: 420px; height: 240px; padding: 26px 30px 22px; color: #2a2017; }
.bcp { position: absolute; left: 0; top: 0; transform-origin: 0 0; opacity: 0; filter: blur(.35px); cursor: zoom-in; padding-right: 86px; }   /* your thumb is on the right edge */
.bcp .bc-row { position: relative; z-index: 1; }
.bc { position: relative; border-radius: 10px; cursor: default;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 .4 0 0 0 0 .35 0 0 0 0 .28 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(135deg, #fffdf8, #f4eee2);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .5), 0 1px 2px rgba(0, 0, 0, .2); }
.bc.big { width: min(560px, 92vw); height: auto; min-height: calc(min(560px, 92vw) * 240 / 420); padding: clamp(18px, 5vw, 34px) clamp(20px, 6vw, 40px); }
.bc.big .bc-n { font-size: clamp(26px, 6vw, 38px); } .bc.big .bc-row { font-size: clamp(13px, 3.4vw, 16px); }
.bc-n { font: 600 30px/1 'Cormorant Garamond', serif; letter-spacing: .01em; }
.bc-r { font: 500 11px/1.3 Inter, sans-serif; letter-spacing: .18em; text-transform: uppercase; color: #8a6a3a; margin-top: 7px; }
.bc-rule { height: 1px; background: linear-gradient(90deg, #b8914a, transparent); margin: 14px 0 10px; }
.bc-row { display: flex; gap: 12px; font: 400 13.5px/1.75 Inter, sans-serif; color: #2a2017; text-decoration: none; }
.bc-row span { width: 74px; flex: none; color: #9a8466; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; line-height: 2.1; }
.bc-row:hover { color: #000; text-decoration: underline; text-underline-offset: 3px; }
.lb-verify { display: block; margin-top: 16px; text-align: center; font: 500 12px Inter, sans-serif; letter-spacing: .08em; color: #ecd6aa; text-decoration: none; cursor: pointer; }
.lb-verify:hover, .lb-verify:focus-visible { text-decoration: underline; }
.bc-back { display: block; margin-top: 14px; text-align: right; font: 500 11px Inter, sans-serif; color: #8a6a3a; text-decoration: none; letter-spacing: .06em; }

/* chapters: dots on the right edge, the current one long and gold; labels on hover */
#stages { position: fixed; right: 18px; top: 50%; translate: 0 -50%; z-index: 6; display: grid; gap: 4px; }
#stages button { all: unset; cursor: pointer; display: flex; align-items: center; justify-content: flex-end; gap: 10px; height: 18px; width: 24px; overflow: visible; margin-left: auto; position: relative; }
#stages span { position: absolute; right: 22px; }   /* the label floats left of its dot: every dot sits on one vertical line */
#stages i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255, 248, 235, .55); box-shadow: 0 0 6px rgba(0, 0, 0, .45);
  transition: height .35s, background .35s; }
#stages button.on i { height: 18px; background: var(--gold); }
#stages span { order: -1; font: 500 11px/1 Inter, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); opacity: 0;
  translate: 6px 0; transition: opacity .2s, translate .2s; text-shadow: 0 1px 8px rgba(0, 0, 0, .7); white-space: nowrap; pointer-events: none; }
#stages button:hover span, #stages button:focus-visible span { opacity: 1; translate: 0 0; }
#stages button:focus-visible i { outline: 2px solid var(--gold); outline-offset: 3px; }
/* our floor on the tower: an invisible door with a small label on hover */
#floorhot { all: unset; position: fixed; left: 0; top: 0; z-index: 3; display: none; cursor: pointer; border-radius: 3px; }
#floorhot span { position: absolute; left: 50%; bottom: calc(100% + 10px); translate: -50% 4px; white-space: nowrap; font: 600 11px/1 Inter, sans-serif;
  letter-spacing: .16em; text-transform: uppercase; color: #fff; padding: 7px 11px; border-radius: 999px; background: rgba(20, 16, 12, .55);
  backdrop-filter: blur(6px); opacity: 0; transition: opacity .25s, translate .25s; pointer-events: none; }
#floorhot:hover span, #floorhot:focus-visible span { opacity: 1; translate: -50% 0; }
#floorhot:focus-visible { outline: 1px solid rgba(255, 230, 190, .7); outline-offset: 3px; }
/* resting at a stage: what comes next (a pill at the bottom; on phones and short screens at the top); the tour's stop button */
#nextpill { all: unset; box-sizing: border-box; position: fixed; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); z-index: 6; translate: -50% 6px;
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; cursor: pointer; font: 500 11px/1 Inter, sans-serif; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink); padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(255, 240, 220, .32);
  background: rgba(20, 16, 12, .38); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; pointer-events: none;
  transition: opacity .4s, translate .4s; text-shadow: 0 1px 8px rgba(0, 0, 0, .4); }
#nextpill.show { opacity: 1; translate: -50% 0; pointer-events: auto; }
#nextpill b { color: var(--gold); font-weight: 600; } #nextpill .n { opacity: .65; }
#nextpill i { font-style: normal; display: inline-block; animation: nudge 1.6s ease-in-out infinite; }
#nextpill:hover { background: rgba(40, 30, 20, .55); } #nextpill:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
@keyframes nudge { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(3px) } }
#nextpill.up i { animation-direction: reverse; }
#progressbar { display: none; position: fixed; left: 0; top: 0; height: 2px; width: 0; z-index: 6; background: var(--gold); opacity: .85; pointer-events: none; }
@media (max-width: 760px), (max-height: 500px) {
  #nextpill { top: calc(10px + env(safe-area-inset-top)); bottom: auto; translate: -50% -6px; font-size: 10px; padding: 7px 12px; gap: 6px; }
  #nextpill.show { translate: -50% 0; }
  #progressbar { display: block; }
}
@media (prefers-reduced-motion: reduce) { #nextpill i { animation: none; } }
/* a pulse on something to click, the first time its stage is reached; its words under it */
#hotring { position: fixed; left: 0; top: 0; z-index: 4; width: 64px; height: 64px; pointer-events: none; opacity: 0; transition: opacity .4s; }
#hotring.show { opacity: 1; }
#hotring i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(255, 236, 200, .95); box-shadow: 0 0 18px rgba(255, 220, 160, .55);
  animation: hotpulse 1.8s ease-out infinite; }
#hotring i + i { animation-delay: .9s; }
@keyframes hotpulse { 0% { transform: scale(.35); opacity: 0 } 15% { opacity: 1 } 100% { transform: scale(1.25); opacity: 0 } }
#hotring span { position: absolute; left: 50%; top: calc(100% + 10px); translate: -50% 0; white-space: nowrap; font: 600 11px/1 Inter, sans-serif;
  letter-spacing: .14em; text-transform: uppercase; color: #fff; padding: 7px 11px; border-radius: 999px; background: rgba(20, 16, 12, .6);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
@media (prefers-reduced-motion: reduce) { #hotring i { animation: none; transform: scale(.9); } #hotring i + i { display: none; } }
/* a desktop pointer over something to click: what a click does, right by the pointer */
#cursorlabel { position: fixed; left: 0; top: 0; z-index: 25; pointer-events: none; white-space: nowrap; font: 600 11px/1 Inter, sans-serif;
  letter-spacing: .12em; text-transform: uppercase; color: #21180e; padding: 6px 10px; border-radius: 999px; background: var(--gold);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .35); opacity: 0; scale: .9; transition: opacity .18s, scale .18s; }
#cursorlabel.show { opacity: 1; scale: 1; }
/* a far jump: a quick fade to dark and back */
#veil { position: fixed; inset: 0; z-index: 7; background: #07080b; opacity: 0; pointer-events: none; transition: opacity .3s ease; }
#veil.on { opacity: 1; }
.skip { display: inline-block; margin-top: 22px; pointer-events: auto; font: 500 13px Inter, sans-serif; letter-spacing: .08em; color: var(--ink);
  text-decoration: none; padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(255, 240, 220, .4); background: rgba(30, 22, 14, .2); backdrop-filter: blur(8px); }
.skip:hover { background: rgba(255, 240, 220, .16); }

@media (max-width: 760px) {
  #stages { right: 8px; gap: 2px; } #stages button { height: 15px; } #stages span { display: none; }
  /* compact and low so the coffee cup stays visible above it */
  .outro { left: 6vw; right: 6vw; top: auto; bottom: 3dvh; transform: none; }
  /* the full screen width: .outro keeps its 520 px max-width, which left a hard right edge on screens 600-760 px wide */
  .outro::before { content: ''; position: absolute; inset: -12dvh auto -3dvh -6vw; width: 100vw; background: linear-gradient(transparent, rgba(12, 8, 4, .88) 38%, rgba(12, 8, 4, .97) 80%); z-index: -1; }
  .outro .eyebrow { margin-bottom: 8px; }
  .outro .lede { font-size: 14px; margin-top: 8px; }
  .outro .links { gap: 8px; margin-top: 16px; }
  .outro .links a { font-size: 14px; padding: 9px 15px; }
  .caption.left, .caption.right { left: 6vw; right: 6vw; text-align: left; }
  .caption.top, .caption.bottom { white-space: normal; width: 88vw; }
}

/* ---------- 24th round: text version, keyboard, legibility, reduced motion ---------- */
/* the text version: always in the page for screen readers and search engines (visually hidden), a readable page when
   opened ("Text version"), the whole site without WebGL2 (boot.js) */
.textv { position: fixed; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.tv-open .textv { width: auto; height: auto; clip-path: none; white-space: normal; inset: 0; z-index: 50; overflow: auto; padding: clamp(28px, 6vw, 72px) clamp(20px, 8vw, 120px);
  background: #0e1016; color: var(--ink); font: 400 16px/1.6 Inter, system-ui, sans-serif; }
.tv-open .textv > * { max-width: 760px; margin-inline: auto; }
.textv h1 { font: 500 clamp(36px, 6vw, 64px)/1 'Cormorant Garamond', serif; margin: 6px 0 8px; }
.textv h2 { font: 600 12px/1 Inter, sans-serif; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin: 40px auto 14px; }
.textv h3 { font: 600 18px/1.3 Inter, sans-serif; margin-top: 18px; } .textv .tk { color: var(--ink-dim); font-size: 13px; }
.textv p, .textv li { color: var(--ink-dim); margin-top: 6px; } .textv b { color: var(--ink); }
.textv a { color: var(--gold); } .textv ul { padding-left: 1.2em; } .textv .tv-contact { list-style: none; padding: 0; }
.textv .tv-contact span { display: inline-block; width: 90px; color: var(--gold); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.textv .tv-eyebrow { color: var(--gold); font: 600 12px/1 Inter, sans-serif; letter-spacing: .28em; text-transform: uppercase; }
.textv .tv-role { color: var(--ink); font-size: 18px; }
.tv-close { position: fixed; top: 16px; right: 18px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; font-size: 16px; cursor: pointer; }
.tv-open #stages, .tv-open #floorhot { display: none; }
.skiplink { position: fixed; left: 12px; top: -60px; z-index: 60; padding: 8px 14px; border-radius: 8px; background: #fff; color: #111; font: 600 13px Inter, sans-serif; }
.skiplink:focus { top: 12px; }
.intro .textlink { display: inline-block; margin-top: 12px; margin-left: 14px; font: 500 12px Inter, sans-serif; color: var(--ink-dim); text-decoration: underline; text-underline-offset: 3px; }
/* the small gold labels stay legible over bright sky, fog and the white cup */
.eyebrow { text-shadow: 0 1px 2px rgba(0, 0, 0, .55), 0 0 18px rgba(0, 0, 0, .45); }
.caption .small { text-shadow: 0 1px 2px rgba(0, 0, 0, .6), 0 0 14px rgba(0, 0, 0, .45); }
/* keyboard focus is visible on everything you can reach by Tab */
.cert:focus-visible, .bcp:focus-visible, #stages button:focus-visible, .skip:focus-visible, .textlink:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
#lightbox:focus { outline: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
#stages.dim { opacity: .3; transition: opacity .3s; } #stages.dim:hover, #stages.dim:focus-within { opacity: 1; }
