/* London after dark, seen from above. One living map sits behind the whole page;
   the only light on it is where your group can all get to. Words sit beside it, never on a card unless you press it. */
:root {
  --night: #141210;     /* the ground: warm black, the app's own dark */
  --rise: #201D1A;      /* raised surfaces */
  --rise2: #2B2723;     /* pop-ups */
  --cream: #F6EFE6;     /* words */
  --mute: rgba(246, 239, 230, .68);
  --hair: rgba(246, 239, 230, .16);
  --yellow: #FFBC15;    /* the light: the overlap, the answer, the one button */
  --p0: #F6EFE6; --p1: #FF6B5E; --p2: #3DD9C1; --p3: #B79CFF;   /* people on the map */
  --display: 'Bric', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  --text: 'Bric', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ui: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--night); color: var(--cream); font-family: var(--text); font-weight: 500; font-stretch: 100%; font-size: 17px; line-height: 1.45; -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, p, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; }
img { max-width: 100%; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.wrap { max-width: 1320px; margin-inline: auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.d { font-family: var(--display); font-stretch: 75%; font-weight: 800; letter-spacing: -.012em; line-height: .9; text-wrap: balance; }
.y { color: var(--yellow); }

/* the map and its pins stay put; the page scrolls over them */
.world { position: fixed; inset: 0; z-index: 0; }
.world canvas { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; }
.pins { position: fixed; inset: 0; z-index: 1; pointer-events: none; transition: opacity 260ms ease; }
.pins.off { opacity: 0; }
main, .bar, .foot { position: relative; z-index: 2; }
/* the page lets touches through to the pins, except where there is something to read or press */
main, .scene { pointer-events: none; }
.copy-a, .copy-b, .words, .stagebox > *, .end > .wrap { pointer-events: auto; }

/* things you press: capsules */
.btn { display: inline-flex; align-items: center; gap: 10px; border: 0; border-radius: 999px; padding: 14px 20px; font-weight: 700; font-size: 16px; line-height: 1; text-decoration: none; white-space: nowrap; transition: transform 140ms var(--ease-out); }
.btn:active { transform: scale(.97); }
.btn svg { width: 17px; height: 19px; flex: none; }
.btn.go { background: var(--yellow); color: var(--night); }
.btn.line { background: rgba(20, 18, 16, .5); color: var(--cream); box-shadow: inset 0 0 0 1.5px rgba(246, 239, 230, .5); }
.btn.sm { padding: 11px 17px; font-size: 15px; }

.bar { position: absolute; inset: 0 0 auto; z-index: 6; padding-top: 18px; }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-stretch: 75%; font-weight: 800; font-size: 30px; line-height: 1; }
.brand svg { width: 38px; height: 34px; }
.nav { display: flex; align-items: center; gap: 26px; font-weight: 600; font-size: 15px; }
.nav a.t { text-decoration: none; opacity: .8; }
.nav a.t:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- first screen ---------- */
.hero-grid { display: grid; grid-template-columns: minmax(0, 500px) minmax(0, 1fr); grid-template-areas: "a fit" "b fit"; column-gap: 32px; align-content: center; min-height: max(640px, 100svh); padding-block: 100px 56px; pointer-events: none; }
.copy-a, .copy-b { pointer-events: auto; }
.copy-a { grid-area: a; position: relative; align-self: end; }
.copy-b { grid-area: b; align-self: start; padding-top: 24px; }
#fit { grid-area: fit; min-height: 400px; }
h1 { font-size: clamp(64px, 8.4vw, 132px); }
h2 { font-size: clamp(44px, 5.6vw, 88px); }
.lead { margin-top: 20px; font-size: clamp(18px, 1.45vw, 21px); max-width: 29em; color: var(--mute); }
.lead b { color: var(--cream); font-weight: 700; }
.ask { margin-top: 26px; font-weight: 700; font-size: 16px; }
.who { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { display: inline-flex; align-items: center; gap: 9px; border-radius: 999px; border: 1.5px solid rgba(246, 239, 230, .3); background: rgba(32, 29, 26, .82); padding: 9px 14px 9px 11px; font-weight: 700; font-size: 16px; line-height: 1; transition: transform 140ms var(--ease-out), border-color 140ms ease; }
.chip:active { transform: scale(.97); }
.chip[aria-expanded="true"] { border-color: var(--cream); }
.chip i { width: 12px; height: 12px; border-radius: 50%; background: var(--c); flex: none; }
.chip em { font-style: normal; font-weight: 500; opacity: .66; }
.chip svg { width: 11px; height: 7px; flex: none; opacity: .7; }
.chip.add { border-style: dashed; background: transparent; padding-left: 14px; }
.chip.plain { border-color: transparent; background: transparent; padding-inline: 8px; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }

.pick { position: absolute; z-index: 7; left: 0; top: calc(100% + 10px); width: min(540px, 100%); background: var(--rise2); border-radius: 20px; box-shadow: 0 24px 60px rgba(0, 0, 0, .55), inset 0 0 0 1px var(--hair); padding: 14px; transform-origin: var(--ox, 40px) 0; transition: transform 160ms var(--ease-out), opacity 160ms var(--ease-out); }
.pick.shut { transform: scale(.96); opacity: 0; pointer-events: none; }
.pick-top { display: flex; align-items: center; gap: 10px; }
.pick-top label { font-weight: 700; flex: 1; min-width: 0; }
.pick-top button { border: 0; background: transparent; color: var(--p1); font-weight: 700; font-size: 14px; padding: 6px 4px; }
.pick input { width: 100%; margin-top: 10px; border: 1.5px solid rgba(246, 239, 230, .4); border-radius: 12px; padding: 10px 12px; font: inherit; font-weight: 600; color: var(--cream); background: var(--night); }
.pick input::placeholder { color: rgba(246, 239, 230, .45); }
.pick ul { margin-top: 10px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px 6px; max-height: 250px; overflow-y: auto; overscroll-behavior: contain; }
.pick li button { width: 100%; text-align: left; border: 0; background: transparent; border-radius: 999px; padding: 8px 12px; font-weight: 600; font-size: 15px; line-height: 1.1; }
.pick li button:hover { background: rgba(246, 239, 230, .09); }
.pick li button[aria-current="true"] { background: var(--yellow); color: var(--night); }
.pick li button:disabled { opacity: .32; cursor: default; background: transparent; }
.pick .none { grid-column: 1 / -1; padding: 10px 12px; font-weight: 600; opacity: .7; }

.answer .k { font-weight: 700; font-size: 16px; color: var(--mute); }
.answer .place { margin-top: 2px; font-size: clamp(52px, 6vw, 92px); line-height: .92; color: var(--yellow); overflow: hidden; padding-bottom: .1em; }
.answer .place > span { display: block; }
.answer .place .ft { display: inline-block; white-space: nowrap; transform-origin: 0 100%; }
.answer .place > span.swap { animation: swap 260ms var(--ease-out); }
@keyframes swap { from { transform: translateY(46%); opacity: 0; } to { transform: none; opacity: 1; } }
.answer .note { margin-top: 4px; font-size: clamp(17px, 1.4vw, 20px); font-weight: 600; min-height: 1.45em; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.fine { margin-top: 14px; font-size: 14.5px; color: var(--mute); max-width: 34em; }
.src { position: absolute; right: max(20px, env(safe-area-inset-right, 0px)); bottom: 16px; font-size: 13px; color: rgba(246, 239, 230, .55); text-align: right; }
.hero { position: relative; }

/* pins and map words: real elements, so they can be held and read */
.pin { position: absolute; left: 0; top: 0; width: 44px; height: 44px; margin: -22px 0 0 -22px; border: 0; background: transparent; padding: 0; touch-action: none; cursor: grab; will-change: transform; }
.pins.live .pin { pointer-events: auto; }
.pin:active { cursor: grabbing; }
.pin .in { position: absolute; inset: 0; transform: scale(var(--v, 1)); opacity: var(--v, 1); }
.pin .dot { position: absolute; inset: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px var(--night), 0 0 0 4.5px var(--c); display: grid; place-items: center; font-family: var(--display); font-stretch: 75%; font-weight: 800; font-size: 14px; line-height: 1; color: var(--night); transition: transform 140ms var(--ease-out); }
.pin.held .dot { transform: scale(1.2); }
.pin .lab { position: absolute; top: 50%; left: 100%; transform: translate(0, -50%); white-space: nowrap; font-weight: 700; font-size: 15px; line-height: 1; color: var(--cream); text-shadow: 0 0 4px var(--night), 0 0 4px var(--night), 0 0 8px var(--night), 0 0 12px var(--night); pointer-events: none; }
.pin.l .lab { left: auto; right: 100%; }
.pin.b .lab { left: 50%; top: 100%; transform: translate(-50%, -2px); }
.pin .lab i { font-style: normal; font-weight: 600; font-size: 13px; color: var(--yellow); margin-left: 7px; display: none; }
.pins.live .pin.hint .lab i { display: inline; }
.fairtag { position: absolute; left: 0; top: 0; pointer-events: none; will-change: transform; transform-origin: 50% 50%; white-space: nowrap; line-height: 1; text-shadow: 0 0 4px var(--night), 0 0 6px var(--night), 0 0 12px var(--night), 0 0 18px var(--night); }
.fairtag b { display: block; font-family: var(--display); font-stretch: 75%; font-weight: 800; font-size: 30px; color: var(--yellow); }
.fairtag i { display: block; margin-top: 4px; font-style: normal; font-weight: 700; font-size: 14px; color: var(--cream); }

/* ---------- the story: each part holds still while you scroll through it ---------- */
.scene { position: relative; }
.pinbox { position: sticky; top: 0; height: 100svh; min-height: 560px; display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 1fr); column-gap: 40px; align-items: center; }
.scene.rev .pinbox { grid-template-columns: minmax(0, 1fr) minmax(0, 480px); }
.scene.rev .words { order: 2; }
.words .lead { margin-top: 20px; }
.stagebox { align-self: stretch; position: relative; display: grid; place-items: center; min-height: 0; }
.facts { margin-top: 24px; display: grid; gap: 10px; font-weight: 600; color: var(--mute); }
.facts li { display: flex; gap: 12px; align-items: baseline; }
.facts li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); flex: none; transform: translateY(-2px); }
.cast { margin-top: 18px; font-weight: 700; font-size: 15px; color: var(--yellow); }

.phone { width: min(340px, 100%); background: #060505; border-radius: 46px; padding: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 0 1px rgba(246, 239, 230, .14); }
.screen { background: #fff; border-radius: 36px; overflow: hidden; font-family: var(--ui); color: #14162B; display: flex; flex-direction: column; height: min(600px, 70svh); }
.c-hdr { display: flex; align-items: center; gap: 10px; padding: 16px 16px 12px; border-bottom: 1px solid #E9E9EE; }
.c-hdr svg { width: 10px; height: 17px; flex: none; }
.avs { display: flex; }
.av { width: 28px; height: 28px; border-radius: 50%; background: var(--c); color: #fff; font-weight: 700; font-size: 13px; display: grid; place-items: center; border: 2px solid #fff; flex: none; }
.avs .av + .av { margin-left: -11px; }
.c-hdr .tt { min-width: 0; line-height: 1.2; }
.c-hdr b { display: block; font-size: 15.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-hdr span { display: block; font-size: 11.5px; color: #7B7F92; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-list { position: relative; flex: 1; overflow: hidden; }
.c-col { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 12px 10px; display: flex; flex-direction: column; gap: 8px; }
.m { display: flex; align-items: flex-end; gap: 7px; max-width: 86%; transform-origin: 0 100%; }
.m.me { align-self: flex-end; transform-origin: 100% 100%; }
.m .av { border: 0; }
.m .b { position: relative; background: #EFEFF3; border-radius: 20px 20px 20px 6px; padding: 9px 13px 10px; font-size: 15.5px; line-height: 1.28; }
.m.me .b { background: #1F1C19; color: #fff; border-radius: 20px 20px 6px 20px; }
.m .nm { display: block; font-size: 11.5px; font-weight: 700; color: var(--c); margin-bottom: 2px; }
.m .rx { position: absolute; right: -8px; bottom: -11px; background: #fff; border-radius: 999px; padding: 2px 7px; font-size: 12px; font-weight: 600; color: #14162B; box-shadow: 0 1px 5px rgba(20, 22, 43, .2); }
.m.card .b { padding: 0; overflow: hidden; width: 232px; background: #EFEFF3; color: #14162B; border-radius: 20px 20px 6px 20px; }
.m.card .pv { background: var(--night); color: var(--cream); height: 92px; display: flex; align-items: center; justify-content: center; gap: 9px; font-family: var(--display); font-stretch: 75%; font-weight: 800; font-size: 32px; }
.m.card .pv svg { width: 40px; height: 36px; }
.m.card .tx { padding: 9px 13px 11px; }
.m.card .tx b { display: block; font-size: 15px; }
.m.card .tx span { display: block; font-size: 12px; color: #7B7F92; }
.sys { align-self: center; background: #E9E9EE; color: #5C6078; font-size: 11.5px; font-weight: 600; border-radius: 999px; padding: 5px 11px; }
.m.off, .sys.off { display: none; }
.m.in, .sys.in { animation: pop 300ms var(--ease-out) both; }
@keyframes pop { from { transform: translateY(10px) scale(.94); opacity: 0; } to { transform: none; opacity: 1; } }
.c-inp { margin: 0 12px 14px; border-radius: 999px; background: #F1F2F7; color: #9A9EB3; font-size: 14px; padding: 10px 15px; }

/* the link page, as your friends see it */
.plan { width: min(360px, 100%); background: var(--rise); border-radius: 20px; box-shadow: 0 24px 60px rgba(0, 0, 0, .5), inset 0 0 0 1px var(--hair); padding: 20px; }
.plan .top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.plan .top b { font-size: 20px; font-weight: 700; }
.plan .top span { font-size: 14px; font-weight: 600; color: var(--mute); }
.plan ul { margin-top: 14px; display: grid; gap: 10px; }
.plan li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15.5px; transition: opacity 240ms ease, transform 240ms var(--ease-out); }
.plan li i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: none; }
.plan li.wait { opacity: .34; }
.plan .res { margin-top: 16px; border-radius: 12px; background: rgba(255, 188, 21, .12); box-shadow: inset 0 0 0 1.5px var(--yellow); padding: 14px; transition: opacity 260ms ease, transform 260ms var(--ease-out); }
.plan .res.wait { opacity: 0; transform: translateY(8px) scale(.97); }
.plan .res b { display: block; font-family: var(--display); font-stretch: 75%; font-weight: 800; font-size: 34px; line-height: 1; color: var(--yellow); }
.plan .res span { display: block; margin-top: 6px; font-weight: 600; font-size: 14.5px; }
.plan .lock { margin-top: 12px; border-radius: 999px; background: var(--yellow); color: var(--night); font-weight: 700; font-size: 14.5px; padding: 10px 14px; text-align: center; transition: opacity 260ms ease, transform 260ms var(--ease-out); }
.plan .lock.wait { opacity: 0; transform: scale(.97); }

.clock { margin-top: 26px; }
.clock b { display: block; font-size: clamp(72px, 9vw, 140px); color: var(--yellow); font-variant-numeric: tabular-nums; }
.clock span { display: block; margin-top: 6px; font-weight: 700; }

/* the real app: one phone, three screens */
.device { position: relative; width: min(300px, 62vw); aspect-ratio: 1 / 2; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .6)); }
.device img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 320ms ease; }
.device img.on { opacity: 1; }
.steps { margin-top: 26px; display: grid; gap: 4px; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 12px 0 12px 44px; opacity: .38; transition: opacity 240ms ease; }
.steps li.on { opacity: 1; }
.steps li::before { content: attr(data-n); position: absolute; left: 0; top: 11px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px; box-shadow: inset 0 0 0 1.5px var(--hair); }
.steps li.on::before { background: var(--yellow); color: var(--night); box-shadow: none; }
.steps b { display: block; font-size: 19px; font-weight: 700; line-height: 1.2; }
.steps span { display: block; margin-top: 4px; color: var(--mute); font-size: 16px; }

/* the end */
.end { position: relative; padding-block: clamp(80px, 12vw, 160px) clamp(56px, 8vw, 100px); }
.ldn { display: grid; grid-template-columns: repeat(2, minmax(0, 320px)); gap: 26px 56px; margin-top: 28px; }
.ldn h3 { font-size: 19px; font-weight: 700; }
.ldn p { margin-top: 4px; color: var(--mute); font-size: 16px; }
.end .big { margin-top: clamp(80px, 12vw, 150px); font-size: clamp(54px, 8vw, 124px); max-width: 9.5em; }
.end .lead { margin-top: 18px; }
.foot { color: rgba(246, 239, 230, .6); font-size: 13.5px; padding-block: 24px 28px; border-top: 1px solid var(--hair); background: rgba(20, 18, 16, .8); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 26px; align-items: center; }
.foot .brand { font-size: 24px; color: var(--cream); }
.foot .brand svg { width: 30px; height: 27px; }
.foot a { text-underline-offset: 3px; }
.foot .sp { flex: 1; min-width: 20px; }

/* ---------- one column ---------- */
@media (max-width: 900px) {
  .nav a.t { display: none; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "a" "fit" "b"; min-height: 0; padding-block: 92px 28px; align-content: start; }
  .copy-a { align-self: start; }
  #fit { min-height: 0; height: clamp(340px, 100vw, 540px); margin-top: 4px; }
  .copy-b { padding-top: 4px; }
  .pick { width: 100%; }
  .pick ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .src { position: relative; right: auto; bottom: auto; text-align: left; padding: 0 max(20px, env(safe-area-inset-right, 0px)) 22px max(20px, env(safe-area-inset-left, 0px)); }
  .pinbox, .scene.rev .pinbox { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); align-items: start; row-gap: 14px; padding-top: 74px; padding-bottom: 18px; }
  .scene.rev .words { order: 0; }
  h2 { font-size: clamp(38px, 10.5vw, 60px); }
  .words .lead { margin-top: 12px; font-size: 17px; }
  .facts, .cast { display: none; }
  .phone { width: min(300px, 82vw); border-radius: 40px; padding: 8px; }
  .screen { border-radius: 32px; height: min(470px, 52svh); }
  .m .b { font-size: 14.5px; }
  .m.card .b { width: 204px; } .m.card .pv { height: 72px; font-size: 27px; }
  .plan { align-self: end; padding: 14px 16px; width: 100%; margin-top: 12px !important; }
  .scene.rev .words .lead, .plan .lock { display: none; }
  .plan ul { gap: 7px; margin-top: 10px; } .plan li { font-size: 14.5px; }
  .plan .res { margin-top: 10px; padding: 10px 12px; } .plan .res b { font-size: 26px; }
  .plan .lock { margin-top: 8px; padding: 8px 12px; }
  .clock { margin-top: 10px; } .clock b { font-size: 64px; }
  .device { width: min(220px, 50vw); }
  .steps { margin-top: 10px; } .steps li { display: none; padding-block: 4px; } .steps li.on { display: block; }
  .steps b { font-size: 17px; } .steps span { font-size: 15px; }
  .ldn { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .fairtag b { font-size: 24px; } .fairtag i { font-size: 13px; }
  .pin .lab { font-size: 14px; }
}
/* short laptop screens: keep each part of the story inside one screen */
@media (min-width: 901px) and (max-height: 820px) {
  h2 { font-size: clamp(38px, 4.4vw, 62px); }
  .facts { display: none; }
  .plan { padding: 16px; } .plan ul { gap: 8px; margin-top: 10px; } .plan .res { margin-top: 12px; padding: 12px; } .plan .res b { font-size: 28px; }
  .clock b { font-size: clamp(64px, 7vw, 100px); }
  .steps li { padding-block: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .chip, .pin .dot, .pick, .plan li, .plan .res, .plan .lock, .device img, .steps li, .pins { transition: none; }
  .answer .place > span.swap, .m.in, .sys.in { animation: fade 160ms ease both; }
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
