:root {
  --grid: 32px;
  --paper: #efeee9;
  --paper-2: #d8d8cf;
  --ink: #171713;
  --ink-soft: #515148;
  --line: rgba(23, 23, 19, 0.18);
  --moss: #566954;
  --oxide: #9b4938;
  --blue: #58717a;
  --silver: #b8bab2;
  --shadow: 0 24px 70px rgba(23, 23, 19, 0.16);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-size: 15px;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.site-shell {
  min-height: 100vh;
  overflow: hidden;
}

.site-header {
  display: none;
}

.brand,
.nav-links a {
  pointer-events: auto;
}

.brand {
  width: max-content;
  display: grid;
  gap: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 0.96;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  justify-content: flex-end;
  gap: clamp(12px, 2vw, 28px);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

.nav-links a {
  opacity: 0.8;
  transition: opacity 180ms ease;
}

.nav-links a:hover {
  opacity: 1;
}

.hero {
  position: relative;
  min-height: 100vh;
  --mouse-x: 50vw;
  --mouse-y: 50vh;
  cursor: none;
  background:
    radial-gradient(circle at 72% 18%, rgba(52, 137, 255, 0.16), transparent 24vw),
    radial-gradient(circle at 24% 78%, rgba(0, 255, 210, 0.08), transparent 26vw),
    #030507;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(240, 248, 255, 0.052) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240, 248, 255, 0.052) 1px, transparent 1px),
    linear-gradient(rgba(240, 248, 255, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240, 248, 255, 0.13) 1px, transparent 1px);
  background-size:
    calc(var(--grid) / 4) calc(var(--grid) / 4),
    calc(var(--grid) / 4) calc(var(--grid) / 4),
    var(--grid) var(--grid),
    var(--grid) var(--grid);
  background-position:
    0 0,
    0 0,
    0 0,
    0 0;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cg stroke='%23f6fbff' stroke-width='1' opacity='.9'%3E%3Cpath d='M0 -5V5M-5 0H5M32 -5V5M27 0H37M0 27V37M-5 32H5M32 27V37M27 32H37'/%3E%3C/g%3E%3C/svg%3E");
  background-size:
    var(--grid) var(--grid);
  background-position: 0 0;
  mask-image: radial-gradient(circle 210px at var(--mouse-x) var(--mouse-y), rgba(0, 0, 0, 1) 0 12%, rgba(0, 0, 0, 0.7) 42%, rgba(0, 0, 0, 0.25) 76%, transparent 100%);
  -webkit-mask-image: radial-gradient(circle 210px at var(--mouse-x) var(--mouse-y), rgba(0, 0, 0, 1) 0 12%, rgba(0, 0, 0, 0.7) 42%, rgba(0, 0, 0, 0.25) 76%, transparent 100%);
  opacity: 0.58;
  pointer-events: none;
  animation: intersectionBreath 5.8s ease-in-out infinite;
}

.hero-overlay {
  position: relative;
  z-index: 3;
  min-height: 100vh;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  padding: 0 clamp(18px, 3vw, 42px) 74px;
  color: var(--ink);
  background: transparent;
  pointer-events: none;
}

.hero *,
.hero button,
.hero a {
  cursor: none;
}

.eyebrow {
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-panel {
  position: absolute;
  z-index: 34;
  left: 70%;
  top: 58%;
  width: var(--panel-width, calc(var(--grid) * 10));
  min-width: 0;
  height: var(--panel-height, calc(var(--grid) * 10));
  display: block;
  padding: 0;
  border: 1px solid rgba(236, 246, 255, 0.86);
  background:
    linear-gradient(rgba(236, 246, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(236, 246, 255, 0.12) 1px, transparent 1px),
    rgba(4, 8, 12, 0.58);
  background-size: var(--grid) var(--grid), var(--grid) var(--grid), auto;
  color: rgba(241, 248, 255, 0.94);
  backdrop-filter: blur(2px);
  box-shadow:
    0 0 0 1px rgba(3, 5, 7, 0.9),
    0 0 28px rgba(83, 190, 255, 0.2);
  opacity: 0;
  transform: scale(0.96);
  transform-origin: var(--panel-origin-x, 0) var(--panel-origin-y, 0);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease, left 260ms ease, top 260ms ease;
}

.hero-panel::before {
  content: none;
}

.hero-panel.is-visible {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.hero-panel.is-empty {
  display: none;
}

.hero-panel > * {
  position: absolute;
  z-index: 2;
  left: var(--grid);
  right: var(--grid);
  opacity: 0;
  transition: opacity 140ms ease;
}

.hero-panel:hover > *,
.hero-panel:focus-within > * {
  opacity: 1;
}

.panel-kicker {
  top: var(--grid);
  margin: 0;
  color: rgba(241, 248, 255, 0.66);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  align-self: start;
}

.hero-panel h2,
.hero-panel a {
  margin: 0;
}

.hero-panel h2 {
  font-family: "Pixelify Sans", Inter, sans-serif;
  font-size: clamp(17px, 1.85vw, 24px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-panel p {
  margin: 0;
  line-height: 1.42;
}

#activeProjectMeta {
  top: calc(var(--grid) * 4);
  color: rgba(241, 248, 255, 0.62);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

#activeProjectDescription {
  bottom: var(--grid);
  color: rgba(241, 248, 255, 0.78);
}

.hero-panel a {
  top: calc(var(--grid) * 2);
  display: block;
  border-bottom: 1px solid rgba(241, 248, 255, 0.76);
  color: rgba(241, 248, 255, 0.94);
  transition: color 160ms ease, border-color 160ms ease;
}

.hero-panel a:hover {
  color: #ffffff;
  border-color: #ffffff;
}

.panel-image {
  z-index: 1;
  inset: 0;
  opacity: 1;
  border: 0;
  background:
    linear-gradient(135deg, transparent calc(50% - 1px), rgba(241, 248, 255, 0.42) calc(50% - 1px), rgba(241, 248, 255, 0.42) calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(45deg, transparent calc(50% - 1px), rgba(241, 248, 255, 0.26) calc(50% - 1px), rgba(241, 248, 255, 0.26) calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(rgba(241, 248, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(241, 248, 255, 0.09) 1px, transparent 1px),
    color-mix(in srgb, var(--card-color, #5f8fb1) 22%, rgba(3, 5, 7, 0.88));
  background-size: auto, auto, var(--grid) var(--grid), var(--grid) var(--grid), auto;
}

.hero-panel:hover .panel-image,
.hero-panel:focus-within .panel-image {
  opacity: 0.34;
}

.hero-mini-header {
  position: absolute;
  left: var(--grid);
  top: calc(var(--grid) * 2);
  z-index: 5;
  display: grid;
  gap: 9px;
  color: rgba(241, 248, 255, 0.82);
}

.hero-mini-header p {
  margin: 0;
  max-width: 430px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  text-transform: uppercase;
}

.hero-mini-header h1 {
  margin: 0;
  font-family: "Pixelify Sans", Inter, sans-serif;
  font-size: clamp(19px, 2.2vw, 32px);
  font-weight: 600;
  line-height: 0.95;
  text-transform: uppercase;
}

.cluster-map {
  position: absolute;
  inset: 0;
  z-index: 4;
  transform-origin: var(--origin-x, 50%) var(--origin-y, 50%);
  background: transparent;
  clip-path: none;
}

.cluster-map::before,
.cluster-map::after {
  content: "";
  position: absolute;
  z-index: 260;
  left: var(--mouse-x);
  top: var(--mouse-y);
  width: calc(var(--grid) * 3);
  height: 1px;
  background: rgba(241, 248, 255, 0.78);
  transform: translate(-50%, -50%);
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.96;
  box-shadow: 0 0 10px rgba(105, 210, 255, 0.28);
  transition: width 120ms ease, height 120ms ease, background 120ms ease, box-shadow 120ms ease;
}

.cluster-map::after {
  width: 1px;
  height: calc(var(--grid) * 3);
}

.cluster-map.is-near::before {
  width: calc(var(--grid) * 1.35);
  height: 3px;
  background: rgba(118, 255, 226, 0.98);
  box-shadow:
    0 0 0 1px rgba(241, 248, 255, 0.46),
    0 0 18px rgba(95, 211, 255, 0.72),
    0 0 34px rgba(118, 255, 226, 0.34);
}

.cluster-map.is-near::after {
  width: 3px;
  height: calc(var(--grid) * 1.35);
  background: rgba(118, 255, 226, 0.98);
  box-shadow:
    0 0 0 1px rgba(241, 248, 255, 0.46),
    0 0 18px rgba(95, 211, 255, 0.72),
    0 0 34px rgba(118, 255, 226, 0.34);
}

.cluster-map svg {
  position: absolute;
  inset: 0;
  z-index: 10;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.cluster-edge {
  fill: none;
  stroke: rgba(241, 248, 255, 0.54);
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  animation: edgeFlicker 7.5s ease-in-out infinite;
  animation-delay: calc(var(--edge-index, 0) * -430ms);
  transition: stroke 160ms ease, stroke-width 160ms ease, opacity 160ms ease, filter 160ms ease;
}

.cluster-map.has-filter .cluster-edge {
  opacity: 0.24;
}

.cluster-edge.is-active {
  stroke: rgba(241, 248, 255, 0.92);
  stroke-width: 1.8;
  filter: drop-shadow(0 0 8px rgba(105, 210, 255, 0.28));
  opacity: 1;
}

.cluster-edge.is-preview {
  stroke: rgba(95, 211, 255, 0.9);
  stroke-width: 1.6;
  filter: drop-shadow(0 0 10px rgba(95, 211, 255, 0.28));
  opacity: 1;
}

.map-node {
  position: absolute;
  z-index: 30;
  left: calc(var(--gx) * var(--grid));
  top: calc(var(--gy) * var(--grid));
  display: block;
  width: var(--grid);
  height: var(--grid);
  border: 0;
  padding: 0;
  background: transparent;
  color: rgba(241, 248, 255, 0.72);
  transform: translate(-50%, -50%);
  transform-origin: center;
  transition: color 140ms ease, opacity 140ms ease, filter 140ms ease;
}

.map-node:hover,
.map-node:focus-visible,
.map-node.is-active {
  color: #ffffff;
  z-index: 80;
}

.cluster-map.has-filter .map-node {
  opacity: 0.18;
}

.cluster-map.has-filter .map-node.is-filtered,
.cluster-map.has-filter .map-node.is-active {
  opacity: 1;
  filter: saturate(1.25);
}

.map-node-label {
  position: absolute;
  left: 50%;
  top: calc(100% + 5px);
  transform: translateX(-50%);
  max-width: 92px;
  opacity: 0;
  font-family: "Pixelify Sans", Inter, sans-serif;
  font-size: 10px;
  font-weight: 500;
  line-height: 0.98;
  text-align: center;
  text-transform: uppercase;
  transition: opacity 160ms ease;
  color: rgba(241, 248, 255, 0.92);
  background: rgba(3, 5, 7, 0.78);
  border: 1px solid rgba(241, 248, 255, 0.34);
  padding: 3px 4px;
}

.map-node:hover .map-node-label,
.map-node:focus-visible .map-node-label,
.map-node.is-active .map-node-label,
.map-node.is-filtered .map-node-label,
.map-node.is-near .map-node-label {
  opacity: 1;
}

.pixel-icon {
  display: block;
  position: relative;
  width: var(--grid);
  height: var(--grid);
  image-rendering: pixelated;
  color: var(--node-color);
  filter: drop-shadow(0 0 14px color-mix(in srgb, var(--node-color) 34%, transparent));
  outline: 1px solid rgba(241, 248, 255, 0.36);
  outline-offset: 0;
  background: currentColor;
  transform: scale(var(--proximity-scale, 1));
  transform-origin: center;
  animation: nodeBreath 4.8s ease-in-out infinite;
  animation-delay: calc(var(--node-index, 0) * -180ms);
  transition: transform 90ms linear, filter 140ms ease, outline-color 140ms ease;
}

.pixel-icon::before,
.pixel-icon::after {
  content: none;
}

.map-node.people .pixel-icon {
  width: var(--grid);
  height: var(--grid);
}

@keyframes edgeFlicker {
  0%,
  100% {
    opacity: 0.28;
  }
  37% {
    opacity: 0.48;
  }
  41% {
    opacity: 0.3;
  }
  68% {
    opacity: 0.42;
  }
}

@keyframes intersectionBreath {
  0%,
  100% {
    opacity: 0.28;
  }
  46% {
    opacity: 0.56;
  }
  62% {
    opacity: 0.38;
  }
}

@keyframes nodeBreath {
  0%,
  100% {
    box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 0%, transparent);
  }
  46% {
    box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 12%, transparent);
  }
}

.cluster-label {
  position: absolute;
  color: rgba(241, 248, 255, 0.36);
  font-family: "Pixelify Sans", Inter, sans-serif;
  font-size: 13px;
  text-transform: uppercase;
}

.cluster-label.projects {
  left: calc(var(--grid) * 12);
  top: calc(var(--grid) * 4);
}

.cluster-label.teaching {
  left: calc(var(--grid) * 4);
  top: calc(var(--grid) * 10);
}

.cluster-label.people {
  left: calc(var(--grid) * 11);
  top: calc(var(--grid) * 14);
}

.cluster-legend {
  position: absolute;
  right: clamp(18px, 3vw, 42px);
  top: 26px;
  z-index: 25;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
  color: rgba(241, 248, 255, 0.72);
  font-family: "Pixelify Sans", Inter, sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  mix-blend-mode: normal;
}

.cluster-legend button {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-transform: inherit;
  transition: color 160ms ease, transform 160ms ease;
}

.cluster-legend button:hover,
.cluster-legend button.is-active {
  color: #ffffff;
  transform: translateY(-1px);
}

.cluster-legend i {
  width: 9px;
  height: 9px;
  display: inline-block;
}

.legend-research {
  background: #5f8fb1;
}

.legend-tool {
  background: #6a9f7b;
}

.legend-teaching {
  background: #bd564a;
}

.legend-writing {
  background: #b98ac8;
}

.legend-people {
  background: #d4c184;
}

.section-heading p,
.large-copy p,
.about-copy p {
  margin: 0;
  color: inherit;
  font-size: clamp(16px, 1.45vw, 22px);
  line-height: 1.34;
}

.text-link {
  width: max-content;
  padding-bottom: 5px;
  border-bottom: 1px solid currentColor;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.section {
  padding: calc(var(--grid) * 4) calc(var(--grid) * 2);
  border-top: 1px solid var(--line);
  background: rgba(239, 238, 233, 0.94);
}

.section-heading {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--grid);
  align-items: end;
  margin-bottom: calc(var(--grid) * 3);
}

.section-heading .eyebrow {
  grid-column: span 3;
}

.section-heading h2 {
  grid-column: span 5;
}

.section-heading > p:not(.eyebrow) {
  grid-column: span 4;
}

.section-heading h2,
.split-section h2,
.teaching-section h2,
.writing-section h2,
.people-section h2,
.about-section h2 {
  margin: 0;
  font-family: Newsreader, Georgia, serif;
  font-weight: 400;
  font-size: clamp(38px, 5vw, 86px);
  line-height: 0.97;
  letter-spacing: 0;
}

.section-heading .eyebrow {
  align-self: start;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--grid) / 2);
  margin-bottom: var(--grid);
}

.filter-chip {
  min-height: var(--grid);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 0 calc(var(--grid) / 2);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition:
    color 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.filter-chip:hover,
.filter-chip.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--grid);
}

.project-card {
  position: relative;
  display: block;
  min-height: calc(var(--grid) * 8);
  border: 1px solid rgba(17, 19, 15, 0.18);
  border-radius: 0;
  padding: 0;
  background: rgba(239, 238, 233, 0.72);
  color: var(--ink);
  cursor: pointer;
  overflow: hidden;
  text-align: left;
  text-decoration: none;
  box-shadow: none;
}

.project-card:nth-child(6n + 1),
.project-card:nth-child(6n + 4) {
  grid-column: span 7;
}

.project-card:nth-child(6n + 2),
.project-card:nth-child(6n + 3) {
  grid-column: span 5;
}

.project-card:nth-child(6n + 5),
.project-card:nth-child(6n + 6) {
  grid-column: span 6;
}

.project-visual {
  display: none;
}

.project-visual::before {
  content: "";
  position: absolute;
  inset: -12%;
  background:
    radial-gradient(circle at var(--x) var(--y), rgba(255, 255, 255, 0.22), transparent 24%),
    linear-gradient(160deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.52));
  mix-blend-mode: normal;
}

.project-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--texture);
  background-size: 30px 30px, 140px 140px;
  opacity: 0.16;
}

.project-card:hover .project-visual {
  filter: saturate(1.06) contrast(1.05);
  transform: scale(1.045);
}

.project-info {
  position: relative;
  z-index: 2;
  min-height: inherit;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--grid);
  background: transparent;
}

.project-info h3 {
  max-width: 560px;
  margin: 0;
  font-family: Newsreader, Georgia, serif;
  font-size: clamp(30px, 4vw, 72px);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: 0;
}

.project-info p {
  max-width: 440px;
  margin: 14px 0 0;
  color: rgba(17, 19, 15, 0.66);
  line-height: 1.45;
}

.project-kicker,
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.project-tags span {
  border: 1px solid currentColor;
  border-radius: 0;
  padding: 4px 8px;
}

.split-section,
.writing-section,
.people-section {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--grid);
}

.split-section > div:first-child,
.writing-section > div:first-child,
.people-section > div:first-child {
  grid-column: span 4;
}

.split-section > div:last-child,
.writing-section > div:last-child,
.people-section > div:last-child {
  grid-column: span 8;
}

.large-copy,
.compact-list {
  display: grid;
  gap: 0;
}

.compact-list {
  border-top: 1px solid var(--line);
}

.compact-list article {
  display: grid;
  grid-template-columns: calc(var(--grid) * 4) 1fr;
  gap: var(--grid);
  min-height: calc(var(--grid) * 2);
  padding: calc(var(--grid) / 2) 0;
  border-bottom: 1px solid var(--line);
}

.compact-list span {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.compact-list strong {
  max-width: 760px;
  font-size: clamp(20px, 2.2vw, 36px);
  line-height: 1.05;
  font-weight: 500;
}

.teaching-section {
  background-color: #ddddd5;
}

.course-list,
.writing-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.course-row,
.writing-list a {
  display: grid;
  grid-template-columns: calc(var(--grid) * 4) minmax(220px, 0.8fr) minmax(260px, 1fr);
  gap: var(--grid);
  min-height: calc(var(--grid) * 3);
  padding: var(--grid) 0;
  border-bottom: 1px solid var(--line);
}

.course-row h3,
.writing-list strong,
.people-grid h3 {
  margin: 0;
  font-size: clamp(20px, 2vw, 34px);
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: 0;
}

.course-row p,
.people-grid p,
.writing-list em {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.42;
  font-style: normal;
}

.writing-list a {
  transition: color 160ms ease;
}

.writing-list a:hover {
  color: var(--oxide);
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid);
}

.people-grid article {
  min-height: calc(var(--grid) * 10);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: calc(var(--grid) / 2);
  padding: var(--grid);
  background: #dad9cf;
}

.portrait-mark {
  width: 100%;
  min-height: 170px;
  margin-bottom: auto;
  background:
    radial-gradient(circle at 38% 32%, rgba(155, 73, 56, 0.65), transparent 11%),
    radial-gradient(circle at 62% 58%, rgba(88, 113, 122, 0.68), transparent 14%),
    linear-gradient(135deg, rgba(23, 23, 19, 0.1), rgba(86, 105, 84, 0.35)),
    repeating-linear-gradient(90deg, transparent 0 16px, rgba(23, 23, 19, 0.1) 16px 17px);
}

.people-grid a {
  width: max-content;
  border-bottom: 1px solid currentColor;
}

.about-section {
  background: var(--ink);
  color: var(--paper);
}

.about-section h2 {
  max-width: 1180px;
}

.about-copy {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: clamp(24px, 5vw, 90px);
  max-width: 960px;
  margin-top: 48px;
  color: rgba(239, 238, 233, 0.74);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 22px clamp(18px, 3vw, 42px);
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 12px;
  text-transform: uppercase;
}

.subpage {
  min-height: 100vh;
  background:
    linear-gradient(rgba(17, 19, 15, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 19, 15, 0.16) 1px, transparent 1px),
    radial-gradient(circle at 72% 24%, rgba(95, 143, 177, 0.1), transparent 24vw),
    #f4f3ee;
  background-size: var(--grid) var(--grid), var(--grid) var(--grid), auto, auto;
  color: var(--ink);
}

.subpage-main {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 16px;
  padding: clamp(28px, 5vw, 64px);
}

.subpage-main a,
.subpage-main p {
  max-width: 760px;
  margin: 0;
  color: rgba(17, 19, 15, 0.68);
}

.subpage-main a,
.subpage-main > p:first-of-type {
  font-family: "Pixelify Sans", Inter, sans-serif;
  font-size: 13px;
  text-transform: uppercase;
}

.subpage-main h1 {
  max-width: 1050px;
  margin: 0;
  font-family: "Pixelify Sans", Inter, sans-serif;
  font-size: clamp(48px, 8vw, 118px);
  font-weight: 500;
  line-height: 0.9;
  text-transform: uppercase;
}

.project-dialog {
  width: min(1040px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  border: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.project-dialog::backdrop {
  background: rgba(16, 17, 14, 0.68);
}

.dialog-close {
  position: sticky;
  top: 0;
  z-index: 2;
  float: right;
  margin: 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(239, 238, 233, 0.86);
  cursor: pointer;
}

.dialog-hero {
  min-height: 430px;
  display: flex;
  align-items: flex-end;
  padding: 28px;
  color: var(--paper);
  background-image:
    linear-gradient(180deg, rgba(10, 11, 9, 0.08), rgba(10, 11, 9, 0.66)),
    var(--card-bg);
  background-size: cover, cover;
  background-position: center;
}

.dialog-hero h2 {
  max-width: 760px;
  margin: 0;
  font-family: Newsreader, Georgia, serif;
  font-size: clamp(42px, 8vw, 92px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0;
}

.dialog-body {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(24px, 5vw, 70px);
  padding: 30px;
}

.dialog-body dl {
  margin: 0;
  display: grid;
  gap: 12px;
  color: var(--ink-soft);
}

.dialog-body dt {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.dialog-body dd {
  margin: 2px 0 0;
}

.dialog-body p {
  margin: 0 0 24px;
  font-family: Newsreader, Georgia, serif;
  font-size: clamp(24px, 3vw, 42px);
  line-height: 1.08;
}

.dialog-body .project-tags {
  color: var(--ink-soft);
}

@media (max-width: 820px) {
  :root {
    --grid: 28px;
  }

  .site-header {
    display: none;
  }

  .nav-links {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .hero-overlay,
  .section-heading,
  .split-section,
  .writing-section,
  .people-section,
  .about-copy,
  .dialog-body {
    grid-template-columns: 1fr;
  }

  .hero-overlay {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-top: 160px;
    gap: 28px;
    background: transparent;
  }

  .hero-mini-header h1 {
    font-size: 22px;
  }

  .hero-panel {
    justify-self: auto;
  }

  .cluster-label {
    font-size: 11px;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-card,
  .project-card:nth-child(n) {
    grid-column: 1;
    min-height: 390px;
  }

  .course-row,
  .writing-list a,
  .compact-list article {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .people-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
  }
}
