/* =========================================================
   THEME TOKENS
   ========================================================= */
:root {
  --bg: #0b0b0f;
  --bg-2: #13131a;
  --fg: #ecebe6;
  --muted: #8a8a93;
  --line: #26262f;
  --accent: #c6ff3d;          /* changed at runtime by "Accent shuffle" */
  --accent-ink: #0b0b0f;
  --accent-text: var(--accent);   /* accent used as text colour */
  --radius: 18px;
  --font: "Space Grotesk", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f4f2ec;
  --bg-2: #e9e6dd;
  --fg: #111114;
  --muted: #64646c;
  --line: #d4d0c4;
  --accent-ink: #111114;
  --accent-text: color-mix(in srgb, var(--accent) 45%, #000);
  color-scheme: light;
}

/* =========================================================
   BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.55;
  overflow-x: hidden;
  transition: background .4s var(--ease), color .4s var(--ease);
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.mono { font-family: var(--mono); font-size: .8em; letter-spacing: .02em; }
::selection { background: var(--accent); color: var(--accent-ink); }

#field {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}
main, .footer { position: relative; z-index: 1; }

section {
  min-height: 100vh;
  padding: 140px clamp(16px, 6vw, 96px) 80px;
  max-width: 1400px;
  margin: 0 auto;
}

/* =========================================================
   CUSTOM CURSOR
   ========================================================= */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 100;
  width: 14px; height: 14px; margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: var(--accent);
  mix-blend-mode: difference;
  pointer-events: none;
  display: grid; place-items: center;
  transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease);
}
.cursor.big { width: 84px; height: 84px; margin: -42px 0 0 -42px; }
.cursor-label {
  font: 600 11px var(--mono); text-transform: uppercase;
  color: var(--bg); opacity: 0; transition: opacity .2s;
}
.cursor.big .cursor-label { opacity: 1; }
/* The normal pointer stays visible for accessibility; the dot above just follows it. */
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* =========================================================
   TOP BAR + SIDE INDEX
   ========================================================= */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px clamp(16px, 4vw, 48px);
  backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--bg) 60%, transparent);
  border-bottom: 1px solid var(--line);
}
.logo { font: 700 22px var(--mono); }
.blink { color: var(--accent-text); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.nav { display: flex; gap: clamp(12px, 3vw, 36px); }
.nav a { position: relative; font-size: 15px; display: inline-block; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: right;
  transition: transform .35s var(--ease);
}
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); transform-origin: left; }
.topbar-actions { display: flex; gap: 10px; align-items: center; }
.kbd-btn kbd {
  font: 12px var(--mono); padding: 3px 7px; margin-left: 3px;
  border: 1px solid var(--line); border-radius: 6px; background: var(--bg-2);
}
.icon-btn {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line); display: grid; place-items: center;
  transition: background .2s, color .2s;
}
.icon-btn:hover { background: var(--accent); color: var(--accent-ink); }

.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; }
.progress span { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }

.section-index {
  position: fixed; right: clamp(10px, 2vw, 28px); top: 50%; transform: translateY(-50%);
  z-index: 40; list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 10px;
  font: 11px var(--mono); color: var(--muted);
}
.section-index li { cursor: pointer; transition: color .2s, transform .3s var(--ease); }
.section-index li.active { color: var(--accent-text); transform: translateX(-6px); }

/* =========================================================
   HERO
   ========================================================= */
.hero { display: flex; flex-direction: column; justify-content: center; }
.eyebrow { color: var(--muted); margin: 0 0 24px; }
.hero-title {
  font-size: clamp(44px, 9vw, 140px);
  line-height: .95; letter-spacing: -.04em; margin: 0; font-weight: 700;
}
.hero-title .line { display: block; overflow: hidden; }
.rotator { color: var(--accent-text); display: inline-block; transition: transform .45s var(--ease), opacity .45s; }
.rotator.out { transform: translateY(-100%); opacity: 0; }
.rotator.in { transform: translateY(100%); opacity: 0; transition: none; }
.hero-sub { max-width: 560px; color: var(--muted); margin: 32px 0; font-size: 20px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hint { color: var(--muted); margin-top: 56px; opacity: .7; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font-weight: 500;
  border: 1px solid var(--accent);
  transition: background .25s, color .25s;
}
.btn.ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent-text); }
.btn.small { padding: 8px 16px; font-size: 14px; }
[data-magnetic] { transition: transform .35s var(--ease); will-change: transform; }

/* =========================================================
   SECTION HEADS
   ========================================================= */
.section-head {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 18px;
  border-bottom: 1px solid var(--line); padding-bottom: 20px; margin-bottom: 48px;
}
.section-head h2 { font-size: clamp(34px, 5vw, 64px); margin: 0; letter-spacing: -.03em; line-height: 1; }
.section-head .num { color: var(--accent-text); }
.section-note { color: var(--muted); margin: 0; }
.filters { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line);
  font-size: 14px; transition: all .2s;
}
.chip.active, .chip:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* =========================================================
   WORK GRID — 3D tilt cards with spotlight
   ========================================================= */
.grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  perspective: 1200px;
}
.card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--bg-2); border: 1px solid var(--line);
  min-height: 360px; padding: 24px;
  display: flex; flex-direction: column; justify-content: flex-end;
  transform-style: preserve-3d;
  transition: transform .5s var(--ease), opacity .4s, border-color .3s;
  cursor: pointer;
}
.card::before {     /* cursor spotlight */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%),
    color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%);
  opacity: 0; transition: opacity .3s;
}
.card:hover::before { opacity: 1; }
.card:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.card.hidden { display: none; }
.card .thumb {
  position: absolute; inset: 0; z-index: 0;
  background: var(--thumb, linear-gradient(135deg, #222, #111));
  opacity: .85; transition: transform .6s var(--ease);
}
.card:hover .thumb { transform: scale(1.06); }
.card::after {      /* scrim so text stays readable over any thumbnail */
  content: ""; position: absolute; inset: 40% 0 0 0; z-index: 0; pointer-events: none;
  background: linear-gradient(transparent, rgba(0,0,0,.75));
}
.card .meta { color: #fff; }
.card .meta p { color: rgba(255,255,255,.75); }
.card .meta .tags span { color: #fff; background: rgba(0,0,0,.35); border-color: rgba(255,255,255,.2); }
.card .meta { position: relative; z-index: 1; transform: translateZ(40px); }
.card h3 { margin: 6px 0 4px; font-size: 28px; letter-spacing: -.02em; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.card .tags span {
  font: 11px var(--mono); padding: 3px 8px; border-radius: 6px;
  background: color-mix(in srgb, var(--bg) 70%, transparent); border: 1px solid var(--line);
}
.card .idx { position: absolute; top: 20px; left: 24px; z-index: 1; font: 12px var(--mono); color: var(--muted); }

/* Games: secondary section, so smaller cards and less height */
.games { min-height: auto; padding-top: 80px; }
.grid.compact { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 18px; }
.grid.compact .card { min-height: 220px; padding: 20px; }
.grid.compact .card h3 { font-size: 22px; }
.grid.compact .card p { font-size: 14px; }
.grid.compact .card .idx { top: 16px; left: 20px; }

/* =========================================================
   ABOUT
   ========================================================= */
.about-grid { display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.about-text .big { font-size: clamp(22px, 2.6vw, 32px); line-height: 1.3; margin-top: 0; }
.about-text p:not(.big) { color: var(--muted); }
.stack h3 { color: var(--muted); margin: 0 0 10px; font-weight: 400; }
.code {
  margin: 0; padding: 20px; border-radius: var(--radius);
  background: var(--bg-2); border: 1px solid var(--line);
  font: 14px/1.7 var(--mono); overflow-x: auto;
}
.code .k { color: var(--accent-text); }
.code .s { color: #7ad7ff; }
:root[data-theme="light"] .code .s { color: #0a6fa0; }
.timeline { list-style: none; padding: 0; margin: 0; grid-column: 1 / -1; display: grid; gap: 0; }
.timeline li {
  display: flex; gap: 24px; padding: 18px 0; border-top: 1px solid var(--line);
  transition: padding-left .3s var(--ease), color .3s;
}
.timeline li:hover { padding-left: 16px; color: var(--accent-text); }
.timeline .mono { color: var(--muted); min-width: 60px; }

/* About: photo, quick links, career interests */
.portrait {
  margin: 0; position: relative; aspect-ratio: 4 / 5; max-width: 420px; width: 100%;
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  background: linear-gradient(135deg, var(--bg-2), color-mix(in srgb, var(--accent) 25%, var(--bg-2)));
}
.portrait img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.portrait:hover img { transform: scale(1.04); }
.portrait-fallback { display: none; position: absolute; inset: 0; place-items: center; font: 700 88px var(--mono); color: var(--accent-text); }
.portrait.missing img { display: none; }
.portrait.missing .portrait-fallback { display: grid; }
.about-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.interests { grid-column: 1 / -1; }
.interests h3 { color: var(--muted); margin: 0 0 12px; font-weight: 400; }
.interest-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.interest-list li {
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); font-size: 16px;
  transition: background .25s, color .25s, border-color .25s;
}
.interest-list li:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* =========================================================
   WHAT I LEARNED FROM OTHERS — blog post cards
   ========================================================= */
.posts { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 400px), 1fr)); }
.post {
  position: relative; overflow: hidden; cursor: pointer;
  display: flex; flex-direction: column; gap: 12px; padding: 28px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2);
  transition: transform .4s var(--ease), border-color .3s, opacity .8s var(--ease);
}
.post::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%),
    color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%);
}
.post:hover::before { opacity: 1; }
.post.visible:hover { transform: translateY(-4px); }
.post:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.post > * { position: relative; }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; color: var(--muted); }
.post-kind {
  font: 11px var(--mono); text-transform: uppercase; letter-spacing: .06em;
  padding: 3px 8px; border-radius: 6px; background: var(--accent); color: var(--accent-ink);
}
.post h3 { margin: 0; font-size: 26px; line-height: 1.15; letter-spacing: -.02em; }
.post .speaker { margin: 0; font-size: 15px; }
.post .excerpt { margin: 0; color: var(--muted); font-size: 16px; }
.post .read { margin-top: auto; padding-top: 8px; color: var(--accent-text); }
.post .read span { display: inline-block; transition: transform .3s var(--ease); }
.post:hover .read span { transform: translateX(6px); }

/* Full post in the drawer */
.post-full .post-meta { margin-bottom: 14px; }
.post-full h2 { font-size: 38px; line-height: 1.1; }
.post-full .speaker { color: var(--muted); margin: 0 0 28px; }
.post-full h4 { font: 12px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 32px 0 12px; }
.takeaways { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.takeaways li { padding-left: 26px; position: relative; }
.takeaways li::before { content: "→"; position: absolute; left: 0; color: var(--accent-text); font-family: var(--mono); }
.post-full .next {
  margin-top: 32px; padding: 18px 20px; border-radius: 12px;
  border-left: 3px solid var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent);
}
.post-full .next p { margin: 0; }

/* =========================================================
   LAB
   ========================================================= */
.lab-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.lab-tile {
  padding: 28px; border-radius: var(--radius); border: 1px dashed var(--line);
  background: color-mix(in srgb, var(--bg-2) 60%, transparent);
  min-height: 220px; display: flex; flex-direction: column; align-items: flex-start;
}
.lab-tile h3 { margin: 0 0 8px; font-size: 24px; }
.lab-tile p { color: var(--muted); margin: 0 0 auto; padding-bottom: 20px; }

/* =========================================================
   CONTACT + FOOTER
   ========================================================= */
.contact { display: flex; flex-direction: column; justify-content: center; }
.mega-link {
  font-size: clamp(32px, 8vw, 120px); font-weight: 700; letter-spacing: -.04em;
  line-height: 1; display: inline-block; align-self: flex-start;
  background: linear-gradient(var(--accent), var(--accent)) no-repeat 0 100% / 0 6px;
  transition: background-size .5s var(--ease), transform .35s var(--ease);
  word-break: break-all;
}
.mega-link:hover { background-size: 100% 6px; }
.socials { list-style: none; padding: 0; display: flex; gap: 28px; margin-top: 40px; flex-wrap: wrap; }
.socials a { color: var(--muted); display: inline-block; }
.socials a:hover { color: var(--accent-text); }
.footer {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  padding: 24px clamp(16px, 4vw, 48px); border-top: 1px solid var(--line); color: var(--muted);
}

/* =========================================================
   REVEAL ON SCROLL
   ========================================================= */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

/* =========================================================
   DIALOGS: drawer, palette, terminal
   ========================================================= */
dialog { border: 0; padding: 0; color: var(--fg); background: var(--bg-2); }
dialog::backdrop { background: rgba(0,0,0,.55); backdrop-filter: blur(4px); }

.drawer {
  margin: 0 0 0 auto; height: 100vh; max-height: 100vh;
  width: min(640px, 100vw); border-left: 1px solid var(--line);
}
.drawer[open] { animation: slideIn .45s var(--ease); }
@keyframes slideIn { from { transform: translateX(100%); } }
.drawer .close { position: absolute; top: 18px; right: 18px; }
.drawer-body { padding: 72px 36px 40px; }
.drawer-body .hero-img { height: 260px; border-radius: var(--radius); background: var(--thumb); margin-bottom: 28px; }
.drawer-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.drawer-tags span { font: 12px var(--mono); padding: 4px 9px; border-radius: 6px; border: 1px solid var(--line); }
.drawer-body code { font-family: var(--mono); color: var(--accent-text); }
.mega-link { word-break: normal; overflow-wrap: anywhere; }
.drawer-body h2 { font-size: 44px; margin: 0 0 8px; letter-spacing: -.03em; }

.palette {
  width: min(560px, calc(100vw - 32px)); margin: 14vh auto auto;
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
}
.palette[open] { animation: pop .2s var(--ease); }
@keyframes pop { from { transform: scale(.96); opacity: 0; } }
#palette-input {
  width: 100%; padding: 18px 20px; font: 18px var(--font);
  background: transparent; border: 0; border-bottom: 1px solid var(--line); color: var(--fg); outline: none;
}
#palette-list { list-style: none; margin: 0; padding: 8px; max-height: 50vh; overflow-y: auto; }
#palette-list li {
  padding: 10px 12px; border-radius: 8px; display: flex; justify-content: space-between; cursor: pointer;
}
#palette-list li small { color: var(--muted); font-family: var(--mono); }
#palette-list li.sel { background: var(--accent); color: var(--accent-ink); }
#palette-list li.sel small { color: var(--accent-ink); }

.terminal {
  width: min(760px, calc(100vw - 32px)); height: min(480px, 80vh);
  margin: auto; border-radius: 12px; border: 1px solid var(--line);
  background: #0a0a0c; color: #d7ffd0; flex-direction: column; overflow: hidden;
}
.terminal[open] { display: flex; animation: pop .2s var(--ease); }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; border-bottom: 1px solid #222; }
.term-bar > span { width: 11px; height: 11px; border-radius: 50%; background: #ff5f56; }
.term-bar > span:nth-child(2) { background: #ffbd2e; }
.term-bar > span:nth-child(3) { background: #27c93f; }
.term-bar em { margin-left: 10px; color: #777; font-style: normal; flex: 1; }
.term-bar .close { width: 26px; height: 26px; border-color: #333; color: #aaa; }
.term-out { flex: 1; overflow-y: auto; padding: 14px 16px; font-size: 14px; white-space: pre-wrap; }
.term-out .cmd { color: #888; }
.term-out .acc { color: var(--accent); }
.term-line { display: flex; gap: 10px; padding: 0 16px 14px; font-size: 14px; }
.term-line label { color: var(--accent); }
#term-input { flex: 1; background: transparent; border: 0; outline: none; color: inherit; font: inherit; }

.toast {
  position: fixed; bottom: 24px; left: 50%; z-index: 200;
  transform: translate(-50%, 220%); padding: 10px 18px; border-radius: 999px;
  background: var(--fg); color: var(--bg); transition: transform .4s var(--ease);
}
.toast.show { transform: translate(-50%, 0); }

/* =========================================================
   RESPONSIVE + MOTION
   ========================================================= */
/* Seven section links don't fit on smaller screens: swap them for the menu button. */
@media (max-width: 1100px) {
  .nav { display: none; }
  .menu-btn { display: grid; }
}
@media (max-width: 760px) {
  .section-index { display: none; }
  section { padding-top: 110px; }
  .kbd-btn { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   PROJECT LOGOS — a plate near the top of the card, above the
   card background and its bottom shading
   ========================================================= */
.card > .logo {
  position: absolute; left: 50%; top: 30%; z-index: 1; transform: translate(-50%, -50%);
  max-width: 72%; max-height: 34%; object-fit: contain; pointer-events: none;
  border-radius: 14px; box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
  transition: transform .6s var(--ease);
}
.card:hover > .logo { transform: translate(-50%, -50%) scale(1.05); }
.grid.compact .card > .logo { top: 27%; max-height: 30%; max-width: 70%; }
.drawer-body .hero-img { position: relative; display: grid; place-items: center; }
.drawer-body .hero-img .logo { max-width: 70%; max-height: 60%; object-fit: contain; border-radius: 14px; box-shadow: 0 18px 40px rgba(0, 0, 0, .35); }

/* =========================================================
   ACCESSIBILITY: skip link + visible keyboard focus
   ========================================================= */
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 300;
  padding: 10px 16px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font-weight: 500;
  transform: translateY(-200%); transition: transform .25s var(--ease);
}
.skip-link:focus { transform: none; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; }
section[tabindex="-1"]:focus { outline: none; }

/* =========================================================
   PHONE / SMALL-SCREEN MENU
   ========================================================= */
@media (min-width: 1101px) { .menu-btn { display: none; } }
.menu {
  margin: 0 0 0 auto; height: 100vh; max-height: 100vh;
  width: min(420px, 100vw); border-left: 1px solid var(--line); padding: 72px 28px 32px;
}
.menu[open] { animation: slideIn .4s var(--ease); }
.menu .close { position: absolute; top: 18px; right: 18px; }
.menu-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.menu-list a {
  display: flex; gap: 14px; align-items: baseline; padding: 12px 8px;
  font-size: 22px; letter-spacing: -.01em; border-bottom: 1px solid var(--line);
  transition: color .2s, padding-left .3s var(--ease);
}
.menu-list a span { color: var(--accent-text); min-width: 26px; }
.menu-list a:hover, .menu-list a:focus-visible { color: var(--accent-text); padding-left: 14px; }

/* =========================================================
   "TO FILL IN" PROMPTS — placeholders for sections still to be written
   ========================================================= */
.todo {
  position: relative; margin: 0 0 20px; padding: 18px 20px 16px;
  border: 1px dashed color-mix(in srgb, var(--accent-text) 60%, var(--line));
  border-radius: 12px; background: color-mix(in srgb, var(--accent) 6%, transparent);
  color: var(--muted); font-size: 16px;
}
.todo p { margin: 0; }
.todo ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.todo strong { color: var(--fg); font-weight: 500; }
.todo-tag {
  display: inline-block; margin-bottom: 8px; padding: 2px 8px; border-radius: 6px;
  font-size: 11px; text-transform: uppercase; letter-spacing: .08em;
  background: var(--accent); color: var(--accent-ink);
}

/* =========================================================
   NEW SECTIONS: sub-headings, values, reflections, PDP
   ========================================================= */
.sub-head { font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -.02em; margin: 48px 0 18px; }
.sub-head-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px 18px; margin: 48px 0 18px; }
.sub-head-row .sub-head { margin: 0; }
.sub-head-row .filters { margin-left: auto; }
.learn-more > .todo:first-of-type, .developed > .todo:first-of-type { max-width: 820px; }

.values-grid, .reflect-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
}
.reflect-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.value-card, .reflect-card {
  padding: 24px; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--bg-2); display: flex; flex-direction: column; gap: 8px;
}
.value-card .todo, .reflect-card .todo { margin: 8px 0 0; }
.value-num { color: var(--accent-text); text-transform: uppercase; letter-spacing: .08em; }
.value-card h4, .reflect-card h4, .pdp-step h4 { margin: 0; font-size: 22px; letter-spacing: -.01em; }

.pdp { list-style: none; margin: 0; padding: 0 0 0 28px; position: relative; display: grid; gap: 28px; }
.pdp::before {
  content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(var(--accent), color-mix(in srgb, var(--accent) 10%, transparent));
}
.pdp-step { position: relative; display: grid; gap: 6px; }
.pdp-step::before {
  content: ""; position: absolute; left: -28px; top: 4px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--bg); border: 2px solid var(--accent);
}
.pdp-when { color: var(--accent-text); text-transform: uppercase; letter-spacing: .08em; }
.pdp-step .todo { margin: 6px 0 0; }

/* Talk placeholder cards (until there are four reflections) */
.post-placeholder { cursor: default; border-style: dashed; background: transparent; }
.post-placeholder:hover { border-color: var(--line); }
.post-placeholder.visible:hover { transform: none; }
.post-placeholder::before { display: none; }

/* Extra heading inside the project drawer */
.drawer-h { font: 12px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 32px 0 12px; }

/* =========================================================
   BEYOND THE CLASSROOM — activity cards with photo evidence
   ========================================================= */
.activity { gap: 12px; padding: 0 0 24px; overflow: hidden; }
.activity > :not(.evidence) { margin-left: 24px; margin-right: 24px; }
.evidence { margin: 0 0 8px; position: relative; }
.evidence img {
  display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
  transition: transform .6s var(--ease);
}
.activity:hover .evidence img { transform: scale(1.03); }
.evidence figcaption {
  position: absolute; left: 12px; bottom: 12px; right: 12px; width: fit-content; max-width: calc(100% - 24px);
  padding: 4px 10px; border-radius: 6px; font-size: 11px;
  background: rgba(0, 0, 0, .6); color: #fff; backdrop-filter: blur(4px);
}
.activity-lead { margin-top: 0; margin-bottom: 4px; font-size: 18px; }
.activity-lead strong { color: var(--accent-text); font-weight: 600; }
.activity-points { margin: 0; display: grid; gap: 4px; }
.activity-points dt {
  font: 11px var(--mono); text-transform: uppercase; letter-spacing: .08em;
  color: var(--accent-text); margin-top: 12px;
}
.activity-points dd { margin: 0; color: var(--muted); font-size: 16px; }
.skill-chips { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.skill-chips li {
  font: 12px var(--mono); padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--fg);
  transition: background .2s, color .2s, border-color .2s;
}
.skill-chips li:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* =========================================================
   LEARN MORE — identity, strengths and value cards
   ========================================================= */
.identity { max-width: 860px; }
.identity .big { font-size: clamp(22px, 2.6vw, 32px); line-height: 1.3; margin-top: 0; }
.identity p:not(.big) { color: var(--muted); }

.strengths {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
}
.strength {
  position: relative; padding: 22px 22px 20px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--bg-2);
  transition: border-color .3s, transform .4s var(--ease), opacity .8s var(--ease);
}
.strength.visible:hover { transform: translateY(-4px); }
.strength:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.strength-num { color: var(--accent-text); }
.strength h4 { margin: 6px 0 8px; font-size: 20px; letter-spacing: -.01em; }
.strength p { margin: 0; color: var(--muted); font-size: 15px; }

.values-intro { margin: -6px 0 20px; max-width: 760px; }
.value-card { gap: 6px; }
.value-def { margin: 0 0 4px; font-style: italic; color: var(--muted); font-size: 16px; }
.values-evidence { margin-top: 24px; max-width: 820px; }

/* =========================================================
   Development plan, reading list, declarations
   ========================================================= */
.pdp-step .activity-points { margin-top: 6px; }
.resources {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
}
.resource {
  border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px;
  display: grid; gap: 6px; align-content: start;
}
.resource-kind { color: var(--accent-text); text-transform: uppercase; letter-spacing: .08em; font-size: 12px; }
.resource h4 { margin: 0; font-size: 18px; }
.resource h4 a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.resource-by { color: var(--muted); font-weight: 400; font-size: 15px; }
.resource p { margin: 0; color: var(--muted); font-size: 15px; }
.decl-list { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--muted); }
.reflect-card > p { margin: 0; }
.decl-sign { color: var(--accent-text); }
.footer a { color: inherit; }

/* Photos inside a talk write-up */
.post-photo { margin: 20px 0; border-radius: 12px; overflow: hidden; }
.post-photo img { aspect-ratio: 4 / 3; }
.activity-lead a { color: var(--accent-text); }
.post-photo img[src*="notes"] { aspect-ratio: auto; }

/* =========================================================
   Read more: compact cards and talks
   ========================================================= */
@media screen {
  .collapsible.is-collapsed .activity-points { display: none; }
  .posts:not(.expanded) .post.is-extra { display: none; }
}
#beyond .reflect-grid, .values-grid { align-items: start; }
.read-more {
  justify-self: start; width: fit-content; margin-top: 4px; padding: 6px 0;
  background: none; border: 0; cursor: pointer;
  color: var(--accent-text); font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
}
.read-more:hover { text-decoration: underline; text-underline-offset: 4px; }
.more-btn { margin-top: 24px; }
@media print { .read-more, .more-btn { display: none; } }
