/* nur.capital — quiet tailoring.
   One reading size, generous air, a serif only for the name, navy as the single accent.
   Layout: name, three short lists, a dotted map of the places lived (with Europe between them),
   then the record with a timeline, filters and a mini map that follows the reader. */

@font-face { font-family: Onest; src: url(/fonts/Onest.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: Newsreader; src: url(/fonts/Newsreader.woff2) format('woff2'); font-weight: 300 500; font-display: swap; }
@font-face { font-family: Cormorant; src: url(/fonts/Cormorant.woff2) format('woff2'); font-weight: 300 700; font-display: swap; }

:root {
  --bg: #FCFBF9;
  --surface: #FFFFFF;
  --ink: #22201C;
  --muted: #736D65;
  --rule: #E6E2DA;
  --land: #D6D1C7;
  --accent: #1F3A68;
  --accent-soft: rgba(31, 58, 104, .12);
  --accent-mid: rgba(31, 58, 104, .55);

  --sans: Onest, ui-sans-serif, system-ui, sans-serif;
  --serif: Newsreader, Cormorant, Georgia, serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --text: 15px;
  --small: 13.5px;
  --tiny: 12.5px;
  --name: clamp(40px, 5.4vw, 78px);
  --ease: cubic-bezier(.2, .8, .2, 1);

  --gutter: max(20px, min(5vw, 56px));
  --max: 1240px;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 var(--text)/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  font-feature-settings: 'tnum' 0;
}
h1, h2, h3, p, figure, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 1.5px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: #fff; }
.muted { color: var(--muted); }
.label { font-size: var(--small); font-weight: 500; letter-spacing: -.005em; color: var(--muted); }
.skip { position: absolute; left: 16px; top: -60px; z-index: 40; background: var(--ink); color: var(--bg); padding: 10px 14px; }
.skip:focus { top: 12px; }

.site-header, main > section, main > figure, .site-footer, .article {
  max-width: var(--max); margin-inline: auto; padding-left: var(--gutter); padding-right: var(--gutter);
}

/* ---------- header ---------- */
.site-header { display: flex; align-items: center; gap: 20px; padding-block: 22px; }
.brand { font-weight: 650; font-size: 19px; letter-spacing: -.03em; }
.clock { font-size: var(--small); font-variant-numeric: tabular-nums; }
.social { display: flex; gap: 22px; margin-left: auto; }
.social a { position: relative; padding: 8px 0; }
.social a::after, .link::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
}
.social a:hover::after, .link:hover::after { transform: scaleX(1); transform-origin: left; }
.langs { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--rule); border-radius: 99px; font-size: var(--tiny); }
.langs a { padding: 4px 10px; border-radius: 99px; color: var(--muted); transition: background .25s, color .25s; }
.langs a:hover { color: var(--ink); }
.langs a[aria-current] { background: var(--ink); color: var(--bg); }
.progress {
  position: fixed; top: 0; left: 0; z-index: 30; width: 100%; height: 2px; background: var(--accent);
  transform: scaleX(var(--p, 0)); transform-origin: left; pointer-events: none;
}

/* ---------- buttons ---------- */
.pill, .copy {
  display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--ink); border-radius: 99px;
  transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.pill { padding: 7px 16px; font-size: var(--small); }
.pill span { transition: transform .3s var(--ease); }
.pill:hover { background: var(--ink); color: var(--bg); }
.pill:hover span { transform: translateY(2px); }
.pill:active, .copy:active, .chip:active { transform: scale(.96); }
.copy { padding: 5px 12px; font-size: var(--tiny); border-color: var(--rule); color: var(--muted); }
.copy:hover { border-color: var(--ink); color: var(--ink); }
.copy.is-done { background: var(--accent); border-color: var(--accent); color: #fff; }
.link { position: relative; display: inline-flex; gap: 6px; align-items: center; padding: 4px 0; }
.to-top {
  position: fixed; right: max(20px, env(safe-area-inset-right, 0px)); bottom: max(20px, env(safe-area-inset-bottom, 0px)); z-index: 20;
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--rule); box-shadow: 0 8px 24px -12px rgba(34, 32, 28, .3);
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .3s, transform .35s var(--ease), background .2s, color .2s;
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--ink); color: var(--bg); }

/* ---------- intro ---------- */
.intro { padding-top: clamp(56px, 9vw, 120px); }
.name {
  font-family: var(--serif); font-weight: 350; font-size: var(--name);
  line-height: 1; letter-spacing: -.028em; text-wrap: balance;
}
@media (prefers-reduced-motion: no-preference) {
  .name { animation: rise 1s var(--ease) both; }
  .intro-cols > div { animation: rise .9s var(--ease) both; }
  .intro-cols > div:nth-child(2) { animation-delay: .08s; }
  .intro-cols > div:nth-child(3) { animation-delay: .16s; }
}
@keyframes rise { from { transform: translateY(14px); } }
.intro-cols {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px;
  margin-top: clamp(36px, 5vw, 64px); max-width: 920px;
}
.intro-cols .label { margin-bottom: 8px; }
.intro-cols li { line-height: 1.75; }
.intro-cols .pill { margin-top: 16px; }

/* ---------- map ---------- */
.map { margin-top: clamp(64px, 9vw, 120px); }
.label-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding-bottom: 10px; border-bottom: 1px solid var(--rule); margin-bottom: 24px;
}
.map-scroll { overflow-x: auto; overflow-y: visible; scrollbar-width: none; padding-block: 12px; }
.map-scroll::-webkit-scrollbar { display: none; }
.map-stage { position: relative; min-width: 640px; }
.map-stage svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; overflow: visible; }
.land { stroke: var(--land); stroke-width: .5; stroke-linecap: round; fill: none; }
/* A navy copy of the land under the cursor: the map "lights up" where you look. */
.land-glow .land { stroke: var(--accent-mid); }
.land-glow {
  -webkit-mask-image: radial-gradient(circle 110px at var(--mx, -500px) var(--my, -500px), #000 0%, transparent 100%);
  mask-image: radial-gradient(circle 110px at var(--mx, -500px) var(--my, -500px), #000 0%, transparent 100%);
}
.route { fill: none; stroke: var(--accent); stroke-width: .22; opacity: .5; }
.traveler { fill: var(--accent); }
.map.is-in .route { stroke-dasharray: 1; animation: draw 2.4s var(--ease) both; }
.map.is-in .pin-dot { animation: pop .6s var(--ease) both; animation-delay: calc(.35s + var(--i) * .12s); }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes pop { from { transform: scale(0); } 60% { transform: scale(1.35); } }

.pin { position: absolute; width: 0; height: 0; z-index: 1; }
.pin:hover, .pin:focus-visible, .pin.is-open { z-index: 4; }
.pin:focus-visible { outline: none; }
.pin-dot {
  position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); transition: transform .3s var(--ease), box-shadow .3s;
}
.pin-dot::before { content: ''; position: absolute; inset: -12px; border-radius: 50%; } /* larger hit area */
.pin[data-city="sf"] .pin-dot::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--accent); animation: ping 2.6s infinite;
}
.pin:hover .pin-dot, .pin:focus-visible .pin-dot, .pin.is-on .pin-dot, .pin.is-open .pin-dot { transform: scale(1.3); box-shadow: 0 0 0 8px var(--accent-soft); }
.pin-name {
  position: absolute; left: 13px; top: -10px; white-space: nowrap; font-size: var(--tiny); color: var(--muted);
  transition: opacity .2s;
}
.pin-left .pin-name { left: auto; right: 13px; }
.pin[data-city="astana"] .pin-name { top: -26px; right: 4px; }
.pin:hover .pin-name, .pin:focus-visible .pin-name, .pin.is-open .pin-name { opacity: 0; }

.tip {
  position: absolute; top: 0; left: 20px; display: grid; justify-items: start; width: max-content; min-width: 190px;
  padding: 14px 16px 13px; border-radius: 14px;
  background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(12px) saturate(1.4); backdrop-filter: blur(12px) saturate(1.4);
  border: 1px solid rgba(34, 32, 28, .07);
  box-shadow: 0 1px 2px rgba(34, 32, 28, .05), 0 18px 40px -14px rgba(31, 58, 104, .35);
  text-align: left; line-height: 1.35; pointer-events: none;
  opacity: 0; transform: translate(-6px, -50%) scale(.94); transform-origin: left center; filter: blur(3px);
  transition: opacity .22s, transform .35s var(--ease), filter .3s;
}
.tip::before { /* the tail that ties the card to its point */
  content: ''; position: absolute; left: -5px; top: 50%; width: 10px; height: 10px; margin-top: -5px;
  background: inherit; border-left: 1px solid rgba(34, 32, 28, .07); border-bottom: 1px solid rgba(34, 32, 28, .07);
  transform: rotate(45deg); border-radius: 0 0 0 3px;
}
.tip-left { left: auto; right: 20px; transform-origin: right center; transform: translate(6px, -50%) scale(.94); }
.tip-left::before { left: auto; right: -5px; transform: rotate(-135deg); }
.pin:hover .tip, .pin:focus-visible .tip, .pin.is-open .tip { opacity: 1; transform: translate(0, -50%) scale(1); filter: none; }
.tip-head { display: flex; align-items: baseline; gap: 8px; }
.tip-head b { font-size: 16px; font-weight: 560; letter-spacing: -.01em; }
.tip-head .muted { font-size: var(--small); }
.tip-period {
  margin-top: 9px; padding: 3px 10px; border-radius: 99px; font-size: var(--tiny); font-weight: 500;
  background: var(--accent-soft); color: var(--accent);
}
.tip-coord { margin-top: 10px; font-size: var(--tiny); color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 40px; margin-top: 20px; color: var(--muted); font-size: var(--small); }
.facts b { color: var(--ink); font-weight: 550; font-variant-numeric: tabular-nums; margin-right: 4px; }
@keyframes ping { from { transform: scale(1); opacity: .8; } to { transform: scale(2.6); opacity: 0; } }

/* ---------- record ---------- */
.record { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(32px, 6vw, 88px); margin-top: clamp(72px, 9vw, 128px); }
.record-lists { display: grid; gap: 72px; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chip {
  padding: 6px 14px; border: 1px solid var(--rule); border-radius: 99px; font-size: var(--small); color: var(--muted);
  transition: background .25s, color .25s, border-color .25s, transform .2s var(--ease);
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }

.timeline { margin-bottom: 12px; }
.tl-bars {
  position: relative; display: grid; gap: 6px; padding: 4px 0;
  background-image: linear-gradient(to right, var(--rule) 1px, transparent 1px);
  background-size: calc(100% / var(--n, 6)) 100%;
}
.bar {
  position: relative; margin-left: var(--l); width: var(--w); min-width: 8px; height: 22px; display: block;
  font-size: var(--tiny); white-space: nowrap; color: var(--muted); transform-origin: left; transition: opacity .3s, color .2s;
}
.bar::before {
  content: ''; position: absolute; left: 0; right: 0; top: 7px; height: 8px; border-radius: 99px;
  background: var(--accent-soft); transition: background .25s, box-shadow .25s, transform .3s var(--ease);
}
.bar-finance::before { background: rgba(31, 58, 104, .3); }
.bar span { position: absolute; left: calc(100% + 10px); top: 2px; }
.bar-end span { left: auto; right: calc(100% + 10px); }
.bar:hover, .bar.is-hot { color: var(--ink); }
.bar:hover::before, .bar.is-hot::before { background: var(--accent); box-shadow: 0 6px 14px -6px var(--accent); transform: scaleY(1.35); }
.bar.is-dim { opacity: .25; }
.bar-point { width: 0; min-width: 0; }
.bar-point::before { left: -5px; right: auto; width: 10px; height: 10px; top: 6px; border-radius: 50%; background: var(--accent); }
.bar-point:hover::before, .bar-point.is-hot::before { transform: scale(1.35); }
.tl-now { position: absolute; top: 0; bottom: 0; left: var(--now); width: 1px; background: var(--accent); opacity: .35; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .bar { animation: grow 1s var(--ease) both; animation-delay: calc(.1s + var(--i) * .07s); }
}
@keyframes grow { from { transform: scaleX(0); } }
.tl-axis { position: relative; height: 26px; border-top: 1px solid var(--rule); font-size: var(--tiny); color: var(--muted); font-variant-numeric: tabular-nums; }
.tl-axis span { position: absolute; top: 6px; transform: translateX(-50%); }
.tl-axis span:first-child { transform: none; }
.tl-axis span:last-child { transform: translateX(-100%); }

.row {
  position: relative; display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 20px;
  padding: 18px 0 20px; border-bottom: 1px solid var(--rule); outline: none; transition: background .25s;
}
.row::before {
  content: ''; position: absolute; left: -16px; top: 25px; width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent); opacity: 0; transform: scale(.4); transition: opacity .2s, transform .25s;
}
.row:hover::before, .row:focus-visible::before, .row.is-hot::before { opacity: 1; transform: scale(1); }
.row.is-hot h3 { color: var(--accent); }
.row.is-in { animation: rise .45s var(--ease) both; }
.period { color: var(--muted); font-size: var(--small); font-variant-numeric: tabular-nums; padding-top: 1px; }
.row h3 { font-size: var(--text); font-weight: 550; line-height: 1.5; transition: color .2s; }
.row h3 .muted { font-weight: 400; margin-left: 6px; }
.row .place { font-size: var(--small); margin-bottom: 8px; }
.row p:not(.place) { max-width: 62ch; }
.row p + p { margin-top: 6px; }
.row.is-compact { padding: 14px 0; }
.row.is-compact::before { top: 21px; }

.record-map { position: relative; }
.mini { position: sticky; top: 28px; padding: 16px; border: 1px solid var(--rule); border-radius: 14px; background: var(--surface); }
.mini svg { display: block; width: 100%; height: auto; overflow: visible; }
.mini .land { stroke-width: 1.05; stroke: #E3DED5; }
.mini-pin circle { fill: var(--muted); opacity: .45; transform-box: fill-box; transform-origin: center; transition: fill .2s, opacity .2s, transform .35s var(--ease); }
.mini-pin text { font: 500 5px var(--sans); fill: var(--ink); opacity: 0; transition: opacity .2s; }
.mini-pin.is-on circle { fill: var(--accent); opacity: 1; transform: scale(1.9); }
.mini-pin.is-on text { opacity: 1; }

/* ---------- projects ---------- */
/* Header button to the projects page. */
.nav-projects {
  display: inline-flex; align-items: baseline; gap: 3px; padding: 5px 13px; border: 1px solid var(--ink); border-radius: 99px;
  font-size: var(--small); transition: background .25s, color .25s, transform .25s var(--ease);
}
.nav-projects sup { font-size: 10px; color: var(--muted); transition: color .25s; }
.nav-projects:hover, .nav-projects[aria-current] { background: var(--ink); color: var(--bg); }
.nav-projects:hover sup, .nav-projects[aria-current] sup { color: var(--land); }
.nav-projects:active { transform: scale(.96); }

/* Home: a short index of projects that leads to their page. */
.projects-teaser { margin-top: clamp(72px, 9vw, 128px); }
.teaser li { border-bottom: 1px solid var(--rule); }
.teaser-row {
  display: grid; grid-template-columns: 40px minmax(0, 220px) minmax(0, 1fr) auto; align-items: baseline; gap: 16px;
  padding: 20px 4px; border-radius: 10px; transition: background .3s, padding .35s var(--ease);
}
.teaser-name { font-family: var(--serif); font-size: clamp(26px, 2.6vw, 34px); line-height: 1; letter-spacing: -.02em; transition: color .2s; }
.teaser-n, .teaser-meta { font-size: var(--small); font-variant-numeric: tabular-nums; }
.teaser-meta i { display: inline-block; font-style: normal; margin-left: 8px; transition: transform .35s var(--ease); }
.teaser-row:hover { background: var(--accent-soft); padding-inline: 16px; }
.teaser-row:hover .teaser-name { color: var(--accent); }
.teaser-row:hover i { transform: translateX(5px); }

/* Projects page. */
.pp-hero { padding-top: clamp(40px, 6vw, 72px); }
.pp-kicker { margin-top: clamp(40px, 6vw, 72px); }
.pp-title {
  font-family: var(--serif); font-weight: 350; font-size: clamp(52px, 9vw, 132px);
  line-height: .98; letter-spacing: -.035em; margin-top: 10px;
}
.pp-title .w { display: inline-block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; vertical-align: top; }
.pp-title .w > span { display: inline-block; }
.pp-intro { max-width: 52ch; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.5; margin-top: 22px; }
.pp-rule { display: block; height: 1px; background: var(--ink); margin-top: clamp(40px, 6vw, 72px); transform-origin: left; }
.pp-list { padding-bottom: 24px; }
.project-full { padding-block: clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--rule); scroll-margin-top: 24px; }
.pf-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: start; }
.pf-n {
  font-family: var(--serif); font-size: clamp(64px, 8vw, 120px); line-height: .8; letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 1px var(--land); font-variant-numeric: lining-nums;
}
.pf-name { font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 5.4vw, 76px); line-height: 1; letter-spacing: -.03em; }
.pf-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; margin-top: clamp(32px, 4vw, 56px); }
.pf-copy .label { margin-top: 28px; margin-bottom: 8px; }
.pf-copy .label:first-child { margin-top: 0; }
.pf-copy > p { max-width: 58ch; }
.pf-why { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; letter-spacing: -.005em; }
.pf-copy .project-stats { margin-top: 4px; }
.pf-visual { position: sticky; top: 32px; }
.pp-more { padding-top: 32px; font-size: var(--small); }
.back { font-size: var(--small); color: var(--muted); }
.back:hover { color: var(--ink); }

.project-meta { font-size: var(--small); margin-bottom: 10px; }
.project-tagline { font-size: clamp(18px, 1.7vw, 22px); line-height: 1.35; letter-spacing: -.01em; margin-top: 12px; text-wrap: balance; }
.project-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 24px 0 0; padding-top: 16px; border-top: 1px solid var(--rule); }
.project-stats dt { font-size: 26px; font-weight: 500; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.project-stats dd { margin: 2px 0 0; font-size: var(--tiny); line-height: 1.4; }
.project-stack { font-size: var(--small); margin-top: 18px; }
.project-links { display: flex; align-items: center; gap: 22px; margin-top: 20px; }
.pill:hover span[aria-hidden] { transform: translate(2px, -2px); }

@media (prefers-reduced-motion: no-preference) {
  /* Entrance: the title rises word by word out of its own line, the rule draws, the first card follows. */
  .pp-title .w > span { animation: word-up 1s var(--ease) both; animation-delay: calc(.12s + var(--i) * .09s); }
  .pp-kicker, .pp-intro, .back { animation: rise .9s var(--ease) both; }
  .pp-intro { animation-delay: .45s; }
  .pp-rule { animation: grow 1.2s var(--ease) .55s both; }
  .project-full.is-in .pf-head, .project-full.is-in .pf-grid { animation: rise .9s var(--ease) both; }
  .project-full.is-in .pf-grid { animation-delay: .12s; }
  .project-full.is-in .pf-n { animation: stroke-in 1.4s var(--ease) both; }
}
@keyframes word-up { from { transform: translateY(105%); } }
@keyframes stroke-in { from { -webkit-text-stroke-color: var(--ink); transform: translateY(10px); } }

/* The ledger card echoes the product: one transaction, struck through and re-coded, the rule underneath. */
.ledger {
  --red: #A33A2C;
  display: grid; gap: 6px; padding: 24px 26px; border: 1px solid var(--rule); border-radius: 16px; background: var(--surface);
  box-shadow: 0 1px 0 rgba(34, 32, 28, .03), 0 24px 48px -32px rgba(34, 32, 28, .28);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s;
}
.ledger:hover { transform: translateY(-4px) rotate(-.4deg); border-color: var(--land); box-shadow: 0 1px 0 rgba(34, 32, 28, .03), 0 32px 56px -30px rgba(34, 32, 28, .36); }
.ledger-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: var(--small); font-weight: 550; }
.ledger-flag { font-size: var(--tiny); font-weight: 500; color: var(--red); border: 1px solid currentColor; border-radius: 99px; padding: 1px 9px; }
.ledger-amount { font-size: clamp(30px, 3vw, 38px); font-weight: 550; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.ledger-memo { font-size: var(--small); }
.ledger-move { font-size: var(--small); margin-top: 10px; }
.ledger-move s { text-decoration: none; background: linear-gradient(var(--red), var(--red)) 0 55% / 100% 1.5px no-repeat; color: var(--muted); }
.ledger-to { color: var(--accent); font-weight: 550; white-space: nowrap; }
.ledger-rule { display: grid; gap: 2px; margin-top: 8px; padding: 10px 0 0 14px; border-left: 2px solid var(--red); font-size: var(--small); line-height: 1.45; }
.ledger-rule .muted { font-size: var(--tiny); }
@media (prefers-reduced-motion: no-preference) {
  /* The red pen strikes the old coding, then the new one appears. */
  .project-full.is-in .ledger-move s { animation: strike .7s var(--ease) .35s both; }
  .project-full.is-in .ledger-to { animation: fade-in .5s var(--ease) 1s both; }
  .project-full.is-in .ledger-flag { animation: pop .6s var(--ease) .2s both; }
}
@keyframes strike { from { background-size: 0 1.5px; } }
@keyframes fade-in { from { color: var(--muted); transform: translateX(-8px); } }

/* ---------- journal ---------- */
.journal { margin-top: clamp(72px, 9vw, 128px); }
.journal-intro { font-size: clamp(18px, 1.7vw, 22px); line-height: 1.45; letter-spacing: -.01em; margin-bottom: 14px; }
.journal-copy { max-width: 640px; }
.journal-copy .link { margin-top: 6px; }
.entries li + li { border-top: 1px solid var(--rule); }
.entry { display: grid; gap: 4px; padding: 16px 0; }
.entry-meta { font-size: var(--small); font-variant-numeric: tabular-nums; }
.entry-title { font-family: var(--serif); font-size: 24px; line-height: 1.2; transition: color .2s; }
.entry:hover .entry-title { color: var(--accent); }
.entry-lang { border: 1px solid currentColor; border-radius: 4px; padding: 0 4px; margin-left: 6px; font-size: 11.5px; }

/* ---------- contact ---------- */
.contact { margin-top: clamp(72px, 9vw, 128px); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); }
.email-line { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 10px; }
.email { font-family: var(--serif); font-size: clamp(30px, 3.6vw, 48px); letter-spacing: -.02em; line-height: 1.1; overflow-wrap: anywhere; transition: color .2s; }
.email:hover { color: var(--accent); }
.socials li { border-top: 1px solid var(--rule); }
.socials li:last-child { border-bottom: 1px solid var(--rule); }
.socials a { display: flex; justify-content: space-between; gap: 16px; padding: 14px 4px; border-radius: 8px; transition: color .2s, background .25s, padding .3s var(--ease); }
.socials i { display: inline-block; font-style: normal; transition: transform .3s var(--ease); }
.socials a:hover { color: var(--accent); background: var(--accent-soft); padding-inline: 14px; }
.socials a:hover .muted { color: var(--accent); }
.socials a:hover i { transform: translate(3px, -3px); }

/* ---------- footer ---------- */
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: clamp(72px, 9vw, 128px); padding-block: 22px 32px; font-size: var(--small); }

/* ---------- article ---------- */
.article { max-width: 760px; padding-block: 48px 120px; }
.article .back { margin-bottom: 40px; }
.entry-h1 { font-family: var(--serif); font-weight: 350; font-size: clamp(38px, 5vw, 64px); line-height: 1.02; letter-spacing: -.025em; margin-top: 12px; }
.thesis { font-size: 18px; line-height: 1.5; margin-top: 24px; padding-left: 18px; border-left: 2px solid var(--accent); }
.prose { margin-top: 40px; font-family: var(--serif); font-size: 21px; line-height: 1.55; }
.prose > * + * { margin-top: 1em; }
.prose h2, .prose h3 { font: 500 var(--small)/1.4 var(--sans); color: var(--muted); margin-top: 2.6em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose ul { list-style: square; }
.prose ol { list-style: decimal; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.prose blockquote { font-style: italic; font-size: 26px; line-height: 1.3; border-left: 1px solid var(--ink); padding-left: 22px; }
.prose img { width: 100%; height: auto; display: block; border-radius: 6px; }
.prose figcaption { font-size: var(--small); color: var(--muted); margin-top: 10px; }
.prose code { font: .8em var(--mono); background: var(--rule); padding: 1px 5px; }
.prose hr { border: 0; border-top: 1px solid var(--rule); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .record { grid-template-columns: 1fr; }
  .record-map { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .pf-grid { grid-template-columns: 1fr; }
  .pf-visual { position: static; }
  .teaser-row { grid-template-columns: 32px minmax(0, 1fr) auto; }
  .teaser-line { grid-column: 2 / -1; grid-row: 2; }
  .teaser-meta { grid-column: 3; grid-row: 1; }
}
@media (max-width: 700px) {
  .site-header { flex-wrap: wrap; row-gap: 4px; }
  .clock { order: 3; width: 100%; }
  .social { margin-left: auto; gap: 16px; }
  .intro-cols { grid-template-columns: 1fr 1fr; }
  .intro-cols > div:first-child { grid-column: 1 / -1; }
  .row { grid-template-columns: 1fr; gap: 4px; }
  .row::before { display: none; }
  .project-stats { grid-template-columns: 1fr 1fr; }
  .map-hint { font-size: 0; }
  .map-hint::after { content: "← →"; font-size: var(--tiny); letter-spacing: .1em; }
}
@media (max-width: 420px) {
  .site-header .social { display: none; }
  .site-header { column-gap: 10px; }
  .nav-projects { margin-left: auto; padding: 4px 11px; }
  .nav-projects sup { display: none; }
  .langs a { padding: 4px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .traveler { display: none; }
}
@media print {
  .site-header, .map, .record-map, .journal, .copy, .to-top, .chips, .timeline { display: none; }
}

/* ---------- memos.nur.capital additions ---------- */
/* Same tailoring as nur.capital: the memo card follows the project card, the memo page follows the article. */
.evidence {
  display: grid; gap: 14px; padding: 24px 26px; border: 1px solid var(--rule); border-radius: 16px; background: var(--surface);
  box-shadow: 0 1px 0 rgba(34, 32, 28, .03), 0 24px 48px -32px rgba(34, 32, 28, .28);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s;
}
.evidence:hover { transform: translateY(-4px) rotate(-.4deg); border-color: var(--land); box-shadow: 0 1px 0 rgba(34, 32, 28, .03), 0 32px 56px -30px rgba(34, 32, 28, .36); }
.ev-quote { display: grid; gap: 4px; padding-left: 14px; border-left: 2px solid var(--rule); }
.ev-who { font-size: var(--tiny); color: var(--muted); }
.ev-text { font-family: var(--serif); font-size: clamp(19px, 1.7vw, 23px); line-height: 1.3; letter-spacing: -.01em; }
.ev-text mark { background: var(--accent-soft); color: var(--accent); padding: 0 4px; border-radius: 4px; }
.ev-note { font-size: var(--small); color: var(--muted); padding-top: 12px; border-top: 1px solid var(--rule); }

.disclosure { max-width: 760px; margin-top: 28px; padding: 18px 20px; border: 1px solid var(--rule); border-radius: 14px; font-size: var(--small); line-height: 1.55; background: var(--surface); }
.disclosure b { font-weight: 550; }
.pp-list .disclosure { margin-top: 40px; }

.memo-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 18px; font-size: var(--small); color: var(--muted); font-variant-numeric: tabular-nums; }
.memo-meta b { color: var(--ink); font-weight: 550; }
.prose .cite { font: 500 11px/1 var(--sans); vertical-align: super; color: var(--accent); text-decoration: none; margin-left: 1px; letter-spacing: .01em; }
.prose .cite:hover { text-decoration: underline; }
.prose .tag { font: 500 11px/1 var(--sans); vertical-align: super; color: var(--muted); letter-spacing: .02em; }
.prose em { font-style: italic; }
.prose strong { font-weight: 550; }
.table-wrap { overflow-x: auto; margin-top: 1.2em; border-top: 1px solid var(--ink); }
.prose table { width: 100%; border-collapse: collapse; font: 400 var(--small)/1.45 var(--sans); }
.prose th { text-align: left; font-weight: 500; color: var(--muted); padding: 10px 12px 8px 0; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.prose td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.prose td .cite { vertical-align: baseline; font-size: 10.5px; }
.prose h2 { font: 500 var(--small)/1.4 var(--sans); color: var(--muted); margin-top: 2.8em; padding-top: 14px; border-top: 1px solid var(--rule); }
.prose h1 { display: none; }
.sources { margin-top: 56px; padding-top: 14px; border-top: 1px solid var(--ink); }
.sources ol { margin-top: 14px; display: grid; gap: 10px; font-size: var(--small); line-height: 1.45; }
.sources li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; scroll-margin-top: 24px; }
.sources li:target { background: var(--accent-soft); border-radius: 6px; }
.sources .sid { font-variant-numeric: tabular-nums; color: var(--accent); font-weight: 550; }
.sources a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; word-break: break-word; }
@media (max-width: 700px) {
  .prose { font-size: 19px; }
  .prose table { font-size: var(--tiny); }
}
.prose .cite + .cite, .prose .cite + .tag, .prose .tag + .cite, .prose .tag + .tag { margin-left: .4em; }
