/* =========================================================
   Tokens
   ========================================================= */
:root {
  --bg: #0a0f1a;
  --bg-2: #111a2b;
  --bg-3: #16223a;
  --text: #eef2f8;
  --muted: #98a6bd;
  --line: #22304a;

  --blue: #005bbb;          /* Packit blue (fills) */
  --blue-l: #5aa2ff;        /* lighter tint for text on dark */
  --orange: #ff732b;        /* Packit orange */

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace;

  --max: 1180px;
  --radius: 28px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* =========================================================
   Base
   ========================================================= */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 1.06rem/1.7 var(--sans); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 600; line-height: 1.05; letter-spacing: -.02em; }
em { font-style: italic; background: linear-gradient(100deg, var(--blue-l), var(--orange)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.mono { font-family: var(--mono); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 8px; }
button { font: inherit; color: inherit; }

/* Pinstripe: a quiet nod to the suit */
.stripes {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(0, 91, 187, .28), transparent 70%),
    radial-gradient(700px 500px at -10% 40%, rgba(255, 115, 43, .10), transparent 70%),
    repeating-radial-gradient(circle at 85% -10%, transparent 0 150px, rgba(255,255,255,.035) 150px 151px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.028) 0 1px, transparent 1px 72px);
}

.section { max-width: var(--max); margin: 0 auto; padding: 120px 24px 8px; }
.section h2 { font-size: clamp(2.2rem, 5.2vw, 3.8rem); }
.kicker { color: var(--orange); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 14px; }
.section-lead { color: var(--muted); max-width: 58ch; margin: 18px 0 44px; }

/* =========================================================
   Nav
   ========================================================= */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 24px; padding: 12px 24px;
  background: rgba(10, 15, 26, .72); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand {
  margin-right: auto; text-decoration: none; font-family: var(--serif); font-weight: 700; font-size: 1.1rem;
  letter-spacing: .02em; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border: 1.5px solid var(--line); border-radius: 50%; background: rgba(17, 26, 43, .6); transition: border-color .25s, transform .3s var(--ease);
}
.brand:hover { border-color: var(--orange); transform: rotate(-8deg); }
.brand span { color: var(--orange); }
.nav nav { display: flex; align-items: center; gap: 26px; }
.nav nav a { text-decoration: none; color: var(--muted); font-size: .95rem; transition: color .2s; }
.nav nav a:hover { color: var(--text); }
.nav .pill { color: #fff; background: var(--blue); padding: 7px 18px; border-radius: 99px; font-weight: 600; transition: background .2s, transform .2s; }
.nav .pill:hover { background: var(--orange); color: #1b0a00; transform: translateY(-1px); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative; max-width: var(--max); margin: 0 auto; padding: 76px 24px 40px;
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 64px; align-items: center; min-height: calc(100vh - 60px);
}
.hero::before {                      /* soft glow that follows the pointer */
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background: radial-gradient(420px circle at var(--mx, 30%) var(--my, 30%), rgba(255, 115, 43, .12), transparent 70%);
}
.eyebrow { color: var(--blue-l); margin: 0 0 6px; font-size: .95rem; }
.hero h1 { font-size: clamp(3.6rem, 11vw, 8rem); line-height: .92; font-weight: 700; }
.role { font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 2rem); margin: 22px 0 16px; min-height: 1.4em; }
.typed { color: var(--orange); }
.caret { display: inline-block; width: 2px; height: 1.05em; margin-left: 4px; vertical-align: -.15em; background: var(--text); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.intro { color: var(--muted); max-width: 54ch; margin: 0; }

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 30px 0 26px; }
.cta-row.center { justify-content: center; }
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 99px; font-weight: 700; text-decoration: none;
  cursor: pointer; border: 2px solid transparent; transition: transform .2s var(--ease), background .2s, border-color .2s, color .2s;
}
.btn:hover { transform: translateY(-3px); }
.btn.primary { background: var(--orange); color: #1b0a00; }
.btn.primary:hover { background: #ff8a4d; }
.btn.ghost { background: transparent; border-color: var(--blue); color: var(--text); }
.btn.ghost:hover { border-color: var(--blue-l); background: rgba(0, 91, 187, .2); }

.stack { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.stack li {
  font-family: var(--mono); font-size: .8rem; color: var(--muted);
  border: 1px solid var(--line); border-radius: 99px; padding: 3px 12px; transition: color .2s, border-color .2s;
}
.stack li:hover { color: var(--orange); border-color: var(--orange); }

/* Portrait */
.hero-art { position: relative; max-width: 420px; justify-self: center; width: 100%; }
.frame { position: relative; isolation: isolate; }
.frame::before {
  content: ""; position: absolute; inset: 0; z-index: -1; transform: translate(18px, 18px);
  border: 2px solid var(--blue-l); border-radius: 50%; transition: transform .5s var(--ease);
}
.frame:hover::before { transform: translate(10px, 10px); }
.frame::after {                      /* slowly turning dashed orbit around the portrait */
  content: ""; position: absolute; inset: -30px; z-index: -2; border-radius: 50%;
  border: 1px dashed rgba(90, 162, 255, .4); animation: orbit 90s linear infinite;
}
@keyframes orbit { to { transform: rotate(360deg); } }
.portrait {
  display: block; width: 100%; aspect-ratio: 1; padding: 0; border: 0; cursor: pointer; overflow: hidden;
  border-radius: 50%; background: var(--blue); position: relative;
  box-shadow: 0 40px 90px -40px rgba(var(--glow, 0, 91, 187), .7);
  transition: box-shadow .8s var(--ease);
}
/* Five portraits stacked on top of each other; the active one fades in */
.portrait img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%;
  opacity: 0; transition: opacity .7s var(--ease), transform .8s var(--ease);
}
.portrait img.on { opacity: 1; }
.portrait:hover img, .portrait:focus-visible img { transform: scale(1.03); }

.swatches { display: flex; justify-content: center; gap: 10px; margin-top: 30px; }
.swatches button {
  width: 22px; height: 22px; padding: 0; border-radius: 50%; cursor: pointer; background: var(--c);
  border: 2px solid transparent; box-shadow: 0 0 0 1px var(--line); transition: transform .2s var(--ease), border-color .2s;
}
.swatches button:hover { transform: scale(1.2); }
.swatches button.on { border-color: var(--bg); box-shadow: 0 0 0 2px var(--text); }

/* "Now playing" badge */
.badge {
  position: absolute; left: -22px; bottom: 34px; display: flex; align-items: center; gap: 12px;
  padding: 10px 24px 10px 18px; border-radius: 99px; text-align: left; cursor: pointer; line-height: 1.25;
  background: rgba(17, 26, 43, .92); border: 1px solid var(--line); backdrop-filter: blur(8px);
  box-shadow: 0 18px 40px -18px #000; transition: transform .25s var(--ease), border-color .25s;
}
.badge:hover { transform: translateY(-3px) rotate(-1deg); border-color: var(--orange); }
.badge small { display: block; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); }
.badge b { font-family: var(--serif); font-size: 1.05rem; }

/* Equalizer */
.eq { display: inline-flex; align-items: flex-end; gap: 3px; height: 22px; }
.eq i { width: 4px; height: 100%; background: var(--orange); border-radius: 2px; transform-origin: bottom; animation: eq 1.2s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.4s; background: var(--blue-l); }
.eq i:nth-child(3) { animation-delay: -.8s; }
.eq i:nth-child(4) { animation-delay: -.2s; background: var(--blue-l); }
.eq.small { height: 16px; }
@keyframes eq { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }

/* Sparkles (click on the badge) */
.spark {
  position: fixed; z-index: 50; pointer-events: none; color: var(--orange); font-size: 1.1rem;
  animation: spark .9s var(--ease) forwards;
}
.spark:nth-child(3n) { color: var(--blue-l); }
@keyframes spark {
  from { transform: translate(0, 0) scale(.4); opacity: 1; }
  to   { transform: translate(var(--x), var(--y)) scale(1.2) rotate(90deg); opacity: 0; }
}

/* =========================================================
   Panels (passions)
   ========================================================= */
.panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; margin-top: 44px; }
.panel {
  position: relative; overflow: hidden; padding: 30px 28px 32px; border-radius: var(--radius);
  background: linear-gradient(160deg, var(--bg-2), var(--bg));
  border: 1px solid var(--line); transition: transform .35s var(--ease), border-color .3s;
}
.panel::after {                     /* corner glow */
  content: ""; position: absolute; right: -60px; top: -60px; width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 115, 43, .35), transparent 70%); opacity: 0; transition: opacity .4s;
}
.panel.alt::after { background: radial-gradient(circle, rgba(0, 91, 187, .6), transparent 70%); }
.panel:hover { transform: translateY(-8px); border-color: var(--orange); }
.panel.alt:hover { border-color: var(--blue-l); }
.panel:hover::after { opacity: 1; }
.num {
  display: block; font-family: var(--serif); font-size: 4.2rem; line-height: 1; font-weight: 700; margin-bottom: 14px;
  color: transparent; -webkit-text-stroke: 1.5px var(--orange);
}
.panel.alt .num { -webkit-text-stroke-color: var(--blue-l); }
.panel h3 { font-size: 1.7rem; margin-bottom: 10px; }
.panel p { margin: 0; color: var(--muted); font-size: .97rem; }

/* =========================================================
   Tracklist (career)
   ========================================================= */
.tracks { list-style: none; margin: 0; padding: 0; max-width: 900px; }
.side {
  margin: 36px 0 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line);
  color: var(--blue-l); font-size: .8rem; letter-spacing: .16em; text-transform: uppercase;
}
.side:first-child { margin-top: 0; }
.track {
  position: relative; display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: baseline;
  padding: 20px 14px; border-bottom: 1px solid rgba(34, 48, 74, .6); border-radius: 10px;
  transition: background .25s, padding-left .3s var(--ease);
}
.track:hover { background: rgba(22, 34, 58, .7); padding-left: 24px; }
.track .no {
  display: grid; place-items: center; width: 40px; height: 40px; align-self: center;
  color: var(--muted); font-size: .8rem; border: 1px solid var(--line); border-radius: 50%; background: rgba(17, 26, 43, .6);
  transition: color .25s, border-color .25s, background .25s;
}
.track:hover .no { color: #1b0a00; background: var(--orange); border-color: var(--orange); }
.track h3 { font-size: 1.45rem; }
.track p { margin: 4px 0 0; color: var(--muted); font-size: .95rem; max-width: 60ch; }
.yrs { color: var(--orange); font-size: .85rem; white-space: nowrap; }
.track.now { background: linear-gradient(90deg, rgba(255, 115, 43, .14), transparent 70%); border-bottom: 0; }
.track.now::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; background: var(--orange); }
.track.now .no { border-color: var(--orange); }

/* =========================================================
   Posts
   ========================================================= */
.posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 18px; }
.post {
  position: relative; display: block; text-decoration: none; padding: 28px 28px 78px; border-radius: var(--radius);
  background: var(--bg-2); border: 1px solid var(--line); transition: transform .3s var(--ease), border-color .3s, background .3s;
}
.post:hover { transform: translateY(-6px); border-color: var(--blue-l); background: var(--bg-3); }
.tag { color: var(--orange); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.post h3 { font-size: 1.55rem; margin: 10px 0 10px; }
.post p { margin: 0; color: var(--muted); font-size: .95rem; }
/* play button, same as the one on experience.html: the → in the markup is hidden, a triangle is drawn instead */
.arrow {
  position: absolute; right: 22px; bottom: 20px; width: 42px; height: 42px; display: grid; place-items: center;
  font-size: 0; line-height: 1; color: var(--blue-l); border: 1px solid var(--line); border-radius: 50%;
  transition: transform .3s var(--ease), color .3s, background .3s, border-color .3s;
}
.arrow::before {
  content: ""; position: absolute; left: 50%; top: 50%; translate: calc(-50% + 2px) -50%;
  width: 12px; height: 14px; background: currentColor; transition: background .3s;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.post:hover .arrow { transform: scale(1.08); border-color: var(--orange); }
.more { margin-top: 26px; }
.more a { color: var(--blue-l); font-weight: 700; text-decoration: none; }
.more a:hover { color: var(--orange); }

/* =========================================================
   Hello
   ========================================================= */
.hello { position: relative; isolation: isolate; text-align: center; padding-bottom: 120px; }
.hello::before, .hello::after {      /* concentric rings behind "Say hello." */
  content: ""; position: absolute; left: 50%; top: 46%; z-index: -1; border-radius: 50%; pointer-events: none;
  transform: translate(-50%, -50%);
}
.hello::before { width: min(760px, 96vw); aspect-ratio: 1; border: 1px solid var(--line);
  background: radial-gradient(circle, rgba(0, 91, 187, .16), transparent 68%); }
.hello::after { width: min(520px, 70vw); aspect-ratio: 1; border: 1px dashed rgba(255, 115, 43, .3); }
.hello h2 { font-size: clamp(3rem, 10vw, 7rem); }
.hello-text { color: var(--muted); max-width: 52ch; margin: 22px auto 30px; }
.mail {
  display: inline-block; font-family: var(--serif); font-size: clamp(1.5rem, 5.4vw, 3.2rem); text-decoration: none; font-weight: 600;
  padding-bottom: 4px; background: linear-gradient(90deg, var(--blue-l), var(--orange)) no-repeat 0 100% / 100% 3px;
  transition: background-size .35s var(--ease), color .3s;
}
.mail:hover { background-size: 100% 100%; color: #10151f; }
.note { color: var(--muted); font-size: .9rem; margin: 6px 0 24px; }
.social { list-style: none; display: flex; justify-content: center; gap: 22px; padding: 0; margin: 0; }
.social a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line); transition: color .2s, border-color .2s; }
.social a:hover { color: var(--orange); border-color: var(--orange); }

footer { text-align: center; padding: 30px 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }
footer p { margin: 0; }

/* =========================================================
   Reveal on scroll (only when JS is on)
   ========================================================= */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* =========================================================
   Article (blog post)
   ========================================================= */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 30; transform: scaleX(0); transform-origin: left;
  background: linear-gradient(90deg, var(--blue-l), var(--orange));
}
.article-head { max-width: 860px; margin: 0 auto; padding: 72px 24px 24px; }
.back { display: inline-block; color: var(--muted); text-decoration: none; font-size: .85rem; margin-bottom: 36px; transition: color .2s, transform .2s; }
.back:hover { color: var(--orange); transform: translateX(-4px); }
.article-head h1 { font-size: clamp(2.8rem, 8vw, 5.6rem); line-height: .98; font-weight: 700; }
.standfirst { font-family: var(--serif); font-size: clamp(1.2rem, 2.4vw, 1.5rem); line-height: 1.55; color: #cfd8e8; margin: 28px 0 0; max-width: 40ch; }
.standfirst + .standfirst { color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.25rem); margin-top: 18px; }

.article-wrap {
  max-width: 1040px; margin: 0 auto; padding: 40px 24px 40px;
  display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 56px; align-items: start;
}
.toc { position: sticky; top: 92px; }
.toc p { color: var(--orange); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); counter-reset: d; }
.toc a {
  display: block; padding: 6px 0 6px 16px; margin-left: -1px; border-left: 2px solid transparent;
  color: var(--muted); text-decoration: none; font-size: .92rem; transition: color .2s, border-color .2s, padding-left .25s var(--ease);
}
.toc ol > li:not(.end) > a::before { content: counter(d, decimal-leading-zero) "  "; font-family: var(--mono); font-size: .72rem; opacity: .6; }
.toc a:hover { color: var(--text); }
.toc a.active { color: var(--text); border-left-color: var(--orange); padding-left: 22px; }

.article { max-width: 700px; }
.dish { padding: 8px 0 72px; }
.dish .num { display: block; font-family: var(--serif); font-size: 4.6rem; line-height: 1; font-weight: 700; color: transparent; -webkit-text-stroke: 1.5px var(--orange); margin-bottom: 4px; }
.dish .num.alt { -webkit-text-stroke-color: var(--blue-l); }
.dish h2 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.dish p { font-size: 1.1rem; line-height: 1.85; color: #d3dbea; margin: 0 0 1.2em; }
.dish p em { font-style: italic; color: var(--text); background: none; -webkit-background-clip: initial; background-clip: initial; padding: 0; }
.dish h2 em { background: linear-gradient(100deg, var(--blue-l), var(--orange)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* name -> technique chip */
.dish p.tech {
  display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: baseline; font-size: .86rem; line-height: 1.4; color: var(--muted);
  margin: 16px 0 26px; padding: 6px 16px; border: 1px solid var(--line); border-radius: 99px; background: rgba(17, 26, 43, .7);
}
.tech b { color: var(--orange); font-weight: 600; }
.tech i { font-style: normal; color: var(--blue-l); }

.dish figure { margin: 2em -24px; }
.dish figure a { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 70px -40px #000; }
.dish figure img { width: 100%; height: auto; transition: transform .8s var(--ease); }
.dish figure a:hover img { transform: scale(1.03); }

/* ingredients / technique callout */
.boemboe {
  position: relative; margin: 2em 0 0; padding: 38px 26px 10px; border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(0, 91, 187, .22), rgba(17, 26, 43, .6) 60%); border: 1px solid rgba(90, 162, 255, .28);
}
.boemboe::before {
  content: "in de pan"; position: absolute; top: 12px; left: 26px; font-family: var(--mono); font-size: .72rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--orange);
}
.boemboe p { font-size: 1.02rem; }

.closing h2 { margin-bottom: 24px; }
.cheat { width: 100%; border-collapse: collapse; margin: 2.2em 0; font-size: .98rem; }
.cheat caption { text-align: left; color: var(--orange); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; padding-bottom: 10px; }
.cheat th, .cheat td { text-align: left; padding: 12px 12px; border-bottom: 1px solid var(--line); }
.cheat thead th { color: var(--muted); font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.cheat tbody th { font-family: var(--serif); font-size: 1.1rem; font-weight: 600; }
.cheat td.mono { color: var(--orange); font-size: .9rem; }
.cheat tbody tr { transition: background .2s; }
.cheat tbody tr:hover { background: rgba(22, 34, 58, .7); }
.dish p.selamat { font-family: var(--serif); font-size: 1.6rem; color: var(--text); margin-top: 1.4em; }

.reply { margin: 24px 0 80px; padding: 34px 30px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-2); }
.reply h3 { font-size: 1.6rem; margin-bottom: 8px; }
.reply p { color: var(--muted); margin: 0 0 20px; }
.reply .btn { margin-right: 8px; }

/* --- extras for other posts --- */
.toc ol > li { counter-increment: d; }
.toc ol > li.end { counter-increment: none; }
.toc ul { list-style: none; margin: 0 0 6px; padding: 0 0 0 16px; }
.toc ul a { font-size: .82rem; padding: 3px 0 3px 12px; }
.toc ul a::before { content: none !important; }
.toc ul a.active { padding-left: 16px; }

.dish h3.sub { font-size: 1.55rem; margin: 1.6em 0 .6em; scroll-margin-top: 90px; }
.dish h3.sub::before { content: "# "; color: var(--orange); font-family: var(--mono); font-size: .9em; }

.dish figure.narrow { max-width: 420px; margin: 2em auto; }
.dish figcaption { text-align: center; color: var(--muted); font-size: .85rem; margin-top: 10px; }

/* photo rows (three portrait photos side by side) */
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 2em -24px; }
.photos a { display: block; aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); }
.photos img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.photos a:hover img { transform: scale(1.05); }

/* photo collage: a few photos of different shapes, a little crooked, that straighten up on hover */
/* photos loosely tossed on a table: each <a> sets --x --y (left/top %), --w (width %), --r (rotation), --z */
.collage { position: relative; aspect-ratio: 1.6 / 1; margin: 1.6em -24px 2.6em; }
.collage a {
  position: absolute; left: var(--x); top: var(--y); width: var(--w); z-index: var(--z, 1);
  display: block; padding: 0; background: #ece6dc; border: 6px solid #ece6dc; border-radius: 4px;
  transform: rotate(var(--r, 0deg)); cursor: zoom-in;
  box-shadow: 0 18px 40px -14px rgba(0,0,0,.75), 0 2px 6px rgba(0,0,0,.4);
  transition: transform .45s var(--ease), box-shadow .45s;
}
.collage a:hover, .collage a:focus-visible { transform: rotate(0) scale(1.06); z-index: 5; box-shadow: 0 34px 60px -18px #000; }
.collage img { display: block; width: 100%; height: auto; border-radius: 1px; }

/* related posts at the bottom of a post */
.related { max-width: 1040px; margin: 0 auto; padding: 24px 24px 20px; }
.related h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 26px; }
.neighbours { display: flex; justify-content: space-between; gap: 20px; margin-top: 30px; font-size: .82rem; }
.neighbours a { color: var(--blue-l); text-decoration: none; max-width: 47%; }
.neighbours a:hover { color: var(--orange); }
.neighbours .next { margin-left: auto; text-align: right; }

/* experience: a timeline of expandable positions */
.exp-tools { margin-top: 22px; }
.exp { max-width: 900px; margin: 0 auto; padding: 56px 24px 8px; }
.exp h2 { font-size: clamp(2rem, 4.6vw, 3.2rem); }
.exp .section-lead { margin: 14px 0 0; }
.jobs { list-style: none; margin: 34px 0 0; padding: 0 0 0 30px; border-left: 2px solid var(--line); }
.job { position: relative; margin: 0 0 12px; }
.job::before {
  content: ""; position: absolute; left: -39px; top: 24px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--blue-l); transition: background .3s, border-color .3s;
}
.job:hover::before, .job details[open] ~ *, .job.now::before { border-color: var(--orange); }
.job.now::before { background: var(--orange); box-shadow: 0 0 0 6px rgba(255,115,43,.18); }
.job details { border: 1px solid var(--line); border-radius: 22px; background: rgba(17,26,43,.55); transition: background .3s, border-color .3s; }
.job details[open], .job details:hover { background: rgba(22,34,58,.8); border-color: #2d4166; }
.job summary { list-style: none; cursor: pointer; display: flex; gap: 14px 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 18px 56px 18px 22px; position: relative; }
.job summary::-webkit-details-marker { display: none; }
/* play / pause button: closed = play, open = pause */
.job summary::before {
  content: ""; position: absolute; right: 16px; top: 50%; translate: 0 -50%; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line); transition: background .3s, border-color .3s, transform .3s var(--ease);
}
.job summary::after {
  content: ""; position: absolute; right: 29px; top: 50%; translate: 1px -50%; width: 10px; height: 12px;
  background: var(--blue-l); clip-path: polygon(0 0, 100% 50%, 0 100%); transition: background .3s;
}
.job summary:hover::before { border-color: var(--orange); transform: scale(1.08); }
.job details[open] summary::before { background: var(--blue); border-color: var(--blue); }
.job details[open] summary::after {
  translate: 0 -50%; background: #fff;
  clip-path: polygon(0 0, 34% 0, 34% 100%, 0 100%, 0 0, 66% 0, 100% 0, 100% 100%, 66% 100%, 66% 0);
}
.job .meta { display: inline-flex; align-items: center; gap: 16px; }
.job .eq { height: 18px; }
.job .eq i { width: 3px; animation-play-state: paused; }
.job details[open] .eq i { animation-play-state: running; }
.job.now .eq i { animation-play-state: running; }
.job .who h3 { font-size: 1.4rem; }
.job .role { display: block; color: var(--muted); font-size: .95rem; margin-top: 2px; }
.job .yrs { color: var(--orange); font-size: .82rem; letter-spacing: .04em; }
.job details p { margin: 0; padding: 0 22px 16px; color: #cfd8e8; max-width: 66ch; }
.job details p:last-child { padding-bottom: 22px; }

.edu-text { margin-top: 26px; max-width: 66ch; }
.edu-text p { margin: 0 0 1.1em; color: #d3dbea; font-size: 1.1rem; line-height: 1.8; }
.more a + a { margin-left: 26px; }

/* the current position stays pinned below the nav while older ones scroll away underneath it */
@media (min-width: 700px) and (min-height: 560px) {
  .job.now { position: sticky; top: 76px; z-index: 3; }
  .job.now::after { content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: -8px; height: 12px; background: var(--bg); }
  .job.now details { background: #111a2d; box-shadow: 0 22px 36px -24px #000; }
  .job.now details:hover, .job.now details[open] { background: #14203a; }
}

/* quotes wall: screenshots of kind words, a little crooked, in columns */
.quotes { max-width: 1040px; margin: 0 auto; padding: 8px 24px 40px; column-count: 2; column-gap: 30px; }
.quotes a {
  display: block; break-inside: avoid; margin: 0 0 26px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line);
  background: #fff; cursor: zoom-in; box-shadow: 0 22px 50px -26px #000;
  transform: rotate(var(--r, 0deg)); transition: transform .45s var(--ease), box-shadow .45s;
}
.quotes a:hover, .quotes a:focus-visible { transform: rotate(0) scale(1.03); box-shadow: 0 34px 60px -24px #000; }
.quotes img { display: block; width: 100%; height: auto; }
.quotes-end { padding-top: 0; }
@media (max-width: 700px) { .quotes { column-count: 1; } .quotes a { transform: none; } }

/* lightbox: enlarge a photo inside the page */
.lb { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px; background: rgba(6,9,16,.92); backdrop-filter: blur(6px); opacity: 0; transition: opacity .25s; }
.lb[hidden] { display: none; }
.lb.open { opacity: 1; }
.lb figure { margin: 0; max-width: min(1100px, 100%); text-align: center; }
.lb img { max-width: 100%; max-height: 80vh; width: auto; height: auto; border-radius: 6px; box-shadow: 0 40px 90px -20px #000; transform: scale(.96); transition: transform .3s var(--ease); }
.lb.open img { transform: none; }
.lb figcaption { margin-top: 14px; color: #c9d2e3; font-size: .95rem; }
.lb button { position: absolute; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.08); color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.lb button:hover { background: var(--blue); }
.lb .lb-x { top: 18px; right: 18px; }
.lb .lb-prev { left: 18px; top: 50%; translate: 0 -50%; }
.lb .lb-next { right: 18px; top: 50%; translate: 0 -50%; }
@media (max-width: 600px) { .lb .lb-prev, .lb .lb-next { top: auto; bottom: 18px; translate: none; } .lb .lb-prev { left: 24px; } .lb .lb-next { right: 24px; } }

/* lists inside an article */
.dish ul, .dish ol { margin: 0 0 1.4em; padding-left: 1.4em; font-size: 1.1rem; line-height: 1.8; color: #d3dbea; }
.dish li { margin: 0 0 .55em; padding-left: .3em; }
.dish li::marker { color: var(--orange); }
.dish ol li::marker { font-family: var(--mono); font-size: .85em; }
.dish li b { color: var(--text); }

/* quotes (a TV intro, a saying, ...) */
.dish blockquote {
  position: relative; margin: 2em 0; padding: 26px 30px 10px 34px; border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 115, 43, .12), rgba(17, 26, 43, .6) 60%); border: 1px solid var(--line);
}
.dish blockquote::before {            /* orange bar on the left, rounded like the rest */
  content: ""; position: absolute; left: 14px; top: 24px; bottom: 24px; width: 3px; border-radius: 3px; background: var(--orange);
}
.dish blockquote p { font-family: var(--serif); font-style: italic; font-size: 1.12rem; line-height: 1.75; color: var(--text); margin: 0 0 1em; }

/* embedded video, always 16:9 and never wider than the column */
.video { position: relative; aspect-ratio: 16 / 9; margin: 2em 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #070c15; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* links to posts that have not been moved to the new site yet */
.soon { border-bottom: 1px dotted var(--muted); cursor: help; }

/* code blocks */
.code {
  position: relative; margin: 1.6em -24px; border-radius: var(--radius); background: #070c15; border: 1px solid var(--line);
  box-shadow: 0 30px 70px -45px #000;
}
.code-bar {
  display: flex; align-items: center; justify-content: space-between; padding: 8px 14px 8px 18px;
  border-bottom: 1px solid var(--line); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.code-bar .dots { display: inline-flex; gap: 6px; margin-right: 12px; vertical-align: middle; }
.code-bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.code-bar .dots i:nth-child(1) { background: var(--orange); }
.code-bar .dots i:nth-child(2) { background: var(--blue-l); }
.code-copy {
  font: inherit; letter-spacing: inherit; text-transform: inherit; color: var(--muted); background: transparent;
  border: 1px solid var(--line); border-radius: 99px; padding: 3px 12px; cursor: pointer; transition: color .2s, border-color .2s;
}
.code-copy:hover { color: var(--orange); border-color: var(--orange); }
.code pre { margin: 0; padding: 16px 20px 20px; overflow-x: auto; font: .86rem/1.65 var(--mono); color: #d3dbea; tab-size: 2; }
.code code { font: inherit; }
.tk-k { color: #5aa2ff; }
.tk-f { color: #ffd08a; }
.tk-s { color: #ff9a62; }
.tk-n { color: #d6a8ff; }
.tk-v { color: #7ee0c3; }
.tk-c { color: #6b7a94; font-style: italic; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 960px) {
  .photos, .code, .collage { margin-left: 0; margin-right: 0; }
  .article-wrap { grid-template-columns: 1fr; gap: 0; }
  .toc { display: none; }
  .dish figure { margin-left: 0; margin-right: 0; }
}
@media (max-width: 600px) {
  .collage { aspect-ratio: 1 / .92; }
  .collage a { width: calc(var(--w) * 1.35); left: min(var(--x), calc(98% - var(--w) * 1.35)); border-width: 4px; }
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 56px; padding-top: 48px; min-height: 0; }
  .hero-art { max-width: 340px; }
  .badge { left: 8px; }
  .nav nav a:not(.pill) { display: none; }
  .section { padding-top: 92px; }
  .track { grid-template-columns: 44px 1fr; }
  .track .yrs { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .eq i { transform: scaleY(.7); }
}

/* =========================================================
   Blog index
   ========================================================= */
.posts .post.featured { grid-column: 1 / -1; }
.year-group[hidden] { display: none; }
.nav nav a[aria-current="page"] { color: var(--text); }
.index-head { max-width: var(--max); margin: 0 auto; padding: 72px 24px 8px; }
.index-head h1 { font-size: clamp(3rem, 9vw, 6.4rem); line-height: .96; font-weight: 700; }
.index-head .section-lead { margin-bottom: 0; }
.feed-url { margin: 22px 0 0; padding: 14px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg-2); color: var(--blue-l); font: .95rem var(--mono); word-break: break-all; user-select: all; }
.rss { margin: 16px 0 0; font-size: .82rem; }
.rss a { display: inline-flex; align-items: center; gap: 8px; color: var(--blue-l); text-decoration: none; padding: 7px 14px 7px 12px; border: 1px solid var(--line); border-radius: 999px; transition: color .25s, border-color .25s; }
.rss a:hover { color: var(--orange); border-color: var(--orange); }

/* Sticky bar under the nav: full width background, content aligned with the page column */
.filters {
  position: sticky; top: 68px; z-index: 15; margin-top: 28px; display: grid; gap: 10px;
  padding: 14px max(24px, calc((100% - var(--max)) / 2 + 24px));
  background: rgba(10, 15, 26, .82); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
/* Search box: right of the two chip rows on desktop, on top of them on mobile */
.search input {
  width: 100%; height: 44px; padding: 0 18px 0 46px; border-radius: 99px; border: 1px solid var(--line);
  color: var(--text); font: inherit; font-size: .95rem; background-color: rgba(17, 26, 43, .8);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2398a6bd' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 21 21'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 16px 50%;
  transition: border-color .2s, background-color .2s;
}
.search input::placeholder { color: var(--muted); }
.search input:hover { border-color: var(--blue-l); }
.search input:focus { outline: none; border-color: var(--orange); background-color: rgba(17, 26, 43, 1); box-shadow: 0 0 0 3px rgba(255, 115, 43, .25); }
@media (min-width: 861px) {
  .filters { grid-template-columns: minmax(0, 1fr) minmax(240px, 340px); column-gap: 28px; }
  .search { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
}

.post .snippet { margin: 14px 0 0; color: var(--muted); font-size: .88rem; line-height: 1.55; }
.post .snippet::before { content: "…"; }
.post .snippet::after { content: "…"; }
mark { background: rgba(255, 115, 43, .3); color: var(--text); border-radius: 5px; padding: 0 3px; }
.index-count .q { color: var(--orange); }

.filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filter-row .label { color: var(--muted); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; min-width: 84px; }
.chip {
  cursor: pointer; font-family: var(--mono); font-size: .82rem; color: var(--muted); background: transparent;
  border: 1px solid var(--line); border-radius: 99px; padding: 5px 14px; transition: color .2s, border-color .2s, background .2s;
}
.chip:hover { color: var(--text); border-color: var(--blue-l); }
.chip[aria-pressed="true"] { color: #1b0a00; background: var(--orange); border-color: var(--orange); font-weight: 700; }
.chip small { opacity: .65; margin-left: 4px; }

.index-list { max-width: var(--max); margin: 0 auto; padding: 36px 24px 120px; }
.index-count { color: var(--muted); font-size: .85rem; margin: 0 0 22px; }
.year { color: var(--blue-l); font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; margin: 44px 0 16px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.year:first-of-type { margin-top: 0; }

.post.featured::before {
  content: ""; position: absolute; right: -90px; top: -90px; width: 300px; height: 300px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 115, 43, .28), transparent 70%);
}
.post.featured { overflow: hidden; display: grid; grid-template-columns: 1fr; padding: 40px 40px 84px; margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(0, 91, 187, .28), var(--bg-2) 60%); border-color: rgba(90, 162, 255, .35); }
.post.featured h3 { font-size: clamp(2rem, 4.6vw, 3.2rem); max-width: 22ch; }
.post.featured p { font-size: 1.05rem; max-width: 62ch; }
.post.featured .arrow { right: 34px; bottom: 28px; }
.post .when { display: block; margin-top: 16px; color: var(--muted); font-size: .78rem; }
.post[hidden] { display: none; }

.empty { color: var(--muted); padding: 60px 0; text-align: center; }
.empty h2 { font-size: 2rem; margin-bottom: 8px; color: var(--text); }

@media (max-width: 860px) {
  .index-head { padding-top: 48px; }
  .post.featured { padding: 30px 26px 60px; }
  .filters { padding-top: 8px; padding-bottom: 8px; gap: 6px; }
  .search input { height: 38px; font-size: 1rem; }
  .filter-row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -24px; padding: 0 24px; }
  .filter-row::-webkit-scrollbar { display: none; }
  .filter-row .label { min-width: 0; flex-shrink: 0; }
  .chip { flex-shrink: 0; white-space: nowrap; }
}
