/* ==========================================================================
   Design tokens: change colours and fonts here.
   Every text colour below has at least 5:1 contrast on every surface colour
   (body text is around 10:1), so keep that in mind when tweaking them.
   ========================================================================== */
:root {
  --page: #262931;          /* page background */
  --card: #1e2029;          /* cards */
  --raised: #282b35;        /* rows, chips and buttons inside cards */
  --raised-hover: #31353f;
  --line: #3a3e4a;          /* hairline borders */

  --text: #f5f6f8;          /* headings and important text */
  --text-2: #d0d3da;        /* body text */
  --text-3: #a8adb8;        /* small print: dates, counts, hints */

  --accent: #ff8c42;        /* orange: section titles, active states, buttons */
  --on-accent: #16171c;     /* text on an orange background */
  --ok: #4ade80;            /* "ongoing" status */

  --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;

  --maxw: 1160px;
  --gutter: 24px;
  --side: minmax(240px, 360px); /* right-hand column on the landing page */
  --radius: 16px;               /* cards */
  --radius-sm: 10px;            /* rows, photos and buttons */
  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  /* faint film grain, like the reference */
  background: var(--page) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 .05 0 0 0 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--text-2);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
}
body.no-scroll { overflow: hidden; }

h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; }
img { max-width: 100%; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

::selection { background: var(--accent); color: var(--on-accent); }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.card {
  border: 1px solid rgb(255 255 255 / 5%);
  border-radius: var(--radius);
  background: var(--card);
}

.icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* ==========================================================================
   Top bar (every page)
   ========================================================================== */
.site-header { padding-top: 24px; }

.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding: 10px 12px 10px 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--on-accent);
  font-size: .875rem;
  font-weight: 600;
}
.brand:hover .brand-name { color: var(--accent); }

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-size: .9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color .15s, color .15s;
}
.nav-links a:hover { background: var(--raised); color: var(--text); }
.nav-links a[aria-current="page"] { background: var(--raised); color: var(--accent); }
.nav-links .btn-accent,
.nav-links .btn-accent:hover { background: var(--accent); color: var(--on-accent); }
.nav-links .btn-accent:hover { filter: brightness(1.08); }

/* ==========================================================================
   Shared type
   ========================================================================== */
.page-head { padding-block: 48px 32px; }
.page-title {
  color: var(--text);
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.01em;
}
.page-sub {
  max-width: 62ch;
  margin-top: 12px;
  font-size: 1.0625rem;
}

/* Orange title at the top of a card or column */
.card-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 2px 12px;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
}
.card-title h2 { font: inherit; }
.card-title .hint {
  color: var(--text-3);
  font-size: .875rem;
  font-weight: 400;
}

/* Small rounded labels */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.chips li {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--raised);
  color: var(--text-2);
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.5;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 1px 10px;
  border-radius: 999px;
  background: var(--raised);
  color: var(--text-3);
  font-size: .8125rem;
  font-weight: 500;
  line-height: 1.6;
}
.status.ongoing { background: rgb(74 222 128 / 12%); color: var(--ok); }
.status.ongoing::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* Round icon button (project reel, lightbox) */
.icon-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--raised);
  color: var(--text);
  cursor: pointer;
  transition: background-color .15s;
}
.icon-btn:hover { background: var(--raised-hover); }

/* Filter buttons (projects + gallery) */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px 7px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--text-2);
  cursor: pointer;
  font: 500 .875rem/1.4 var(--font);
  transition: background-color .15s, border-color .15s, color .15s;
}
.filter-btn:hover { border-color: var(--text-3); color: var(--text); }
.filter-btn[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
}
.filter-btn .count {
  min-width: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--raised);
  font-size: .75rem;
  text-align: center;
}
.filter-btn[aria-pressed="true"] .count { background: rgb(0 0 0 / 18%); }

/* Placeholder text that still needs filling in */
.todo { color: var(--text-3); font-style: italic; }

/* ==========================================================================
   Landing: intro
   ========================================================================== */
.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  align-items: center;
  gap: 40px 64px;
  margin-block: 24px;
  padding: 48px;
}

.name {
  color: var(--text);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.015em;
}

.lede {
  max-width: 56ch;
  margin: 20px 0 26px;
  font-size: 1.125rem;
}

.headshot-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--raised);
}
.headshot-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}
/* Initials shown if the photo is missing */
.headshot-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--text-3);
  font-size: 4rem;
  font-weight: 600;
}

/* ==========================================================================
   Landing: interests chart, project reel, menu
   ========================================================================== */
.explore {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) var(--side);
  gap: 24px;
  padding-bottom: 96px;
}
/* if the project reel can't load (e.g. page opened as a file), close the gap */
.explore.no-reel { grid-template-columns: minmax(0, 1fr) var(--side); }
.explore > .card { padding: 24px; }

/* Interests: pie chart */
.interests { display: flex; flex-direction: column; }
.pie-wrap {
  position: relative;
  width: 100%;
  max-width: 340px;
  margin: auto; /* centred in the card */
  padding-block: 4px;
}
.pie { display: block; width: 100%; height: auto; overflow: visible; }

.slice { cursor: pointer; outline: none; transition: opacity .2s; }
.slice-visual { pointer-events: none; transition: transform .25s ease; }
.slice-visual text {
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  text-anchor: middle;
  dominant-baseline: central;
}
.slice-hit { fill: transparent; }
.slice.active .slice-visual { transform: translate(var(--dx), var(--dy)); }
.slice:focus-visible .slice-visual path { stroke: var(--text); stroke-width: 2; }
.pie.has-active .slice:not(.active) { opacity: .4; }

/* Tooltip shown when you hover or tap a slice */
.bubble {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
  width: min(320px, calc(100vw - 32px));
  padding: 14px 16px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--raised);
  box-shadow: 0 12px 32px rgb(0 0 0 / 45%);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity .15s, transform .15s, visibility 0s .15s;
}
.bubble.show {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .15s, transform .15s;
}
.bubble-title {
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
}
.bubble-share {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 8px;
  color: var(--text-2);
  font-size: .875rem;
}
.bubble-share::before {
  content: "";
  width: 14px;
  height: 3px;
  border-radius: 2px;
  background: var(--c);
}
.bubble-text { color: var(--text-2); font-size: .9375rem; line-height: 1.55; }

/* Project reel */
.reel { display: flex; flex-direction: column; }
.reel-viewport { overflow: hidden; touch-action: pan-y; }
.reel-track {
  display: flex;
  transition: transform .45s cubic-bezier(.2, .8, .2, 1);
}
.reel-slide {
  flex: 0 0 100%;
  min-width: 0;
  color: var(--text);
  text-decoration: none;
}
.reel-shot {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--raised);
}
.reel-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.reel-slide:hover .reel-shot img { transform: scale(1.03); }
.reel-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin-top: 14px;
  color: var(--text-3);
  font-size: .875rem;
}
.reel-title {
  min-height: 2.7em;
  margin-top: 4px;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
  transition: color .15s;
}
.reel-slide:hover .reel-title { color: var(--accent); }
.reel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 14px;
}
.reel-count { color: var(--text-3); font-size: .875rem; font-variant-numeric: tabular-nums; }

/* Menu rows: share the card's height evenly */
.menu { display: flex; flex-direction: column; }
.menu-list {
  flex: 1;
  display: grid;
  grid-auto-rows: 1fr;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.menu-list > li { display: flex; }
.menu-list .menu-row { flex: 1; }
.menu-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  background: var(--raised);
  color: var(--text);
  text-decoration: none;
  transition: background-color .15s;
}
.menu-row:hover { background: var(--raised-hover); }
.menu-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--card);
  color: var(--accent);
}
.menu-icon .icon { width: 20px; height: 20px; }
.menu-title { display: block; font-weight: 600; line-height: 1.35; }
.menu-sub { display: block; color: var(--text-2); font-size: .875rem; line-height: 1.45; text-wrap: balance; }
.menu-arrow {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--card);
  transition: transform .15s;
}
.menu-arrow .icon { width: 16px; height: 16px; }
.menu-row:hover .menu-arrow { transform: translateX(3px); }

/* ==========================================================================
   Projects page
   ========================================================================== */
.projects { display: grid; gap: 24px; padding-bottom: 96px; }

.project {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: start;
  gap: 28px;
  padding: 24px;
  scroll-margin-top: 24px;
  transition: border-color .2s;
}
.project:hover { border-color: var(--line); }
/* highlight the project you arrived at from the landing-page reel */
.project:target { border-color: var(--accent); }

.project-shot {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--raised);
}
.project-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
a.project-shot:hover img { transform: scale(1.03); }

.project-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.project-thumbs a {
  display: block;
  width: 64px;
  height: 48px;
  overflow: hidden;
  border-radius: 8px;
  opacity: .8;
  transition: opacity .15s;
}
.project-thumbs a:hover { opacity: 1; }
.project-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.project-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  color: var(--text-3);
  font-size: .875rem;
}
.project-meta .status { margin-left: auto; }

.project-title {
  margin: 6px 0 10px;
  color: var(--text);
  font-size: clamp(1.15rem, 2vw, 1.375rem);
  font-weight: 600;
  line-height: 1.3;
}

.project-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  color: var(--text);
  font-weight: 500;
}
.project-stats li { padding-left: 10px; border-left: 2px solid var(--accent); line-height: 1.4; }
.project .chips { margin-top: 18px; }

/* ==========================================================================
   Gallery page (masonry columns)
   ========================================================================== */
.gallery {
  columns: 3 280px;
  column-gap: 20px;
  padding-bottom: 96px;
}
.gallery.js-masonry {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  columns: auto;
}
.masonry-col { flex: 1; min-width: 0; }

.tile {
  margin: 0 0 24px;
  break-inside: avoid;
}
.tile-link {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--card);
}
.tile-link img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform .4s ease;
}
.tile-link:hover img { transform: scale(1.03); }
/* "enlarge" badge in the corner */
.tile-link::after {
  content: "";
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgb(22 23 28 / 85%) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f5f6f8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E") center / 16px no-repeat;
  opacity: 0;
  transition: opacity .2s;
}
.tile-link:hover::after,
.tile-link:focus-visible::after { opacity: 1; }
.tile figcaption {
  padding: 10px 2px 0;
  color: var(--text-2);
  font-size: .875rem;
  line-height: 1.45;
}

/* ==========================================================================
   Lightbox
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 72px 88px;
  background: rgb(14 15 19 / 94%);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s, visibility 0s .2s;
}
.lightbox.open {
  opacity: 1;
  visibility: visible;
  transition: opacity .2s;
}
.lb-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 100%;
}
.lb-img {
  display: block;
  width: auto;
  height: auto;
  max-width: calc(100vw - 176px);
  max-height: calc(100vh - 170px);
  border-radius: var(--radius-sm);
  background: var(--card);
}
.lb-caption {
  display: flex;
  gap: 14px;
  max-width: 70ch;
  color: var(--text);
  text-align: center;
}
.lb-count { flex-shrink: 0; color: var(--text-3); font-variant-numeric: tabular-nums; }

.lb-btn { position: absolute; width: 48px; height: 48px; }
.lb-btn .icon { width: 22px; height: 22px; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: calc(50% - 24px); }
.lb-next { right: 16px; top: calc(50% - 24px); }

/* ==========================================================================
   Skills page: scrolling course list (left), fixed skills column (right)
   ========================================================================== */
.skills-layout,
.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 32px;
  padding-bottom: 96px;
}

.courses { display: grid; gap: 16px; }
.course { padding: 20px 24px 22px; transition: border-color .2s; }
.course:hover { border-color: var(--line); }
.course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 14px;
  color: var(--text-3);
  font-size: .875rem;
}
.course-code { color: var(--text); font-weight: 500; }
.course-title {
  margin: 4px 0 8px;
  color: var(--text);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
}
.course .chips,
.edu-entry .chips { margin-top: 14px; }

.skills-side,
.about-side {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  max-height: min(calc(100vh - 48px), 1000px);
}
.skill-panel,
.about-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 22px 24px;
}
.skill-panel .card-title,
.about-panel .card-title { flex-shrink: 0; }

/* Scrolls inside the panel if needed; the bottom edge fades out while there's more below */
.skill-scroll,
.edu-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0 6px 22px 0;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 26px), transparent);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 26px), transparent);
}
.skill-group + .skill-group { margin-top: 18px; }
.skill-group h3 {
  margin-bottom: 10px;
  color: var(--text);
  font-size: .9375rem;
  font-weight: 600;
}

/* ==========================================================================
   About page
   ========================================================================== */
.about-main { padding: 22px 26px 26px; }
.prose p { max-width: 64ch; }
.prose p + p { margin-top: 14px; }
.prose strong { color: var(--text); font-weight: 600; }

.about-side { gap: 18px; }
/* Education grows to fill the space above Languages, which stays its own size */
.about-side .about-panel:first-child { flex: 1; }
.about-side .about-panel:last-child { flex: none; }

.edu-list { display: grid; gap: 20px; }
.edu-entry:not(:last-child) { padding-bottom: 20px; border-bottom: 1px solid var(--line); }

.lang-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.lang-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--raised);
  color: var(--text);
  font-weight: 500;
}
.lang-level { color: var(--text-2); font-size: .875rem; font-weight: 400; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-block: 24px 32px;
  /* hairline on top, lined up with the content rather than the gutters */
  background: linear-gradient(var(--line), var(--line)) var(--gutter) 0 / calc(100% - 2 * var(--gutter)) 1px no-repeat;
  color: var(--text-3);
  font-size: .875rem;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-links a { color: var(--text-2); text-decoration: none; }
.footer-links a:hover { color: var(--accent); text-decoration: underline; }

/* ==========================================================================
   Smaller screens
   ========================================================================== */
@media (max-width: 1100px) {
  /* chart + reel side by side, menu underneath */
  .explore,
  .explore.no-reel { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .menu { grid-column: 1 / -1; }
  .menu-list { grid-template-columns: 1fr 1fr; }
  .no-reel .menu { grid-column: auto; }
  .no-reel .menu-list { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  /* minmax(0, …) stops wide content (like the reel's row of slides) from stretching the column */
  .intro,
  .explore,
  .explore.no-reel { grid-template-columns: minmax(0, 1fr); }
  .intro { padding: 32px; }
  .headshot { order: -1; width: 100%; max-width: 220px; }
  .explore { padding-bottom: 64px; }
  .menu-list { grid-template-columns: 1fr; }
  .project { grid-template-columns: minmax(0, 1fr); gap: 18px; }

  .skills-layout,
  .about-layout { grid-template-columns: minmax(0, 1fr); }
  .skills-side,
  .about-side { position: static; order: -1; max-height: none; }
  .about-side .about-panel:first-child { flex: none; }
  .skill-scroll,
  .edu-scroll { overflow: visible; padding-bottom: 0; -webkit-mask-image: none; mask-image: none; }
}

@media (max-width: 600px) {
  :root { --gutter: 16px; }
  .site-header { padding-top: 16px; }
  .topbar { padding: 8px; }
  .brand-name { display: none; }
  .nav-links { gap: 2px; }
  .nav-links a { padding: 8px 10px; font-size: .875rem; }
  .nav-links .icon { display: none; }
  .intro { padding: 24px 20px; }
  .headshot { max-width: 180px; }
  .explore > .card { padding: 20px; }
  .page-head { padding-block: 32px 24px; }
  .project { padding: 16px; }
  .lightbox { padding: 64px 8px 24px; }
  .lb-img { max-width: calc(100vw - 20px); max-height: calc(100vh - 190px); }
  .lb-prev, .lb-next { top: auto; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition-duration: .01ms !important;
  }
}
