:root {
  --bg: #f4f1ea;
  --surface: rgba(255, 255, 255, 0.84);
  --surface-strong: #ffffff;
  --sidebar: linear-gradient(180deg, #0f4c5c 0%, #0a2d36 100%);
  --sidebar-width: clamp(300px, 24vw, 300px);
  --content-gap: clamp(1.4rem, 2.8vw, 2.8rem);
  --sidebar-text: #f6f6f1;
  --ink: #19323c;
  --muted: #5f6e76;
  --accent: #d97706;
  --accent-soft: rgba(217, 119, 6, 0.16);
  --section-active: #0f4c5c;
  --border: rgba(25, 50, 60, 0.12);
  --shadow: 0 24px 60px rgba(15, 38, 47, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgba(217, 119, 6, 0.08), transparent 20%),
    linear-gradient(180deg, #f8f5ef 0%, var(--bg) 100%);
}

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

.page-shell {
  position: relative;
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-width);
  height: 100vh;
  z-index: 20;
  background: var(--sidebar);
  color: var(--sidebar-text);
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.sidebar::before,
.sidebar::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.sidebar::before {
  width: 240px;
  height: 240px;
  top: -80px;
  right: -70px;
}

.sidebar::after {
  width: 160px;
  height: 160px;
  bottom: 40px;
  left: -60px;
}

.sidebar__inner {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.6rem 1.1rem 1.6rem;
  min-height: 100%;
  overflow: visible;
}

.avatar {
  width: clamp(118px, 18vh, 156px);
  height: clamp(118px, 18vh, 156px);
  overflow: hidden;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}

.avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.section-tag {
  margin: 0 0 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 800;
}

.profile-block h1 {
  margin: 0;
  font-size: clamp(1.45rem, 1.05rem + 1.4vh, 2.2rem);
  line-height: 1.08;
}

.profile-role,
.profile-location {
  margin: 0.55rem 0 0;
  line-height: 1.45;
  font-size: 0.9rem;
  color: rgba(246, 246, 241, 0.86);
}

.profile-contact {
  display: inline-block;
  margin-top: 0.55rem;
  line-height: 1.45;
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  word-break: break-word;
}

.profile-contact:hover,
.profile-contact:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.profile-contact--footer {
  margin-top: 0;
  margin-bottom: 0.8rem;
  font-size: 0.84rem;
  text-align: center;
}

.section-nav {
  position: relative;
  display: grid;
  gap: 0.45rem;
  margin: 0.35rem 0 0.15rem;
  isolation: isolate;
}

.section-nav__label {
  margin: 0 0 0.25rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(246, 246, 241, 0.62);
}

.section-nav__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.72rem;
  width: 100%;
  min-height: 44px;
  padding: 0.72rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  color: rgba(246, 246, 241, 0.84);
  font-size: 0.92rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.045);
  transition:
    transform 180ms ease,
    color 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.section-nav__link::before {
  content: "";
  flex: 0 0 auto;
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.65);
  transition: inherit;
}

.section-nav__link::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border-left: 4px solid var(--accent);
  background: transparent;
  opacity: 0;
  pointer-events: none;
  transition: inherit;
}

.section-nav__link:hover,
.section-nav__link:focus-visible {
  border-color: rgba(255, 255, 255, 0.24);
  color: #ffffff;
  transform: translateX(4px);
  outline: none;
}

.section-nav__link.is-active {
  z-index: 1;
  transform: translateX(10px);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--section-active);
  background: var(--surface-strong);
  box-shadow: 0 16px 30px rgba(5, 22, 27, 0.18);
}

.section-nav__link.is-active::before {
  border-color: var(--section-active);
  background: var(--section-active);
}

.section-nav__link.is-active::after {
  opacity: 1;
}

.social-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.social-links a,
.social-links button {
  min-width: 48px;
  height: 48px;
  padding: 0 0.9rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.12);
  color: inherit;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  text-align: center;
  position: relative;
  z-index: 1;
}

.sidebar-footer__title {
  margin: 0 0 0.7rem;
  font-size: 0.95rem;
  font-weight: 800;
}

.social-links--footer {
  justify-content: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.social-links--footer a {
  min-width: 34px;
  width: 34px;
  height: 34px;
  padding: 0;
  border-width: 1px;
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.14);
  flex: 0 0 auto;
}

.social-links--footer button {
  min-width: 34px;
  width: 34px;
  height: 34px;
  padding: 0;
  border-width: 1px;
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.14);
  flex: 0 0 auto;
}

.social-links a:hover,
.social-links a:focus-visible,
.social-links button:hover,
.social-links button:focus-visible {
  background: rgba(255, 255, 255, 0.22);
  border-color: #ffffff;
  transform: translateY(-1px);
  outline: none;
}

.social-icon {
  width: 0.95rem;
  height: 0.95rem;
}

.social-icon-text {
  line-height: 1;
}

.social-icon-text--orcid {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.sidebar-footer__status {
  min-height: 1.2rem;
  margin: 0.65rem 0 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(246, 246, 241, 0.86);
}

@media (max-height: 860px) {
  .sidebar__inner {
    gap: 0.7rem;
    padding-top: 1.15rem;
    padding-bottom: 1.15rem;
  }

  .section-nav {
    gap: 0.35rem;
  }

  .section-nav__link {
    min-height: 40px;
    padding: 0.62rem 0.9rem;
    font-size: 0.88rem;
  }

  .social-links--footer a,
  .social-links--footer button {
    min-width: 32px;
    width: 32px;
    height: 32px;
    font-size: 0.68rem;
  }
}

@media (max-height: 720px) {
  .sidebar__inner {
    gap: 0.55rem;
    padding-top: 0.95rem;
    padding-bottom: 0.95rem;
  }

  .profile-role,
  .profile-location,
  .profile-contact {
    line-height: 1.35;
    font-size: 0.84rem;
  }

  .section-nav__label,
  .sidebar-footer__title {
    margin-bottom: 0.45rem;
  }
}

.content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 100vh;
  margin-left: calc(var(--sidebar-width) + var(--content-gap));
  padding: 3rem 2.5rem 4rem 0;
}

.content--single {
  justify-content: flex-start;
  align-items: stretch;
}

.panel {
  position: relative;
  margin: 0 0 1.5rem;
  max-width: 1040px;
  width: min(1040px, calc(100vw - var(--sidebar-width) - var(--content-gap) - 2rem));
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: 0 18px 40px rgba(15, 38, 47, 0.08);
  scroll-margin-top: 1.5rem;
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

.panel.is-active {
  border-color: rgba(15, 76, 92, 0.26);
  box-shadow:
    0 26px 60px rgba(15, 38, 47, 0.16),
    inset 0 0 0 1px rgba(15, 76, 92, 0.08);
}

.panel.is-active h2 {
  color: var(--section-active);
}

.hero-panel {
  padding: 2.5rem;
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.section-heading__actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.section-tag {
  color: var(--accent);
}

.panel h2,
.page-panel h2 {
  margin: 0;
  font-family: "Source Serif 4", serif;
  font-size: clamp(2.15rem, 3.8vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.lead--secondary {
  margin-top: 1.1rem;
}

.lead,
.page-panel p,
.timeline p,
.info-card p,
.project-card p,
.research-item p,
.teaching-card p,
.interest-placeholder p {
  color: #111111;
  line-height: 1.74;
  font-size: 0.94rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.hero-stats article,
.info-card,
.project-card {
  border-radius: 22px;
  border: 1px solid var(--border);
  background: var(--surface-strong);
}

.hero-stats article {
  padding: 1.35rem;
}

.stat-value {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--accent);
  font-size: 2rem;
  font-weight: 800;
}

.stat-label {
  color: var(--muted);
  font-weight: 600;
}

.grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.grid-two--cards {
  align-items: stretch;
}

.info-card {
  padding: 1.4rem;
}

.funding-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 1.4rem;
  align-items: center;
}

.funding-card h3,
.interest-card h4 {
  margin: 0 0 0.55rem;
}

.funding-card p,
.interest-card p {
  margin: 0;
}

.funding-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff7ea 0%, #ffffff 100%);
  border: 1px solid rgba(217, 119, 6, 0.18);
}

.funding-logo img {
  width: 100%;
  max-width: 150px;
  height: auto;
  display: block;
}

.interest-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}

.direction-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1.1rem;
}

.direction-card {
  padding: 1.05rem 1.15rem;
  border: 1px solid rgba(25, 50, 60, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: none;
}

.direction-card__meta {
  margin: 0 0 0.55rem;
  color: #8a5a15;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.direction-card h4 {
  margin: 0 0 0.45rem;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.98rem;
  line-height: 1.35;
}

.direction-card p {
  margin: 0;
  color: #4f5f66;
  font-size: 0.88rem;
  line-height: 1.6;
}

.interest-card {
  border-radius: 22px;
  border: 1px solid var(--border);
  background: var(--surface-strong);
  padding: 1.35rem;
  box-shadow: 0 14px 28px rgba(15, 38, 47, 0.05);
}

.interest-card__tag {
  display: inline-block;
  margin-bottom: 0.85rem;
  padding: 0.38rem 0.72rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #9a5800;
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.info-card h3,
.project-card h3,
.timeline h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.timeline {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.timeline article {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.timeline article:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.timeline-year {
  display: inline-block;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #9a5800;
  font-weight: 800;
  font-size: 0.9rem;
}

.button-link {
  display: inline-flex;
  align-items: center;
  gap: 0.58rem;
  margin-top: 0;
  padding: 0.95rem 1.35rem;
  border-radius: 999px;
  background: #0f4c5c;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 24px rgba(15, 76, 92, 0.2);
}

.button-link--secondary {
  background: var(--accent-soft);
  color: #9a5800;
  box-shadow: none;
}

.button-link--light {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  box-shadow: none;
}

.button-link--white {
  background: #ffffff;
  color: var(--section-active);
  border: 1px solid rgba(15, 76, 92, 0.12);
  box-shadow: 0 14px 30px rgba(15, 38, 47, 0.08);
}

.button-link--white:hover,
.button-link--white:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(15, 38, 47, 0.12);
}

.button-link__icon {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
}

.text-link {
  color: var(--section-active);
  text-decoration: underline;
  text-decoration-color: rgba(15, 76, 92, 0.3);
  text-underline-offset: 0.16em;
}

.text-link:hover,
.text-link:focus-visible {
  text-decoration-color: currentColor;
}

.resource-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 76, 92, 0.22);
  background: rgba(255, 255, 255, 0.28);
  color: var(--section-active);
  box-shadow: none;
}

.resource-link--primary {
  gap: 0.5rem;
  width: auto;
  padding: 0.78rem 1.08rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.resource-link__icon {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
}

.button-row {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 1.8rem;
}

.button-row--compact {
  margin-top: 0;
}

.project-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.grid-two--spaced {
  margin-top: 1rem;
}

.research-stack {
  display: grid;
  gap: 1.3rem;
  margin-top: 1.6rem;
}

.research-group {
  display: grid;
  gap: 0.85rem;
}

.research-group h3,
.teaching-card h3 {
  margin: 0;
  font-size: 1.15rem;
}

.research-item,
.teaching-card,
.interest-placeholder {
  border-radius: 22px;
  border: 1px solid var(--border);
  background: var(--surface-strong);
}

.research-item,
.teaching-card {
  padding: 1.35rem;
}

.research-item__top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.research-item h4 {
  margin: 0 0 0.65rem;
  font-size: 1.08rem;
  line-height: 1.35;
}

.research-meta,
.teaching-meta {
  color: #8a5a15;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.research-item--empty,
.research-item--placeholder {
  background: rgba(255, 255, 255, 0.55);
}

.research-item--empty p,
.research-item--placeholder p {
  margin-bottom: 0;
}

.timeline--compact {
  margin-top: 1rem;
}

.teaching-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.interest-placeholder {
  margin-top: 1.5rem;
  padding: 1.5rem;
}

.project-card {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1.4rem;
}

.project-card a {
  flex-shrink: 0;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #9a5800;
  font-weight: 700;
}

.inspiration-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
  margin-top: 1.4rem;
}

.inspiration-card {
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: var(--surface-strong);
  box-shadow: 0 18px 40px rgba(15, 38, 47, 0.08);
}

.inspiration-card__media {
  position: relative;
  aspect-ratio: 16 / 6.9;
  padding: 0.72rem 0.72rem 1.15rem;
  background:
    radial-gradient(circle at top left, rgba(217, 119, 6, 0.16), transparent 34%),
    linear-gradient(135deg, #f3eee4 0%, #e9f0f2 100%);
}

.inspiration-card__image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.inspiration-card__image--main {
  border-radius: 18px;
  box-shadow: 0 14px 26px rgba(15, 38, 47, 0.12);
}

.inspiration-card__image--float {
  position: absolute;
  right: 1rem;
  bottom: 0.1rem;
  width: 30%;
  height: auto;
  aspect-ratio: 4 / 3;
  border: 4px solid rgba(255, 255, 255, 0.94);
  border-radius: 14px;
  box-shadow: 0 16px 28px rgba(15, 38, 47, 0.16);
  object-position: center;
}

.inspiration-card__body {
  padding: 1.18rem;
}

.inspiration-card__eyebrow {
  margin: 0 0 0.55rem;
  color: #8a5a15;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.inspiration-card h3 {
  margin: 0 0 0.62rem;
  font-size: 1.18rem;
}

.inspiration-card p {
  margin: 0;
  color: #111111;
  line-height: 1.72;
  font-size: 0.92rem;
}

.inspiration-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.15rem;
}

.inspiration-links .resource-link--primary {
  min-height: 44px;
  padding: 0.82rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(15, 76, 92, 0.14);
  background: linear-gradient(180deg, #ffffff 0%, #f8f3ea 100%);
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 24px rgba(15, 38, 47, 0.07);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.inspiration-links .resource-link--primary::after {
  content: "↗";
  font-size: 0.82rem;
  line-height: 1;
}

.inspiration-links .resource-link--primary:hover,
.inspiration-links .resource-link--primary:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(217, 119, 6, 0.28);
  color: var(--section-active);
  box-shadow: 0 16px 30px rgba(15, 38, 47, 0.11);
}

.inspiration-links .resource-link--primary::after {
  content: "->";
}

.inspiration-card__caption {
  margin-top: 0.9rem !important;
  color: #5a6970 !important;
  font-size: 0.82rem !important;
  font-style: italic;
}

.page-panel {
  position: relative;
  margin: 0 0 1.5rem;
  max-width: 1120px;
  width: min(1120px, calc(100vw - var(--sidebar-width) - var(--content-gap) - 2.5rem));
  margin-bottom: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.page-panel::before {
  content: "";
  display: block;
  width: 100%;
  height: 4px;
  margin-bottom: 1.35rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #0f4c5c 0%, #d97706 100%);
}

.page-panel > p,
.page-section > p {
  max-width: none;
}

.page-panel .lead {
  max-width: none;
  font-size: clamp(0.94rem, 1.15vw, 1rem);
  line-height: 1.76;
  font-weight: 500;
}

.page-section h3,
.page-panel h3 {
  margin: 0 0 0.8rem;
  font-family: "Source Serif 4", serif;
  font-size: clamp(1.08rem, 1.3vw, 1.32rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.page-section--spaced {
  margin-top: 2.75rem;
  padding-top: 1.9rem;
  border-top: 1px solid var(--border);
}

.section-heading--media {
  margin-bottom: 1rem;
}

.media-strip__intro {
  margin: 0.35rem 0 0;
  color: #4f5f66;
  font-size: 0.84rem;
  line-height: 1.65;
}

.media-list {
  display: grid;
  gap: 0.95rem;
  margin-top: 1.15rem;
}

.media-card {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 0.95rem 1rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 14px 30px rgba(15, 38, 47, 0.06);
}

.media-card__media {
  display: block;
}

.media-card__media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(15, 76, 92, 0.1);
  box-shadow: 0 10px 22px rgba(15, 38, 47, 0.1);
}

.media-card__body h4 {
  margin: 0 0 0.4rem;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1rem;
  line-height: 1.3;
}

.media-card__body p {
  margin: 0;
  color: #111111;
  font-size: 0.84rem;
  line-height: 1.62;
}

.media-card__eyebrow {
  margin: 0 0 0.35rem !important;
  color: #8a5a15 !important;
  font-size: 0.7rem !important;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.media-card__link {
  min-height: 42px;
  padding: 0.78rem 0.95rem;
  font-size: 0.8rem;
  white-space: nowrap;
}

.page-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.4rem;
  margin-top: 2.35rem;
}

.page-split--tight {
  gap: 2rem;
}

.entry-list {
  margin-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.entry {
  display: grid;
  grid-template-columns: 165px minmax(0, 1fr);
  gap: 2rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

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

.entry__meta {
  margin: 0;
  color: #6f6255;
  font-family: "Source Serif 4", serif;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  font-style: italic;
}

.entry__body h4 {
  margin: 0 0 0.5rem;
  font-family: "Source Serif 4", serif;
  font-size: 1.08rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.entry__body p {
  margin: 0;
  max-width: none;
}

.entry__body p + p {
  margin-top: 0.6rem;
}

.abstract-label {
  margin-top: 0.95rem;
  color: #8a5a15;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.abstract-text {
  margin-top: 0.3rem;
  color: #42545c;
  font-size: 0.86rem;
  line-height: 1.66;
}

.entry__body > p:first-of-type {
  font-size: 0.92rem;
}

.entry__body > p:nth-of-type(2):not(.abstract-label):not(.abstract-text) {
  font-style: italic;
  color: #4f5f66;
}

.entry__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.1rem;
}

.entry__actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

.language-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 1rem;
}

.language-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  padding: 0.72rem 0.8rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface-strong);
  text-align: center;
}

.language-card h4 {
  margin: 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.88rem;
  line-height: 1.2;
}

.language-card p {
  margin: 0;
  color: #5a6970;
  font-size: 0.76rem;
  font-style: italic;
  white-space: nowrap;
}

.empty-state {
  margin: 1rem 0 0;
  color: #4f5f66;
  font-size: 1.02rem;
  font-style: italic;
}

.soft-note {
  margin: 1.6rem 0 0;
  max-width: 62ch;
  padding: 0 0 0 1rem;
  border-left: 3px solid var(--accent);
  background: transparent;
  color: #111111;
}

@media (max-width: 980px) {
  .page-shell {
    display: block;
  }

  .sidebar {
    position: relative;
    inset: auto;
    width: auto;
    height: auto;
    overflow: visible;
    scrollbar-gutter: auto;
  }

  .sidebar__inner {
    position: static;
    min-height: auto;
    overflow: visible;
  }

  .content {
    width: auto;
    margin-left: 0;
    padding-top: 0;
    padding-left: 1rem;
  }

  .section-nav__link::after {
    inset: -1px;
  }

  .section-nav {
    margin-right: 0;
  }

  .section-nav__link {
    border-radius: 18px;
  }

  .section-nav__link:hover,
  .section-nav__link:focus-visible,
  .section-nav__link.is-active {
    transform: translateX(0);
  }

  .panel,
  .page-panel {
    width: min(1040px, 100%);
  }

  .page-split,
  .entry,
  .funding-card,
  .interest-grid,
  .direction-grid,
  .inspiration-grid,
  .language-grid {
    grid-template-columns: 1fr;
  }

  .media-card {
    grid-template-columns: 180px minmax(0, 1fr);
    align-items: start;
  }

  .media-card__link {
    justify-self: start;
  }
}

@media (max-width: 720px) {
  .content,
  .sidebar__inner {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .section-nav__link {
    min-height: 44px;
    padding: 0.75rem 0.95rem;
  }

  .section-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-panel h2 {
    font-size: clamp(1.95rem, 8vw, 2.5rem);
  }

  .page-panel .lead,
  .page-panel p {
    font-size: 0.88rem;
  }

  .entry {
    gap: 0.55rem;
    padding: 1.2rem 0;
  }

  .entry__body h4 {
    font-size: 1rem;
  }

  .page-split,
  .page-split--tight {
    gap: 1.5rem;
  }

  .hero-stats,
  .grid-two,
  .timeline article {
    grid-template-columns: 1fr;
  }

  .project-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .media-card {
    grid-template-columns: 1fr;
    padding: 0.9rem;
  }

  .media-card__media img {
    aspect-ratio: 16 / 8.8;
  }
}
