@import url("https://fonts.googleapis.com/css2?family=Freckle+Face&display=swap");

:root {
  --bg: #f6f7f5;
  --paper: #ffffff;
  --paper-soft: #eef2f0;
  --ink: #15233f;
  --muted: #586676;
  --soft: #8a93a0;
  --line: #dde2e6;
  --line-strong: #c3cbd3;
  --navy: #15233f;
  --navy-deep: #101b33;
  --teal: #2f7873;
  --teal-dark: #245f5b;
  --gold: #b0822c;
  --gold-dark: #876224;
  --brick: #b54a43;
  --brick-dark: #8f3a34;
  --accent: var(--brick);
  --accent-dark: var(--teal-dark);
  --shadow: 0 18px 44px rgba(21, 35, 63, 0.09);
  --sidebar: 234px;
  --content-max: 1120px;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 82% 10%, rgba(47, 120, 115, 0.08), transparent 26rem),
    linear-gradient(180deg, var(--bg), #ffffff 52%, #f3f7f5);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(22, 32, 42, 0.18) 1px, transparent 1.5px);
  background-size: 24px 24px;
  opacity: 0.12;
  z-index: -1;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

a:hover {
  color: var(--brick-dark);
}

.side-nav {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar);
  padding: 22px 18px 0;
  border-right: 1px solid var(--line);
  background:
    radial-gradient(circle at 26% 6%, rgba(47, 120, 115, 0.06), transparent 11rem),
    linear-gradient(180deg, #ffffff 0%, #f4f6f4 60%, #eef2ef 100%);
  z-index: 20;
  display: flex;
  flex-direction: column;
  box-shadow: 6px 0 26px rgba(21, 35, 63, 0.05);
  overflow: hidden;
  isolation: isolate;
}

.side-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(21, 35, 63, 0.045) 1px, transparent 1px);
  background-position: 0 0;
  background-size: 100% 74px;
  opacity: 0.5;
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.7) 54%, transparent 100%);
}

.sidebar-network-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.6;
  mix-blend-mode: normal;
}

.side-nav::after {
  content: "";
  position: absolute;
  top: 28px;
  right: 0;
  bottom: 28px;
  width: 2px;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(181, 74, 67, 0.55), rgba(47, 120, 115, 0.4), transparent);
}

.side-nav > * {
  position: relative;
  z-index: 1;
}

.side-nav > .sidebar-network-canvas {
  position: absolute;
  z-index: 0;
}

.brand-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  text-decoration: none;
  margin-bottom: 22px;
  padding: 10px 8px 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.brand-mark img {
  width: 97px;
  height: 97px;
  object-fit: contain;
}

.brand-text {
  font-family: "Freckle Face", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 33px;
  font-weight: 400;
  line-height: 1.05;
  color: var(--navy);
  letter-spacing: 0.02em;
  text-transform: none;
}

.nav-links {
  display: grid;
  gap: 2px;
  padding: 6px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.nav-links a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--navy);
  text-decoration: none;
  padding: 11px 12px 11px 14px;
  border-left: 3px solid transparent;
  border-radius: 0 6px 6px 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.nav-icon {
  width: 20px;
  height: 20px;
  color: var(--teal-dark);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.nav-links a:hover {
  color: var(--navy);
  background: rgba(21, 35, 63, 0.05);
}

.nav-links a[aria-current="page"] {
  color: var(--accent);
  border-left-color: var(--accent);
  background: transparent;
}

.nav-links a[aria-current="page"] .nav-icon {
  color: var(--accent);
}

.sidebar-note {
  margin-top: auto;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.5;
}

.sidebar-avatar {
  margin-top: auto;
  margin-bottom: 4px;
  display: flex;
  justify-content: center;
}

.pixel-avatar {
  --frame: 0;
  --lift: 0px;
  position: relative;
  width: min(100%, 10.4rem);
  max-width: 100%;
  outline: none;
  cursor: default;
  transform: translateY(var(--lift));
  transition: transform 160ms ease;
  user-select: none;
}

.pixel-avatar:focus-visible {
  border-radius: 8px;
  box-shadow: 0 0 0 0.28rem rgba(47, 120, 115, 0.2);
}

.pixel-avatar__viewport {
  position: relative;
  z-index: 1;
  overflow: hidden;
  aspect-ratio: 526 / 748;
  filter: drop-shadow(0 1rem 0.85rem rgba(30, 44, 37, 0.14));
}

.pixel-avatar__sheet {
  display: block;
  width: 400%;
  height: 100%;
  max-width: none;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  object-fit: cover;
  transform: translateX(calc(var(--frame) * -25%));
  transition: transform 90ms steps(1, end);
}

.pixel-avatar__shadow {
  position: absolute;
  right: 18%;
  bottom: 3%;
  left: 14%;
  height: 0.9rem;
  border-radius: 999px;
  background: rgba(28, 42, 35, 0.16);
  filter: blur(0.16rem);
  transform: scaleX(0.92);
}

.pixel-avatar[data-jump="true"] {
  --lift: -0.42rem;
}

.sidebar-pixel-avatar {
  width: min(100%, 9.9rem);
}

.sidebar-pixel-avatar .pixel-avatar__shadow {
  display: none;
}

.sidebar-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 2px 0 26px;
}

.sidebar-social a {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  text-decoration: none;
  border: 0;
  background: transparent;
  transition: transform 160ms ease, opacity 160ms ease;
}

.sidebar-social a:hover {
  transform: translateY(-2px);
  opacity: 0.82;
}

.sidebar-social img {
  width: 25px;
  height: 25px;
  object-fit: contain;
}

.page {
  margin-left: var(--sidebar);
  min-height: 100vh;
}

.content {
  width: min(var(--content-max), calc(100% - 64px));
  margin: 0 auto;
  padding: 30px 0 0;
}

.home-page .content {
  padding-top: 0;
}

.hero-banner {
  position: relative;
  width: calc(100vw - var(--sidebar));
  min-height: clamp(250px, 21vw, 280px);
  margin-left: calc((min(var(--content-max), calc(100vw - var(--sidebar) - 64px)) - (100vw - var(--sidebar))) / 2);
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #14202b;
}

.hero-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.96) contrast(0.98);
}

.hero-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 17, 40, 0.28), rgba(12, 17, 40, 0.02), rgba(12, 17, 40, 0.3)),
    linear-gradient(180deg, rgba(12, 17, 40, 0.18), rgba(12, 17, 40, 0.32));
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #ffffff;
  padding: 28px;
}

h1,
h2,
h3,
.section-title,
.quote-line {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.18;
}

h1 {
  margin: 0;
  font-size: 43px;
}

.hero-inner h1 {
  font-size: clamp(42px, 4.2vw, 58px);
  line-height: 1.04;
}

.hero-inner p {
  margin: 12px auto 0;
  max-width: 38rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: 16px;
}

.section {
  padding: 48px 0;
}

.section.compact {
  padding: 34px 0;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(320px, 390px) 1fr;
  gap: 42px;
  align-items: start;
}

.portrait-frame {
  margin: 0;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  padding: 0;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.portrait-frame img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.lead-title {
  margin: 0 0 16px;
  font-size: 24px;
}

.lead-copy {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.78;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}

.text-button:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.cv-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ink);
  text-decoration: none;
  font-size: clamp(17px, 1.8vw, 20px);
  font-weight: 500;
  line-height: 1.1;
}

.cv-link svg {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cv-arrow {
  color: var(--accent);
  font-size: 1.08em;
  line-height: 1;
}

.cv-link:hover {
  color: var(--accent-dark);
}

.label-title {
  display: block;
  margin: 0 0 30px;
  padding: 22px 0 20px;
  border-top: 2px solid rgba(181, 74, 67, 0.62);
  border-bottom: 2px solid rgba(181, 74, 67, 0.62);
  border-radius: 0;
  background: transparent;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 4.2vw, 44px);
  line-height: 1.18;
  text-align: center;
}

.galaxy-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  justify-items: stretch;
}

.cloud-heading-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  text-align: center;
}

.galaxy-heading-wrap {
  width: 100%;
  text-align: center;
  padding: 22px 0 20px;
  border-top: 2px solid rgba(181, 74, 67, 0.62);
  border-bottom: 2px solid rgba(181, 74, 67, 0.62);
}

.galaxy-heading {
  max-width: 100%;
  margin: 0 auto;
  color: var(--ink);
  font-size: clamp(28px, 4.2vw, 44px);
  text-align: center;
}

.galaxy-copy {
  max-width: 100%;
  text-align: left;
}

.galaxy-copy--full {
  width: 100%;
}

.galaxy-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  width: 100%;
}

.galaxy-copy p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.78;
}

.galaxy-figure {
  width: 100%;
  margin: 0;
}

.galaxy-figure img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.galaxy-figure .caption {
  max-width: 100%;
  margin-top: 11px;
}

.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: center;
}

.simulation-section {
  grid-template-columns: 55fr 45fr;
  gap: 13px;
  align-items: center;
}

.simulation-section > .section-copy {
  width: 100%;
  max-width: none;
  padding-left: 0;
}

.section-copy p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.78;
}

.simulation-copy-full {
  margin-top: 22px;
}

.media-frame {
  border: 1px solid var(--line-strong);
  background: var(--paper);
  padding: 10px;
  box-shadow: var(--shadow);
}

.simulation-figure {
  width: calc(100% + 24px);
  margin-left: -24px;
  border: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.media-frame img {
  width: 100%;
  height: 310px;
  object-fit: cover;
}

.media-frame img.simulation-figure-image {
  height: auto;
  object-fit: contain;
}

.caption {
  margin: 9px 0 0;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.5;
}

.simulation-panel {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(circle at 50% 50%, rgba(181, 74, 67, 0.18), transparent 10rem),
    radial-gradient(circle at 18% 74%, rgba(47, 120, 115, 0.2), transparent 12rem),
    #101821;
  box-shadow: var(--shadow);
}

.simulation-panel canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.simulation-panel .simulation-label {
  position: absolute;
  left: 20px;
  bottom: 18px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
}

.quote-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 36px;
  align-items: center;
}

.hawking-quote-section {
  padding-top: 42px;
  padding-bottom: 44px;
}

.quote-copy {
  border-left: 2px solid rgba(181, 74, 67, 0.64);
  padding-left: 24px;
}

.quote-line {
  margin: 0;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.4;
  color: var(--ink);
}

.quote-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.hawking-figure {
  width: 100%;
  margin: 0;
  align-self: center;
}

.hawking-track {
  position: relative;
  height: 230px;
  overflow: hidden;
}

.hawking-track::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(22, 32, 42, 0.26), transparent);
}

.hawking-figure img {
  position: absolute;
  left: 0;
  bottom: 8px;
  width: 170px;
  animation: hawking-glide 8.5s ease-in-out infinite;
}

.page-header {
  padding: 54px 0 34px;
  border-bottom: 1px solid var(--line);
}

.page-header h1 {
  color: var(--ink);
}

.page-header p {
  margin: 14px 0 0;
  max-width: 46rem;
  color: var(--muted);
}

.research-list,
.publication-list,
.outreach-list {
  display: grid;
  gap: 22px;
}

.research-item,
.publication-item,
.outreach-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 34px rgba(22, 32, 42, 0.06);
}

.research-item {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  overflow: hidden;
}

.research-item.reverse {
  grid-template-columns: 0.9fr 1.1fr;
}

.research-body,
.publication-item {
  padding: 24px;
}

.research-body h2,
.publication-item h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

.research-body p,
.publication-item p {
  margin: 0 0 12px;
  color: var(--muted);
}

.research-image img,
.outreach-image img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.research-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.research-tags span {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 5px 8px;
  background: var(--paper);
  color: var(--muted);
  font-size: 13px;
}

.publication-meta {
  margin-bottom: 12px;
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 700;
}

.publication-title {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  line-height: 1.28;
}

.publication-authors,
.publication-venue {
  margin: 0 0 10px;
  color: var(--muted);
}

.publication-link {
  display: inline-block;
  margin-top: 6px;
  font-weight: 700;
  text-decoration: none;
}

.pub-group + .pub-group {
  margin-top: 44px;
}

.pub-group__head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 12px;
  padding-bottom: 10px;
  margin-bottom: 4px;
  border-bottom: 2px solid var(--accent);
}

.pub-group__head h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 500;
  color: var(--ink);
}

.pub-group__sub {
  color: var(--soft);
  font-size: 13px;
}

.pub-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pub-entry {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.pub-entry:last-child {
  border-bottom: 0;
}

.pub-num {
  padding-top: 2px;
  color: var(--soft);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.pub-main {
  min-width: 0;
}

.pub-title {
  margin: 0 0 5px;
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.36;
  color: var(--ink);
}

.pub-title a {
  color: inherit;
  text-decoration: none;
}

.pub-title a:hover {
  color: var(--brick-dark);
}

.pub-authors {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.5;
}

.pub-authors .me {
  color: var(--ink);
  font-weight: 700;
}

.pub-venue {
  margin: 0;
  color: var(--soft);
  font-size: 14px;
  font-style: italic;
}

.pub-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: 11px;
}

.pub-tag {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 2px 10px;
  background: var(--paper-soft);
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pub-link,
.cite-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent-dark);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.pub-link:hover,
.cite-btn:hover {
  color: var(--brick-dark);
}

.pub-link svg,
.cite-btn svg {
  width: 14px;
  height: 14px;
}

.pub-bibtex {
  display: none;
  margin-top: 12px;
}

.pub-bibtex.open {
  display: block;
}

.bib-box {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--paper-soft);
  overflow: hidden;
}

.bib-box pre {
  margin: 0;
  padding: 14px 16px;
  overflow-x: auto;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.55;
}

.bib-copy {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 4px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.bib-copy:hover {
  border-color: var(--accent);
  color: var(--brick-dark);
}

.outreach-item {
  overflow: hidden;
}

.outreach-image img {
  max-height: 390px;
}

.outreach-item.featured {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
}

.outreach-events {
  display: grid;
  gap: 40px;
}

.outreach-event {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(320px, 0.88fr);
  gap: 34px;
  align-items: start;
  padding-bottom: 46px;
  border-bottom: 1px solid var(--line);
}

.outreach-event:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.outreach-media {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.outreach-photo {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #0d1731;
}

.outreach-photo img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  display: block;
}

.outreach-photo--main img {
  min-height: 330px;
}

.outreach-media__row {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 14px;
}

.outreach-media__row .outreach-photo img {
  min-height: 230px;
  height: 230px;
  object-fit: cover;
}

.outreach-media__row--three {
  grid-template-columns: repeat(3, 1fr);
}

.outreach-media__row--three .outreach-photo img {
  min-height: 170px;
  height: 170px;
}

.outreach-body {
  min-width: 0;
}

.outreach-date {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(181, 74, 67, 0.1);
  color: var(--brick-dark);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.outreach-date svg {
  width: 15px;
  height: 15px;
}

.outreach-body h2 {
  margin: 14px 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
}

.outreach-where {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.outreach-where svg {
  width: 16px;
  height: 16px;
  color: var(--teal);
  flex: 0 0 auto;
}

.outreach-body p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.site-footer {
  margin-top: 54px;
  width: calc(100vw - var(--sidebar));
  margin-left: calc((min(var(--content-max), calc(100vw - var(--sidebar) - 64px)) - (100vw - var(--sidebar))) / 2);
  padding: 34px max(32px, calc((100vw - var(--sidebar) - var(--content-max)) / 2)) 30px;
  background: rgba(232, 238, 236, 0.82);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 32px;
  align-items: center;
}

.footer-grid strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 5px;
}

.footer-loc-icon {
  display: block;
  width: 24px;
  height: 24px;
  margin-bottom: 8px;
  color: var(--accent);
}

.footer-grid p,
.footer-grid a {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.social-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
}

.social-links a {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.social-links img {
  width: 27px;
  height: 27px;
  object-fit: contain;
  opacity: 1;
}

.social-links a:hover {
  opacity: 0.82;
  transform: translateY(-2px);
}

.fine-print {
  margin-top: 22px;
  color: var(--soft);
  font-size: 13px;
}

@keyframes quiet-drift {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes hawking-glide {
  0%,
  100% {
    left: 0;
  }

  50% {
    left: calc(100% - 170px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hawking-figure img {
    animation: none;
  }

  .side-nav,
  .side-nav::before,
  .side-nav::after {
    animation: none;
  }
}

@media (max-width: 920px) {
  .side-nav {
    position: sticky;
    top: 0;
    width: 100%;
    min-height: auto;
    padding: 14px 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .brand-mark {
    flex-direction: row;
    margin-bottom: 10px;
    width: fit-content;
    padding: 4px 0;
    gap: 9px;
  }

  .brand-mark img {
    width: 54px;
    height: 54px;
  }

  .brand-text {
    font-size: 26px;
  }

  .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 0;
    border: 0;
  }

  .nav-links a {
    gap: 8px;
    font-size: 15px;
    padding: 7px 10px 7px 12px;
  }

  .nav-icon {
    width: 18px;
    height: 18px;
  }

  .sidebar-note {
    display: none;
  }

  .sidebar-avatar {
    margin-top: auto;
    margin-bottom: 6px;
    justify-content: flex-start;
  }

  .pixel-avatar {
    width: min(8.6rem, 38vw);
  }

  .sidebar-social {
    justify-content: flex-start;
    gap: 16px;
    padding-bottom: 0;
  }

  .sidebar-social a {
    width: 30px;
    height: 30px;
  }

  .sidebar-social img {
    width: 23px;
    height: 23px;
  }

  .page {
    margin-left: 0;
  }

  .content {
    width: min(100% - 34px, var(--content-max));
    padding-top: 20px;
  }

  .hero-banner {
    width: 100vw;
    min-height: 170px;
    margin-left: calc((100vw - 100%) / -2);
  }

  .simulation-figure {
    width: 100%;
    margin-left: 0;
  }

  .site-footer {
    width: 100vw;
    margin-left: calc((100vw - 100%) / -2);
    padding-left: max(17px, calc((100vw - var(--content-max)) / 2));
    padding-right: max(17px, calc((100vw - var(--content-max)) / 2));
  }

  h1 {
    font-size: 34px;
  }

  .hero-inner h1 {
    font-size: 38px;
  }

  .intro-grid,
  .split-section,
  .galaxy-body,
  .outreach-event,
  .research-item,
  .research-item.reverse,
  .outreach-item.featured,
  .quote-section,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .portrait-frame {
    max-width: 420px;
  }

  .outreach-event {
    gap: 22px;
  }

  .outreach-body h2 {
    font-size: 27px;
  }

  .outreach-photo--main img,
  .outreach-media__row .outreach-photo img {
    min-height: 240px;
  }

  .social-links {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 15px;
  }

  .hero-banner {
    min-height: 155px;
  }

  .side-nav {
    padding: 12px 14px;
  }

  .brand-mark {
    margin-bottom: 8px;
  }

  .brand-mark img {
    width: 46px;
    height: 46px;
  }

  .brand-text {
    font-size: 22px;
    letter-spacing: 0.04em;
  }

  .nav-links {
    gap: 3px;
  }

  .sidebar-avatar {
    margin-top: auto;
  }

  .nav-links a {
    font-size: 14px;
    padding: 6px 9px 6px 11px;
  }

  .nav-icon {
    width: 16px;
    height: 16px;
  }

  .hero-inner {
    padding: 20px;
  }

  h1 {
    font-size: 29px;
  }

  .section {
    padding: 34px 0;
  }

  .label-title {
    font-size: 22px;
  }

  .hero-inner h1 {
    font-size: 30px;
  }

  .galaxy-heading {
    font-size: 27px;
  }

  .label-title {
    font-size: 27px;
  }

  .cv-link {
    font-size: 18px;
  }

  .cv-link svg {
    width: 21px;
    height: 21px;
  }

  .media-frame img {
    height: 230px;
  }

  .outreach-events {
    gap: 32px;
  }

  .outreach-media__row,
  .outreach-media__row--three {
    grid-template-columns: 1fr;
  }

  .outreach-photo img,
  .outreach-photo--main img,
  .outreach-media__row .outreach-photo img {
    min-height: 0;
    height: auto;
  }

  .outreach-body h2 {
    font-size: 24px;
  }

  .simulation-panel {
    min-height: 260px;
  }

  .quote-line {
    font-size: 19px;
    line-height: 1.42;
  }

  .quote-copy {
    padding-left: 17px;
  }

  .hawking-track {
    height: 210px;
  }

  .research-body,
  .publication-item,
  .outreach-body {
    padding: 18px;
  }
}

/* ===== Research page ===== */
.project-list {
  display: grid;
  gap: 0;
}

.rblock {
  padding: 46px 0;
  border-top: 1px solid var(--line);
}

.rblock:first-child {
  border-top: 0;
  padding-top: 8px;
}

/* Title header: number + status, name, tags (top, full width) */
.project-head {
  margin-bottom: 26px;
}

.project-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 11px;
}

.project-number {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent-dark);
}

.project-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px solid rgba(47, 120, 115, 0.4);
  border-radius: 999px;
  background: rgba(47, 120, 115, 0.08);
  color: var(--teal);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.project-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
}

.project-head h2 {
  margin: 0 0 14px;
  font-size: clamp(23px, 2.6vw, 30px);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-tags span {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 5px 9px;
  background: var(--paper);
  color: var(--muted);
  font-size: 13px;
}

/* Body: image 40% left, text 60% right */
.project-main {
  display: grid;
  grid-template-columns: 53fr 47fr;
  gap: 17px;
  align-items: start;
}

.project-main--image55 {
  grid-template-columns: 55fr 45fr;
}

.project-hero {
  margin: 0;
}

.project-hero img {
  max-height: 430px;
}

.project-text p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.78;
}

.project-text p:last-child {
  margin-bottom: 0;
}

/* Shared framed figure */
.figure-frame {
  margin: 0;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  padding: 10px;
  box-shadow: var(--shadow);
}

.figure-frame img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.figure-frame figcaption {
  margin: 9px 2px 2px;
  color: var(--soft);
  font-size: 12.5px;
  line-height: 1.5;
}

/* ISM: full-width stacked plots below the main row */
.ism-plots {
  display: grid;
  gap: 18px;
  margin-top: 30px;
}

.ism-plots .figure-frame img {
  max-height: 560px;
}

@media (max-width: 920px) {
  .rblock {
    padding: 34px 0;
  }

  .project-main {
    grid-template-columns: 1fr;
    gap: 22px;
  }

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

  .project-hero img {
    max-height: 420px;
  }

  .ism-plots .figure-frame img {
    max-height: 420px;
  }
}

/* CMB (project 3): multi-row mixed layout */
.cmb-row {
  display: grid;
  gap: 36px;
  align-items: center;
}

.cmb-row + .cmb-row {
  margin-top: 30px;
}

.cmb-row--imgL {
  grid-template-columns: 65fr 35fr;
}

.cmb-row--textL {
  grid-template-columns: 35fr 65fr;
}

.rblock--sector-classification .project-main + .cmb-row {
  margin-top: 44px;
}

.rblock--sector-classification .inline-actions {
  margin-top: 18px;
}

.rblock--radio .radio-intro {
  grid-template-columns: 45fr 55fr;
}

.radio-media-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
  margin-top: 34px;
}

.radio-media-pair video {
  display: block;
  width: 100%;
  height: auto;
  background: #0c1322;
}

.radio-transit-row {
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: 34px;
  align-items: start;
  margin-top: 34px;
}

.radio-transit-row .figure-frame img {
  max-height: 520px;
}

.radio-transit-text .inline-actions {
  margin-top: 18px;
}

.cmb-row--3070 {
  grid-template-columns: 30fr 70fr;
  align-items: start;
}

.cmb-row .figure-frame img {
  max-height: 460px;
}

@media (max-width: 920px) {
  .cmb-row--imgL,
  .cmb-row--textL,
  .cmb-row--3070 {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .cmb-row + .cmb-row {
    margin-top: 22px;
  }

  .rblock--sector-classification .project-main + .cmb-row {
    margin-top: 28px;
  }

  .rblock--radio .radio-intro,
  .radio-media-pair,
  .radio-transit-row {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .radio-media-pair,
  .radio-transit-row {
    margin-top: 28px;
  }

  /* keep text above its image on narrow screens for the text-left row */
  .cmb-row--textL .project-text {
    order: -1;
  }
}

/* CMB: full-width closing text after the final plot */
.cmb-fullwidth {
  margin-top: 30px;
}

.rfig-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 30px;
  align-items: start;
}

.rfig-grid + .project-main,
.project-main + .project-main {
  margin-top: 34px;
}

.project-video {
  margin-top: 30px;
}

.figure-frame video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

@media (max-width: 920px) {
  .rfig-grid {
    grid-template-columns: 1fr;
  }
}
