/* Jim Wilson Owusu · digital card
   Fonts are served from this site (no Google calls), so the page opens in China too. */
@font-face { font-family: "Instrument Serif"; src: url(fonts/instrument-serif.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url(fonts/instrument-serif-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Geist"; src: url(fonts/geist.woff2) format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url(fonts/geist-mono.woff2) format("woff2"); font-weight: 400 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Ov Logo"; src: url(fonts/montserrat-logo.woff2) format("woff2"); font-weight: 700; font-display: block; }

:root {
  --paper: #F4F2ED;
  --paper-2: #ECE9E2;
  --card: #FFFFFF;
  --ink: #0D1B2E;
  --ink-2: #4E5868;
  --ink-3: #7B8492;
  --rule: #D8D3C8;
  --blue: #2559B5;
  --blue-deep: #1D4C9C;
  --cyan: #159FD8;
  --cyan-lite: #3FD0F7;
  --btn: #0D1B2E;
  --btn-text: #FFFFFF;
  --logo-word: #2559B5;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, "Songti SC", serif;
  --sans: "Geist", -apple-system, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --gutter: 20px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0B1322;
    --paper-2: #111B2E;
    --card: #131E33;
    --ink: #EEF1F6;
    --ink-2: #AEB7C6;
    --ink-3: #8590A2;
    --rule: #26324A;
    --blue: #6FA2F0;
    --btn: #EEF1F6;
    --btn-text: #0B1322;
    --logo-word: #EEF1F6;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

/* ---------- top bar ---------- */
.bar {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(env(safe-area-inset-top) + 12px) var(--gutter) 12px;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
}
.brand { display: block; line-height: 0; }
.logo { width: 128px; height: auto; }
.logo-word { font-family: "Ov Logo", Montserrat, "Helvetica Neue", Arial, sans-serif; fill: var(--logo-word); }
.icon-btn {
  display: inline-flex; align-items: center; gap: 7px;
  height: 38px; padding: 0 14px 0 11px;
  border: 1px solid var(--rule); border-radius: 999px;
  background: var(--card); cursor: pointer;
  font: 500 13px/1 var(--mono); letter-spacing: .02em;
}
.icon-btn svg { width: 18px; height: 18px; }

/* ---------- layout ---------- */
.page { max-width: 480px; margin: 0 auto; padding: 4px var(--gutter) calc(env(safe-area-inset-bottom) + 40px); }

/* ---------- hero ---------- */
.portrait { position: relative; margin: 6px 0 0; }
.portrait img {
  /* same shape as img/jim-*.jpg (head to tie knot, centred on his face) */
  width: 100%; height: auto; aspect-ratio: 19 / 20; object-fit: cover; object-position: 50% 50%;
  /* arched window: the card's signature shape */
  border-radius: 50% 50% 22px 22px / 44% 44% 22px 22px;
  background: #FFFFFF;
  box-shadow: 0 0 0 1px var(--rule);
}
.coords {
  display: flex; align-items: center; gap: 10px;
  margin-top: 12px;
  font: 400 10px/1 var(--mono); letter-spacing: .03em; color: var(--ink-3);
  white-space: nowrap;
}
.coords-dash { flex: 1; height: 1px; background: linear-gradient(90deg, var(--blue), var(--cyan)); opacity: .55; }

.intro { padding-top: 22px; }
.eyebrow {
  margin: 0 0 10px;
  font: 500 11.5px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--blue);
}
.name {
  margin: 0;
  font: 400 clamp(34px, 11.4vw, 62px)/1 var(--serif);
  letter-spacing: -.02em;
  white-space: nowrap;
}
.name em { font-style: italic; color: var(--ink-2); }
.title { margin: 8px 0 0; font: 500 16px/1.35 var(--sans); color: var(--ink); letter-spacing: -.005em; }

.creds {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin: 18px 0 0; padding: 0; list-style: none;
}
.creds li {
  padding: 6px 9px 5px;
  border: 1px solid var(--rule); border-radius: 999px;
  font: 500 11.5px/1.2 var(--mono); letter-spacing: .01em; color: var(--ink);
  background: color-mix(in srgb, var(--card) 55%, transparent);
}
.creds sup { font-size: .7em; line-height: 0; }
.creds li.is-pending { border-style: dashed; color: var(--ink-3); background: transparent; }

.summary { margin-top: 30px; }
.lede { margin: 0; font: 400 27px/1.12 var(--serif); letter-spacing: -.005em; color: var(--ink); }
.lede-body { margin: 10px 0 0; font: 500 15.5px/1.45 var(--sans); color: var(--blue); }
.partner {
  margin: 16px 0 0; padding: 13px 14px 13px 16px;
  border-left: 2px solid var(--cyan); border-radius: 0 14px 14px 0;
  background: color-mix(in srgb, var(--cyan) 8%, var(--card));
  font-size: 15px; line-height: 1.45; color: var(--ink);
}
.partner-k { display: block; margin-bottom: 4px; font: 500 10.5px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }

.save {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: 22px; height: 58px; border-radius: 999px;
  background: var(--btn); color: var(--btn-text);
  font: 600 16.5px/1 var(--sans); letter-spacing: .005em; text-decoration: none;
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 10px 24px -14px rgba(13,27,46,.7);
  transition: transform .15s ease;
}
.save:active { transform: scale(.985); }
.save svg { width: 21px; height: 21px; }
.inapp { margin: 10px 4px 0; font-size: 13px; color: var(--ink-2); text-align: center; }

.actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
.actions a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 70px; border: 1px solid var(--rule); border-radius: 18px;
  background: var(--card); text-decoration: none;
  font: 500 12px/1 var(--sans); color: var(--ink);
  transition: border-color .15s ease, transform .15s ease;
}
.actions a:active { transform: scale(.97); }
.actions a:hover { border-color: var(--blue); }
.actions svg { width: 22px; height: 22px; color: var(--blue); }

/* ---------- route: the projects ---------- */
.route { margin-top: 60px; }
.route-head { padding-bottom: 6px; }
.route-title { margin: 0; font: 400 38px/1.02 var(--serif); letter-spacing: -.01em; }
.route-title em { color: var(--ink-2); }

.stops { --x: 7px; position: relative; list-style: none; margin: 28px 0 0; padding: 0 0 0 34px; }
.stops::before {
  content: ""; position: absolute; left: var(--x); top: 8px; bottom: 26px; width: 2px;
  background: linear-gradient(180deg, var(--cyan-lite), var(--cyan) 18%, var(--blue) 60%, var(--blue-deep));
  border-radius: 2px; transform-origin: top;
}
.stop { position: relative; padding-bottom: 34px; }
.stop .dot {
  position: absolute; left: calc(-34px + var(--x) - 6px); top: 3px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--blue); box-shadow: 0 0 0 4px var(--paper);
}
.stop.is-ongoing .dot {
  background: var(--paper);
  border: 2px solid var(--cyan);
}
.stop.is-ongoing .dot::after {
  content: ""; position: absolute; inset: 2px; border-radius: 50%;
  background: var(--cyan); animation: pulse 2.4s ease-in-out infinite;
}
.stop.is-small .dot { width: 10px; height: 10px; left: calc(-34px + var(--x) - 4px); top: 5px; background: var(--paper); border: 2px solid var(--blue); }
.meta {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px;
  margin: 0 0 6px;
  font: 400 11.5px/1.3 var(--mono); letter-spacing: .04em; color: var(--ink-3);
}
.status { font-weight: 500; color: var(--blue); text-transform: uppercase; letter-spacing: .1em; }
.is-ongoing .status { color: var(--cyan); }
.stop h3 { margin: 0 0 10px; font: 600 19px/1.25 var(--sans); letter-spacing: -.01em; }
.stop.is-flagship h3 { font: 400 30px/1.04 var(--serif); letter-spacing: -.005em; }
.stop p:not(.meta) { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.stop img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
  border-radius: 16px; margin: 4px 0 12px; background: var(--paper-2);
}
.figures {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin: 0 0 12px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.figures div { padding: 10px 0 9px; }
.figures div + div { padding-left: 12px; border-left: 1px solid var(--rule); }
.figures dt { font: 400 10px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.figures dd { margin: 4px 0 0; font: 400 21px/1.1 var(--serif); color: var(--ink); }
.stop.is-small { padding-bottom: 26px; }
.stop.is-small h3 { font-size: 16px; margin-bottom: 6px; }
.stop.is-end { padding-bottom: 0; }

/* ---------- reach ---------- */
.reach { margin-top: 54px; }
.lines { list-style: none; margin: 6px 0 0; padding: 0; border-top: 1px solid var(--rule); }
.lines li { border-bottom: 1px solid var(--rule); }
.lines a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 14px;
  padding: 15px 2px; text-decoration: none;
}
.lines .k { font: 400 11.5px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.lines .v { font: 500 15px/1.3 var(--sans); text-align: right; overflow-wrap: anywhere; }
.lines a:hover .v { color: var(--blue); }
.bases { margin: 16px 2px 0; font-size: 14px; color: var(--ink-2); }
.share {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 18px; height: 44px; padding: 0 18px;
  border: 1px solid var(--rule); border-radius: 999px; background: var(--card); cursor: pointer;
  font: 500 14px/1 var(--sans);
}
.share svg { width: 18px; height: 18px; color: var(--blue); }

/* ---------- other businesses ---------- */
.ventures { margin-top: 54px; }
.biz { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 10px; }
.biz-card {
  display: grid; grid-template-columns: 96px 1fr; column-gap: 14px;
  padding: 12px 14px 14px 12px; border: 1px solid var(--rule); border-radius: 18px; background: var(--card);
  text-decoration: none;
}
.biz-card .biz-logo { grid-column: 1; grid-row: 1 / 3; }
.biz-card .biz-text { display: contents; }
.biz-card h3 { grid-column: 2; grid-row: 1; align-self: end; }
.biz-card .biz-text .biz-meta { grid-column: 2; grid-row: 2; align-self: start; }
.biz-card .biz-text p:not(.biz-meta) { grid-column: 1 / -1; grid-row: 3; margin-top: 12px; }
a.biz-card:hover { border-color: var(--blue); }
.biz-logo {
  display: grid; place-items: center; height: 64px; padding: 7px;
  border-radius: 12px; background: #FFFFFF;
}
.biz-logo img { max-width: 100%; max-height: 50px; width: auto; height: auto; }
.biz h3 { margin: 0; font: 600 15px/1.25 var(--sans); letter-spacing: -.005em; }
.biz-text p { margin: 3px 0 0; font-size: 13.5px; line-height: 1.4; color: var(--ink-2); }
.biz-text .biz-meta { margin-top: 6px; font: 400 10.5px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.biz-meta a { color: var(--blue); text-decoration: none; text-transform: none; }
.biz-acts { grid-column: 1 / -1; list-style: none; margin: 2px 0 0; padding: 0; border-top: 1px solid var(--rule); }
.biz-acts li + li { border-top: 1px solid var(--rule); }
.biz-acts a { display: block; padding: 10px 2px 9px; text-decoration: none; font-size: 13.5px; line-height: 1.4; color: var(--ink-2); }
.biz-acts a:hover { color: var(--ink); }
.act-k { display: block; margin-bottom: 3px; font: 500 10px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #9B1C1C; }
@media (prefers-color-scheme: dark) { .act-k { color: #F08A7E; } }

.foot { margin-top: 60px; display: flex; align-items: center; gap: 12px; color: var(--ink-3); }
.foot .mark { width: 26px; height: 26px; color: var(--blue); flex: none; }
.foot p { margin: 0; font: 400 11px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; }

/* ---------- scan code screen ---------- */
.code {
  width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: #FFFFFF; color: #0D1B2E;
}
.code::backdrop { background: #FFFFFF; }
.code[open] { display: grid; place-items: center; animation: fade .2s ease; }
.code-inner { display: flex; flex-direction: column; align-items: center; padding: 24px; text-align: center; }
.qr { width: min(78vw, 340px); height: auto; aspect-ratio: 1; padding: 0; image-rendering: pixelated; }
.code-name { margin: 30px 0 0; font: 400 34px/1 var(--serif); }
.code-name em { font-style: italic; color: #4E5868; }
.code-url { margin: 10px 0 0; font: 400 13px/1 var(--mono); letter-spacing: .04em; color: #4E5868; }
.code-close {
  margin-top: 34px; height: 46px; padding: 0 26px; border-radius: 999px;
  border: 1px solid #D8D3C8; background: #F4F2ED; color: #0D1B2E; cursor: pointer;
  font: 500 15px/1 var(--sans);
}

.toast {
  position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 22px); z-index: 20;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 11px 18px; border-radius: 999px; background: var(--btn); color: var(--btn-text);
  font: 500 14px/1 var(--sans); transition: opacity .2s ease, transform .2s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- motion ---------- */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes draw { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.hero > * { animation: rise .7s cubic-bezier(.2,.7,.2,1) backwards; }
.hero .intro { animation-delay: .12s; }

@supports (animation-timeline: view()) {
  .stops::before { animation: draw linear both; animation-timeline: view(); animation-range: entry 10% cover 70%; }
  .stop { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- wide screens: photo stays beside the work ---------- */
@media (min-width: 960px) {
  .page { max-width: 1060px; display: grid; grid-template-columns: 420px 1fr; column-gap: 88px; padding-top: 24px; }
  .hero { grid-row: 1 / span 5; position: sticky; top: 84px; align-self: start; }
  .route { margin-top: 10px; }
  .route, .reach, .ventures, .foot { grid-column: 2; max-width: 520px; }
  .bar { max-width: 1060px; margin: 0 auto; }
}
