/* Layout: a real portfolio grid. Top bar, a big name, the album (photo sleeve + a canvas-drawn record), then hairline-ruled rows with the section label on the left and content on the right. Tracks A1 to B2. One accent (label blue) plus sticker yellow. */
:root {
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --ink: #101217;
  --muted: #5D6270;
  --faint: #8A8F9C;
  --line: #E4E6EA;
  --line-soft: #EFF0F3;
  --accent: #2340D9;
  --accent-ink: #FFFFFF;
  --sticker: #FFD84D;
  --sticker-ink: #1E1A08;
  --busy-tint: #E8EBF0;
  --busy-bar: #8C93A1;
  --lunch-tint: #FFEFAE;
  --lunch-bar: #D9A800;
  --paper: #F2F2EE;
  --cal-bg: #FFFFFF;
  --cal-head: #F4F5F8;
  --cal-line: #D6D9E0;
  --cal-line-soft: #E7E9EE;
  --lunch-ink: #574506;
  --good: #17845A;
  --bad: #C7381F;
  --shadow: rgba(16, 18, 23, 0.18);

  --sans: "Libre Franklin", "Franklin Gothic", "Helvetica Neue", Arial, system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E0F13;
    --surface: #15171D;
    --ink: #EDEEF2;
    --muted: #A0A5B2;
    --faint: #6E7383;
    --line: #262832;
    --line-soft: #1C1E26;
    --paper: #17181D;
    --cal-bg: #15171D;
    --cal-head: #1A1C23;
    --cal-line: #2C2F39;
    --cal-line-soft: #22242C;
    --accent: #8095FF;
    --accent-ink: #0B0F25;
    --sticker: #F2D24F;
    --sticker-ink: #1E1A08;
    --busy-tint: #1C1F28;
    --busy-bar: #575D6D;
    --lunch-tint: #352E16;
    --lunch-bar: #C9A227;
    --lunch-ink: #F2E3A6;
    --good: #3FCB8C;
    --bad: #FF7A5E;
    --shadow: rgba(0, 0, 0, 0.55);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0E0F13;
  --surface: #15171D;
  --ink: #EDEEF2;
  --muted: #A0A5B2;
  --faint: #6E7383;
  --line: #262832;
  --line-soft: #1C1E26;
  --paper: #17181D;
  --cal-bg: #15171D;
  --cal-head: #1A1C23;
  --cal-line: #2C2F39;
  --cal-line-soft: #22242C;
  --accent: #8095FF;
  --accent-ink: #0B0F25;
  --sticker: #F2D24F;
  --sticker-ink: #1E1A08;
  --busy-tint: #1C1F28;
  --busy-bar: #575D6D;
  --lunch-tint: #352E16;
  --lunch-bar: #C9A227;
  --lunch-ink: #F2E3A6;
  --good: #3FCB8C;
  --bad: #FF7A5E;
  --shadow: rgba(0, 0, 0, 0.55);
  color-scheme: dark;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.6;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--accent); color: var(--accent-ink); }
.wrap { max-width: 1080px; margin: 0 auto; }
[hidden] { display: none !important; }
p { margin: 0; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
a { color: inherit; text-decoration: underline; text-decoration-color: var(--line); text-decoration-thickness: 1.5px; text-underline-offset: 4px; transition: text-decoration-color 0.2s, color 0.2s; }
a:hover { text-decoration-color: currentColor; }
a:focus-visible, button:focus-visible, .deck:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}
.mono { font-family: var(--sans); font-weight: 600; font-size: 0.7rem; letter-spacing: 0.09em; text-transform: uppercase; font-variant-numeric: tabular-nums; }

/* Top bar */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 21; background: var(--bg); }
.topbar {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: var(--bg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-block: 14px;
  font-size: 0.92rem;
  transition: box-shadow 0.2s;
}
.topbar.scrolled { box-shadow: 0 1px 0 var(--line); }
.topbar .me { font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.mini-rec { display: block; width: 26px; height: 26px; border-radius: 50%; flex: none; will-change: transform; }
.row { scroll-margin-top: 72px; }
.topbar nav { display: flex; align-items: center; gap: 22px; }
.topbar nav a { text-decoration: none; color: var(--muted); }
.topbar nav a:hover { color: var(--ink); }
.clock { color: var(--faint); font-variant-numeric: tabular-nums; }
.theme { background: none; border: 0; padding: 0; color: var(--muted); cursor: pointer; }
.theme:hover { color: var(--ink); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 48px;
  align-items: end;
  padding-block: 56px 88px;
}
.hero-text { min-width: 0; display: flex; flex-direction: column; gap: 22px; }
h1 {
  font-weight: 800;
  font-size: clamp(3.2rem, 8.6vw, 6.4rem);
  line-height: 0.88;
  letter-spacing: -0.035em;
}
.role { font-size: 1.35rem; font-weight: 500; line-height: 1.3; letter-spacing: -0.01em; }
.role span { color: var(--muted); }
.bio { display: flex; flex-direction: column; gap: 12px; max-width: 34em; color: var(--muted); }
.bio strong { color: var(--ink); font-weight: 500; }
.reach { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.reach a { font-weight: 700; font-size: 1.05rem; color: var(--ink); text-decoration-color: var(--accent); }
.copy {
  background: none; border: 0; padding: 0;
  font: inherit; color: var(--faint);
  cursor: pointer;
}
.copy:hover { color: var(--ink); }

/* Album */
.album { margin: 0; justify-self: end; display: flex; flex-direction: column; gap: 12px; width: 400px; max-width: 100%; }
.ad {
  background: var(--paper);
  border: 1.5px solid var(--ink);
  padding: 12px 18px 16px;
  display: flex; flex-direction: column; gap: 10px;
}
.ad-top {
  display: flex; justify-content: space-between; gap: 12px;
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 8px;
  color: var(--ink);
}
.ad-title {
  font-weight: 800;
  font-size: clamp(2.1rem, 4.4vw, 2.8rem);
  line-height: 0.88;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.ad-foot {
  border-top: 1.5px solid var(--ink);
  margin-top: 12px;
  padding-top: 10px;
  display: flex; flex-direction: column; gap: 2px;
}
.ad-avail { font-weight: 800; font-size: 1.02rem; letter-spacing: -0.01em; }
.ad-formats { color: var(--muted); }
.ad-formats a { color: inherit; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.ad-formats a:hover { color: var(--ink); }
.reach a.cv { font-weight: 500; font-size: 0.9rem; text-decoration: none; align-self: center; }
.deck { position: relative; width: 100%; aspect-ratio: 392 / 300; outline: none; }
.sleeve {
  position: absolute;
  z-index: 2;
  left: 0; top: 0;
  width: 76.5%;
  aspect-ratio: 1;
  background: #222;
  box-shadow: 0 1px 1px rgba(0,0,0,0.12), 0 24px 40px -22px var(--shadow);
}
.sleeve img { display: block; width: 100%; height: 100%; object-fit: cover; }
.record {
  position: absolute;
  z-index: 1;
  top: 3%;
  left: 0;
  width: 70.5%;
  aspect-ratio: 1;
  transform: translateX(26%);
  transition: transform 0.8s cubic-bezier(.2,.75,.2,1);
  border-radius: 50%;
  overflow: hidden;
}
.record canvas { display: block; width: 100%; height: 100%; border-radius: 50%; }
.sheen {
  position: absolute; inset: 0;
  border-radius: 50%;
  pointer-events: none;
  background: conic-gradient(from 300deg, rgba(255,255,255,0) 0deg, rgba(255,255,255,0.14) 26deg, rgba(255,255,255,0) 58deg, rgba(255,255,255,0) 176deg, rgba(255,255,255,0.09) 206deg, rgba(255,255,255,0) 238deg);
  -webkit-mask: radial-gradient(circle, transparent 0 35%, #000 36%);
  mask: radial-gradient(circle, transparent 0 35%, #000 36%);
}
.deck:hover .record, .deck:focus-visible .record { transform: translateX(40%); }
.deck:hover canvas, .deck:focus-visible canvas { animation: spin 1.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.spin { width: 100%; height: 100%; border-radius: 50%; will-change: transform; }
.record canvas.scratch, .deck:hover .record canvas.scratch { animation: scratch 0.55s ease-in-out; }
@keyframes scratch {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(-55deg); }
  50% { transform: rotate(20deg); }
  75% { transform: rotate(-35deg); }
  100% { transform: rotate(0deg); }
}

.hype {
  position: absolute;
  z-index: 3;
  left: -10px;
  bottom: 12px;
  max-width: 132px;
  background: var(--sticker);
  color: var(--sticker-ink);
  padding: 8px 12px 9px;
  border-radius: 2px;
  box-shadow: inset 0 0 0 1.5px var(--sticker-ink), inset 0 0 0 3.5px var(--sticker), inset 0 0 0 4.5px var(--sticker-ink), 0 3px 6px rgba(0,0,0,0.3);
  transform: rotate(-4deg);
  line-height: 1.05;
}
.hype span { display: block; font-size: 0.52rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.hype span { white-space: nowrap; }
.hype b { display: block; font-weight: 800; font-size: 0.86rem; letter-spacing: -0.02em; margin-top: 3px; text-wrap: balance; }
.album figcaption { color: var(--muted); font-size: 0.85rem; line-height: 1.45; }

/* Rows */
.row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px 40px;
  border-top: 1px solid var(--line);
  padding-block: 28px 76px;
}
.row-label { display: flex; flex-direction: column; gap: 6px; }
.track { color: var(--accent); }
h2 { font-size: 1.12rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }
.row-body { min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.lead { font-size: 1.3rem; line-height: 1.45; letter-spacing: -0.01em; max-width: 30em; }

.skills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.skills div { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.skills h3 { font-size: 1rem; font-weight: 700; }
.skills p { color: var(--muted); }
.tools { color: var(--muted); font-size: 0.92rem; padding-top: 4px; }
.tools .mono { color: var(--faint); margin-right: 10px; }

/* Calendar game */
.game { position: relative; display: flex; flex-direction: column; gap: 16px; }
.game-intro { color: var(--muted); max-width: 40em; }
.upnext {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px;
  padding: 12px 16px 12px 14px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
}
.upnext-main { min-width: 0; }
.upnext .mono { color: var(--faint); }
.upnext-title { font-weight: 700; font-size: 1.08rem; line-height: 1.3; }
.upnext-rule { color: var(--muted); font-size: 0.92rem; }
.progress { display: flex; gap: 5px; }
.progress i { width: 18px; height: 4px; border-radius: 2px; background: var(--line); }
.progress i.on { background: var(--accent); }
.progress i { width: 12px; }
.upnext-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.timer { color: var(--muted); font-size: 0.8rem; }
.ondeck { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; color: var(--muted); font-size: 0.88rem; margin-top: -6px; }
.ondeck:empty { display: none; }
.ondeck b { color: var(--ink); font-weight: 600; }
.ondeck .mono { color: var(--faint); }
.curveball {
  border-radius: 8px;
  padding: 12px 14px;
  background: color-mix(in srgb, var(--bad) 9%, var(--surface));
  border-left: 3px solid var(--bad);
  display: flex; flex-direction: column; gap: 2px;
}
.curveball:not([hidden]) { animation: pop 0.45s cubic-bezier(.2,.9,.3,1.25) both; }
.curveball .mono { color: var(--bad); }
.event.lock.arrive { animation: drop 0.6s cubic-bezier(.25,.9,.35,1.2) both; border-left-color: var(--bad); }

.cal-wrap { overflow-x: auto; }
.cal {
  display: grid;
  grid-template-columns: 52px repeat(5, minmax(0, 1fr));
  grid-template-rows: 34px repeat(8, 50px);
  border: 1px solid var(--cal-line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--cal-bg);
  min-width: 0;
}
.corner { border-bottom: 1px solid var(--cal-line); background: var(--cal-head); }
.dayhead {
  background: var(--cal-head);
  border-bottom: 1px solid var(--cal-line);
  border-left: 1px solid var(--cal-line);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  text-transform: uppercase;
}
.time {
  color: var(--muted);
  text-align: right;
  padding: 4px 8px 0 0;
  font-variant-numeric: tabular-nums;
}
.slot {
  appearance: none;
  min-width: 0;
  border: 0;
  border-left: 1px solid var(--cal-line);
  border-top: 1px solid var(--cal-line-soft);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.15s;
}
.slot.top { border-top: 0; }
.slot:hover, .slot.ghost { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.slot.shake { animation: shake 0.36s ease; background: color-mix(in srgb, var(--bad) 14%, transparent); }
.event {
  z-index: 1;
  pointer-events: none;
  margin: 3px 4px;
  border-radius: 5px;
  padding: 4px 7px;
  font-size: 0.74rem;
  line-height: 1.2;
  overflow: hidden;
  overflow-wrap: anywhere;
  display: flex; flex-direction: column; gap: 1px;
}
.event b { font-weight: 700; }
.event span { opacity: 0.75; font-size: 0.68rem; }
.event.lock { background: var(--busy-tint); border-left: 3px solid var(--busy-bar); color: var(--muted); }
.event.lunch { background: var(--lunch-tint); border-left: 3px solid var(--lunch-bar); color: var(--lunch-ink); }
.event.placed {
  background: color-mix(in srgb, var(--accent) 18%, var(--cal-bg));
  border-left: 3px solid var(--accent);
  color: var(--ink);
  animation: drop 0.5s cubic-bezier(.25,.9,.35,1.2) both;
}
.event.placed.cheer { animation: cheer 0.55s ease both; animation-delay: var(--delay, 0s); }
@keyframes drop {
  0% { transform: translateY(calc(var(--drop, 60px) * -1)); opacity: 0.2; }
  75% { transform: translateY(2px); opacity: 1; }
  100% { transform: none; opacity: 1; }
}
@keyframes cheer {
  0% { transform: none; }
  40% { transform: translateY(-6px); box-shadow: 0 8px 14px -8px var(--shadow); }
  100% { transform: none; }
}
@keyframes shake {
  0%, 100% { transform: none; }
  20% { transform: translateX(-4px); }
  40% { transform: translateX(4px); }
  60% { transform: translateX(-2px); }
  80% { transform: translateX(2px); }
}
.upnext.bump { animation: bump 0.35s ease; }
@keyframes bump { from { transform: translateY(-5px); opacity: 0.4; } to { transform: none; opacity: 1; } }
.win:not([hidden]) { animation: pop 0.45s cubic-bezier(.2,.9,.3,1.25) both; }
@keyframes pop { from { transform: scale(0.94); opacity: 0; } to { transform: none; opacity: 1; } }
.confetti { position: absolute; inset: 0; pointer-events: none; z-index: 5; }

.game-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 16px; }
.msg { font-weight: 500; min-height: 1.6em; }
.msg.bad { color: var(--bad); }
.msg.good { color: var(--good); }
.btn {
  font: inherit; font-weight: 500; font-size: 0.9rem;
  background: transparent; color: var(--ink);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
}
.btn:hover { border-color: var(--ink); }

.win {
  background: var(--sticker);
  color: var(--sticker-ink);
  border-radius: 8px;
  padding: 18px 20px;
  display: flex; flex-direction: column; gap: 4px; align-items: flex-start;
}
.win-big { font-weight: 800; font-size: 1.45rem; line-height: 1.15; letter-spacing: -0.02em; }
.win .btn { color: var(--sticker-ink); border-color: var(--sticker-ink); margin-top: 10px; }

/* Work */
.jobs { list-style: none; margin: -14px 0 0; padding: 0; }
.jobs li {
  display: grid;
  grid-template-columns: minmax(0, 12rem) minmax(0, 17rem) minmax(0, 1fr);
  gap: 4px 24px;
  padding: 14px 10px;
  margin-inline: -10px;
  border-radius: 8px;
  border-top: 1px solid var(--line-soft);
  transition: background-color 0.2s;
}
.jobs li:first-child { border-top-color: transparent; }
.jobs li:hover { background: var(--line-soft); }
.jobs li:hover, .jobs li:hover + li { border-top-color: transparent; }
.co { font-weight: 700; }
.jobs .r { color: var(--muted); }
.jobs .n { color: var(--muted); min-width: 0; }

/* Side B */
.flip {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 40px;
  padding-bottom: 28px;
}
.flip div { display: flex; align-items: center; gap: 10px; color: var(--faint); }
.mini {
  width: 22px; height: 22px; border-radius: 50%; flex: none;
  background: radial-gradient(circle, var(--bg) 0 7%, var(--accent) 8% 32%, #111 34%);
}

/* Résumé viewer */
.cv-dialog {
  width: min(880px, calc(100vw - 32px)); max-width: none;
  max-height: calc(100dvh - 32px);
  padding: 0; border: 1px solid var(--line); border-radius: 10px;
  background: var(--bg); color: var(--ink);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.45);
  overflow: hidden;
}
.cv-dialog[open] { display: flex; flex-direction: column; }
.cv-dialog::backdrop { background: rgba(10, 12, 16, 0.55); }
.cv-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 16px; border-bottom: 1px solid var(--line); }
.cv-head .mono { margin: 0 auto 0 0; color: var(--muted); }
.cv-head .btn { text-decoration: none; font-size: 0.85rem; white-space: nowrap; }
.cv-head .btn[hidden] { display: none; }
.cv-note { margin: 14px 2px 2px; font-size: 0.85rem; color: var(--muted); }
.cv-note a { color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: 3px; }
.cv-body { overflow: auto; padding: 16px; background: var(--paper); overscroll-behavior: contain; }
.cv-body img { display: block; width: 100%; height: auto; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,0.1), 0 12px 30px -14px rgba(0,0,0,0.35); }
body:has(.cv-dialog[open]) { overflow: hidden; }
@media (max-width: 520px) {
  .cv-dialog { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); }
  .cv-body { padding: 8px; }
}

/* Trivia */
.trivia { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.trivia li { display: flex; flex-direction: column; gap: 6px; padding-block: 16px; border-top: 1px solid var(--line-soft); min-width: 0; }
.trivia .q { font-weight: 500; }
.trivia .q .mono { color: var(--accent); margin-right: 8px; }
.answer {
  appearance: none; background: none; border: 0; padding: 0;
  font: inherit; font-weight: 700; font-size: 1.05rem;
  color: var(--faint);
  text-align: left; cursor: pointer;
  overflow: hidden; max-width: 100%;
  align-self: flex-start;
}
.answer span { display: inline-block; transform: rotate(180deg); transition: transform 0.45s cubic-bezier(.2,.8,.2,1), color 0.3s; }
.answer:hover span { color: var(--muted); }
.answer[aria-pressed="true"] span { transform: none; color: var(--accent); }
.trivia .aside { margin: 0; font-size: 0.86rem; line-height: 1.45; color: var(--muted); opacity: 0; transform: translateY(-4px); transition: opacity 0.35s 0.2s, transform 0.35s 0.2s; }
.answer[aria-pressed="true"] + .aside { opacity: 1; transform: none; }

/* Bonus track: Sarah Party */
.party { display: block; width: 420px; max-width: 100%; text-decoration: none; color: var(--ink); background: var(--paper); border: 1.5px solid var(--ink); }
.party-screen { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: #0D0D10; }
.party-screen img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s cubic-bezier(.2,.8,.2,1); }
.party:hover .party-screen img, .party:focus-visible .party-screen img { transform: scale(1.04); }
.party-sticker {   /* one line along the front of the stage, under everyone's feet */
  position: absolute; z-index: 2; bottom: 3%; left: 50%;
  background: var(--sticker); color: var(--sticker-ink);
  font-size: 0.6rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1; white-space: nowrap;
  padding: 5px 10px;
  box-shadow: inset 0 0 0 1.5px var(--sticker-ink), 0 2px 5px rgba(0,0,0,0.4);
  transform: translateX(-50%) rotate(-3deg);
}
.party-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; border-top: 1.5px solid var(--ink); }
.party-foot .mono { color: var(--muted); }
.party-url { font-weight: 800; white-space: nowrap; transition: color 0.2s; }
.party:hover .party-url { color: var(--accent); }
@media (max-width: 400px) { .party-sticker { font-size: 0.52rem; padding: 4px 8px; } .party-foot .mono { font-size: 0.6rem; letter-spacing: 0.06em; white-space: nowrap; } }
@media (max-width: 350px) { .party-foot .mono { display: none; } }
@media (prefers-reduced-motion: reduce) { .party-screen img { transition: none; } .party:hover .party-screen img, .party:focus-visible .party-screen img { transform: none; } }

/* Footer */
footer {
  border-top: 1px solid var(--line);
  padding-block: 28px 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px 40px;
  align-items: baseline;
}
footer .big { font-weight: 800; font-size: clamp(1.6rem, 3.6vw, 2.4rem); letter-spacing: -0.03em; line-height: 1.05; }
footer .meta { color: var(--faint); display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.9rem; }
footer .meta a { text-decoration: none; }
footer .meta a:hover { color: var(--ink); }

@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 44px; padding-block: 32px 64px; }
  .album { justify-self: start; width: 350px; }
  .hype { max-width: 132px; padding: 7px 10px 8px; }
  .hype span { font-size: 0.5rem; letter-spacing: 0.1em; }
  .hype b { font-size: 0.78rem; }
  .row, .flip { grid-template-columns: minmax(0, 1fr); gap: 18px; padding-bottom: 60px; }
  .flip { padding-bottom: 24px; }
  .skills, .trivia { grid-template-columns: minmax(0, 1fr); }
  .skills { gap: 22px; }
  .jobs li { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .jobs .n { margin-top: 4px; }
  footer { grid-template-columns: minmax(0, 1fr); }
  .topbar nav .hide-sm { display: none; }
}
@media (max-width: 520px) {
  .cal { grid-template-columns: 38px repeat(5, minmax(0, 1fr)); grid-template-rows: 30px repeat(8, 46px); }
  .time { padding-right: 5px; font-size: 0.66rem; }
  .event { margin: 2px; padding: 3px 4px; font-size: 0.64rem; }
  .event span { display: none; }
  .lead { font-size: 1.15rem; }
  .topbar nav { gap: 14px; }
  .city { display: none; }
  .topbar .me, .topbar nav > * { white-space: nowrap; }
}
@media (max-width: 430px) {
  .clock { display: none; }
}
@media (max-width: 350px) {
  .topbar nav { gap: 10px; }
  .topbar .me { font-size: 0.88rem; }
  .topbar .mini-rec { display: none; }   /* the tiny record gives its space to the nav on the narrowest phones */
  .theme { letter-spacing: 0.04em; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .record, .answer span { transition: none; }
  .deck:hover canvas, .deck:focus-visible canvas { animation: none; }
  .event.placed, .event.placed.cheer, .event.lock.arrive, .slot.shake, .upnext.bump, .win:not([hidden]), .curveball:not([hidden]) { animation: none; }
}

/* Real-site extras: a one-time record peek and staggered hero on load, sections easing in on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes peek { 0%, 100% { transform: translateX(26%); } 45%, 60% { transform: translateX(44%); } }
.ready .hero-text > * { animation: rise 0.8s cubic-bezier(.2,.8,.2,1) both; }
.ready .hero-text > *:nth-child(2) { animation-delay: 0.08s; }
.ready .hero-text > *:nth-child(3) { animation-delay: 0.16s; }
.ready .hero-text > *:nth-child(4) { animation-delay: 0.24s; }
.ready .album { animation: rise 0.9s 0.2s cubic-bezier(.2,.8,.2,1) both; }
.ready .deck:not(:hover):not(:focus-visible) .record { animation: peek 1.6s 0.9s cubic-bezier(.45,0,.2,1) both; }
.cv-head .btn#cv-download { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.cv-head .btn#cv-download:hover { opacity: 0.85; }
@media (prefers-reduced-motion: reduce) {
.reveal { opacity: 1; transform: none; transition: none; }
.ready .hero-text > *, .ready .album, .ready .deck .record { animation: none; }
}
