/* ============================================================
   RESUMIA · WALL
   An endless board of cards. Everything inside a card is sized in em,
   so one number (--u, set from the cell size) scales the whole face.
   ============================================================ */
:root {
  --bg: #f7f7f5;
  --card: #ffffff;
  --ink: #141413;
  --ink-rgb: 20 20 19;                               /* the ink as numbers, for its see-through shades */
  --ink-2: rgb(var(--ink-rgb) / .64);
  --ink-3: rgb(var(--ink-rgb) / .42);
  --ink-4: rgb(var(--ink-rgb) / .14);
  --line: rgb(var(--ink-rgb) / .08);
  --on-ink: #ffffff;                                 /* text on an ink-filled button */
  --shade: 30 28 22;                                 /* shadows: their colour, and how strong (dark mode needs more) */
  --shade-k: 1;
  --glow: 255 255 255;                               /* the white light on the figure tiles and under the pointer */
  --glow-k: 1;
  --term: #141413;                                   /* the shell and other always-dark panels */
  --dark-card: #151514;                              /* the contact card */
  --wash: #f1f0ec;
  --raise: #ffffff;                                  /* things sitting on a card: seals, chips, the front pass */
  --map-tint: #ffffff;                               /* multiplied over the map: white leaves it as drawn */
  --accent: #e8572a;
  --live: #2fae6b;
  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Instrument Sans', 'Geist', ui-sans-serif, system-ui, sans-serif;
  --serif: 'Instrument Serif', ui-serif, Georgia, serif;   /* accents only: the highlighted phrase, seals, quote marks */
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --r: 1.4em;                                        /* card corner, in card em */
  --shadow: 0 0 0 .5px rgb(var(--ink-rgb) / .09), 0 1px 2px rgb(var(--shade) / .04), 0 6px 16px rgb(var(--shade) / .05), 0 18px 40px rgb(var(--shade) / .045);
  --shadow-up: 0 0 0 .5px rgb(var(--ink-rgb) / .1), 0 2px 4px rgb(var(--shade) / .05), 0 12px 28px rgb(var(--shade) / .08), 0 32px 64px rgb(var(--shade) / .07);
  --u: 1;
  --spring: cubic-bezier(.32, .72, 0, 1);
}
/* ---------- themes: one attribute on <html> recolours the whole wall (PERSON.theme in the data, or ?theme= in the address) ---------- */
:root[data-theme="blush"]  { --bg: #f5e9e6; --card: #fdf5f3; --wash: #f6e3de; --raise: #fffaf9; --accent: #d1495b; --map-tint: #fdf1ef; }
:root[data-theme="sage"]   { --bg: #e7ede4; --card: #f6f9f3; --wash: #e2eadd; --raise: #fbfdf9; --accent: #3b7a57; --map-tint: #eff5ed; }
:root[data-theme="sky"]    { --bg: #e6edf5; --card: #f5f8fc; --wash: #e1e9f3; --raise: #fbfcfe; --accent: #2f6bd0; --map-tint: #edf5ff; }
:root[data-theme="butter"] { --bg: #f3eddb; --card: #fdf9ec; --wash: #f1e9d0; --raise: #fffdf5; --accent: #c2570c; --map-tint: #fbf5e4; }
:root[data-theme="lilac"]  { --bg: #ece8f4; --card: #f8f6fc; --wash: #e8e3f3; --raise: #fcfbfe; --accent: #7a4fd6; --map-tint: #f4f0fe; }
/* ---------- dark mode: data-mode="dark" on <html> (PERSON.mode: light, dark, or auto to follow the device; a visitor can flip it).
   It works with every colour: the ink turns light, the surfaces turn to a deep version of the theme's colour,
   the accent brightens a little so it still reads. ---------- */
:root[data-mode="dark"] {
  color-scheme: dark;
  --bg: #111110; --card: #1b1b1a; --wash: #232321; --raise: #282826; --map-tint: #161615; --accent: #f26b3d; --live: #3fc782;
  --ink: #f1f0ec; --ink-rgb: 241 240 236; --on-ink: #141413;
  --shade: 0 0 0; --shade-k: 4; --glow-k: .045;
  --term: #0b0b0a; --dark-card: #0a0a09;
  --shadow: 0 0 0 .5px rgb(var(--ink-rgb) / .07), 0 1px 2px rgb(0 0 0 / .3), 0 8px 22px rgb(0 0 0 / .28), 0 22px 48px rgb(0 0 0 / .22);
  --shadow-up: 0 0 0 .5px rgb(var(--ink-rgb) / .1), 0 2px 4px rgb(0 0 0 / .32), 0 14px 32px rgb(0 0 0 / .36), 0 36px 72px rgb(0 0 0 / .3);
}
:root[data-mode="dark"][data-theme="blush"]  { --bg: hsl(350 13% 8%);  --card: hsl(350 11% 12%); --wash: hsl(350 12% 15.5%); --raise: hsl(350 11% 17%); --accent: #ef6f81; --map-tint: hsl(350 26% 9%); }
:root[data-mode="dark"][data-theme="sage"]   { --bg: hsl(140 11% 7.5%); --card: hsl(140 9% 11.5%); --wash: hsl(140 10% 15%); --raise: hsl(140 9% 16.5%); --accent: #5fb98a; --map-tint: hsl(140 22% 8.5%); }
:root[data-mode="dark"][data-theme="sky"]    { --bg: hsl(215 16% 8%);  --card: hsl(215 13% 12%); --wash: hsl(215 14% 15.5%); --raise: hsl(215 13% 17%); --accent: #6d9cf3; --map-tint: hsl(215 30% 9%); }
:root[data-mode="dark"][data-theme="butter"] { --bg: hsl(40 12% 7.5%);  --card: hsl(40 10% 11.5%); --wash: hsl(40 11% 15%); --raise: hsl(40 10% 16.5%); --accent: #ef8b45; --map-tint: hsl(40 24% 8.5%); }
:root[data-mode="dark"][data-theme="lilac"]  { --bg: hsl(262 14% 8.5%); --card: hsl(262 12% 12.5%); --wash: hsl(262 13% 16%); --raise: hsl(262 12% 17.5%); --accent: #a68af4; --map-tint: hsl(262 28% 9.5%); }
body { transition: background-color .5s; }
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg); color: var(--ink); font: 400 15px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  overflow: hidden; overscroll-behavior: none; touch-action: none;
}
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
::selection { background: color-mix(in srgb, var(--accent) 22%, transparent); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.serif { font-family: var(--serif); }
.mono { font-family: var(--mono); }

/* ---------- the wall ---------- */
.wall { position: fixed; inset: 0; overflow: hidden; cursor: grab; outline: none; }
.wall.is-dragging { cursor: grabbing; }
.wall.is-dragging .card { pointer-events: none; }
.wall__plane { position: absolute; inset: 0; transform-origin: 50% 50%; transition: transform .7s var(--spring), filter .7s var(--spring); }
.is-open .wall__plane { transform: scale(.985); }

/* ---------- a card ---------- */
.card {
  position: absolute; left: 0; top: 0; will-change: transform;
  font-size: calc(16px * var(--u)); outline: none; cursor: pointer;
}
.card__body {
  position: relative; width: 100%; height: 100%; overflow: hidden; isolation: isolate;
  background: var(--card); border-radius: var(--r); box-shadow: var(--shadow);
  transition: transform .6s var(--spring), box-shadow .6s var(--spring);
}
@media (hover: hover) {
  .card:hover .card__body { transform: translateY(-.18em); box-shadow: var(--shadow-up); }
}
.card:focus-visible .card__body { box-shadow: var(--shadow-up), 0 0 0 2px var(--bg), 0 0 0 3.5px var(--ink); }
.card.is-lifted { visibility: hidden; }
.card--dark .card__body { background: var(--dark-card); color: #f4f3ef; }
/* the figure tiles are frosted white glass: a light wash falls across from the top left, a faint milky shade gathers
   at the bottom right, a white rim catches the edge (like the chip on the portrait) and a fine grain gives it body.
   The drawing sits on a soft white glow. The shade follows the theme's wash. */
.card--wash .card__body {
  --tint: color-mix(in srgb, var(--wash) 38%, var(--card));     /* a whisper of shade: the tile stays as light as any card */
  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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E"),
    radial-gradient(80% 65% at 12% 4%, rgb(var(--glow) / var(--glow-k)) 0%, rgb(var(--glow) / 0) 70%),
    radial-gradient(85% 75% at 100% 100%, var(--tint) 0%, transparent 72%),
    linear-gradient(155deg, var(--card), color-mix(in srgb, var(--tint) 60%, var(--card)));
  box-shadow: var(--shadow), inset 0 0 0 1px rgb(var(--glow) / calc(.7 * var(--glow-k))), inset 0 1px 0 rgb(var(--glow) / var(--glow-k));
}
.card--wash .c-fig .zone { background: radial-gradient(closest-side, rgb(var(--glow) / calc(.75 * var(--glow-k))) 0%, rgb(var(--glow) / calc(.3 * var(--glow-k))) 55%, transparent 100%); border-radius: 50%; }

/* shared bits inside faces */
.f { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 1.25em; }
.k { font: 500 .6875em/1 var(--mono); letter-spacing: .01em; color: var(--ink-3); display: flex; align-items: center; gap: .55em; }
.k i { width: .45em; height: .45em; border-radius: 50%; background: currentColor; display: inline-block; }
.card--dark .k { color: rgba(244, 243, 239, .5); }
.t-display { font-family: var(--display); font-weight: 600; letter-spacing: -.035em; line-height: 1.04; margin: 0; }
.t-sans { font-weight: 560; letter-spacing: -.012em; line-height: 1.2; margin: 0; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.grow { flex: 1; }
.row { display: flex; align-items: center; gap: .5em; }
.between { justify-content: space-between; }
.tag {
  display: inline-flex; align-items: center; gap: .4em; height: 1.75em; padding: 0 .65em; border-radius: 99px;
  font: 500 .6875em/1 var(--sans); letter-spacing: .005em; color: var(--ink-2); background: rgb(var(--ink-rgb) / .045);
}
.tag--glass { background: color-mix(in srgb, var(--raise) 78%, transparent); color: var(--ink); backdrop-filter: blur(12px) saturate(1.4); -webkit-backdrop-filter: blur(12px) saturate(1.4); box-shadow: 0 0 0 .5px rgb(var(--ink-rgb) / .06); }
.dot { width: .5em; height: .5em; border-radius: 50%; background: var(--live); position: relative; flex: none; }
.dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: ping 2.4s var(--spring) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .55; } 70%, 100% { transform: scale(3.2); opacity: 0; } }
.accent { color: var(--accent); font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.005em; }

/* media that morphs into the open card */
.media { position: absolute; overflow: hidden; border-radius: var(--r2); background: var(--wash); }
.media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.001); transition: transform 1.6s var(--spring); }
@media (hover: hover) { .card:hover .media img { transform: scale(1.045); } }

/* ---------- faces ---------- */
/* intro */
.c-intro .t-display { font-size: 3.35em; margin-top: auto; letter-spacing: -.045em; }
.c-intro__head { font: 500 1.24em/1.3 var(--display); letter-spacing: -.022em; color: var(--ink-2); margin: .55em 0 0; max-width: 24em; text-wrap: balance; }
.c-intro__foot { margin-top: 1.4em; padding-top: .9em; border-top: .5px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.c-intro__foot { gap: 1.2em; }
.c-intro__foot .k { color: var(--ink-2); white-space: nowrap; }
.c-intro__foot .k:first-child { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; }   /* a long role shortens; the city never wraps */
.c-intro__foot .k:last-child { flex: none; }
.hand { display: inline-block; transform-origin: 60% 90%; animation: nudge 3.6s var(--spring) infinite; }
@keyframes nudge { 0%, 60%, 100% { transform: translateX(0) rotate(0); } 70% { transform: translateX(.35em) rotate(6deg); } 80% { transform: translateX(-.2em) rotate(-3deg); } }

/* intro: a numbered index of what I make, in the empty corner; the open one is marked */
.c-intro > .k { align-self: flex-start; }   /* the label is only as wide as its words, so the index beside it has room */
.makes { position: absolute; top: 1.15em; right: 1.25em; list-style: none; margin: 0; padding: 0; display: grid; gap: .3em; justify-items: end; }
.makes li { display: flex; align-items: center; gap: .55em; font-size: .78em; font-weight: 500; letter-spacing: -.01em; color: var(--ink-3); cursor: pointer; transition: color .3s; white-space: nowrap; }
.makes li span { font: 500 .78em/1 var(--mono); color: var(--ink-4); transition: color .3s; }
.makes li::after { content: ''; width: .4em; height: .4em; border-radius: 50%; background: var(--accent); transform: scale(0); transition: transform .45s var(--spring); }
.makes li.is-on { color: var(--ink); }
.makes li.is-on span { color: var(--accent); }
.makes li.is-on::after { transform: none; }
@media (max-width: 640px) { .makes { display: none; } }

/* portrait */
.c-portrait .media { inset: .45em; }
.c-portrait__chip { position: absolute; left: var(--edge); right: var(--edge); bottom: var(--edge); display: flex; align-items: center; gap: .6em; padding: .7em .85em; border-radius: var(--r3); }
.c-portrait__chip b { margin-left: auto; font: 500 .8125em/1 var(--mono); font-variant-numeric: tabular-nums; }
.c-portrait__chip span { font-size: .8125em; font-weight: 500; }
.c-portrait > .tag { position: absolute; top: var(--edge); left: var(--edge); border-radius: var(--r3); }

/* project */
.c-proj__title { font-size: 1.85em; }
.c-proj__sum { font: 400 .875em/1.45 var(--sans); color: var(--ink-2); margin: .55em 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.c-proj__result { font: 500 .75em/2.1em var(--sans); display: block; min-width: 0; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; height: 2.1em; padding: 0 .85em; border-radius: 99px; background: var(--ink); color: var(--on-ink); transform: translateY(.4em); opacity: 0; transition: transform .6s var(--spring), opacity .4s; }
.card:hover .c-proj__result, .card:focus-visible .c-proj__result, .touch .c-proj__result { transform: none; opacity: 1; }
.card--l .c-proj .media { left: .45em; right: .45em; top: .45em; height: 64%; }
.card--l .c-proj .txt { margin-top: auto; }
.card--l .c-proj__title { font-size: 2.3em; }
.card--w .c-proj .media { left: .45em; top: .45em; bottom: .45em; width: 48%; }
.card--w .c-proj .txt { margin-left: 50%; height: 100%; display: flex; flex-direction: column; padding-left: .25em; }
.card--t .c-proj .media { left: .45em; right: .45em; top: .45em; height: 58%; }
.card--t .c-proj .txt { margin-top: auto; }
/* tags sit inside the photo's corner with the same air on both sides */
.c-proj .tag--glass { position: absolute; top: var(--edge); left: var(--edge); border-radius: var(--r3); z-index: 1; max-width: calc(100% - 2 * var(--edge)); white-space: nowrap; }
.c-proj__foot { display: flex; align-items: center; justify-content: space-between; gap: .75em; margin-top: .9em; min-width: 0; }


/* small shared marks */
.badge { font: 500 .625em/1 var(--mono); letter-spacing: .02em; height: 2em; padding: 0 .7em; display: inline-flex; align-items: center; border-radius: .5em; box-shadow: inset 0 0 0 .5px var(--ink-4); color: var(--ink); background: var(--raise); }
.star { color: var(--accent); }
.seal { width: 2.8em; height: 2.8em; border-radius: 50%; box-shadow: inset 0 0 0 .5px var(--ink-4); display: grid; place-items: center; font: 400 1.18em/1 var(--serif); font-style: italic; background: var(--raise); transition: transform 1s var(--spring); }
.readout { position: relative; height: 3.15em; margin-top: auto; flex: none; }
.readout p { position: absolute; inset: 0; margin: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: .15em; opacity: 0; transform: translateY(.5em); transition: opacity .35s, transform .5s var(--spring); pointer-events: none; }
.readout p.is-on { opacity: 1; transform: none; transition-delay: .14s; }
.readout p > b { font-size: .875em; font-weight: 560; letter-spacing: -.012em; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.readout p > span { font-size: .75em; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* quote */
.c-quote__q { font: 500 1.26em/1.32 var(--display); letter-spacing: -.022em; margin: 0; text-wrap: pretty; }
.c-quote__q .w { opacity: .12; transition: opacity .5s; }
.q.is-on .c-quote__q .w { opacity: 1; transition-delay: calc(120ms + var(--i) * 24ms); }
.c-quote__mark { color: var(--accent); }
.c-quote__who { display: flex; align-items: center; gap: .7em; margin-top: 1.1em; font-size: .8125em; }
.c-quote__who i { width: 2.3em; height: 2.3em; border-radius: 50%; background: var(--wash); display: grid; place-items: center; font: 500 .9em/1 var(--sans); font-style: normal; color: var(--ink-2); flex: none; }
.c-quote__who b { display: block; font-weight: 560; }
/* languages */

/* contact */
.c-contact__time { color: rgba(244, 243, 239, .62) !important; }
.c-contact__time b { font-weight: 500; color: #f4f3ef; font-variant-numeric: tabular-nums; }
.c-contact__time .dot { width: .45em; height: .45em; margin-right: .45em; }
.c-contact .t-display { font-size: 2.35em; letter-spacing: -.045em; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45em; height: 2.6em; padding: 0 1em; border-radius: 99px; border: 0; cursor: pointer; font: 500 .8125em/1 var(--sans); transition: transform .4s var(--spring), background .3s; }
.btn:active { transform: scale(.96); }
.btn--light { background: #f4f3ef; color: #151514; }
.btn--ghost { background: rgba(244, 243, 239, .1); color: #f4f3ef; }
.btn--ink { background: var(--ink); color: var(--on-ink); }
.btn--line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 .5px var(--ink-4); }
.btn .swap { display: grid; }
.btn .swap > * { grid-area: 1 / 1; transition: transform .45s var(--spring), opacity .3s; }
.btn .swap > :last-child { transform: translateY(110%); opacity: 0; }
.btn.is-done .swap > :first-child { transform: translateY(-110%); opacity: 0; }
.btn.is-done .swap > :last-child { transform: none; opacity: 1; }

/* interests */
.c-int .cloud .tag { white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; font-size: .75em; height: 2.1em; background: var(--raise); box-shadow: 0 0 0 .5px var(--ink-4), 0 2px 8px rgb(var(--shade) / calc(.05 * var(--shade-k))); color: var(--ink); animation: drift 7s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -1.3s); }
@keyframes drift { from { transform: translate(-.15em, -.2em); } to { transform: translate(.2em, .25em); } }

/* figure tiles (Hairline drawings) */
.c-fig .fallback { position: absolute; inset: 18% 22%; border-radius: 50%; box-shadow: inset 0 0 0 .5px var(--ink-4); }


/* ---------- the open card (sheet) ---------- */
.backdrop { position: fixed; inset: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 62%, transparent); backdrop-filter: blur(14px) saturate(1.1); -webkit-backdrop-filter: blur(14px) saturate(1.1); }
.sheet {
  position: fixed; z-index: 21; overflow: hidden; background: var(--card);
  border-radius: 28px; box-shadow: 0 0 0 .5px rgb(var(--ink-rgb) / .08), 0 24px 60px rgb(var(--shade) / calc(.14 * var(--shade-k))), 0 60px 120px rgb(var(--shade) / calc(.12 * var(--shade-k)));
  font-size: 16px; contain: layout paint;
}
.sheet__inner { position: absolute; left: 0; top: 0; }
.sheet__scroll { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--ink-4) transparent; touch-action: pan-y; }
.sheet__face { position: absolute; left: 0; top: 0; pointer-events: none; }
.sheet__face .card__body { box-shadow: none; transform: none !important; }
.sheet__close {
  position: absolute; top: 14px; right: 14px; z-index: 3; width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: color-mix(in srgb, var(--raise) 82%, transparent); color: var(--ink);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 0 0 .5px rgb(var(--ink-rgb) / .1), 0 4px 12px rgb(var(--shade) / calc(.08 * var(--shade-k)));
  transition: transform .4s var(--spring);
}
.sheet__close:hover { transform: rotate(90deg); }
.sheet__close:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.fly { position: fixed; z-index: 22; object-fit: cover; pointer-events: none; }

/* ---------- detail content ---------- */
.d { padding: 0 0 7rem; }
.d__hero { margin: 8px 8px 0; border-radius: 20px; overflow: hidden; height: 380px; background: var(--wash); }
.d__hero img { width: 100%; height: 100%; object-fit: cover; }
/* a portrait: the whole photo, framed on the face (faces sit in the upper third), the same on the card, in flight and here */
.c-portrait .media img { object-position: 50% 30%; }
.d__hero--portrait { height: 460px; }
.d__hero--portrait img { object-position: 50% 30%; }
.d__head { padding: 2.4rem 3rem 0; }
.d__head--top { padding-top: 3.6rem; }
.d .k { font-size: 11px; }
.d__title { font: 600 2.55rem/1.05 var(--display); letter-spacing: -.038em; margin: .9rem 0 0; text-wrap: balance; }
.d__lead { font: 400 1.12rem/1.55 var(--sans); color: var(--ink-2); margin: 1rem 0 0; max-width: 34em; text-wrap: pretty; }
.d__meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 0; margin: 2rem 3rem 0; border-top: .5px solid var(--line); border-bottom: .5px solid var(--line); }
.d__meta div { padding: .95rem 0; }
.d__meta div + div { padding-left: 1rem; border-left: .5px solid var(--line); }
.d__meta--rows { display: block; }
.d__meta--rows div { display: grid; grid-template-columns: 9rem 1fr; gap: 1.5rem; padding: .8rem 0; align-items: baseline; }
.d__meta--rows div + div { padding-left: 0; border-left: 0; border-top: .5px solid var(--line); }
.d__meta--rows dd { margin: 0; }
.d__award { padding: 1.1rem 3rem 0; }
.tag--accent { background: color-mix(in srgb, var(--accent) 10%, transparent); color: color-mix(in srgb, var(--accent) 82%, var(--ink)); font-size: 12px; height: 28px; padding: 0 .8rem; }
.d__meta dt { font: 500 11px/1 var(--mono); color: var(--ink-3); }
.d__meta dd { margin: .5rem 0 0; font-size: .9rem; font-weight: 500; }
.d__sec { padding: 2.2rem 3rem 0; display: grid; grid-template-columns: 9rem 1fr; gap: 1.5rem; }
.d__sec > h3 { margin: .25rem 0 0; font: 500 11px/1.3 var(--mono); color: var(--ink-3); }
.d__sec p { margin: 0; font-size: 1rem; line-height: 1.65; color: rgb(var(--ink-rgb) / .82); max-width: 36em; }
.d__sec p + p { margin-top: .9em; }
.d__big { font: 600 3.4rem/1 var(--display); letter-spacing: -.055em; }
.d__list { list-style: none; margin: 0; padding: 0; counter-reset: n; }
.d__list li { counter-increment: n; display: grid; grid-template-columns: 2.2rem 1fr; padding: .8rem 0; border-top: .5px solid var(--line); font-size: .95rem; line-height: 1.5; }
.d__list li:last-child { border-bottom: .5px solid var(--line); }
.d__list li::before { content: counter(n, decimal-leading-zero); font: 500 11px/1.9 var(--mono); color: var(--ink-3); }
.d__chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.d__chips .tag { font-size: 12px; height: 28px; padding: 0 .8rem; }
.d__chips .tag--link { color: var(--ink); text-decoration: none; box-shadow: inset 0 0 0 .5px var(--ink-4); transition: background .2s, color .2s; }
.d__chips .tag--link:hover { background: var(--ink); color: var(--on-ink); }
.d__gallery { display: grid; gap: 8px; padding: 2.2rem 8px 0; grid-template-columns: 1fr 1fr; }
.d__gallery figure { margin: 0; }
.d__gallery figure:first-child { grid-column: 1 / -1; }
.d__gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 16px; background: var(--wash); }
.d__gallery figure:first-child img { aspect-ratio: 16 / 9; }
.d__gallery figcaption { font-size: .8rem; color: var(--ink-2); padding: .6rem .4rem 0; display: flex; gap: .6rem; }
.d__gallery figcaption span { font: 500 11px/1.6 var(--mono); color: var(--ink-3); flex: none; }
.d__quote { font: 500 1.6rem/1.3 var(--display); letter-spacing: -.028em; margin: 0; padding: 0 3rem; text-wrap: pretty; }
.d__links { display: flex; flex-wrap: wrap; gap: .5rem; padding: 2rem 3rem 0; }
.d__links .btn { font-size: 13px; }
.d__items { list-style: none; margin: 0; padding: 0; }
.d__items li { border-top: .5px solid var(--line); }
.d__items li:last-child { border-bottom: .5px solid var(--line); }
.d__items button, .d__items a { all: unset; box-sizing: border-box; width: 100%; display: grid; grid-template-columns: 1fr auto; gap: .2rem 1rem; padding: 1rem 0; cursor: pointer; transition: padding .4s var(--spring); }
.d__items button:hover, .d__items a:hover { padding-left: .5rem; }
.d__items button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 6px; }
.d__items b { font: 600 1.04rem/1.3 var(--display); letter-spacing: -.018em; }
.d__items span { font: 500 11px/1.6 var(--mono); color: var(--ink-3); align-self: center; }
.d__items small { grid-column: 1 / -1; color: var(--ink-2); font-size: .82rem; }
.d__skill { display: grid; grid-template-columns: 1fr auto; gap: .35rem 1rem; padding: .85rem 0; border-top: .5px solid var(--line); }
.d__skill b { font-weight: 560; font-size: .95rem; }
.d__skill span { font: 500 11px/1.6 var(--mono); color: var(--ink-3); }
.d__skill p { grid-column: 1 / -1; margin: 0; font-size: .85rem; color: var(--ink-2); }
.d__skill .lvl { grid-column: 1 / -1; display: flex; gap: 3px; }
.d__skill .lvl i { flex: 1; height: 3px; border-radius: 2px; background: var(--line); }
.d__skill .lvl i.on { background: var(--ink); }
.d__fig { margin: 8px 8px 0; border-radius: 20px; background: var(--wash); height: 300px; display: grid; place-items: center; }
.d__fig > div { width: 360px; max-width: 80%; }
.d-in { opacity: 0; }

/* ---------- HUD ---------- */
.hud { position: fixed; z-index: 10; display: flex; gap: 8px; align-items: center; transition: opacity .5s, transform .6s var(--spring); }
.hud--tl { top: 16px; left: 16px; }
.hud--tr { top: 16px; right: 16px; }
.hud--bc { bottom: 20px; left: 50%; transform: translateX(-50%); }
.hud--br { bottom: 16px; right: 16px; flex-direction: column; }
.is-open .hud { opacity: 0; pointer-events: none; }
.pill {
  height: 38px; padding: 0 14px 0 6px; border-radius: 99px; border: 0; display: inline-flex; align-items: center; gap: 9px;
  background: color-mix(in srgb, var(--raise) 86%, transparent); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 0 0 .5px rgb(var(--ink-rgb) / .08), 0 1px 2px rgb(var(--shade) / calc(.04 * var(--shade-k))), 0 6px 18px rgb(var(--shade) / calc(.06 * var(--shade-k)));
  font-size: 13px; font-weight: 500; color: var(--ink); cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .4s var(--spring), box-shadow .4s var(--spring);
}
.pill:hover { transform: translateY(-1px); box-shadow: 0 0 0 .5px rgb(var(--ink-rgb) / .1), 0 2px 4px rgb(var(--shade) / calc(.05 * var(--shade-k))), 0 10px 24px rgb(var(--shade) / calc(.09 * var(--shade-k))); }
.pill:active { transform: scale(.97); }
.pill:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.pill--plain { padding: 0 14px; }
.pill--ink { background: var(--ink); color: var(--on-ink); padding: 0 16px; }
.pill--icon { width: 38px; padding: 0; justify-content: center; }
.pill img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.pill .sep { width: .5px; height: 14px; background: var(--ink-4); }
.pill .faint { font-weight: 400; }
#hint { height: 40px; padding: 0 8px 0 14px; gap: 10px; font-size: 13px; font-weight: 500; border-radius: 99px; background: rgba(20, 20, 19, .9); color: #f4f3ef; box-shadow: 0 10px 30px rgba(20, 20, 19, .18); }
#hint .hint__icon { display: grid; place-items: center; animation: nudge 3.6s var(--spring) infinite; }
.hint__keys { display: flex; gap: 3px; }
kbd { font: 500 11px/1 var(--mono); height: 24px; min-width: 24px; padding: 0 6px; display: inline-grid; place-items: center; border-radius: 7px; background: rgba(244, 243, 239, .12); color: #f4f3ef; }
.hint__short { display: none; }
#hint { white-space: nowrap; }
#hint.is-gone { opacity: 0; transform: translate(-50%, 12px); pointer-events: none; }

/* loader */
.loader { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; background: var(--bg); transition: opacity .6s; }
.loader span { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ink-4); border-top-color: var(--ink); position: relative; }
.loader span::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid transparent; border-top-color: var(--ink); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loader.is-done { opacity: 0; pointer-events: none; }


/* ============================================================
   CARD RULES — every data card is built the same way:
   header (mono label · mono detail) / one figure, centred / readout (line + caption).
   Structure lines are 1px, data marks 3px with round ends. Ink for everything;
   the accent marks what is current or under the pointer; green is only the live dot.
   ============================================================ */
.card { --line-w: calc(1px * var(--u)); --mark: calc(3px * var(--u)); }
/* Nested corners are concentric: each inner radius is the outer one minus the gap between them.
   card 1.4em → photo or map inset by --gap → anything sitting in a photo's corner, inset by --gap again. */
.card {
  --gap: calc(7.2px * var(--u));
  --r1: calc(22.4px * var(--u));
  --r2: calc(var(--r1) - var(--gap));
  --r3: calc(var(--r2) - var(--gap));
  --edge: calc(var(--gap) * 2);
}
.zone { flex: 1; min-height: 0; display: grid; place-items: center; position: relative; margin: .9em 0; }
.zone--col { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 1.1em; }
.k--live { color: var(--ink-2); }
.k--live .dot { width: .5em; height: .5em; margin-right: .1em; }
.card--dark .k--live { color: rgba(244, 243, 239, .62); }

/* the one way numbers are set */
.metric { display: inline-flex; align-items: flex-start; font: 600 4.6em/.82 var(--display); letter-spacing: -.065em; font-variant-numeric: tabular-nums; color: var(--ink); }
.metric sup { font: 500 .15em/1 var(--mono); letter-spacing: 0; color: var(--ink-3); margin: .35em 0 0 .55em; position: static; }
.metric--s { font-size: 2.1em; }
.metric--s sup { font-size: .3em; margin: .25em 0 0 .25em; }

/* now: a hundred dots, one per percent; the pointer leaves a short trail across them */
/* whole pixels: at fractions every dot is smoothed differently and the grid reads as blobs */
.dots { display: grid; grid-template-columns: repeat(10, 6px); gap: 7px; width: max-content; }
.dots i { width: 6px; height: 6px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--ink-4); transition: background .5s, box-shadow .5s, transform .6s var(--spring); }
.is-seen .dots i.on { background: var(--ink); box-shadow: none; transition-delay: calc(var(--k) * 9ms); }
.is-seen .dots i.is-head { background: var(--accent); animation: head 2.4s ease-in-out infinite; }
@keyframes head { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.5); } }
.dots i.is-lit { transform: scale(1.9); transition: transform .12s ease-out, background .2s; transition-delay: 0s; }
.dots i.is-lit:not(.on) { background: var(--ink-4); }
.readout--swap p.alt { opacity: 0; }
@media (hover: hover) {
  .card--now:hover .readout--swap p.is-on:not(:only-child) { opacity: 0; transform: translateY(-.5em); }
  .card--now:hover .readout--swap p.alt { opacity: 1; transform: none; }
}

/* experience: one tick per year */
.years { display: flex; gap: .42em; align-items: flex-end; height: 1.5em; }
.years i { width: var(--mark); height: 100%; border-radius: 99px; background: var(--ink-4); transform-origin: bottom; transform: scaleY(.3); transition: transform .9s var(--spring), background .4s; transition-delay: calc(var(--i) * 45ms); }
.years i:nth-child(odd) { height: 62%; }
.is-seen .years i { transform: none; background: var(--ink); }
.is-seen .years i.is-now { background: var(--accent); }
@media (hover: hover) { .card--stat:hover .years i { animation: tick .8s var(--spring) both; animation-delay: calc(var(--i) * 30ms); } }
@keyframes tick { 0% { transform: scaleY(.3); } 60% { transform: scaleY(1.12); } 100% { transform: none; } }

/* languages: rows with level dots; the readout greets you in the one under the pointer */
.langs { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; }
.langs li { display: flex; align-items: center; justify-content: space-between; font-size: .875em; font-weight: 500; padding: .55em .1em; border-bottom: var(--line-w) solid var(--line); color: var(--ink-3); transition: color .3s; cursor: default; }
.langs li:first-child { border-top: var(--line-w) solid var(--line); }
.langs li.is-on { color: var(--ink); }
/* whole pixels, as the Now grid: dots at fractions of a pixel are smoothed unevenly and read as blobs */
.pips { display: flex; gap: 4px; }
.pips i { flex: none; width: 6px; height: 6px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--ink-4); transition: background .4s, box-shadow .4s; transition-delay: calc(var(--i) * 60ms); }
.is-seen .pips i.on { background: var(--ink-4); box-shadow: none; }
.is-seen .langs li.is-on .pips i.on { background: var(--ink); }

/* interests */
/* the chips flow as a centred cluster, so a long one wraps to its own line instead of leaving the card */
.c-int .cloud { position: absolute; inset: 0; display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: .45em .4em; }

/* skills: segment control above the radar */
.radar { width: 100%; height: 100%; overflow: visible; }

/* education: one seal per degree on a line, details in the readout */

/* figure tiles */
.c-fig .fig { height: 100%; max-width: 100%; aspect-ratio: 5 / 4; color: var(--ink); }
:root[data-mode="dark"] .c-fig .fig {
  --hairline-plate: var(--card); --hairline-hi: color-mix(in srgb, var(--ink) 84%, var(--card)); --hairline-edge: color-mix(in srgb, var(--ink) 36%, var(--card));
  --hairline-mid: color-mix(in srgb, var(--ink) 22%, var(--card)); --hairline-lo: color-mix(in srgb, var(--ink) 12%, var(--card));
}
.c-fig .fig svg { width: 100%; height: 100%; }

/* ============================================================
   SECTION CARDS
   ============================================================ */
/* career timeline */
.c-career .tl { position: relative; flex: 1; margin: 1.1em 0 .9em; border-bottom: var(--line-w) solid var(--ink-4); }
.tl__tick { position: absolute; left: var(--x); top: 0; bottom: 0; width: 0; border-left: var(--line-w) dashed var(--line); }
.tl__tick em { position: absolute; bottom: -1.7em; left: 0; transform: translateX(-50%); font: 500 .625em/1 var(--mono); font-style: normal; color: var(--ink-3); }
.tl__seg {
  --row: calc((100% - .5em) / var(--lanes));
  position: absolute; left: var(--l); width: calc(var(--w) - .25em); bottom: calc(.5em + var(--lane) * var(--row)); height: calc(var(--row) - .2em);
  display: flex; flex-direction: column; justify-content: flex-end; gap: .28em; cursor: pointer;
}
.tl__seg.is-right { align-items: flex-end; }
.tl__seg b { font-size: .72em; font-weight: 560; white-space: nowrap; width: max-content; color: var(--ink-2); transition: color .3s; line-height: 1; }
.tl__seg i { display: block; align-self: stretch; height: var(--mark); border-radius: 99px; background: var(--ink-4); transform-origin: left; transform: scaleX(0); transition: transform 1.2s var(--spring), background .3s; }
.tl__seg:nth-of-type(2) i { transition-delay: 80ms; } .tl__seg:nth-of-type(3) i { transition-delay: 160ms; } .tl__seg:nth-of-type(4) i { transition-delay: 240ms; }
.is-seen .tl__seg i { transform: none; }
.tl__seg.is-now i { background: var(--ink); position: relative; }
.tl__seg.is-now i::after { content: ''; position: absolute; right: -.15em; top: 50%; width: .55em; height: .55em; margin-top: -.275em; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 .2em var(--card); }
.tl__seg.is-hot b { color: var(--ink); }
.tl__seg.is-hot i { background: var(--accent); }
.c-career .readout { margin-top: 1.4em; }

/* skills radar */
.seg { position: relative; display: inline-flex; align-self: flex-start; margin-top: 1em; padding: .2em; border-radius: 99px; background: rgb(var(--ink-rgb) / .045); }
.seg__b { position: relative; z-index: 1; font: 500 .6875em/1 var(--sans); padding: .62em .95em; border-radius: 99px; color: var(--ink-2); cursor: pointer; transition: color .3s; }
.seg__b.is-on { color: var(--ink); }
.seg__thumb { position: absolute; left: 0; top: .2em; bottom: .2em; border-radius: 99px; background: var(--raise); box-shadow: 0 0 0 .5px rgb(var(--ink-rgb) / .08), 0 1px 3px rgb(var(--shade) / calc(.08 * var(--shade-k))); transition: transform .55s var(--spring), width .55s var(--spring); }
.radar__ring { fill: none; stroke: var(--line); stroke-width: var(--line-w); vector-effect: non-scaling-stroke; }
.radar__ring.is-out { stroke: var(--ink-4); }
.radar__spoke { stroke: var(--line); stroke-width: var(--line-w); vector-effect: non-scaling-stroke; }
.radar__shape { fill: rgb(var(--ink-rgb) / .06); stroke: var(--ink); stroke-width: var(--line-w); vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.radar__hit { fill: transparent; cursor: default; }
.radar__dot { fill: var(--ink); stroke: var(--card); stroke-width: var(--line-w); vector-effect: non-scaling-stroke; transition: r .3s var(--spring), fill .2s; }
.radar__pt.is-hot .radar__dot { fill: var(--accent); r: 5; }
.radar__num { font: 500 12px var(--mono); fill: var(--ink-3); transition: fill .25s; }
.radar__num.is-hot { fill: var(--accent); }
.radar-wrap { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 1.08fr; gap: 1.4em; margin-top: .9em; }
.radar-wrap .zone { margin: 0; }
.radar-side { display: flex; flex-direction: column; min-width: 0; }
.radar-side .seg { margin-top: 0; }
.slist { list-style: none; margin: auto 0 0; padding: 0; }
.slist li { display: grid; grid-template-columns: 1.7em 1fr auto auto; align-items: center; gap: 0 .6em; padding: .44em 0; border-top: var(--line-w) solid var(--line); cursor: default; animation: rowin .5s var(--spring) both; animation-delay: calc(var(--i) * 45ms); }
.slist li:last-child { border-bottom: var(--line-w) solid var(--line); }
.slist__n { font: 500 .6em/1 var(--mono); color: var(--ink-3); transition: color .25s; }
.slist b { font-size: .78em; font-weight: 520; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.slist em { font: 500 .6em/1 var(--mono); font-style: normal; color: var(--ink-3); }
.slist .pips i { width: 5px; height: 5px; }
.slist .pips i.on { background: var(--ink); box-shadow: none; }
.slist li.is-hot .slist__n { color: var(--accent); }
.slist li.is-hot .pips i.on { background: var(--accent); }
@keyframes rowin { from { opacity: 0; transform: translateY(.3em); } to { opacity: 1; transform: none; } }

/* publications deck: the top paper reads in full; the ones behind show only their edges */
.c-research .deck { position: relative; width: 100%; height: 20.8em; }
.leaf {
  position: absolute; left: 0; right: 0; top: 0; height: 19em; padding: 1.15em 1.15em 1em; border-radius: .95em; background: var(--raise); cursor: pointer;
  box-shadow: 0 0 0 var(--line-w) rgb(var(--ink-rgb) / .09), 0 1px 2px rgb(var(--shade) / calc(.04 * var(--shade-k))), 0 8px 20px rgb(var(--shade) / calc(.06 * var(--shade-k)));
  display: flex; flex-direction: column;
  z-index: calc(10 - var(--o)); opacity: clamp(0, calc(1.6 - var(--o) * .5), 1); transform-origin: 50% 100%;
  transform: translateY(calc(var(--o) * .8em)) scale(calc(1 - var(--o) * .045));
  transition: transform .8s var(--spring), opacity .5s;
}
.leaf > * { opacity: clamp(0, calc(1 - var(--o)), 1); transition: opacity .35s; }
.leaf.is-out { transform: translateY(-1.4em) rotate(-4deg) scale(1.02); opacity: 0; transition: transform .45s cubic-bezier(.4, 0, 1, 1), opacity .35s; }
.leaf__title { font: 600 1.06em/1.22 var(--display); letter-spacing: -.022em; margin: 1.1em 0 0; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; text-wrap: pretty; }
.leaf__abs { font-size: .74em; line-height: 1.55; color: var(--ink-2); margin: .9em 0 1.4em; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; text-wrap: pretty; }
.leaf__foot { margin-top: auto; padding-top: .8em; border-top: var(--line-w) solid var(--line); }
.leaf__foot .k { font-size: .6em; }
@media (hover: hover) {
  .card:hover .leaf { transform: translateY(calc(var(--o) * 1.3em - .2em)) scale(calc(1 - var(--o) * .045)); }
}

/* awards: a list set in type; the open row shows who gave it */
.alist { list-style: none; margin: auto 0 0; padding: 0; }
.alist li { display: grid; grid-template-columns: 3.4em 1fr auto; align-items: baseline; gap: 0 .9em; padding: .72em 0; border-top: var(--line-w) solid var(--line); cursor: pointer; }
.alist li:last-child { border-bottom: var(--line-w) solid var(--line); }
.alist__y { font: 500 .6875em/1 var(--mono); color: var(--ink-3); transition: color .3s; }
.alist__t { display: grid; min-width: 0; }
.alist__t b { font-size: .875em; font-weight: 560; letter-spacing: -.012em; line-height: 1.3; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .3s; }
.alist__t em { font-size: .72em; font-style: normal; line-height: 1.35; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-height: 0; opacity: 0; transition: max-height .55s var(--spring), opacity .3s, margin .55s var(--spring); }
.alist__k { font: 500 .625em/1 var(--mono); color: var(--ink-3); white-space: nowrap; }
.alist li.is-on .alist__y { color: var(--accent); }
.alist li.is-on .alist__t b { color: var(--ink); }
.alist li.is-on .alist__t em { max-height: 1.4em; opacity: 1; margin-top: .3em; }
/* quotes */
.c-quotes .qs { position: relative; flex: 1; margin-top: .9em; }
.q { position: absolute; inset: 0; margin: 0; display: flex; flex-direction: column; justify-content: flex-end; opacity: 0; transform: translateY(-.4em); transition: opacity .28s, transform .4s ease-in; pointer-events: none; cursor: pointer; }
.q.is-on { opacity: 1; transform: none; pointer-events: auto; transition: opacity .45s .3s, transform .8s .3s var(--spring); }
.qdots { display: inline-flex; gap: .35em; }
.qdots i { width: 1.6em; height: .22em; border-radius: 99px; background: var(--line); overflow: hidden; cursor: pointer; position: relative; }
.qdots i::before { content: ''; position: absolute; inset: -.6em 0; }
.qdots b { display: block; height: 100%; width: 100%; background: var(--ink); transform-origin: left; transform: scaleX(0); }
.qdots i.is-on b { animation: qfill 7s linear forwards; }
@media (hover: hover) { .card:hover .qdots i.is-on b { animation-play-state: paused; } }
@keyframes qfill { to { transform: scaleX(1); } }


/* rolling digits */
.rolls { display: inline-flex; }
.roll { display: inline-block; height: 1em; line-height: 1; overflow-x: visible; overflow-y: clip; }   /* clipped top and bottom only: wide glyphs keep their sides */
.roll__col { display: flex; flex-direction: column; transform: translateY(calc(var(--d) * -1em)); transition: transform 1.15s var(--spring); }
.roll__col > span { height: 1em; line-height: 1; text-align: center; }
.roll--sep { width: .28em; }
.metric { line-height: 1; }

/* career: a ruler of the years with a needle on it. The roles are chapters along the ruler;
   the ticks swell around the needle like a lens, and the top of the card reads out the year under it. */
.c-cr .cr__top { display: flex; align-items: flex-end; gap: 1.1em; margin-top: 1.1em; }
.c-cr .cr__top .metric { font-size: 3.8em; }
.cr__now { padding-bottom: .4em; min-width: 0; }
.cr__now b { display: block; font-size: .95em; font-weight: 560; letter-spacing: -.012em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cr__now span { display: block; font-size: .8em; color: var(--ink-2); margin-top: .15em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* what the year held: one line each, the kind in mono, the thing itself, and an arrow that comes out on hover */
.cr__ev { list-style: none; margin: 1.15em 0 0; padding: 0; height: 6.9em; overflow: hidden; flex: none; }   /* always three lines tall, so nothing under it jumps */
.cr__ev li { display: grid; grid-template-columns: 5.6em minmax(0, 1fr) auto; align-items: center; gap: .7em; height: 2.3em; border-top: var(--line-w) solid var(--line); cursor: pointer; }
.cr__ev em { font: 500 .5625em/1 var(--mono); font-style: normal; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); display: flex; align-items: center; gap: .7em; white-space: nowrap; }
/* the same marks as the chart: shipped is solid, published is an outline, won is an outline with a dot; joined and focus are a dash */
.cr__ev em::before { content: ''; width: 1.1em; height: .7em; border-radius: 2px; flex: none; background: var(--ink-4); }
.cr__ev li[data-kind="published"] em::before { background: none; box-shadow: inset 0 0 0 var(--line-w) var(--ink-3); }
.cr__ev li[data-kind="won"] em::before { background: radial-gradient(circle, var(--ink-2) 0 .13em, transparent .15em); box-shadow: inset 0 0 0 var(--line-w) var(--ink-3); }
.cr__ev li[data-kind="joined"] em::before, .cr__ev li[data-kind="focus"] em::before { height: var(--line-w); background: var(--ink-3); }
.cr__ev li.is-hot span { color: var(--accent); }
.cr__ev li.is-hot i { opacity: 1; transform: none; }
.cr__ev span { font-size: .8em; font-weight: 500; letter-spacing: -.008em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .25s; }
.cr__ev li[data-kind="focus"] span { color: var(--ink-2); font-weight: 450; }
.cr__ev i { font-style: normal; font-size: .72em; color: var(--accent); opacity: 0; transform: translate(-.3em, .3em); transition: opacity .25s, transform .35s var(--spring); }
.cr__ev li:hover span { color: var(--accent); }
.cr__ev li:hover i { opacity: 1; transform: none; }
.cr__ev li.is-more { cursor: default; }
.cr__ev li.is-more em::before { display: none; }
.cr__ev li.is-more span { color: var(--ink-3); font-weight: 450; }

/* the small rectangle: year and role on the left, the year's line on the right, the instrument across the bottom */
.card--w .c-cr { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr); column-gap: 1.6em; }
.card--w .c-cr > .row { grid-column: 1 / -1; }
.card--w .cr__top { grid-column: 1; margin-top: .75em; gap: .8em; }
.card--w .cr__top .metric { font-size: 3em; }
.card--w .cr__now { padding-bottom: .22em; max-width: 12em; }
.card--w .cr__ev { grid-column: 2; grid-row: 2; align-self: end; margin: 0 0 .1em; height: 2.3em; }
.card--w .cr__ev li { border-top: 0; grid-template-columns: auto minmax(0, 1fr) auto; gap: .6em; height: 2.3em; padding: 0 .75em; border-radius: calc(var(--r3) * .75); background: var(--wash); transition: background .25s; }
.card--w .cr__ev li:hover, .card--w .cr__ev li.is-hot { background: color-mix(in srgb, var(--accent) 8%, var(--card)); }
.card--w .cr__ev em { gap: 0; }
.card--w .cr__ev em u { display: none; }   /* the mark says what kind it is; the words go to the title */
.cr__ev em u { text-decoration: none; }
.card--w .cr__ev span { font-size: .74em; }
.cr__ev li > b { font: 500 .5625em/1 var(--mono); color: var(--ink-3); }
.cr__ev li:has(> b) > i { display: none; }
.card--w .cr__inst { grid-column: 1 / -1; margin-top: .55em; }
.card--w .cr__ch { height: 1.55em; margin-top: .4em; }
.card--w .cr__needle { bottom: calc(1.2em + .5em + 1.55em + .4em); }
.card--w .cr__ch b { font-size: .6em; }
.cr__ch span.is-tiny em { display: none; }

/* the instrument */
.cr__inst { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; margin-top: .4em; cursor: ew-resize; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.cr__ch { position: relative; height: 1.95em; flex: none; margin-top: .55em; }
.cr__ch span.is-tight b { display: none; }
.cr__ch span.is-tight { justify-content: center; padding: 0; }
.cr__ch span { position: absolute; top: 0; bottom: 0; left: var(--l); width: calc(var(--w) - 3px); display: flex; align-items: center; gap: .5em; padding: 0 .6em; overflow: hidden; border-radius: calc(var(--r3) * .75); background: var(--wash); color: var(--ink-3); cursor: pointer; transition: background .4s var(--spring), color .4s; }
.cr__ch em { font: 500 .5625em/1 var(--mono); font-style: normal; flex: none; opacity: .8; }
.cr__ch b { font-size: .66em; font-weight: 560; letter-spacing: -.005em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.cr__ch span:hover { color: var(--ink); }
.cr__ch span.is-on { background: var(--ink); color: var(--on-ink); }
.cr__ch span.is-on em { opacity: .55; }
.cr__ticks { position: relative; flex: 1; min-height: 1.9em; }
.cr__ticks i { position: absolute; bottom: 0; left: var(--x); width: var(--line-w); height: .42em; margin-left: calc(var(--line-w) / -2); background: var(--ink-4); transform-origin: bottom; transition: background .3s; will-change: transform; }
.cr__ticks i.is-y { height: .8em; background: var(--ink-3); }
.cr__ticks i.is-in { background: var(--ink-2); }
.cr__ticks i.is-in.is-y { background: var(--ink); }
.cr__ticks::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: var(--line-w); background: var(--line); }
.cr__yrs { position: relative; height: 1.2em; margin-top: .5em; flex: none; }
.cr__yrs em { position: absolute; top: 0; left: var(--x); transform: translateX(-50%); font: 500 .5625em/1 var(--mono); font-style: normal; color: var(--ink-3); transition: color .3s; }
.cr__yrs em.is-on { color: var(--accent); }
.cr__needle { position: absolute; left: 0; top: .2em; bottom: calc(1.2em + .5em + 1.95em + .55em); width: var(--line-w); margin-left: calc(var(--line-w) / -2); background: var(--accent); pointer-events: none; z-index: 1; }
.cr__needle b { position: absolute; left: 50%; top: -.28em; width: .56em; height: .56em; margin-left: -.28em; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 .2em var(--card); }
.cr__needle::after { content: ''; position: absolute; left: 50%; bottom: -.25em; width: .5em; height: .5em; margin-left: -.25em; border-radius: 50%; background: var(--card); box-shadow: inset 0 0 0 var(--line-w) var(--accent); }
/* selected work: an index on the left, a frame on the right where each cover drops in from below */
.c-index { padding: 0; }
.pj { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; }
.pj__list { display: flex; flex-direction: column; padding: 1.25em; min-width: 0; }
.plist { list-style: none; margin: auto 0 0; padding: 0; }
.plist li { position: relative; display: grid; grid-template-columns: 1.9em 1fr auto; align-items: baseline; gap: 0 .5em; padding: .58em 0; border-top: var(--line-w) solid var(--line); cursor: pointer; }
.plist li:last-child { border-bottom: var(--line-w) solid var(--line); }
.plist__n { font: 500 .6em/1 var(--mono); color: var(--ink-3); transition: color .3s; }
.plist b { font-size: .8em; font-weight: 520; letter-spacing: -.01em; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .3s; }
.plist em { font: 500 .6em/1 var(--mono); font-style: normal; color: var(--ink-3); }
.plist__bar { position: absolute; left: 0; right: 0; bottom: calc(var(--line-w) * -1); height: var(--line-w); background: var(--ink); transform-origin: left; transform: scaleX(0); }
.plist li.is-on .plist__n { color: var(--accent); }
.plist li.is-on b { color: var(--ink); }
.plist li.is-on .plist__bar { animation: pjbar 3.8s linear forwards; }
@media (hover: hover) { .card--strip:hover .plist li.is-on .plist__bar { animation-play-state: paused; } }
@keyframes pjbar { to { transform: scaleX(1); } }
.pj__frame { position: relative; margin: var(--gap) var(--gap) var(--gap) 0; border-radius: var(--r2); overflow: hidden; background: var(--wash); isolation: isolate; }
.pj__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; transform-origin: 50% 100%; }
.pj__frame img:not(.is-on) { pointer-events: none; }
.pj__frame img.is-on:first-child { z-index: 1; }   /* the first cover is on top before any change */
.pj__tag { position: absolute; top: var(--gap); left: var(--gap); z-index: 100; border-radius: var(--r3); }
/* contact: slide to say hello */
.slide { --p: 0; position: relative; height: 3em; margin-top: auto; border-radius: 99px; background: rgba(244, 243, 239, .08); box-shadow: inset 0 0 0 var(--line-w) rgba(244, 243, 239, .14); overflow: hidden; touch-action: none; cursor: grab; user-select: none; }
.slide.is-held { cursor: grabbing; }
.slide__fill { position: absolute; left: 0; top: 0; bottom: 0; width: calc(3em + var(--p) * (100% - 3em)); border-radius: inherit; background: rgba(244, 243, 239, .14); transition: width .6s var(--spring); }
.slide__knob { position: absolute; top: .3em; left: calc(.3em + var(--p) * (100% - 3em)); width: 2.4em; height: 2.4em; border-radius: 50%; background: #f4f3ef; color: #151514; display: grid; place-items: center; transition: left .6s var(--spring), background .3s; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.slide__label, .slide__done { position: absolute; inset: 0; display: grid; place-items: center; padding-left: 2.4em; font-size: .8125em; font-weight: 500; transition: opacity .3s; pointer-events: none; }
.slide__label { color: rgba(244, 243, 239, .72); opacity: calc(1 - var(--p) * 1.6); background: linear-gradient(90deg, rgba(244, 243, 239, .5) 0%, #f4f3ef 50%, rgba(244, 243, 239, .5) 100%) 0 0 / 200% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: shimmer 2.6s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.slide__done { opacity: 0; color: #151514; padding: 0 2.4em 0 0; }
.slide.is-held .slide__fill, .slide.is-held .slide__knob { transition: none; }
.slide.is-done .slide__fill { background: #f4f3ef; }
.slide.is-done .slide__done { opacity: 1; }
.slide.is-done .slide__knob { background: var(--accent); color: #fff; }
.c-contact__row { display: flex; align-items: center; justify-content: space-between; gap: .6em; margin-top: .75em; }
.c-contact__row .btn--s { height: 2.1em; padding: 0 .8em; font-size: .72em; }
.c-contact .t-display { margin: auto 0 .45em; }

/* publications: a held paper follows the pointer */
.leaf.is-held { transition: none; cursor: grabbing; z-index: 20; }
.deck { touch-action: none; }

/* portrait: a soft glare follows the pointer while it tilts */
.card--portrait .card__body { transform-style: preserve-3d; }
.c-portrait .media::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(22em circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .28), transparent 60%); mix-blend-mode: soft-light; opacity: 0; transition: opacity .5s; }
.card--portrait:hover .c-portrait .media::after { opacity: 1; }

/* HUD pills lean toward the pointer */
.hud .pill { transition: transform .4s var(--spring), box-shadow .4s var(--spring), translate .6s var(--spring); }

/* location map */
.c-map { padding: .45em; }
.c-map .map, .d__map { position: absolute; inset: var(--gap, .45em); border-radius: var(--r2, 20px); overflow: hidden; background: var(--wash); isolation: isolate; }
.c-map .map { pointer-events: none; }                                   /* the wall moves under a drag; the card opens on a click */
.map canvas, .d__map canvas { filter: grayscale(1) contrast(.94) brightness(1.03); }
/* the map keeps the base style's own greys in Paper; in the other themes it is multiplied over a faint tint of the theme,
   from the first frame (nothing is repainted after load), and it follows a theme change at once */
.c-map .map, .d__map { isolation: isolate; background: var(--map-tint); }
.c-map .maplibregl-canvas, .d__map .maplibregl-canvas { mix-blend-mode: multiply; }
:root[data-mode="dark"] .map canvas, :root[data-mode="dark"] .d__map canvas { filter: grayscale(1) invert(1) contrast(.86) brightness(.92); }
:root[data-mode="dark"] .c-map .maplibregl-canvas, :root[data-mode="dark"] .d__map .maplibregl-canvas { mix-blend-mode: screen; }
.maplibregl-marker { z-index: 470; }
.c-map__tag { position: absolute; top: var(--edge); left: var(--edge); border-radius: var(--r3); z-index: 2; }
.c-map__chip { position: absolute; left: var(--edge); bottom: var(--edge); z-index: 2; display: flex; align-items: center; gap: .5em; height: auto; padding: .7em .9em; border-radius: var(--r3); font-size: .78em; max-width: calc(100% - 2 * var(--edge)); white-space: nowrap; }
.c-map__chip b { font-weight: 560; letter-spacing: -.01em; }
.c-map__chip .faint { overflow: hidden; text-overflow: ellipsis; }
.c-map__sep { width: var(--line-w); height: 1em; background: var(--ink-4); margin: 0 .15em; flex: none; }
.c-map__time { font-family: var(--mono); font-weight: 500; font-variant-numeric: tabular-nums; }
.c-map__credit { position: absolute; right: var(--edge); bottom: var(--edge); z-index: 2; font: 500 .5em/1 var(--mono); color: var(--ink-3); background: color-mix(in srgb, var(--raise) 70%, transparent); padding: .45em .6em; border-radius: var(--r3); }
.pin { position: relative; display: block; width: 28px; height: 28px; }
.pin i { position: absolute; inset: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--raise), 0 2px 10px rgb(var(--shade) / calc(.28 * var(--shade-k))); }
.pin b { position: absolute; inset: 0; border-radius: 50%; background: var(--accent); opacity: .22; animation: pinpulse 2.6s var(--spring) infinite; }
@keyframes pinpulse { 0% { transform: scale(.4); opacity: .45; } 80%, 100% { transform: scale(1.6); opacity: 0; } }
.map.is-off, .d__map.is-off { background: var(--wash) repeating-linear-gradient(45deg, transparent 0 10px, rgb(var(--ink-rgb) / .03) 10px 11px); }
/* the open card's map */
.d__map { position: relative; inset: auto; margin: 8px 8px 0; height: 380px; border-radius: 20px; --r2: 20px; }
/* the map as a small square: the label keeps the city and the time, the credit moves to the top */
.card--s .c-map__chip .faint, .card--s .c-map__sep + .c-map__time + .faint { display: none; }
.card--s .c-map__chip > .faint:first-of-type { display: none; }
.card--s .c-map__credit { bottom: auto; top: var(--edge); }
/* MapLibre's controls, in the wall's own style */
.d__map .maplibregl-ctrl-group { border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 .5px rgb(var(--ink-rgb) / .1), 0 4px 14px rgb(var(--shade) / calc(.1 * var(--shade-k))) !important; background: color-mix(in srgb, var(--raise) 92%, transparent); }
.d__map .maplibregl-ctrl-group button { width: 34px; height: 34px; }
.d__map .maplibregl-ctrl-group button + button { border-top: .5px solid var(--line); }
.d__map .maplibregl-ctrl-bottom-right .maplibregl-ctrl { margin: 0 14px 14px 0; }
.d__map .maplibregl-ctrl-attrib { font: 500 10px/1.6 var(--mono); color: var(--ink-3); background: color-mix(in srgb, var(--raise) 78%, transparent) !important; padding: 2px 8px; border-radius: 99px; margin: 0 0 14px 14px !important; }
.d__map .maplibregl-ctrl-attrib a { color: inherit; }
.d__clock { font: 600 2.2rem/1 var(--display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; margin-right: .3rem; }
@media (max-width: 640px) { .d__map { height: 260px; } }

/* ============================================================
   SECTIONS — the wall of one section: a title card in the corner and an entry card per role, paper, award, degree
   ============================================================ */
.c-sec__title { font-size: 3.4em; letter-spacing: -.05em; }
.c-sec__lead { font: 500 1.05em/1.35 var(--display); letter-spacing: -.02em; color: var(--ink-2); margin: .5em 0 0; }
.c-sec__back { display: inline-flex; align-items: center; gap: .45em; height: 2.3em; padding: 0 .9em 0 .75em; border: 0; border-radius: 99px; background: var(--ink); color: var(--on-ink); font: 500 .72em/1 var(--sans); cursor: pointer; transition: transform .4s var(--spring); }
.c-sec__back:hover { transform: translateX(-.15em); }
.c-sec__back:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.c-entry__t { font-size: 1.7em; line-height: 1.04; letter-spacing: -.04em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.c-entry__t--s { font-size: 1.32em; letter-spacing: -.03em; line-height: 1.1; -webkit-line-clamp: 3; }
.card--w .c-entry__t { font-size: 2.1em; }
.c-entry__s { font-size: .8125em; color: var(--ink-2); margin: .45em 0 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-entry__x { font-size: .78em; line-height: 1.4; color: var(--ink-2); margin: .8em 0 0; padding-top: .75em; border-top: var(--line-w) solid var(--line); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.c-entry__paper { font: 600 1.06em/1.22 var(--display); letter-spacing: -.022em; margin: 0; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; text-wrap: pretty; }
.card--w .c-entry__paper { font-size: 1.4em; -webkit-line-clamp: 3; max-width: 22em; }
.c-entry--paper .c-entry__x { border-top: 0; padding-top: 0; margin-top: .6em; }
.c-entry__foot { margin-top: .9em; padding-top: .75em; border-top: var(--line-w) solid var(--line); }

/* ============================================================
   UNDER THE POINTER
   ============================================================ */
/* a light that follows the pointer along the card's edge, and a soft glow inside wash and dark cards */
.card__body::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 5;
  background: radial-gradient(14em circle at var(--mx, 50%) var(--my, 50%), rgb(var(--ink-rgb) / .2), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0; transition: opacity .5s;
}
.card--dark .card__body::after { background: radial-gradient(14em circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .32), transparent 70%); }
.card--wash .card__body::before, .card--dark .card__body::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .5s;
  background: radial-gradient(18em circle at var(--mx, 50%) var(--my, 50%), rgb(var(--glow) / calc(.75 * var(--glow-k))), transparent 65%);
}
.card--dark .card__body::before { background: radial-gradient(18em circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .07), transparent 65%); }
@media (hover: hover) {
  .card:hover .card__body::after, .card:hover .card__body::before { opacity: 1; }
  /* the photo leans away from the pointer */
  .card:hover .media img { transform: scale(1.07) translate(calc(var(--px, 0) * -1.6%), calc(var(--py, 0) * -1.6%)); transition: transform .9s var(--spring); }
}

/* intro: the name sets letter by letter, the accent gets a line drawn under it */
.c-intro .t-display > span { display: inline-block; }
.c-intro .ch { display: inline-block; transform: translateY(.42em); opacity: 0; filter: blur(4px); transition: transform 1.1s var(--spring), opacity .8s, filter .8s; transition-delay: calc(240ms + var(--i) * 34ms); }
.is-seen .c-intro .ch { transform: none; opacity: 1; filter: none; }
.drawn { position: relative; white-space: nowrap; }
.scribble { position: absolute; left: -2%; right: -2%; bottom: -.32em; width: 104%; height: .5em; overflow: visible; }
.scribble path { fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 220; stroke-dashoffset: 220; transition: stroke-dashoffset 1.1s cubic-bezier(.65, 0, .35, 1) .9s; }
.is-seen .scribble path { stroke-dashoffset: 0; }
.card:hover .scribble path { animation: redraw 1s cubic-bezier(.65, 0, .35, 1); }
@keyframes redraw { 0% { stroke-dashoffset: 0; } 45% { stroke-dashoffset: -220; } 46% { stroke-dashoffset: 220; } 100% { stroke-dashoffset: 0; } }


/* project: the duration gives way to an invitation */
.c-proj__more { display: grid; flex: none; white-space: nowrap; }
.c-proj__more > span { grid-area: 1 / 1; justify-self: end; display: inline-flex; align-items: center; gap: .4em; transition: transform .5s var(--spring), opacity .35s; }
.c-proj__more > span:last-child { transform: translateY(70%); opacity: 0; color: var(--ink); }
.card:hover .c-proj__more > span:first-child { transform: translateY(-70%); opacity: 0; }
.card:hover .c-proj__more > span:last-child { transform: none; opacity: 1; }



/* contact: the title waves */
.wave > span { display: inline-block; }
.wave .ch { display: inline-block; }
.card:hover .wave .ch { animation: wave .9s var(--spring) both; animation-delay: calc(var(--i) * 35ms); }
@keyframes wave { 0% { transform: none; } 35% { transform: translateY(-.18em); } 100% { transform: none; } }

/* interests: chips lean away from the pointer */
.c-int .cloud .tag { transition: translate .7s var(--spring); }


/* ============================================================
   THE OPEN CARD, POLISHED
   ============================================================ */
.sheet__progress { position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: 4; pointer-events: none; }
.sheet__progress i { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(var(--p, 0)); opacity: .85; }
.sheet__bar {
  position: absolute; left: 0; right: 0; top: 0; z-index: 2; height: 64px; padding: 0 64px 0 28px; display: flex; align-items: center; gap: 12px;
  background: color-mix(in srgb, var(--raise) 80%, transparent); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 .5px 0 var(--line); transform: translateY(-100%); opacity: 0; transition: transform .5s var(--spring), opacity .3s; pointer-events: none;
}
.sheet__bar.is-on { transform: none; opacity: 1; pointer-events: auto; }
.sheet__bar b { font: 600 .98rem/1.2 var(--display); letter-spacing: -.018em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet__bar .k { font-size: 11px; flex: none; }
.d__hero img { will-change: transform; transform-origin: 50% 0; }
.d__next { margin: 4rem 8px 0; border-radius: 20px; background: var(--wash); display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; }
.d__next button { all: unset; box-sizing: border-box; cursor: pointer; padding: 1.4rem 1.6rem 1.6rem; display: flex; flex-direction: column; gap: .6rem; min-height: 9rem; transition: background .4s; }
.d__next button + button { text-align: right; align-items: flex-end; box-shadow: inset .5px 0 0 var(--line); }
.d__next button:hover { background: color-mix(in srgb, var(--raise) 60%, transparent); }
.d__next button:focus-visible { outline: 2px solid var(--ink); outline-offset: -4px; border-radius: 20px; }
.d__next .k { font-size: 11px; }
.d__next b { font: 600 1.22rem/1.18 var(--display); letter-spacing: -.028em; margin-top: auto; text-wrap: balance; }
.d__next svg { transition: transform .5s var(--spring); }
.d__next button:hover svg { transform: translateX(4px); }
.d__next button:first-child:hover svg { transform: translateX(-4px); }
.d__count { font: 500 11px/1 var(--mono); color: var(--ink-3); text-align: center; padding: 1rem 0 0; }
@media (max-width: 640px) {
  .sheet__bar { padding-left: 18px; }
  .d__next { grid-template-columns: 1fr; }
  .d__next button + button { box-shadow: inset 0 .5px 0 var(--line); }
}

/* ---------- small screens ---------- */
@media (max-width: 640px) {
  .hud--tl .pill .role, .hud--tl .pill .sep, .hud--tr .status-text { display: none; }
  .hint__keys, .hint__long { display: none; }
  .hint__short { display: inline; }
  #hint { padding-right: 16px; }
  .sheet { border-radius: 22px; }
  .d__hero { height: 260px; }
  .d__hero--portrait { height: 340px; }
  .d__head { padding: 1.6rem 1.4rem 0; }
  .d__head--top { padding-top: 3.2rem; }
  .d__title { font-size: 2rem; }
  .d__lead { font-size: 1.05rem; }
  .d__meta { margin: 1.6rem 1.4rem 0; grid-template-columns: 1fr 1fr; }
  .d__meta--rows div { grid-template-columns: 7rem 1fr; gap: 1rem; }
  .d__award { padding: 1rem 1.4rem 0; }
  .d__meta div:nth-child(3) { padding-left: 0; border-left: 0; }
  .d__sec { grid-template-columns: 1fr; gap: .7rem; padding: 1.8rem 1.4rem 0; }
  .d__quote { padding: 0 1.4rem; font-size: 1.35rem; }
  .d__links { padding: 1.6rem 1.4rem 0; }
  .d__gallery { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* github: a year of contributions as a field of dots. Quiet days are rings, busy days fill in toward ink, today is the accent.
   Hover a day: its week rolls into the number, and the day itself is read out underneath. */
.c-gh .gh__top { display: flex; align-items: flex-end; gap: .8em; margin-top: .75em; }
.c-gh .gh__top .metric { font-size: 2.6em; }
.gh__cap { padding-bottom: .2em; min-width: 0; }
.gh__cap b { display: block; font-size: .86em; font-weight: 560; letter-spacing: -.01em; white-space: nowrap; }
.gh__cap span { display: block; font-size: .74em; color: var(--ink-2); margin-top: .12em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.gh__repos { list-style: none; margin: 0 0 .15em auto; padding: 0; display: grid; justify-items: end; flex: none; }
.gh__repos li { grid-area: 1 / 1; display: flex; align-items: center; gap: .55em; height: 2.1em; padding: 0 .75em; border-radius: calc(var(--r3) * .75); background: var(--wash);
  opacity: 0; transform: translateY(.5em); filter: blur(2px); transition: opacity .35s, transform .5s var(--spring), filter .35s; pointer-events: none; }
.gh__repos li.is-on { opacity: 1; transform: none; filter: none; pointer-events: auto; }
.gh__repos b { font: 500 .66em/1 var(--mono); color: var(--ink); }
.gh__repos span { font: 500 .62em/1 var(--mono); color: var(--ink-3); display: flex; align-items: center; gap: .3em; }
.gh__repos span i { font-style: normal; color: var(--ink-2); }
.gh__stats { display: flex; align-items: center; gap: 1.4em; margin-top: .7em; font: 500 .5625em/1 var(--mono); color: var(--ink-3); white-space: nowrap; overflow: hidden; }
.gh__stats b { font-weight: 500; color: var(--ink); margin-left: .35em; }
/* the calendar: a week per column, Sunday on top, the way GitHub draws it */
.gh__cal { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .5em; margin-top: auto; padding-top: .8em; }
.gh__days { position: relative; width: 1.7em; }
.gh__days em { position: absolute; left: 0; top: calc((var(--r) + .5) / 7 * 100%); transform: translateY(-50%); font: 500 .5em/1 var(--mono); font-style: normal; color: var(--ink-3); }
.gh__grid { --g: calc(2px * var(--u)); display: grid; grid-template-columns: repeat(var(--w), minmax(0, 1fr)); grid-template-rows: repeat(7, auto); grid-auto-flow: column; gap: var(--g); cursor: crosshair; }
.gh__grid i, .gh__key i { aspect-ratio: 1; border-radius: calc(2px * var(--u)); background: rgb(var(--ink-rgb) / .055); }
.gh__grid i { opacity: 0; transform: scale(.4); transition: transform .5s var(--spring) calc(var(--c) * 12ms + 150ms), opacity .35s calc(var(--c) * 12ms + 150ms), background .2s, box-shadow .2s; }
.is-seen .gh__grid i, .d__gh .gh__grid i { opacity: 1; transform: none; }
.gh__grid i.l1, .gh__key i.l1 { background: rgb(var(--ink-rgb) / .18); }
.gh__grid i.l2, .gh__key i.l2 { background: rgb(var(--ink-rgb) / .38); }
.gh__grid i.l3, .gh__key i.l3 { background: rgb(var(--ink-rgb) / .64); }
.gh__grid i.l4, .gh__key i.l4 { background: var(--ink); }
.gh__grid i.is-today { background: var(--accent); }
.gh__grid.is-reading i { opacity: .45; transition-delay: 0s; }
.gh__grid.is-reading i.is-col { opacity: 1; }
.gh__grid.is-reading i.is-hot { opacity: 1; transform: scale(1.35); box-shadow: 0 0 0 calc(var(--line-w) * 1.5) var(--card), 0 0 0 calc(var(--line-w) * 3) var(--accent); position: relative; z-index: 1; transition: transform .3s var(--spring), box-shadow .15s; }
.gh__foot { margin-top: .5em; padding-left: 2.2em; }
.gh__months { position: relative; flex: 1; height: 1em; }
.gh__months em { position: absolute; top: .15em; left: var(--x); font: 500 .5625em/1 var(--mono); font-style: normal; color: var(--ink-3); }
.gh__key { display: flex; align-items: center; gap: 2px; font: inherit; color: var(--ink-3); flex: none; margin-left: auto; }
.gh__keyrow { display: flex; justify-content: flex-end; font: 500 10px/1 var(--mono); margin-bottom: .6rem; }
.gh__key i { width: 1.15em; margin: 0 1px; }
.gh__key i:first-of-type { margin-left: .5em; } .gh__key i:last-of-type { margin-right: .5em; }
.d__gh { margin: 2rem 3rem 0; }
.d__gh .gh__grid { --u: 1.4; cursor: default; }
.d__gh .gh__cal { padding-top: 0; }
.d__gh .gh__days em { font-size: 10px; }
.d__gh .gh__months em { font-size: 10px; }
.d__gh .gh__foot { padding-left: calc(17px + .5em); }
.d__gh .gh__days { width: 17px; }

/* ---------- skill cards (the Skills section) ---------- */
.c-skill__lv { display: flex; gap: 3px; margin-top: .8em; }
.c-skill__lv i { flex: 1; height: var(--mark); border-radius: 2px; background: var(--line); transform-origin: left; }
.c-skill__lv i.on { background: var(--ink); transform: scaleX(0); transition: transform .7s var(--spring) calc(var(--n) * 70ms + 200ms); }
.is-seen .c-skill__lv i.on { transform: none; }
.card:hover .c-skill__lv i.on { animation: lv-fill .55s var(--spring) both; animation-delay: calc(var(--n) * 45ms); }
@keyframes lv-fill { from { transform: scaleX(0); } }
.card--w .c-skill .c-entry__t { font-size: 2.1em; }

/* ---------- the sections menu: a button above the recenter one, and a panel that grows out of it ---------- */
.burger { position: relative; width: 14px; height: 10px; display: block; }
.burger i { position: absolute; left: 0; right: 0; height: 1.3px; border-radius: 1px; background: currentColor; transition: transform .45s var(--spring), opacity .25s, top .45s var(--spring); }
.burger i:nth-child(1) { top: 0; } .burger i:nth-child(2) { top: 4.35px; } .burger i:nth-child(3) { top: 8.7px; }
#menuBtn[aria-expanded="true"] { background: var(--ink); color: var(--on-ink); }
#menuBtn[aria-expanded="true"] .burger i:nth-child(1) { top: 4.35px; transform: rotate(45deg); }
#menuBtn[aria-expanded="true"] .burger i:nth-child(2) { opacity: 0; transform: scaleX(.2); }
#menuBtn[aria-expanded="true"] .burger i:nth-child(3) { top: 4.35px; transform: rotate(-45deg); }
.menu { position: absolute; right: 0; bottom: calc(100% + 10px); width: 264px; padding: 8px; border-radius: 22px;
  background: color-mix(in srgb, var(--raise) 90%, transparent); backdrop-filter: blur(20px) saturate(1.5); -webkit-backdrop-filter: blur(20px) saturate(1.5);
  box-shadow: 0 0 0 .5px rgb(var(--ink-rgb) / .09), 0 2px 4px rgb(var(--shade) / calc(.05 * var(--shade-k))), 0 16px 40px rgb(var(--shade) / calc(.12 * var(--shade-k)));
  transform-origin: calc(100% - 19px) calc(100% + 29px); }
.menu[hidden] { display: block; visibility: hidden; pointer-events: none; }
.menu__k { display: flex; justify-content: space-between; padding: 8px 10px 10px; font: 500 10px/1 var(--mono); letter-spacing: .02em; color: var(--ink-3); }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu button { all: unset; box-sizing: border-box; width: 100%; height: 40px; padding: 0 10px; border-radius: 14px; display: flex; align-items: center; gap: 10px; cursor: pointer; transition: background .2s; }
.menu button:hover, .menu button:focus-visible { background: rgb(var(--ink-rgb) / .045); }
.menu button b { font: 560 15px/1 var(--display); letter-spacing: -.015em; color: var(--ink); }
.menu button em { font: 500 10px/1 var(--mono); font-style: normal; color: var(--ink-3); margin-left: auto; transition: transform .35s var(--spring), opacity .25s; }
.menu button .menu__go { width: 14px; display: grid; place-items: center; color: var(--ink-2); opacity: 0; transform: translateX(-4px); transition: opacity .2s, transform .35s var(--spring); }
.menu button:hover .menu__go, .menu button:focus-visible .menu__go { opacity: 1; transform: none; }
.menu button .menu__dot { width: 6px; height: 6px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--ink-4); flex: none; transition: background .25s, box-shadow .25s; }
.menu button[aria-current="true"] .menu__dot { background: var(--accent); box-shadow: none; }
.menu__sep { height: .5px; background: var(--line); margin: 6px 10px; }
.menu li { opacity: 0; transform: translateY(6px); }
.menu.is-in li { opacity: 1; transform: none; transition: opacity .3s, transform .5s var(--spring); transition-delay: calc(var(--i) * 28ms + 60ms); }
@media (max-width: 640px) { .menu { width: min(264px, calc(100vw - 32px)); } }

/* ---------- the contact form (the open contact card) ---------- */
.cf { padding: 1.8rem 3rem 0; display: grid; gap: 1.25rem; }
.cf__topics { display: flex; flex-wrap: wrap; gap: .4rem; }
.cf__topic input { position: absolute; opacity: 0; pointer-events: none; }
.cf__topic span { display: inline-flex; align-items: center; height: 2.2rem; padding: 0 .95rem; border-radius: 99px; font: 500 13px/1 var(--sans); color: var(--ink-2); box-shadow: inset 0 0 0 .5px var(--ink-4); cursor: pointer; transition: background .25s, color .25s, box-shadow .25s, transform .35s var(--spring); }
.cf__topic span:hover { color: var(--ink); box-shadow: inset 0 0 0 .5px var(--ink-3); }
.cf__topic input:checked + span { background: var(--ink); color: var(--on-ink); box-shadow: none; }
.cf__topic input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.cf__topic:active span { transform: scale(.95); }
.cf__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 1.5rem; }
.cf__f { position: relative; display: flex; flex-direction: column; }
.cf__l { display: flex; justify-content: space-between; align-items: baseline; font: 500 11px/1 var(--mono); letter-spacing: .02em; color: var(--ink-3); transition: color .25s; }
.cf__f:focus-within .cf__l { color: var(--ink); }
.cf__count { font-weight: 500; color: var(--ink-3); font-variant-numeric: tabular-nums; transition: color .25s; }
.cf__count.is-near { color: var(--accent); }
.cf__f input, .cf__f textarea { all: unset; box-sizing: border-box; display: block; width: 100%; margin-top: .5rem; padding: .35rem 0 .6rem; font: 400 15px/1.5 var(--sans); color: var(--ink); border-bottom: .5px solid var(--ink-4); caret-color: var(--accent); }
.cf__f textarea { min-height: 7.2rem; resize: vertical; white-space: pre-wrap; overflow-wrap: anywhere; }
.cf__f textarea::placeholder { color: var(--ink-3); }
/* the line under a field draws in from the left while you are in it, and goes accent when something is missing */
.cf__f > i { height: 1px; margin-top: -1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .55s var(--spring), background .25s; }
.cf__f:focus-within > i { transform: none; }
.cf__f.is-bad > i { transform: none; background: var(--accent); }
.cf__err { display: none; margin-top: .45rem; font: 500 12px/1.3 var(--sans); font-style: normal; color: var(--accent); }
.cf__f.is-bad .cf__err { display: block; animation: cf-in .3s var(--spring); }
@keyframes cf-in { from { opacity: 0; transform: translateY(-3px); } }
.cf__foot { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem 1.1rem; margin-top: .2rem; }
.cf__send { height: 2.75rem; padding: 0 1.25rem; font-size: 13px; }
.cf__send.is-busy { opacity: .55; pointer-events: none; }
.cf__send.is-done { background: var(--accent); }
.cf__alt { font: 400 13px/1.4 var(--sans); color: var(--ink-3); }
.cf__mail { all: unset; display: inline-grid; cursor: pointer; color: var(--ink); }
.cf__mail > * { grid-area: 1 / 1; transition: opacity .25s, transform .35s var(--spring); }
.cf__mail span { background: linear-gradient(currentColor, currentColor) 0 100% / 100% .5px no-repeat; }
.cf__mail em { font-style: normal; color: var(--accent); opacity: 0; transform: translateY(4px); }
.cf__mail:hover span { color: var(--accent); }
.cf__mail.is-done span { opacity: 0; transform: translateY(-4px); }
.cf__mail.is-done em { opacity: 1; transform: none; }
.cf__mail:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
.cf__thanks { margin: -.4rem 0 0; min-height: 1px; font: 500 14px/1.45 var(--sans); color: var(--ink); opacity: 0; transform: translateY(4px); transition: opacity .35s, transform .45s var(--spring); }
.cf__thanks.is-on { opacity: 1; transform: none; }
.cf__thanks.is-bad { color: var(--accent); }
.cf.is-sent .cf__f, .cf.is-sent .cf__topics { opacity: .45; pointer-events: none; transition: opacity .4s; }
@media (max-width: 640px) { .cf { padding: 1.4rem 1.4rem 0; } .cf__row { grid-template-columns: 1fr; } }

/* education: a wallet of passes. The ones behind show only their top strip; the front one is dark and read in full.
   Each pass sits --s strips up from the bottom, and the further back it is, the narrower: a stack seen in depth. */
.c-wallet { --sh: 1.95em; --ph: 7.6em; }
.wallet { position: relative; flex: 1; min-height: calc(var(--ph) + (var(--n) - 1) * var(--sh)); margin-top: .7em; }
.pass { --d: calc(var(--n) - 1 - var(--s)); position: absolute; left: calc(var(--d) * .32em); right: calc(var(--d) * .32em); bottom: calc(var(--d) * var(--sh)); height: var(--ph); z-index: var(--s);
  border-radius: calc(var(--r3) + 1px); background: var(--wash); box-shadow: inset 0 0 0 var(--line-w) var(--ink-4), 0 -.35em .9em rgb(var(--shade) / calc(.05 * var(--shade-k))); overflow: hidden; cursor: pointer;
  transition: bottom .75s var(--spring), left .75s var(--spring), right .75s var(--spring), background .45s, color .45s, box-shadow .45s, transform .45s var(--spring), opacity .5s; }
.pass:not(.is-front):hover { transform: translateY(-.18em); }
.pass__top { height: var(--sh); padding: 0 .8em; display: flex; align-items: center; justify-content: space-between; gap: .7em; }
.pass__top b { font-size: .66em; font-weight: 560; letter-spacing: -.005em; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; transition: color .45s; }
.pass__top span { font: 500 .5em/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); flex: none; transition: color .45s; }
.pass__body { position: relative; padding: .25em .8em 0; height: calc(var(--ph) - var(--sh)); display: flex; flex-direction: column; opacity: 0; transition: opacity .35s; }
.pass__body h4 { margin: 0; padding-right: .2em; font: 600 1.06em/1.14 var(--display); letter-spacing: -.022em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pass__meta { align-self: flex-start; margin-top: auto; padding-bottom: .85em; font: 500 .56em/1 var(--mono); letter-spacing: .02em; color: var(--ink-3); white-space: nowrap; }
.pass__seal { position: absolute; right: .8em; bottom: .7em; width: 2.3em; height: 2.3em; border-radius: 50%; display: grid; place-items: center; font: 400 .95em/1 var(--serif); font-style: italic;
  box-shadow: inset 0 0 0 var(--line-w) var(--ink-4), inset 0 0 0 calc(var(--line-w) * 4) transparent, inset 0 0 0 calc(var(--line-w) * 5) var(--line); color: var(--ink-2); transition: transform .8s var(--spring); }
.pass.is-front:hover .pass__seal { transform: rotate(-14deg); }
/* the front pass */
.pass.is-front { background: var(--raise); color: var(--ink); box-shadow: inset 0 0 0 var(--line-w) var(--ink-4), 0 -.3em .9em rgb(var(--shade) / calc(.06 * var(--shade-k))), 0 .55em 1.3em rgb(var(--shade) / calc(.1 * var(--shade-k))); }
.pass.is-front::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(9em circle at var(--gx, 70%) var(--gy, 20%), rgb(var(--ink-rgb) / .035), transparent 60%); }
.pass.is-front .pass__top { box-shadow: inset 0 calc(var(--line-w) * -1) 0 var(--line); }
.pass.is-front .pass__top b { color: var(--ink); }
.pass.is-front .pass__top b::before { content: ''; display: inline-block; width: .5em; height: .5em; margin-right: .55em; border-radius: 50%; background: var(--accent); vertical-align: .08em; }
.pass.is-front .pass__top span { color: var(--ink-3); }
.pass.is-front .pass__body { opacity: 1; transition-delay: .18s; }
.pass.is-front:hover { transform: translateY(-.12em); }
/* entrance: the passes drop into the wallet one after another */
.pass { translate: 0 -1.2em; opacity: 0; }
.is-seen .pass { translate: 0 0; opacity: 1; transition: bottom .75s var(--spring), left .75s var(--spring), right .75s var(--spring), background .45s, color .45s, box-shadow .45s, transform .45s var(--spring), translate .8s var(--spring) calc(var(--s) * 90ms + 150ms), opacity .5s calc(var(--s) * 90ms + 150ms); }

/* the theme swatches at the foot of the sections menu */
.menu__themes { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 6px 2px 2px; padding: 12px 8px 6px; border-top: .5px solid var(--line); opacity: 0; transform: translateY(6px); }
.menu.is-in .menu__themes { opacity: 1; transform: none; transition: opacity .3s, transform .5s var(--spring); transition-delay: calc(var(--i) * 28ms + 60ms); }
.menu__themes > span { font: 500 10px/1 var(--mono); letter-spacing: .02em; color: var(--ink-3); }
.menu__themes > div { display: flex; gap: 6px; }
.menu__themes button { all: unset; position: relative; width: 22px; height: 22px; border-radius: 50%; cursor: pointer; background: var(--sw); box-shadow: inset 0 0 0 .5px rgb(var(--ink-rgb) / .16); transition: transform .35s var(--spring), box-shadow .25s; }
.menu__themes button::after { content: ''; position: absolute; inset: 0; margin: auto; width: 8px; height: 8px; border-radius: 50%; background: var(--sa); }
.menu__themes button:hover { transform: scale(1.12); }
.menu__themes button[aria-checked="true"] { box-shadow: inset 0 0 0 .5px rgb(var(--ink-rgb) / .16), 0 0 0 2px var(--raise), 0 0 0 3px var(--ink); }
.menu__themes button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
:root[data-mode="dark"] .menu__themes [data-theme-pick] { background: var(--sw-d, var(--sw)); }
/* the dark mode switch, on its own row under the swatches */
.menu__mode { margin-top: 0; padding-top: 8px; border-top: 0; }
.menu__themes .switch { width: 38px; height: 22px; border-radius: 99px; background: rgb(var(--ink-rgb) / .12); box-shadow: inset 0 0 0 .5px rgb(var(--ink-rgb) / .1); transition: background .3s; }
.menu__themes .switch i { position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--raise); box-shadow: 0 1px 3px rgb(0 0 0 / .25); transition: transform .45s var(--spring); }
.menu__themes .switch[aria-checked="true"] { background: var(--ink); box-shadow: none; }
.menu__themes .switch::after { display: none; }
.menu__themes .switch[aria-checked="true"] i { transform: translateX(16px); background: var(--bg); }
.menu__themes .switch:hover { transform: none; }
.c-map .media { background: var(--map-tint); }

.cf__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }   /* the honeypot: people never see it, bots fill it in */

/* the Wall Studio's preview: the selected card wears an accent ring; the hint and the open-to-work pills step aside */
.is-studio .card.is-picked .card__body { box-shadow: var(--shadow-up), 0 0 0 2px var(--bg), 0 0 0 4px var(--accent); }
.is-studio .card { cursor: pointer; }
.is-studio #hint, .is-studio #status { display: none; }
.is-reloading *, .is-reloading *::before, .is-reloading *::after { transition: none !important; animation: none !important; }

/* the Wall Studio's Arrange mode: a toolbar on each card, a card lifted while dragged, the card it would swap with ringed */
.arr { display: none; }
.is-arranging .arr { position: absolute; top: .55em; right: .55em; z-index: 30; display: flex; align-items: center; gap: 3px; padding: 3px; border-radius: 99px;
  background: color-mix(in srgb, var(--raise) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 0 0 .5px rgb(var(--ink-rgb) / .12), 0 4px 12px rgb(var(--shade) / calc(.1 * var(--shade-k))); font-size: 13px; }
.arr button, .arr__grip, .arr__size { all: unset; box-sizing: border-box; height: 26px; min-width: 26px; padding: 0 7px; border-radius: 99px; display: grid; place-items: center; color: var(--ink-2); cursor: pointer;
  font: 500 11px/1 var(--mono); transition: background .15s, color .15s; }
.arr__grip { cursor: grab; padding: 0 5px; }
.arr button:hover { background: rgb(var(--ink-rgb) / .07); color: var(--ink); }
.arr button[aria-pressed="true"] { background: var(--accent); color: #fff; }
.is-arranging .card { cursor: grab; }
.is-arranging .card.is-pinned { cursor: default; }
.is-arranging .card__body { box-shadow: var(--shadow), 0 0 0 1px rgb(var(--ink-rgb) / .08); }
.is-arranging .card.is-pinned .card__body { box-shadow: var(--shadow), inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 45%, transparent); }
.card.is-lifted { z-index: 50 !important; cursor: grabbing; }
.card.is-lifted .card__body { box-shadow: var(--shadow-up) !important; scale: 1.03; transition: scale .2s var(--spring); opacity: .94; }
.card.is-target .card__body { box-shadow: var(--shadow), 0 0 0 2px var(--bg), 0 0 0 4px var(--accent) !important; }
.card.is-nope .card__body { box-shadow: var(--shadow), 0 0 0 2px var(--bg), 0 0 0 3.5px rgb(var(--ink-rgb) / .28) !important; opacity: .7; }

.arr__size { cursor: default; color: var(--ink-3); }
/* while arranging nothing inside a card can be selected or dragged by the browser itself */
.is-arranging .card, .is-arranging .card * { user-select: none; -webkit-user-select: none; -webkit-user-drag: none; }
.is-arranging .card { touch-action: none; }
/* the resize handle: a corner tab, and the outline that snaps between the card's sizes while it is dragged */
.arr__corner { display: none; }
.is-arranging .arr__corner { display: block; position: absolute; right: -6px; bottom: -6px; z-index: 40; width: 22px; height: 22px; border-radius: 50%; cursor: nwse-resize;
  background: var(--raise); box-shadow: 0 0 0 .5px rgb(var(--ink-rgb) / .2), 0 2px 8px rgb(var(--shade) / calc(.18 * var(--shade-k))); }
.is-arranging .arr__corner::after { content: ''; position: absolute; inset: 7px; border-right: 1.5px solid var(--ink-2); border-bottom: 1.5px solid var(--ink-2); border-radius: 0 0 2px 0; }
.is-arranging .arr__corner:hover { background: var(--accent); }
.is-arranging .arr__corner:hover::after { border-color: #fff; }
.arr__ghost { position: absolute; left: 0; top: 0; z-index: 45; border-radius: var(--r); pointer-events: none;
  border: 2px dashed var(--accent); background: color-mix(in srgb, var(--accent) 7%, transparent); transition: width .18s var(--spring), height .18s var(--spring); }
.arr__ghost b { position: absolute; right: 10px; bottom: 10px; padding: 4px 8px; border-radius: 99px; background: var(--accent); color: #fff; font: 600 12px/1 var(--mono); }
.arr__ghost.is-same { border-color: rgb(var(--ink-rgb) / .3); background: transparent; }
.arr__ghost.is-same b { background: var(--ink-2); }

/* a capture (?shot=1): only the cards */
.is-shot .hud, .is-shot #hint, .is-shot .loader, .is-shot .fallback { display: none !important; }

/* ---------- status: uptime, a live p99 line, and ninety days of bars ---------- */
.c-status .st__top { display: flex; align-items: flex-end; gap: .8em; margin-top: .7em; }
.c-status .st__top .metric { font-size: 2.6em; }
.c-status .st__top .metric small { font-size: .5em; letter-spacing: -.02em; color: var(--ink-2); }
.st__cap { padding-bottom: .25em; }
.st__cap b { display: block; font-size: .86em; font-weight: 560; }
.st__cap span { display: block; font-size: .74em; color: var(--ink-2); margin-top: .1em; }
.st__lat { margin-left: auto; display: grid; justify-items: end; gap: .3em; padding-bottom: .2em; }
.st__lat svg { width: 7.5em; height: 2.2em; overflow: visible; }
.st__line { fill: none; stroke: var(--ink); stroke-width: 1.2; vector-effect: non-scaling-stroke; stroke-linejoin: round; transition: d .9s var(--spring); }
.st__area { fill: color-mix(in srgb, var(--accent) 12%, transparent); stroke: none; transition: d .9s var(--spring); }
.st__lat .k b { font-weight: 500; color: var(--ink); }
.st__line-text { margin: .75em 0 0; font-size: .8em; line-height: 1.35; color: var(--ink-2); max-width: 34em; }
/* the days fill the room between the numbers and the readout, like a real status page */
.st__bars { display: flex; gap: 2px; flex: 1 1 2.1em; min-height: 2.1em; max-height: 4.4em; margin: 1em 0 .9em; align-items: stretch; }
.st__bars i { flex: 1; border-radius: 1.5px; background: var(--ink-4); transform-origin: bottom; transition: background .2s, transform .3s var(--spring); }
.st__bars i.is-slow { background: color-mix(in srgb, var(--accent) 45%, var(--ink-4)); }
.st__bars i.is-down { background: var(--accent); }
.st__bars i.is-hot { background: var(--ink); transform: scaleY(1.18); }
.st__bars i.is-slow.is-hot, .st__bars i.is-down.is-hot { background: var(--accent); }
.c-status .readout { margin-top: 0; }

/* ---------- citations: a bar per year, the year you are on in ink ---------- */
.cite__bars { width: 100%; height: 100%; display: flex; align-items: flex-end; gap: .35em; padding-bottom: 1.3em; position: relative; }
.cite__bars span { position: relative; flex: 1; height: 100%; display: flex; align-items: flex-end; cursor: default; }
.cite__bars i { display: block; width: 100%; height: calc(var(--v) * 100%); min-height: 3px; border-radius: 3px 3px 1px 1px; background: var(--ink-4); transform-origin: bottom; transform: scaleY(0); transition: transform .9s var(--spring) calc(var(--k) * 60ms + 150ms), background .25s; }
.is-seen .cite__bars i { transform: none; }
.cite__bars em { position: absolute; left: 50%; bottom: -1.35em; translate: -50% 0; font: 500 .5em/1 var(--mono); font-style: normal; color: var(--ink-3); transition: color .25s; }
.cite__bars span.is-on i { background: var(--ink); }
.cite__bars span.is-on em { color: var(--accent); }

/* ---------- palette: a type specimen that takes the colour you are on ---------- */
.pal__spec { font: 400 5.4em/1 var(--pf); font-style: italic; letter-spacing: -.03em; color: var(--ink); transition: color .5s; }
.pal__sw { display: flex; justify-content: center; margin: 0 0 .9em; }
.pal__sw button { all: unset; width: 1.9em; height: 1.9em; border-radius: 50%; background: var(--c); margin-left: -.35em; cursor: pointer; box-shadow: 0 0 0 2px var(--card), inset 0 0 0 .5px rgb(var(--ink-rgb) / .14); transition: transform .35s var(--spring), margin .35s var(--spring); }
.pal__sw button:first-child { margin-left: 0; }
.pal__sw button.is-on { transform: translateY(-.3em) scale(1.12); z-index: 1; }
.pal__sw button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.c-pal .readout { margin-top: 0; }
/* the palette, opened */
.d__pal { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; padding: 2rem 3rem 0; }
.d__pal figure { margin: 0; border-radius: 16px; overflow: hidden; box-shadow: inset 0 0 0 .5px var(--line); }
.d__pal i { display: block; height: 96px; background: var(--c); }
.d__pal figcaption { display: grid; gap: 2px; padding: 10px 12px 12px; }
.d__pal b { font-size: 14px; font-weight: 560; }
.d__pal span { font: 500 11px/1.4 var(--mono); color: var(--ink-3); }
.d__pal em { font-style: normal; font-size: 12px; color: var(--ink-2); }
.d__spec { font-size: 2.2rem; line-height: 1.1; margin: 0; }
@media (max-width: 640px) { .d__pal { padding: 1.4rem 1.4rem 0; } }

/* ---------- commits: a git log, the newest line marked ---------- */
.gitlog { list-style: none; margin: auto 0 0; padding: 0; display: grid; gap: 0; }
.gitlog li { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: .65em; padding: .62em 0; border-top: var(--line-w) solid var(--line); }
.gitlog li:nth-child(n+5) { display: none; }
.gitlog code { grid-row: span 2; font: 500 .62em/1.6 var(--mono); color: var(--ink-3); padding-top: .1em; transition: color .3s; }
.gitlog span { font-size: .76em; font-weight: 500; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gitlog em { font: 500 .56em/1.4 var(--mono); font-style: normal; color: var(--ink-3); }
.gitlog li.is-new code { color: var(--accent); }

/* ---------- shell: a terminal on the wall ---------- */
.term { flex: 1; min-height: 0; margin-top: .8em; border-radius: var(--r2); background: var(--term); color: rgba(244, 243, 239, .86); padding: .9em 1em; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.term__body { font: 500 .66em/1.6 var(--mono); }
.term__row { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.term__p { color: var(--accent); }
.term__out { color: rgba(244, 243, 239, .5); white-space: pre; overflow: hidden; text-overflow: ellipsis; margin-bottom: .3em; }
.term__caret { display: inline-block; width: .55em; height: 1.05em; margin-left: 1px; vertical-align: -.15em; background: rgba(244, 243, 239, .8); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.d__term { margin: 2rem 3rem 0; padding: 1.4rem 1.6rem; border-radius: 16px; background: var(--term); color: rgba(244, 243, 239, .86); font: 500 13px/1.7 var(--mono); white-space: pre-wrap; }
.d__term b { color: var(--accent); font-weight: 500; } .d__term span { color: rgba(244, 243, 239, .5); }
@media (max-width: 640px) { .d__term { margin: 1.4rem 1.4rem 0; } }

/* ---------- next talk: the days, counting down ---------- */
.c-talk .metric { font-size: 4.2em; letter-spacing: -.05em; }
.talk__unit { font: 500 .62em/1 var(--mono); color: var(--ink-3); letter-spacing: .02em; }

/* ---------- datasets: names over bars of downloads ---------- */
.dsets { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; gap: .7em; }
.dsets li { display: grid; gap: .32em; cursor: default; }
.dsets span { font-size: .74em; font-weight: 500; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .25s; }
.dsets i { display: block; height: var(--mark); border-radius: 99px; background: var(--line); position: relative; overflow: hidden; }
.dsets i::after { content: ''; position: absolute; inset: 0 auto 0 0; width: calc(var(--v) * 100%); border-radius: inherit; background: var(--ink-4); transform-origin: left; transform: scaleX(0); transition: transform 1s var(--spring) calc(var(--k) * 90ms + 200ms), background .25s; }
.is-seen .dsets i::after { transform: none; }
.dsets li.is-on span { color: var(--ink); }
.dsets li.is-on i::after { background: var(--ink); }

/* ---------- before / after: one photo over the other, cut where the divider is ---------- */
.c-cmp { padding: var(--gap) !important; }
.cmp { position: relative; flex: 1; border-radius: var(--r2); overflow: hidden; cursor: ew-resize; touch-action: pan-y; user-select: none; background: var(--wash); }
.cmp__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.cmp__after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--x)); }
.cmp__bar { position: absolute; top: 0; bottom: 0; left: var(--x); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .15); pointer-events: none; }
.cmp__bar b { color: #141413; position: absolute; top: 50%; left: 50%; width: 2.2em; height: 2.2em; margin: -1.1em 0 0 -1.1em; border-radius: 50%; background: #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, .2); }
.cmp__bar b::before, .cmp__bar b::after { content: ''; position: absolute; top: 50%; width: .42em; height: .42em; margin-top: -.21em; border-top: 1.5px solid currentColor; border-left: 1.5px solid currentColor; }
.cmp__bar b::before { left: .45em; transform: rotate(-45deg); } .cmp__bar b::after { right: .45em; transform: rotate(135deg); }
.cmp__l, .cmp__r { position: absolute; top: var(--edge); border-radius: var(--r3); z-index: 2; }
.cmp__l { left: var(--edge); } .cmp__r { right: var(--edge); }
.cmp__chip { position: absolute; left: var(--edge); bottom: var(--edge); z-index: 2; display: grid; gap: .1em; padding: .65em .9em; border-radius: var(--r3); background: color-mix(in srgb, var(--raise) 84%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); max-width: calc(100% - 2 * var(--edge)); }
.cmp__chip b { font-size: .82em; font-weight: 560; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmp__chip span { font-size: .7em; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- process: a bar cut in proportion to the weeks each step takes ---------- */
.steps { list-style: none; margin: 0; padding: 0; width: 100%; display: flex; gap: 4px; }
.steps li { flex: var(--w) 1 0; display: grid; gap: .45em; cursor: default; min-width: 1.6em; }
.steps i { display: block; height: 2.4em; border-radius: calc(var(--r3) * .6); background: var(--wash); box-shadow: inset 0 0 0 var(--line-w) var(--line); transform-origin: bottom; transform: scaleY(.2); opacity: 0; transition: transform .8s var(--spring) calc(var(--k) * 90ms + 150ms), opacity .4s calc(var(--k) * 90ms + 150ms), background .3s; }
.is-seen .steps i { transform: none; opacity: 1; }
.steps span { font: 500 .56em/1 var(--mono); color: var(--ink-3); transition: color .25s; }
.steps li.is-on i { background: var(--ink); box-shadow: none; }
.steps li.is-on span { color: var(--accent); }

/* ---------- in WordPress ---------- */
/* the wall's plain-HTML copy (what search engines read), hidden once the scripts have laid out the cards */
.fallback { max-width: 42rem; margin: 0 auto; padding: 4rem 1.25rem; font: 400 1rem/1.6 var(--sans); }
.fallback h1 { font: 600 2.6rem/1 var(--display); letter-spacing: -.04em; }
.fallback h2 { font: 500 12px/1 var(--mono); color: var(--ink-3); margin: 2.4rem 0 .8rem; }
.fallback ul { padding-left: 1.1rem; }
.js .fallback { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* signed in, WordPress's admin bar sits on top: the wall's top pills move down below it */
.admin-bar.is-wall .hud--tl, .admin-bar.is-wall .hud--tr { top: calc(32px + 16px); }
@media (max-width: 782px) { .admin-bar.is-wall .hud--tl, .admin-bar.is-wall .hud--tr { top: calc(46px + 12px); } }
