/* site.css — Utathya Aich portfolio (v2)
   Look: thick ink outlines, hard offset shadows, blocks of flat colour,
   and one chalkboard. Colours and sizes live in the tokens below. */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --bg: #faf7f1;
  --tint: #f1ede4;
  --card: #ffffff;
  --ink: #2b2a33;
  --muted: #63616d;
  --yellow: #f6dc8a;
  --pink: #f3b9c6;
  --mint: #aadccc;
  --blue: #adcbf0;
  --orange: #f4c4a0;
  --lilac: #cfc3f0;
  --on: #2b2a33;                 /* text on a colour block, in both themes */
  --c-old: #3b6fd4;              /* chart: citations from earlier years */
  --c-new: #e2543f;              /* chart: citations new that year */
  --edge: #2b2a33;               /* outline colour of the page itself */
  --sans: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;
}
:root[data-theme="dark"] {
  --bg: #1c1b21;
  --tint: #222127;
  --card: #2a2930;
  --ink: #e9e6df;
  --muted: #aaa7b3;
  --c-old: #5b8ef0;
  --c-new: #e8644c;
  --edge: #e9e6df;
}
/* inside a colour block the ink is always dark */
.on-color, .sticker, .updates-bar, .theme, .stop-next .stop-card, .talk, .counter, .logo, .hl, .swipe, .tag, .badge, .face, .pub-note {
  --ink: #2b2a33; --muted: #4a4854; --card: #ffffff; color: #2b2a33;
}
.pub-cited { font-weight: 700; font-size: 12.5px; padding: 2px 8px; background: var(--ink); color: var(--bg); }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; overflow-x: clip;
  background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; height: auto; display: block; }
b { font-weight: 700; }
button, input { font: inherit; color: inherit; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--c-old); outline-offset: 3px; }

[hidden] { display: none !important; }
.wrap { width: min(1080px, 100% - 2 * clamp(20px, 7vw, 112px)); margin-inline: auto; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 6px; background: var(--ink); color: var(--bg); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 10px; }
.fine { font-size: 14.5px; color: var(--muted); margin-top: 18px; }
.inline { border: 0; background: none; padding: 0; cursor: pointer; font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.inline:hover, a:hover { text-decoration-color: var(--c-new); }

.draft {
  background: var(--pink); color: var(--on); text-align: center;
  font: 700 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; padding: 8px 12px;
  border-bottom: 3px solid var(--edge);
}

/* ── Buttons, chips, tags ────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; cursor: pointer; text-decoration: none;
  font-weight: 700; font-size: 16px; line-height: 1.2; padding: 10px 18px;
  background: var(--card); color: var(--ink);
  border: 2.5px solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
  transition: transform .12s, box-shadow .12s;
}
.btn:hover { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn-main { background: var(--yellow); color: var(--on); }
.btn-dark { background: #14120f; color: var(--yellow); }
.btn-s { font-size: 14px; padding: 6px 12px; box-shadow: 3px 3px 0 var(--ink); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  cursor: pointer; font-weight: 500; font-size: 14.5px; line-height: 1.3; padding: 5px 12px;
  background: var(--card); color: var(--ink); border: 2px solid var(--ink);
  transition: transform .1s, background .1s;
}
.chip:hover { transform: translateY(-2px); }
.chip.is-on { background: var(--ink); color: var(--bg); }
.chip-s { font-size: 13px; padding: 3px 9px; }

.tag {
  display: inline-block; font: 700 11px/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase;
  padding: 3px 7px; border: 2px solid var(--edge); background: var(--mint); white-space: nowrap;
}
.tag-career { background: var(--pink); }
.tag-paper { background: var(--mint); }
.tag-service { background: var(--blue); }
.tag-award { background: var(--yellow); }

/* ── Navigation ──────────────────────────────────────────────────── */
.nav { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 3px solid var(--ink); }
.nav-in { display: flex; align-items: center; gap: 18px; height: 62px; }
.logo {
  flex: none; display: grid; place-items: center; width: 42px; height: 42px; text-decoration: none;
  font-weight: 700; font-size: 17px; background: var(--yellow);
  border: 2.5px solid var(--edge); box-shadow: 3px 3px 0 var(--edge); transition: transform .15s;
}
.logo:hover { transform: rotate(-8deg); }
.nav nav { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.nav nav::-webkit-scrollbar { display: none; }
.nav nav a {
  font-weight: 500; font-size: 15.5px; text-decoration: none; white-space: nowrap;
  padding: 6px 10px; border-bottom: 3px solid transparent;
}
.nav nav a:hover { border-bottom-color: var(--ink); }
.nav nav a.is-here { border-bottom-color: var(--c-new); font-weight: 700; }
.nav nav a.nav-cta { background: var(--yellow); color: #2b2a33; font-weight: 700; border: 2px solid var(--edge); border-radius: 6px; padding: 4px 12px; margin-left: 6px; }
.nav nav a.nav-cta:hover { transform: translateY(-2px); }
.mode {
  flex: none; cursor: pointer; font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 10px; background: var(--ink); color: var(--bg); border: 2.5px solid var(--ink);
}

/* ── Hero ────────────────────────────────────────────────────────── */
.hero { padding: 64px 0 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: 64px; align-items: center; }
.hello { font: 600 34px/1 var(--hand); color: var(--c-new); transform: rotate(-3deg); transform-origin: left; width: fit-content; }
h1 { font-weight: 700; font-size: clamp(58px, 10.5vw, 132px); line-height: .92; letter-spacing: -.045em; margin-top: 6px; }
.swipe {
  display: inline-block; background: var(--yellow); padding: 0 .1em .04em;
  border: 4px solid var(--edge); box-shadow: 8px 8px 0 var(--edge); transform: rotate(-2.5deg);
}
.pitch { margin-top: 34px; font-size: clamp(21px, 2.4vw, 29px); line-height: 1.28; font-weight: 500; max-width: 22em; text-wrap: balance; }
.role { margin-top: 14px; color: var(--muted); }
.role b { color: var(--ink); }
.sticker {
  display: inline-block; margin-top: 26px; padding: 10px 18px 11px; text-decoration: none;
  background: var(--pink); font-weight: 700; font-size: 19px; line-height: 1.2;
  border: 2.5px solid var(--edge); box-shadow: 5px 5px 0 var(--edge);
  transform: rotate(-2deg); transition: transform .18s cubic-bezier(.2, .9, .3, 1.4);
}
.sticker small { font-weight: 500; font-size: 14px; }
.sticker:hover { transform: rotate(1deg) scale(1.04); }
.hero .btns { margin-top: 30px; }

.hero-side { justify-self: end; width: min(100%, 360px); }
.portrait { position: relative; }
.portrait img {
  width: 100%; aspect-ratio: 1; object-fit: cover; border: 4px solid var(--edge);
  box-shadow: 16px 16px 0 var(--mint), 16px 16px 0 4px var(--edge); transform: rotate(2deg);
}
.badge {
  position: absolute; background: #fff; padding: 6px 12px; font-size: 14px; line-height: 1.2; font-weight: 500;
  border: 2.5px solid var(--edge); box-shadow: 4px 4px 0 var(--edge); animation: bob 4s ease-in-out infinite alternate;
}
.badge b { font-size: 26px; display: block; line-height: 1; }
.badge-a { left: -34px; top: 22px; background: var(--yellow); rotate: -7deg; }
.badge-b { right: -30px; top: 46%; background: var(--blue); rotate: 6deg; animation-delay: -1.3s; }
.badge-c { left: -18px; bottom: -22px; background: var(--orange); rotate: 3deg; animation-delay: -2.6s; max-width: 150px; }
@keyframes bob { to { translate: 0 -9px; } }

.strip {
  margin: 76px -3vw 0; padding: 13px 0; overflow: hidden; transform: rotate(-1.2deg);
  background: var(--ink); color: var(--bg); border-block: 3px solid var(--ink);
}
.strip-track { display: flex; width: max-content; animation: slide 46s linear infinite; }
.strip p { flex: none; white-space: nowrap; font-weight: 700; font-size: 19px; letter-spacing: .04em; text-transform: uppercase; padding-right: .5em; }
.strip i { font-style: normal; color: var(--yellow); margin: 0 .5em; }
.strip:hover .strip-track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ── Sections ────────────────────────────────────────────────────── */
.sec { padding: 92px 0; }
.sec-tint { background: var(--tint); border-block: 3px solid var(--ink); }
h2 { font-weight: 700; font-size: clamp(32px, 4.6vw, 50px); line-height: 1.05; letter-spacing: -.03em; margin-bottom: 22px; }
.hl { display: inline-block; padding: .04em .28em .1em; border: 3px solid var(--edge); box-shadow: 6px 6px 0 var(--edge); transform: rotate(-1.4deg); }
.hl-yellow { background: var(--yellow); } .hl-pink { background: var(--pink); } .hl-mint { background: var(--mint); }
.hl-blue { background: var(--blue); } .hl-orange { background: var(--orange); } .hl-lilac { background: var(--lilac); }
h3 { font-weight: 700; font-size: 21px; line-height: 1.25; margin: 34px 0 14px; }
.sub { font-size: 19px; color: var(--muted); max-width: 46em; margin-bottom: 30px; }

/* ── About + Updates ─────────────────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 60px; align-items: start; }
.about-grid p + p { margin-top: 14px; }
.lead { font-size: 23px; line-height: 1.38; font-weight: 500; }
.arrows li { position: relative; padding: 10px 0 10px 34px; border-top: 2px solid var(--ink); font-weight: 500; }
.arrows li:last-child { border-bottom: 2px solid var(--ink); }
.arrows li::before { content: "→"; position: absolute; left: 0; font-weight: 700; color: var(--c-new); transition: transform .15s; }
.arrows li:hover::before { transform: translateX(6px); }

.updates { background: var(--card); border: 3px solid var(--ink); box-shadow: 9px 9px 0 var(--ink); position: sticky; top: 86px; }
.updates-bar { display: flex; align-items: center; justify-content: space-between; padding: 11px 16px; background: var(--yellow); border-bottom: 3px solid var(--edge); }
.updates-title { font-size: 23px; letter-spacing: -.01em; margin: 0; display: flex; align-items: center; gap: 10px; }
.live { width: 12px; height: 12px; border-radius: 50%; background: var(--c-new); border: 2px solid var(--edge); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.45); opacity: .55; } }
.updates-toggle { cursor: pointer; font-weight: 700; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; padding: 4px 9px; background: #fff; border: 2px solid #14120f; }
.updates-feed {
  height: 430px; overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(transparent, #000 7%, #000 93%, transparent);
}
.updates-feed.is-static { overflow-y: auto; -webkit-mask-image: none; mask-image: none; }
.up-track { animation: roll var(--dur, 40s) linear infinite; }
.updates:hover .up-track, .updates:focus-within .up-track, .updates.is-paused .up-track { animation-play-state: paused; }
@keyframes roll { to { transform: translateY(-50%); } }
.up { display: block; padding: 15px 18px; text-decoration: none; border-bottom: 2px dashed color-mix(in srgb, var(--ink) 30%, transparent); transition: background .12s, padding-left .12s; }
a.up:hover, a.up:focus-visible { background: var(--tint); padding-left: 26px; }
.up-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 5px; }
.up-when { font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.up-text { display: block; font-weight: 500; line-height: 1.4; }

.updates-all { display: block; width: 100%; padding: 12px 18px; border: 0; border-top: 3px solid var(--ink); background: var(--tint); color: var(--ink); font-weight: 700; text-align: left; cursor: pointer; transition: background .12s, padding-left .12s; }
.updates-all:hover { background: var(--yellow); color: #2b2a33; padding-left: 26px; }
dialog.timeline { width: min(640px, calc(100% - 28px)); max-height: 86vh; padding: 0 0 12px; background: var(--card); color: var(--ink); border: 3px solid var(--ink); border-radius: 8px; box-shadow: 10px 10px 0 var(--ink); }
dialog.timeline::backdrop { background: rgba(24, 22, 30, .6); }
.tl-head { --ink: #2b2a33; position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; background: var(--yellow); color: #2b2a33; border-bottom: 3px solid var(--edge); }
.tl-head h2 { margin: 0; font-size: 24px; }
dialog.timeline h3 { margin: 20px 18px 6px; font-size: 32px; letter-spacing: -.03em; }
dialog.timeline ul { margin: 0 18px 0 28px; border-left: 3px solid var(--ink); }
dialog.timeline .up { border-bottom: 0; padding: 9px 14px; }
.visitors:empty { display: none; }

/* ── Collaborating institutions: one moving line ─────────────────── */
.collab {
  display: flex; align-items: stretch; margin: 76px -3vw 0; overflow: hidden; transform: rotate(1deg);
  background: var(--card); border-block: 3px solid var(--ink);
}
.collab-label {
  flex: none; display: flex; align-items: center; padding: 0 22px 0 calc(3vw + 24px); position: relative; z-index: 1;
  background: var(--pink); color: #14120f; border-right: 3px solid var(--ink);
  font-weight: 700; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
}
.collab-window { flex: 1; overflow: hidden; padding: 13px 0 15px; }
.collab-track { display: flex; width: max-content; animation: slide 44s linear infinite; }
.collab:hover .collab-track { animation-play-state: paused; }
@keyframes slide-back { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.collab ul { flex: none; display: flex; gap: 16px; padding-right: 16px; }
.collab li {
  display: flex; align-items: center; gap: 10px; white-space: nowrap; font-weight: 700; font-size: 17px;
  padding: 6px 16px; background: var(--bg); border: 2.5px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
  transition: transform .15s, background .15s, color .15s;
}
.collab li::before { content: ""; flex: none; width: 11px; height: 11px; background: var(--yellow); border: 2px solid var(--ink); transform: rotate(45deg); animation: spin 6s linear infinite; }
.collab li:nth-child(3n+2)::before { background: var(--mint); } .collab li:nth-child(3n)::before { background: var(--blue); }
.collab li:hover { transform: translateY(-3px) rotate(-2deg); background: var(--yellow); color: #14120f; }
@keyframes spin { to { transform: rotate(405deg); } }
#about { padding-bottom: 76px; }

/* ── Impact: counters and the growth chart ───────────────────────── */



.impact { position: relative; display: grid; grid-template-columns: minmax(0, .6fr) minmax(0, 1.4fr); gap: 24px; align-items: stretch; max-width: 900px; }
.counters { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.counter { padding: 12px 14px; border: 2.5px solid var(--edge); box-shadow: 4px 4px 0 var(--edge); display: flex; flex-direction: column; justify-content: flex-end; transition: transform .15s; }
.counter:hover { transform: translate(-3px, -3px) rotate(-1deg); }
.counter b { font-size: clamp(30px, 3.6vw, 42px); line-height: .95; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.counter span { font-weight: 700; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; margin-top: 6px; }
.c1 { background: var(--yellow); } .c2 { background: var(--pink); } .c3 { background: var(--mint); } .c4 { background: var(--blue); }
.growth { position: relative; background: var(--card); border: 2.5px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); padding: 12px 16px 8px; }
.growth figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 20px; font-size: 14.5px; }
.legend { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); }
.lg { display: inline-block; width: 13px; height: 13px; margin-left: 10px; background: var(--c-old); }
.lg-new { background: var(--c-new); }
.growth svg { display: block; width: 100%; height: auto; overflow: visible; margin-top: 8px; }
.g-grid { stroke: color-mix(in srgb, var(--ink) 14%, transparent); stroke-width: 1; }
.g-base { stroke: var(--ink); stroke-width: 2.5; }
.g-tick, .g-year { fill: var(--muted); font: 500 13px var(--sans); }
.g-year { fill: var(--ink); font-weight: 700; font-size: 15px; }
.g-total { fill: var(--ink); font: 700 19px var(--sans); }
.g-plus { fill: var(--muted); font: 700 13px var(--sans); }
.g-old { fill: var(--c-old); } .g-new { fill: var(--c-new); }
.g-bar { cursor: default; outline: none; }
.g-bar .g-old, .g-bar .g-new { transform-box: fill-box; transform-origin: 50% 100%; transition: transform .7s cubic-bezier(.2, .8, .2, 1); }
.growth:not(.is-in) .g-bar .g-old, .growth:not(.is-in) .g-bar .g-new { transform: scaleY(0); }
.growth:not(.is-in) .g-total, .growth:not(.is-in) .g-plus { opacity: 0; }
.g-total, .g-plus { transition: opacity .4s .5s; }
.g-line { fill: none; stroke: var(--c-old); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s ease-out; }
.g-area { fill: var(--c-old); opacity: 0; transition: opacity .6s .6s; }
.g-dot { fill: var(--c-old); stroke: var(--card); stroke-width: 2.5; }
.g-pt { outline: none; }
.g-pt .g-dot, .g-pt .g-total { opacity: 0; transition: opacity .3s .8s, r .12s; }
.is-in .g-line { stroke-dashoffset: 0; }
.is-in .g-area { opacity: .13; }
.is-in .g-pt .g-dot, .is-in .g-pt .g-total { opacity: 1; }
.g-pt:hover .g-dot, .g-pt:focus-visible .g-dot { r: 7px; }
.g-hit { fill: transparent; }
.g-bar:hover .g-hit, .g-bar:focus-visible .g-hit { fill: color-mix(in srgb, var(--ink) 7%, transparent); }
.tip {
  position: absolute; z-index: 5; pointer-events: none; transform: translate(-50%, -100%);
  background: var(--ink); color: var(--bg); padding: 6px 10px; font-size: 14px; line-height: 1.35; white-space: nowrap;
}
.tip[hidden] { display: none; }
.growth details { margin-top: 6px; font-size: 14.5px; }
.growth summary { cursor: pointer; font-weight: 700; width: fit-content; }
.growth table { border-collapse: collapse; margin-top: 8px; }
.growth th, .growth td { text-align: right; padding: 4px 16px 4px 0; border-bottom: 1px solid color-mix(in srgb, var(--ink) 20%, transparent); font-variant-numeric: tabular-nums; }
.growth th:first-child, .growth td:first-child { text-align: left; }
.sample {
  position: absolute; right: -14px; top: -42px; z-index: 6; transform: rotate(4deg);
  background: var(--c-new); color: #fff; font: 700 13px/1.25 var(--sans); letter-spacing: .1em; text-transform: uppercase;
  padding: 7px 12px; border: 2.5px solid var(--edge); box-shadow: 4px 4px 0 var(--edge);
}

/* small citations graph under the photo */
.mini { margin-top: 46px; padding: 10px 14px 8px; border-width: 2.5px; box-shadow: 6px 6px 0 var(--ink); }
.mini figcaption { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted); }
.mini figcaption b { font-size: 22px; line-height: 1; color: var(--ink); margin-right: 2px; }
.mini svg { margin-top: 2px; }
.mini .g-total { font-size: 15px; } .mini .g-plus, .mini .g-tick { font-size: 11px; } .mini .g-year { font-size: 12.5px; }
.mini-foot { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); margin-top: 2px; }
.mini-foot .lg { width: 10px; height: 10px; margin: 0 4px 0 0; } .mini-foot .lg-new { margin-left: 10px; }
.mini-foot a { font-weight: 700; color: var(--ink); }
.mini .sample { right: -10px; top: -16px; font-size: 10.5px; padding: 4px 8px; }

/* ── The chalkboard ──────────────────────────────────────────────── */
.chalk {
  --slate: #23322e; --chalk: #f3f0e6; --dim: #c5cec7; --yel: #ffe27a;
  position: relative; padding: 18px 24px 16px; color: var(--chalk);
  background:
    radial-gradient(120% 90% at 20% 10%, rgba(255, 255, 255, .07), transparent 60%),
    radial-gradient(90% 80% at 85% 90%, rgba(255, 255, 255, .05), transparent 60%),
    var(--slate);
  border: 12px solid #7b5a35;
  border-image: linear-gradient(135deg, #a07a4a, #6a4b29 40%, #8f6b3e 70%, #5d4022) 12;
  box-shadow: inset 0 0 70px rgba(0, 0, 0, .5), 11px 11px 0 var(--edge);
}
.chalk-tabs { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 22px; font: 500 29px/1.2 var(--hand); }
.chalk-tabs button {
  font: inherit; background: none; border: 0; padding: 0 2px; cursor: pointer; color: var(--dim);
  border-bottom: 3px solid transparent; transition: color .15s, transform .15s;
}
.chalk-tabs button:hover { color: var(--chalk); transform: translateY(-2px) rotate(-1.5deg); }
.chalk-tabs button.is-on { color: var(--yel); border-bottom-color: var(--yel); }
.chalk-key { margin-left: auto; font: 400 14px/1 var(--sans); color: var(--dim); display: flex; align-items: center; gap: 6px; }
.k { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-left: 10px; background: var(--chalk); }
.k-jour { background: var(--yel); }
.k-work { background: transparent; border: 2px solid var(--chalk); }
.chalk-card { min-height: 4.6em; margin-top: 6px; padding-top: 10px; border-top: 1px dashed rgba(255, 255, 255, .22); font-size: 16px; line-height: 1.45; color: var(--dim); }
.chalk-card b { color: var(--chalk); }
.chalk-card .hand { font: 600 23px/1 var(--hand); color: var(--yel); margin-left: .3em; white-space: nowrap; }

.board-svg { display: block; width: 100%; height: auto; overflow: visible; user-select: none; -webkit-user-select: none; }
.board-svg .e { fill: none; stroke: var(--chalk); stroke-width: 1.4; opacity: 0; transition: opacity .45s; }
.view-theme .e-pt { opacity: .3; }
.view-people .e-pp { opacity: .2; }
.view-theme.has-active .e-pt, .view-people.has-active .e-pp { opacity: .06; }
.view-theme .e-pt.is-active, .view-people .e-pp.is-active { opacity: .95; stroke: var(--yel); stroke-width: 2; }
.n { cursor: grab; outline: none; touch-action: none; transition: opacity .45s; }
.n:active { cursor: grabbing; }
.n .hit { fill: transparent; }
.n .dot { fill: var(--chalk); transition: r .15s; }
.n-paper.t-journal .dot { fill: var(--yel); }
.n-paper.t-workshop .dot { fill: var(--slate); stroke: var(--chalk); stroke-width: 2.6; }
.n-paper .lab { font: 700 15px var(--sans); fill: var(--chalk); }
.n-paper:hover .dot, .n-paper.is-active .dot { r: 13px; }
.n-paper .lab { transition: opacity .3s; }
.view-people .n-paper .lab { opacity: 0; }
.view-people .n-paper.is-active .lab, .view-people .n-paper.is-near .lab { opacity: 1; }
.n-theme .lab { font: 600 30px var(--hand); fill: var(--yel); }
.n-theme:nth-child(2) .lab { fill: #ff9db3; }
.n-theme:nth-child(3) .lab { fill: #8fe3ff; }
.n-theme:nth-child(4) .lab { fill: #ffe27a; }
.n-theme:nth-child(5) .lab { fill: #a9f0b4; }
.n-theme:nth-child(6) .lab { fill: #ffc089; }
.n-theme:nth-child(7) .lab { fill: #d3bcff; }
.n-theme:nth-child(8) .lab { fill: #ff8f8f; }
.n-theme:nth-child(9) .lab { fill: #9fd0ff; }
.n-paper.t-challenge .dot { fill: #d3bcff; }
.n-paper.t-preprint .dot { fill: #ff9db3; }
.k-chal { background: #d3bcff; } .k-pre { background: #ff9db3; }
.n-me .lab { font: 600 26px var(--hand); fill: var(--slate); }
.n-person .dot { fill: #8fe3ff; }
.n-person .lab { font: 400 13px var(--sans); fill: var(--dim); }
.n-person:not(.minor) .lab { font-weight: 700; font-size: 15px; fill: var(--chalk); }
.n:focus-visible .dot { stroke: var(--yel); stroke-width: 3; }
.n-theme:focus-visible .lab { text-decoration: underline; }
.view-theme .n-person, .view-year .n-person, .view-year .n-theme, .view-year .n-me, .view-people .n-theme { opacity: 0 !important; pointer-events: none; }
.has-active .n { opacity: .22; }
.has-active .n.is-active, .has-active .n.is-near { opacity: 1; }
.is-narrow .n-person.minor .lab { display: none; }
.is-narrow .n-person.minor.is-active .lab { display: block; fill: var(--yel); font-size: 20px; font-weight: 700; }
.is-narrow .n-paper .lab { font-size: 18px; }
.is-narrow .n-theme .lab { font-size: 31px; }
.is-narrow .n-person:not(.minor) .lab { font-size: 17px; }
.axis { opacity: 0; transition: opacity .45s; }
.view-year .axis { opacity: 1; }
.axis path { fill: none; stroke: var(--chalk); stroke-width: 2.2; stroke-linecap: round; }
.axis-year { font: 600 34px var(--hand); fill: var(--yel); }

/* ── Theme cards ─────────────────────────────────────────────────── */
.themes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.theme {
  display: flex; flex-direction: column; text-align: left; cursor: pointer; gap: 2px;
  padding: 16px 18px 18px; background: var(--yellow);
  border: 3px solid var(--edge); box-shadow: 6px 6px 0 var(--edge);
  transition: transform .14s, box-shadow .14s;
}
.theme:nth-child(6n+2) { background: var(--pink); } .theme:nth-child(6n+3) { background: var(--mint); }
.theme:nth-child(6n+4) { background: var(--blue); } .theme:nth-child(6n+5) { background: var(--orange); }
.theme:nth-child(6n+6) { background: var(--lilac); }
.theme:hover { transform: translate(-4px, -4px) rotate(-.6deg); box-shadow: 10px 10px 0 var(--edge); }
.theme-n { font-weight: 700; font-size: 46px; line-height: 1; letter-spacing: -.04em; }
.theme-name { font-weight: 700; font-size: 19px; line-height: 1.2; }
.theme-blurb { font-size: 14.5px; line-height: 1.4; }

/* ── Publications ────────────────────────────────────────────────── */
.filters { display: grid; gap: 12px; padding: 18px 20px; background: var(--card); border: 3px solid var(--ink); box-shadow: 7px 7px 0 var(--ink); }
.search input { width: 100%; padding: 11px 14px; background: var(--bg); border: 2.5px solid var(--ink); border-radius: 0; outline-offset: 2px; }
.search input::placeholder { color: var(--muted); }
.frow { display: flex; gap: 14px; align-items: baseline; }
.flabel { flex: none; width: 58px; font-weight: 700; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.check { display: inline-flex; align-items: center; gap: 9px; font-size: 15.5px; cursor: pointer; width: fit-content; }
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--c-new); }
.count { margin: 20px 0 0; min-height: 1px; color: var(--muted); }
.count b { color: var(--ink); }

.year { display: flex; align-items: baseline; gap: 14px; margin: 44px 0 18px; }
.year span { font-weight: 700; font-size: 68px; line-height: .9; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 2.5px var(--ink); }
.year small { font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pubs { display: grid; gap: 16px; }
.pub {
  padding: 16px 20px 18px; background: var(--card);
  border: 2.5px solid var(--ink); border-left: 14px solid var(--mint);
  box-shadow: 5px 5px 0 var(--ink); transition: transform .13s, box-shadow .13s;
  outline: 0 solid var(--ink);
}
.pub { border-image: linear-gradient(to right, var(--kind, var(--mint)) 14px, var(--ink) 14px) 1; border-image-slice: 1 1 1 1; border-left-width: 14px; }
.pub.t-conference { --kind: var(--mint); } .pub.t-journal { --kind: var(--blue); } .pub.t-workshop { --kind: var(--orange); }
.pub.t-challenge { --kind: var(--lilac); } .pub.t-preprint { --kind: var(--pink); }
.pub:hover, .pub.is-open { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--ink); }
.pub.is-flash { animation: flash 1.8s ease-out; }
@keyframes flash { 0%, 40% { background: var(--yellow); color: #14120f; } }
.pub-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 6px; }
.pub-kind { font-weight: 700; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; padding: 2px 7px; background: var(--kind, var(--mint)); color: #14120f; border: 2px solid var(--edge); }
.pub-venue { font-weight: 700; font-size: 15px; }
.pub-cited { font-weight: 700; font-size: 12.5px; padding: 2px 8px; background: var(--ink); color: var(--bg); }
.pub-note { font: 600 21px/1 var(--hand); background: var(--pink); padding: 3px 10px 4px; border: 2px solid var(--edge); transform: rotate(-2deg); }
.pub-title {
  display: block; width: 100%; border: 0; background: none; padding: 0; cursor: pointer; text-align: left;
  font-weight: 700; font-size: 20.5px; line-height: 1.3; letter-spacing: -.01em;
}
.pub-title:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.pub-authors { margin-top: 5px; font-size: 15.5px; color: var(--muted); }
.pub-authors b { color: var(--ink); }
.pub-more { margin-top: 14px; padding-top: 14px; border-top: 2px dashed color-mix(in srgb, var(--ink) 30%, transparent); display: grid; gap: 12px; }
.empty { padding: 44px 20px; text-align: center; font-weight: 700; border: 3px dashed var(--ink); }

/* ── Publications, compact ───────────────────────────────────────── */
#papers { padding: 64px 0; }
#papers .sub { margin-bottom: 18px; font-size: 17px; }
.filter-fold > summary { width: fit-content; cursor: pointer; font-weight: 700; padding: 7px 14px; background: var(--card); border: 2.5px solid var(--ink); border-radius: 6px; box-shadow: 3px 3px 0 var(--ink); }
.filter-fold[open] > summary { margin-bottom: 12px; }
.filters { padding: 14px 16px; gap: 9px; box-shadow: 5px 5px 0 var(--ink); }
.count { margin-top: 12px; }
.year { margin: 26px 0 10px; }
.year span { font-size: 38px; -webkit-text-stroke-width: 1.8px; }
.pubs { gap: 10px; }
.pub { padding: 10px 14px 11px; box-shadow: 4px 4px 0 var(--ink); }
.pub-top { margin-bottom: 3px; gap: 4px 10px; }
.pub-kind { font-size: 10.5px; padding: 1px 6px; }
.pub-venue { font-size: 13.5px; }
.pub-title { font-size: 17px; line-height: 1.28; }
.pub-authors { margin-top: 2px; font-size: 14px; }
.pub-note { font-size: 18px; }
.more { margin-top: 10px; }

.pub-drop { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; padding: 4px 12px 4px 10px; cursor: pointer; font-weight: 700; font-size: 13.5px; background: var(--tint); color: var(--ink); border: 2px solid var(--ink); border-radius: 6px; transition: background .12s, transform .12s; }
.pub-drop::before { content: ""; width: 8px; height: 8px; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.pub-drop[aria-expanded="true"]::before { transform: translateY(2px) rotate(-135deg); }
.pub-drop:hover { background: var(--yellow); color: #2b2a33; transform: translateY(-1px); }
.pub-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--card); }
.pub-pic:has(img) { border-style: solid; }
/* a paper block: picture on the left, text on the right */
.pub { display: grid; grid-template-columns: 172px minmax(0, 1fr); gap: 16px; align-items: start; }
.pub-pic { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; text-align: center; overflow: hidden; background: repeating-linear-gradient(45deg, var(--tint) 0 10px, transparent 10px 20px); border: 2px dashed color-mix(in srgb, var(--ink) 55%, transparent); border-radius: 6px; font-size: 12px; font-weight: 700; line-height: 1.3; color: var(--muted); transition: transform .2s; }
.pub:hover .pub-pic { transform: rotate(-1.5deg) scale(1.03); }
.pub-pic.is-show img { opacity: 0; animation-name: pic-fade; animation-timing-function: ease-in-out; animation-iteration-count: infinite; }
@keyframes pic-fade { 0% { opacity: 0; transform: scale(1.06); } 6%, 30% { opacity: 1; transform: scale(1); } 38%, 100% { opacity: 0; } }
.pub-more p { font-size: 15.5px; }
@media (max-width: 640px) { .pub { grid-template-columns: 84px minmax(0, 1fr); gap: 12px; } .pub-pic { font-size: 0; } }
/* ── Year drawers: the newest year is open, older ones fold out ──── */
.yr { margin-top: 18px; }
.yr-h { margin: 0; }
.yr-head {
  display: flex; align-items: center; gap: 16px; width: 100%; padding: 0 16px 0 0; cursor: pointer; text-align: left; overflow: hidden;
  background: var(--card); color: var(--ink); border: 2.5px solid var(--ink); border-radius: 8px; box-shadow: 5px 5px 0 var(--ink);
  transition: transform .14s, box-shadow .14s;
}
.yr-head:hover { transform: translate(-2px, -2px) rotate(-.4deg); box-shadow: 8px 8px 0 var(--ink); }
.yr-num { flex: none; padding: 8px 18px 9px; font-weight: 700; font-size: 34px; line-height: 1; letter-spacing: -.04em; color: #2b2a33; background: var(--yellow); border-right: 2.5px solid var(--ink); transition: padding .2s; }
.yr:nth-of-type(4n+2) .yr-num { background: var(--pink); } .yr:nth-of-type(4n+3) .yr-num { background: var(--mint); } .yr:nth-of-type(4n+4) .yr-num { background: var(--blue); }
.yr-head:hover .yr-num { padding-right: 28px; }
.yr-meta { flex: none; font-weight: 700; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; }
.yr-peek { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 14.5px; color: var(--muted); }
.yr.is-open .yr-peek { visibility: hidden; }
.yr-chev { flex: none; width: 11px; height: 11px; border-right: 3px solid currentColor; border-bottom: 3px solid currentColor; transform: translateY(-3px) rotate(45deg); transition: transform .25s; }
.yr.is-open .yr-chev { transform: translateY(3px) rotate(-135deg); }
.yr-body { padding: 14px 0 6px 18px; margin-left: 20px; border-left: 3px dashed color-mix(in srgb, var(--ink) 35%, transparent); animation: drawer .32s ease-out; }
@keyframes drawer { from { opacity: 0; transform: translateY(-10px); } }
@media (max-width: 640px) { .yr-head { gap: 10px; padding-right: 12px; } .yr-num { font-size: 26px; padding: 8px 12px; } .yr-peek { display: none; } .yr-meta { flex: 1; } .yr-body { padding-left: 10px; margin-left: 8px; } }
.pub-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.pub-acts .pub-drop { margin-top: 0; }
.pub-acts .btn-s { padding: 4px 12px; font-size: 13.5px; border-width: 2px; border-radius: 6px; box-shadow: none; }
.pub-acts .btn-s:hover { transform: translateY(-1px); box-shadow: none; background: var(--yellow); color: #2b2a33; }

/* ── Selected work ───────────────────────────────────────────────── */
.sel > h3 { margin: 8px 0 14px; font-size: 22px; }
.sel > h3.all-h { margin-top: 38px; }
.selected { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.sel-card { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; background: var(--card); border: 3px solid var(--ink); border-top-width: 12px; border-top-color: var(--mint); border-radius: 8px; box-shadow: 7px 7px 0 var(--ink); transition: transform .14s, box-shadow .14s; }
.sel-card { border-image: linear-gradient(to bottom, var(--kind, var(--mint)) 12px, var(--ink) 12px) 1; border-top-width: 12px; }
.sel-card.t-journal { --kind: var(--blue); } .sel-card.t-workshop { --kind: var(--orange); }
.sel-card:nth-child(3n+2) { --kind: var(--pink); } .sel-card:nth-child(3n) { --kind: var(--yellow); }
.sel-card:hover { transform: translate(-3px, -3px); box-shadow: 11px 11px 0 var(--ink); }
.sel-card .pub-pic { aspect-ratio: 16 / 9; }
.sel-card:hover .pub-pic { transform: none; }
.sel-venue { font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-top: 4px; }
.sel-card h4 { margin: 0; font-size: 18.5px; line-height: 1.28; letter-spacing: -.01em; }
.sel-idea { font-size: 14.5px; line-height: 1.45; }
.sel-card .pub-acts { margin-top: auto; padding-top: 6px; }
@media (max-width: 960px) { .selected { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .selected { grid-template-columns: 1fr; } }
/* theme cards, compact: a row of small tags with the paper count */
#research h3 { margin: 24px 0 10px; font-size: 17px; }
.themes { display: flex; flex-wrap: wrap; gap: 10px; }
.theme { flex-direction: row; align-items: center; gap: 8px; padding: 5px 12px 5px 6px; border-width: 2px; border-radius: 6px; box-shadow: 3px 3px 0 var(--edge); }
.theme:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--edge); }
.theme-n { display: grid; place-items: center; min-width: 26px; height: 26px; padding: 0 5px; font-size: 14px; letter-spacing: 0; background: #fff; border: 2px solid var(--edge); border-radius: 5px; }
.theme-name { font-size: 14.5px; }
.theme-blurb { display: none; }
/* ── Journey ─────────────────────────────────────────────────────── */
.road { position: relative; display: grid; gap: 26px; }
.road::before { content: ""; position: absolute; left: 158px; top: 12px; bottom: 12px; width: 3px; background: var(--ink); }
.stop { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 56px; position: relative; }
.stop::before {
  content: ""; position: absolute; left: 150px; top: 20px; width: 19px; height: 19px;
  background: var(--yellow); border: 3px solid var(--ink); transform: rotate(45deg); transition: transform .3s, background .2s;
}
.stop:hover::before { transform: rotate(225deg) scale(1.2); background: var(--pink); }
.stop-when { font-weight: 700; font-size: 17px; text-align: right; padding-top: 16px; }
.stop-card { padding: 20px 24px 22px; background: var(--card); border: 3px solid var(--edge); box-shadow: 7px 7px 0 var(--edge); transition: transform .14s; }
.stop:hover .stop-card { transform: translate(-3px, -3px); }
.stop-next .stop-card { background: var(--yellow); }
.stop-card h3 { margin: 10px 0 2px; font-size: 23px; letter-spacing: -.01em; }
.stop-where { color: var(--muted); font-size: 15.5px; }
.stop-card ul { margin-top: 12px; display: grid; gap: 7px; }
.stop-card li { position: relative; padding-left: 20px; font-size: 16px; }
.stop-card li::before { content: ""; position: absolute; left: 0; top: .6em; width: 9px; height: 9px; background: var(--c-new); }

.tools { display: flex; flex-wrap: wrap; gap: 10px; }
.tools li { padding: 5px 13px; font-weight: 500; font-size: 15.5px; background: var(--card); border: 2px solid var(--ink); transition: transform .12s, background .12s, color .12s; }
.tools li:nth-child(3n+1) { transform: rotate(-1.2deg); } .tools li:nth-child(3n+2) { transform: rotate(.9deg); }
.tools li:hover { transform: rotate(0) translateY(-3px); background: var(--ink); color: var(--bg); }
.tools-plain li { transform: none !important; }

/* ── People ──────────────────────────────────────────────────────── */
.people-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.people-grid h3:first-child { margin-top: 0; }
.folk { display: grid; gap: 14px; }
.folk li { display: flex; gap: 16px; align-items: center; }
.face { flex: none; display: grid; place-items: center; width: 50px; height: 50px; font-weight: 700; border: 2.5px solid var(--edge); box-shadow: 3px 3px 0 var(--edge); transition: transform .15s; }
.folk li:hover .face { transform: rotate(-8deg) scale(1.08); }
.f1 { background: var(--yellow); } .f2 { background: var(--pink); } .f3 { background: var(--mint); }
.f4 { background: var(--blue); } .f5 { background: var(--orange); } .f6 { background: var(--lilac); }
.folk div { color: var(--ink); line-height: 1.35; }
.folk b { display: block; }
.folk span:not(.face) { font-size: 14.5px; color: var(--muted); }

.people-grid { display: block; }
.people-grid > div + div { margin-top: 38px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.pcard { display: flex; gap: 16px; align-items: center; padding: 14px 16px; background: var(--card); border: 2.5px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); transition: transform .13s, box-shadow .13s; }
.pcard:hover { transform: translate(-3px, -3px); box-shadow: 8px 8px 0 var(--ink); }
.pic { position: relative; flex: none; width: 76px; height: 76px; }
.pic .face { width: 100%; height: 100%; font-size: 22px; box-shadow: none; }
.pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 2.5px solid var(--edge); }
.pname { display: block; font-weight: 700; font-size: 17.5px; line-height: 1.25; }
.prole { display: block; font-size: 14px; line-height: 1.35; color: var(--muted); margin-top: 3px; }
.plink { display: inline-block; margin-top: 7px; font-weight: 700; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; }
.more { margin-top: 18px; }

/* ── People: photos pegged to a washing line ─────────────────────── */
.people-grid h3 { font: 600 34px/1 var(--hand); margin: 0 0 6px; transform: rotate(-1.5deg); transform-origin: left; width: fit-content; }
.people-grid > div + div { margin-top: 54px; }
.cards { display: flex; flex-wrap: wrap; gap: 62px 30px; padding: 50px 14px 10px; }
/* the holder stays still and carries the line; the photo inside it sways */
.pcard { position: relative; display: block; width: 178px; padding: 0; background: none; border: 0; box-shadow: none; transform: none; }
.pcard:hover { transform: none; box-shadow: none; }
.pcard::after { content: ""; position: absolute; left: -32px; right: -32px; top: -29px; border-top: 3px solid var(--ink); }
.pcard:first-child::after { left: -14px; } .pcard:last-child::after { right: -14px; }
.polaroid {
  position: relative; height: 100%; padding: 10px 10px 14px; text-align: center;
  background: #fff; color: #2b2a33; border: 2px solid var(--edge); border-radius: 4px;
  box-shadow: 0 14px 20px -10px rgba(20, 18, 26, .55);
  transform-origin: 50% -30px; animation: sway 4.6s ease-in-out infinite alternate; transition: scale .18s cubic-bezier(.2, .9, .3, 1.4);
}
.pcard:nth-child(2n) .polaroid { animation-duration: 5.4s; animation-delay: -1.8s; } .pcard:nth-child(3n) .polaroid { animation-duration: 3.9s; animation-delay: -.9s; }
@keyframes sway { from { rotate: -2.4deg; } to { rotate: 2.2deg; } }
.pcard:hover .polaroid { animation-play-state: paused; scale: 1.07; }
.pcard:hover { z-index: 2; }
.polaroid::before {                      /* the peg */
  content: ""; position: absolute; z-index: 1; left: 50%; top: -42px; width: 15px; height: 46px; margin-left: -8px;
  background: linear-gradient(var(--orange) 0 44%, #2b2a33 44% 50%, var(--orange) 50%); border: 2px solid var(--edge); border-radius: 3px;
}
.pcard:nth-child(3n+2) .polaroid::before { background: linear-gradient(var(--mint) 0 44%, #2b2a33 44% 50%, var(--mint) 50%); }
.pcard:nth-child(3n) .polaroid::before { background: linear-gradient(var(--pink) 0 44%, #2b2a33 44% 50%, var(--pink) 50%); }
.pcard .pic { display: block; width: 100%; height: auto; aspect-ratio: 1; margin-bottom: 8px; }
.pcard .pic .face { font-size: 46px; border-width: 2px; border-radius: 2px; }
.pcard .pic img { border-width: 2px; border-radius: 2px; }
.pname { font: 600 25px/1.05 var(--hand); color: #2b2a33; }
a.pname { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--c-new); }
.prole { font-size: 12.5px; line-height: 1.35; color: #63616d; margin-top: 5px; }
@media (max-width: 640px) { .cards { gap: 58px 18px; padding: 48px 4px 6px; justify-content: space-between; } .pcard { width: calc(50% - 9px); } .pcard::after { left: -22px; right: -22px; } .pname { font-size: 22px; } }
@media (prefers-reduced-motion: reduce) { .polaroid { rotate: -1.5deg; } .pcard:nth-child(2n) .polaroid { rotate: 1.5deg; } }
/* people, compact: same washing line, smaller photos */
#people { padding: 60px 0; }
.people-grid h3 { font-size: 27px; margin-bottom: 2px; }
.people-grid > div + div { margin-top: 30px; }
.cards { gap: 46px 20px; padding: 40px 10px 6px; }
.pcard { width: 124px; }
.pcard::after { left: -24px; right: -24px; top: -23px; border-top-width: 2.5px; }
.pcard:first-child::after { left: -10px; } .pcard:last-child::after { right: -10px; }
.polaroid { padding: 7px 7px 9px; transform-origin: 50% -24px; box-shadow: 0 10px 14px -8px rgba(20, 18, 26, .55); }
.polaroid::before { top: -33px; width: 12px; height: 36px; margin-left: -6px; }
.pcard .pic { margin-bottom: 5px; }
.pcard .pic .face { font-size: 30px; }
.pname { font-size: 19px; }
.prole { font-size: 11px; line-height: 1.3; margin-top: 3px; }
@media (max-width: 640px) { .cards { gap: 44px 14px; padding: 40px 2px 4px; justify-content: flex-start; } .pcard { width: calc(33.333% - 10px); } .pcard::after { left: -16px; right: -16px; } .pname { font-size: 17px; } .prole { font-size: 10.5px; } }
/* people on ONE line per group: it slides sideways instead of wrapping */
.cards { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; scroll-snap-type: x proximity; gap: 0 18px; padding: 38px 12px 22px; margin: 0 -12px; }
.cards::-webkit-scrollbar { display: none; }
.cards.is-slide { -webkit-mask-image: linear-gradient(to right, transparent, #000 34px, #000 calc(100% - 34px), transparent); mask-image: linear-gradient(to right, transparent, #000 34px, #000 calc(100% - 34px), transparent); }
.pcard { flex: none; width: 108px; scroll-snap-align: start; scroll-margin-left: 14px; }
.pcard::after { left: -18px; right: -18px; }
.pcard .pic .face { font-size: 26px; }
.pname { font-size: 17.5px; }
.prole { font-size: 10.5px; }
.line-nav { display: flex; align-items: center; gap: 10px; margin-top: -8px; }
.line-nav .btn-s { padding: 2px 10px; font-size: 15px; box-shadow: 2px 2px 0 var(--ink); border-width: 2px; }
.line-count { font-size: 12.5px; color: var(--muted); }
@media (max-width: 640px) { .cards { gap: 0 14px; padding: 38px 12px 20px; justify-content: flex-start; } .pcard { width: 96px; } .pcard::after { left: -16px; right: -16px; } .pname { font-size: 16px; } }
/* ── Service & awards ────────────────────────────────────────────── */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
.panel { padding: 30px 30px 26px; background: var(--card); border: 3px solid var(--ink); box-shadow: 9px 9px 0 var(--ink); }
.defs dt { font-weight: 700; margin-top: 14px; }
.defs dt:first-child { margin-top: 0; }
.defs dd { color: var(--muted); font-size: 16px; }
.awards li { display: grid; grid-template-columns: 58px 1fr; gap: 14px; padding: 11px 0; border-top: 2px solid var(--ink); font-size: 16px; }
.awards li:first-child { border-top: 0; padding-top: 0; }
.awards span { font-weight: 700; }

/* ── Contact & footer ────────────────────────────────────────────── */
.talk { padding: clamp(30px, 6vw, 68px); background: var(--yellow); border: 4px solid var(--edge); box-shadow: 13px 13px 0 var(--edge); }
.talk h2 { font-size: clamp(54px, 10vw, 118px); letter-spacing: -.05em; line-height: .9; margin-bottom: 22px; }
.talk p { max-width: 40em; font-size: 19px; font-weight: 500; }
.talk .btns { margin-top: 26px; }
.offline { margin-top: 26px; font-size: 15.5px !important; font-weight: 400 !important; }
.meet { margin-top: 34px; padding: 22px 24px 24px; background: #fff; color: #2b2a33; border: 3px solid var(--edge); border-radius: 6px; box-shadow: 7px 7px 0 var(--edge); max-width: 760px; }
.meet h3 { margin: 0 0 6px; font-size: 24px; }
.talk .meet-how { font-size: 15.5px; font-weight: 400; color: #4a4854; }
.meet-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px 16px; margin: 18px 0 20px; }
.meet label { display: grid; gap: 5px; font-weight: 700; font-size: 13.5px; }
.meet label.wide { grid-column: 1 / -1; }
.meet-grid label:nth-child(1), .meet-grid label:nth-child(2) { grid-column: span 3; }
@media (min-width: 620px) { .meet-grid label:nth-child(1) { grid-column: span 1; } .meet-grid label:nth-child(2) { grid-column: span 2; } }
.meet input, .meet select { width: 100%; min-height: 44px; padding: 8px 11px; font-weight: 400; font-size: 16px; color: #2b2a33; background: #faf7f1; border: 2.5px solid #2b2a33; border-radius: 6px; }
.meet input:focus-visible, .meet select:focus-visible { outline: 3px solid var(--c-old); outline-offset: 2px; }
.talk .meet .btns { margin-top: 0; }
.talk .meet-msg { margin-top: 14px; font-size: 15px; font-weight: 700; }
@media (max-width: 619px) { .meet-grid { grid-template-columns: 1fr; } .meet-grid label { grid-column: 1 / -1 !important; } .meet { padding: 18px 16px 20px; } }
/* ── Away from the keyboard: animated hobby tiles ────────────────── */
.hobbies { margin-top: 38px; }
.hobbies h3 { margin: 0 0 16px; font: 600 30px/1 var(--hand); transform: rotate(-2deg); transform-origin: left; width: fit-content; }
.hobbies ul { display: flex; flex-wrap: wrap; gap: 16px 18px; }
.hob {
  display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 12px; font-weight: 700; font-size: 16px; line-height: 1.2;
  background: #fff; border: 2.5px solid var(--edge); border-radius: 6px; box-shadow: 4px 4px 0 var(--edge);
  transition: transform .18s cubic-bezier(.2, .9, .3, 1.4), background .15s;
}
.hob:nth-child(odd) { transform: rotate(-1.5deg); } .hob:nth-child(even) { transform: rotate(1.2deg); }
.hob:hover { transform: rotate(0) translateY(-5px) scale(1.04); }
.hob svg { flex: none; width: 40px; height: 40px; padding: 6px; border-radius: 6px; border: 2px solid var(--edge); overflow: visible;
  fill: none; stroke: #2b2a33; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hob svg > * { transform-box: fill-box; transform-origin: center; }
.h-run svg { background: var(--mint); } .h-cam svg { background: var(--blue); } .h-pen svg { background: var(--pink); }
.h-book svg { background: var(--lilac); } .h-bad svg { background: var(--orange); }
.h-run svg > * { animation: jog .55s ease-in-out infinite alternate; }
.h-cam .lens { animation: focus 2.6s ease-in-out infinite; }
.h-cam svg { animation: flash 2.6s linear infinite; }
.h-pen svg > path:first-child { animation: scribble .9s ease-in-out infinite alternate; transform-origin: 20% 90%; }
.h-pen .ink { stroke-dasharray: 9; animation: ink 1.8s linear infinite; }
.h-book .page { animation: flip 2.2s ease-in-out infinite; transform-origin: center; }
.h-bad svg > * { animation: smash 1.1s cubic-bezier(.3, 0, .7, 1) infinite alternate; }
@keyframes jog { from { transform: translate(-1.5px, 1px) rotate(-3deg); } to { transform: translate(1.5px, -1.5px) rotate(3deg); } }
@keyframes focus { 0%, 100% { transform: scale(1); } 45% { transform: scale(.72); } 55% { transform: scale(1.08); } }
@keyframes flash { 0%, 52%, 60%, 100% { background: var(--blue); } 55% { background: #fff; } }
@keyframes scribble { from { transform: rotate(-7deg); } to { transform: rotate(5deg); } }
@keyframes ink { from { stroke-dashoffset: 9; } 60%, to { stroke-dashoffset: 0; } }
@keyframes flip { 0%, 100% { transform: scaleX(1); } 50% { transform: translateX(3px) scaleX(4); opacity: .35; } }
@keyframes smash { from { transform: translateY(2px) rotate(-10deg); } to { transform: translateY(-3px) rotate(12deg); } }
/* ── Visitors by country: a card taped above the footer ──────────── */
.visitors {
  position: relative; width: fit-content; max-width: 100%; margin: 14px auto 40px; padding: 26px 24px 14px; text-align: center;
  background: #fff; color: #2b2a33; border: 3px solid var(--edge); border-radius: 8px; box-shadow: 8px 8px 0 var(--edge);
  transform: rotate(-1.4deg); transition: transform .2s cubic-bezier(.2, .9, .3, 1.3);
}
.visitors:hover { transform: rotate(0) translateY(-4px); }
.visitors::before {                    /* strip of tape */
  content: ""; position: absolute; left: 50%; top: -15px; width: 110px; height: 28px; transform: translateX(-50%) rotate(2.5deg);
  background: color-mix(in srgb, var(--yellow) 82%, transparent); border-left: 2px dashed rgba(43, 42, 51, .25); border-right: 2px dashed rgba(43, 42, 51, .25);
}
.visitors-title { display: flex; align-items: center; justify-content: center; gap: 10px; font: 600 32px/1 var(--hand); margin-bottom: 12px; }
.visitors-title svg { width: 30px; height: 30px; fill: var(--blue); stroke: #2b2a33; stroke-width: 1.7; stroke-linecap: round; }
.visitors-title .mer { fill: none; transform-box: fill-box; transform-origin: center; animation: globe 3.2s ease-in-out infinite; }
@keyframes globe { 0%, 100% { transform: scaleX(1); } 50% { transform: scaleX(.12); } }
.visitors img { display: block; margin: 0 auto; max-width: 100%; height: auto; }
.visitors-note { margin-top: 10px; font-size: 13px; color: #63616d; }
.foot { border-top: 3px solid var(--ink); padding: 22px 0 34px; font-size: 14.5px; color: var(--muted); }
.foot-in { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }

/* ── Calmer page: things move when you point at them, not all the time ── */
.pub { grid-template-columns: minmax(0, 1fr); }
.pub.has-pic { grid-template-columns: 172px minmax(0, 1fr); }
.pub-pic { border-style: solid; background: var(--card); }
.hob svg, .hob svg > *, .h-cam .lens, .h-pen .ink, .h-book .page { animation-play-state: paused; }
.hob:hover svg, .hob:hover svg > *, .hob:hover .lens, .hob:hover .ink, .hob:hover .page { animation-play-state: running; }
.badge, .live { animation: none; }
.strip-track { animation-duration: 70s; }
.collab-track { animation-duration: 64s; }
.collab li::before { animation: none; }
@media (max-width: 640px) { .pub.has-pic { grid-template-columns: 84px minmax(0, 1fr); } }
/* ── Opening animation ───────────────────────────────────────────── */
.intro { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; overflow: hidden; color: #faf7f1; cursor: pointer; animation: intro-gone .01s linear 3.3s forwards; }
/* two rows of strips: dark in front, colours behind; each strip lifts a beat after its neighbour */
.intro-cols { position: absolute; inset: 0; display: flex; }
.intro-cols i { flex: 1; margin-right: -1px; background: #2b2a33; animation: intro-lift .7s cubic-bezier(.76, 0, .24, 1) forwards; }
.intro-cols i:last-child { margin-right: 0; }
.intro-cols-a i { background-image: radial-gradient(rgba(250, 247, 241, .09) 1.5px, transparent 1.6px); background-size: 26px 26px; background-attachment: fixed; }
.intro-cols-a i:nth-child(1) { animation-delay: 2s; }    .intro-cols-b i:nth-child(1) { animation-delay: 2.2s; background: var(--yellow); }
.intro-cols-a i:nth-child(2) { animation-delay: 2.07s; } .intro-cols-b i:nth-child(2) { animation-delay: 2.27s; background: var(--pink); }
.intro-cols-a i:nth-child(3) { animation-delay: 2.14s; } .intro-cols-b i:nth-child(3) { animation-delay: 2.34s; background: var(--mint); }
.intro-cols-a i:nth-child(4) { animation-delay: 2.21s; } .intro-cols-b i:nth-child(4) { animation-delay: 2.41s; background: var(--blue); }
.intro-cols-a i:nth-child(5) { animation-delay: 2.28s; } .intro-cols-b i:nth-child(5) { animation-delay: 2.48s; background: var(--lilac); }
.intro-in { position: relative; z-index: 1; text-align: left; padding: 0 24px; animation: intro-out .3s ease-in 1.8s forwards; }
.intro-hello { font: 600 clamp(26px, 4vw, 40px)/1 var(--hand); color: #f3b9c6; transform: rotate(-3deg); transform-origin: left; opacity: 0; animation: intro-fade .35s ease-out .1s forwards; }
.intro-name { margin-top: 8px; font-weight: 700; font-size: clamp(50px, 12vw, 150px); line-height: .95; letter-spacing: -.035em; }
.intro-letters { display: inline-block; white-space: nowrap; }
/* each letter drops in as a chalk outline, then the outlines fill in together */
.intro-letters i {
  display: inline-block; font-style: normal; color: transparent; -webkit-text-stroke: 2px #faf7f1; opacity: 0;
  transform: translateY(-110%) rotate(-16deg);
  animation: intro-drop .5s cubic-bezier(.2, 1.5, .4, 1) calc(.22s + var(--n) * .065s) forwards, intro-fill .3s ease-out 1.08s forwards;
}
.intro-letters i:nth-child(even) { transform: translateY(110%) rotate(16deg); }
.intro-name b {
  display: inline-block; padding: 0 .1em .04em; background: var(--yellow); color: #2b2a33;
  border: 4px solid #faf7f1; border-radius: 6px; box-shadow: 9px 9px 0 #faf7f1;
  transform: rotate(14deg) scale(0); animation: intro-stamp .5s cubic-bezier(.2, 1.5, .4, 1) .82s forwards;
}
.intro-squig { display: block; width: 100%; height: auto; margin-top: 18px; overflow: visible; }
.intro-squig path { fill: none; stroke: #f3b9c6; stroke-width: 5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: intro-draw .65s cubic-bezier(.6, 0, .2, 1) 1s forwards; }
.intro-tags { display: flex; flex-wrap: wrap; gap: 10px 12px; margin-top: 18px; }
.intro-tags span {
  padding: 5px 12px; font: 600 clamp(13px, 1.5vw, 17px)/1.2 var(--sans, inherit); color: #2b2a33; background: var(--mint);
  border: 2.5px solid #faf7f1; border-radius: 6px; box-shadow: 4px 4px 0 #faf7f1;
  transform: scale(0) rotate(-12deg); animation: intro-pop .4s cubic-bezier(.2, 1.6, .4, 1) forwards;
}
.intro-tags span:nth-child(1) { --r: -3deg; animation-delay: 1.18s; }
.intro-tags span:nth-child(2) { --r: 2.5deg; background: var(--blue); animation-delay: 1.28s; }
.intro-tags span:nth-child(3) { --r: -1.5deg; background: var(--orange); animation-delay: 1.38s; }
.intro-tags span:nth-child(4) { --r: 3deg; background: var(--lilac); animation-delay: 1.48s; }
.intro-star { position: absolute; color: var(--yellow); font-size: clamp(20px, 3vw, 38px); line-height: 1; opacity: 0; animation: intro-twinkle .9s ease-in-out forwards; }
.intro-star.s1 { right: 2%; top: -6%; animation-delay: .95s; }
.intro-star.s2 { left: -1%; bottom: 30%; color: #f3b9c6; font-size: clamp(14px, 2vw, 24px); animation-delay: 1.15s; }
.intro-star.s3 { right: 22%; bottom: 2%; color: var(--mint); font-size: clamp(14px, 2vw, 24px); animation-delay: 1.3s; }
@keyframes intro-fade { to { opacity: 1; } }
@keyframes intro-drop { to { opacity: 1; transform: none; } }
@keyframes intro-fill { to { color: #faf7f1; -webkit-text-stroke-color: transparent; } }
@keyframes intro-stamp { to { transform: rotate(-2.5deg) scale(1); } }
@keyframes intro-draw { to { stroke-dashoffset: 0; } }
@keyframes intro-pop { to { transform: scale(1) rotate(var(--r, 0deg)); } }
@keyframes intro-twinkle { 0% { opacity: 0; transform: scale(0) rotate(-40deg); } 55% { opacity: 1; transform: scale(1.35) rotate(12deg); } 100% { opacity: 1; transform: scale(1) rotate(0); } }
@keyframes intro-out { to { opacity: 0; transform: translateY(-26px) scale(.97); } }
@keyframes intro-lift { to { transform: translateY(-101%); } }
@keyframes intro-gone { to { visibility: hidden; pointer-events: none; transform: translateY(-101%); } }
.no-intro .intro { display: none; }
@media (prefers-reduced-motion: reduce) { .intro { display: none; } }
@media print { .intro { display: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ── Smaller screens ─────────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 54px; }
  .hero-side { justify-self: start; width: min(78%, 320px); margin-left: 26px; }
  .about-grid, .impact, .people-grid, .two { grid-template-columns: 1fr; gap: 40px; }
  .updates { position: static; }
  .themes { grid-template-columns: 1fr 1fr; }
  .chalk { padding: 14px 12px 12px; border-width: 9px; }
  .chalk-tabs { font-size: 25px; gap: 2px 16px; }
  .chalk-title, .chalk-key { flex-basis: 100%; margin-left: 0; }
  .chalk-key { margin-top: 6px; flex-wrap: wrap; row-gap: 8px; }
  .chalk-key .k:first-child { margin-left: 0; }
}
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .sec { padding: 64px 0; }
  .hero { padding-top: 40px; }
  .wrap { width: calc(100% - 36px); }
  .nav-in { gap: 10px; }
  .nav nav { margin-left: 0; flex: 1; }
  .themes { grid-template-columns: 1fr; }
  .frow { flex-direction: column; gap: 6px; }
  .road::before { left: 8px; }
  .stop { grid-template-columns: 1fr; gap: 8px; padding-left: 34px; }
  .stop::before { left: 0; top: 4px; }
  .stop-when { text-align: left; padding-top: 0; }
  .year span { font-size: 52px; }
  .counters { gap: 14px; }
  .updates-feed { height: 380px; }
  .collab-label { padding-left: calc(3vw + 14px); padding-right: 12px; font-size: 12px; }
  .collab li { font-size: 15px; }
  .chalk { box-shadow: inset 0 0 70px rgba(0, 0, 0, .5), 7px 7px 0 var(--edge); }
  .sample { right: 6px; }
}

/* ── Comfort: softer edges, touch targets, tablet and phone layouts ─ */
.btn, .chip, .pub, .pcard, .panel, .filters, .updates, .growth, .theme, .stop-card, .talk, .portrait img, .sticker, .hl, .swipe, .counter { border-radius: 6px; }
.updates { overflow: hidden; }
@media (pointer: coarse) {
  .btn, .chip, .chalk-tabs button, .updates-toggle, .mode { min-height: 44px; }
  .chip { display: inline-flex; align-items: center; }
  .nav nav a { padding: 12px 12px; }
}
/* tablet: keep two columns where they still fit */
@media (min-width: 700px) and (max-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 36px; align-items: start; }
  .hero-side { justify-self: end; width: 100%; margin-left: 0; margin-top: 46px; }
  h1 { font-size: clamp(54px, 9vw, 84px); }
  .themes { grid-template-columns: 1fr 1fr; }
  .people-grid .cards { grid-template-columns: 1fr 1fr; }
}
/* phone: the section links become a bar along the bottom, like an app */
@media (max-width: 640px) {
  body { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
  .nav nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; margin: 0; gap: 0;
    background: var(--bg); border-top: 3px solid var(--ink);
    padding: 0 6px env(safe-area-inset-bottom); justify-content: space-between;
  }
  .nav nav a { flex: 1 0 auto; text-align: center; font-size: 13px; padding: 17px 8px 15px; border-bottom: 0; border-top: 3px solid transparent; margin-top: -3px; }
  .nav nav a.is-here { border-top-color: var(--c-new); border-bottom: 0; }
  .nav nav a.nav-cta { border: 0; border-top: 3px solid transparent; border-radius: 0; margin-left: 0; padding: 17px 8px 15px; }
  .nav nav a.nav-cta span { display: none; }
  .nav nav a[href="#updates"] { display: none; }
  .nav nav a { padding-left: 4px; padding-right: 4px; }
  .nav nav a.nav-cta { padding-left: 4px; padding-right: 4px; color: var(--ink); background: none; }
  .nav-in { justify-content: space-between; }
  .hero-side { width: min(84%, 330px); margin-left: 22px; }
  .pub { padding: 14px 14px 16px; }
  .pub-title { font-size: 18.5px; }
  .collab { margin-top: 56px; }
}

@media print {
  .nav, .draft, .strip, .filters, .mode, .chalk, .updates-toggle { display: none; }
  body { background: #fff; }
  .sec { padding: 22px 0; }
}
