:root {
  --ink: #241b2a;
  --muted: #6d6371;
  --plum-950: #1c1027;
  --plum-900: #281735;
  --plum-800: #3a2450;
  --plum-700: #55356f;
  --coral: #e76f5d;
  --coral-soft: #f6c2b8;
  --mint: #72b7a4;
  --mint-deep: #367e70;
  --sky: #b7d9e8;
  --gold: #e8b95b;
  --cream: #f5efe5;
  --cream-2: #eee5d8;
  --paper: #fffdf9;
  --white: #ffffff;
  --line: rgba(36, 27, 42, 0.13);
  --line-light: rgba(255, 255, 255, 0.16);
  --shadow-sm: 0 12px 30px rgba(36, 27, 42, 0.09);
  --shadow-md: 0 25px 70px rgba(36, 27, 42, 0.14);
  --shadow-lg: 0 40px 110px rgba(28, 16, 39, 0.22);
  --radius-sm: 14px;
  --radius-md: 24px;
  --radius-lg: 38px;
  --container: 1180px;
  --header-height: 76px;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Manrope", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 18px);
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open,
body.lightbox-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

::selection {
  color: var(--plum-950);
  background: var(--coral-soft);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 9999;
  top: 12px;
  left: 12px;
  transform: translateY(-160%);
  padding: 10px 15px;
  border-radius: 999px;
  color: #fff;
  background: var(--coral);
  text-decoration: none;
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.scroll-progress {
  position: fixed;
  z-index: 3000;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--coral), var(--gold), var(--mint));
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

.cursor-orb {
  position: fixed;
  z-index: 0;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle, rgba(114, 183, 164, 0.13), rgba(231, 111, 93, 0.04) 45%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: opacity 0.35s ease;
  will-change: left, top;
}

.container {
  position: relative;
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  z-index: 2000;
  top: 0;
  left: 0;
  width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  color: #fff;
  background: rgba(28, 16, 39, 0.91);
  box-shadow: 0 8px 30px rgba(28, 16, 39, 0.08);
  backdrop-filter: blur(18px) saturate(140%);
  transition: background 0.28s ease, box-shadow 0.28s ease, transform 0.28s ease;
}

.site-header.is-scrolled {
  background: rgba(28, 16, 39, 0.96);
  box-shadow: 0 14px 38px rgba(28, 16, 39, 0.16);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 48px), var(--container));
  min-height: var(--header-height);
  margin-inline: auto;
  transition: min-height 0.28s ease;
}

.site-header.is-scrolled .nav-shell {
  min-height: 66px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 14px 14px 5px 14px;
  color: var(--plum-950);
  background: linear-gradient(135deg, var(--gold), var(--coral-soft));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  font-family: var(--display);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transform: rotate(-3deg);
  transition: transform 0.25s ease;
}

.brand:hover .brand-mark,
.brand:focus-visible .brand-mark {
  transform: rotate(3deg) scale(1.05);
}

.brand-name {
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(13px, 1.65vw, 24px);
}

.primary-nav a {
  position: relative;
  padding: 7px 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(0.73rem, 0.88vw, 0.9rem);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease;
}

.primary-nav a:not(.nav-cta)::before {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  border-radius: 2px;
  content: "";
  background: linear-gradient(90deg, var(--coral), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.primary-nav a:hover,
.primary-nav a:focus-visible,
.primary-nav a.is-active {
  color: #fff;
}

.primary-nav a:hover::before,
.primary-nav a:focus-visible::before,
.primary-nav a.is-active::before {
  transform: scaleX(1);
}

.primary-nav .nav-cta {
  padding: 9px 15px;
  border: 1px solid rgba(255, 255, 255, 0.23);
  border-radius: 999px;
  color: var(--plum-950);
  background: var(--gold);
  box-shadow: 0 8px 20px rgba(232, 185, 91, 0.18);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.primary-nav .nav-cta:hover,
.primary-nav .nav-cta:focus-visible {
  color: var(--plum-950);
  background: #f2cb79;
  box-shadow: 0 12px 28px rgba(232, 185, 91, 0.28);
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 10px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.24s ease, opacity 0.2s ease;
}

.hero {
  position: relative;
  min-height: 800px;
  padding: 154px 0 104px;
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 11% 18%, rgba(231, 111, 93, 0.13), transparent 26%),
    radial-gradient(circle at 65% 78%, rgba(114, 183, 164, 0.14), transparent 31%),
    linear-gradient(115deg, var(--cream) 0 58%, #e9dfd4 58% 100%);
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(40, 23, 53, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(40, 23, 53, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, #000, transparent 92%);
}

.hero-ribbon {
  position: absolute;
  top: -170px;
  right: -110px;
  width: min(46vw, 620px);
  height: 1060px;
  border-radius: 52% 0 0 50%;
  background: linear-gradient(165deg, var(--plum-800), var(--plum-950));
  transform: rotate(7deg);
  box-shadow: var(--shadow-lg);
}


.hero-grid-clean {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.75fr);
  gap: clamp(54px, 8vw, 112px);
  align-items: center;
}

.hero-copy {
  max-width: 740px;
}

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  color: var(--plum-700);
  font-size: 0.79rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-status::before {
  width: 34px;
  height: 2px;
  border-radius: 2px;
  content: "";
  background: linear-gradient(90deg, var(--coral), var(--gold));
}

.hero-name,
h1,
h2 {
  font-family: var(--display);
  font-variation-settings: "opsz" 96;
  font-weight: 500;
  letter-spacing: -0.045em;
}

.hero-name {
  max-width: 720px;
  margin: 0;
  color: var(--plum-950);
  font-size: clamp(4.4rem, 8.6vw, 8.7rem);
  line-height: 0.82;
}

.hero-name-native {
  margin: 22px 0 24px;
  color: var(--coral);
  font-family: "Noto Serif Devanagari", var(--display);
  font-size: clamp(1.42rem, 2.3vw, 2rem);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero-lead {
  max-width: 680px;
  margin-bottom: 32px;
  color: #554b59;
  font-size: clamp(1.03rem, 1.45vw, 1.2rem);
  line-height: 1.8;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 21px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.91rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.24s ease, color 0.24s ease, background 0.24s ease, box-shadow 0.24s ease;
}

.button::after {
  position: absolute;
  top: -40%;
  left: -60%;
  width: 46%;
  height: 180%;
  content: "";
  opacity: 0.45;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.75), transparent);
  transform: rotate(22deg);
  transition: left 0.55s ease;
}

.button:hover::after,
.button:focus-visible::after {
  left: 125%;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-3px);
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--coral), #d95465);
  box-shadow: 0 15px 30px rgba(231, 111, 93, 0.25);
}

.button-primary:hover,
.button-primary:focus-visible {
  box-shadow: 0 20px 40px rgba(231, 111, 93, 0.34);
}

.button-ghost {
  border-color: rgba(40, 23, 53, 0.22);
  color: var(--plum-900);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
}

.button-outline {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.hero-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 29px;
  color: var(--muted);
  font-size: 0.88rem;
}

.hero-contact a {
  color: var(--mint-deep);
  font-weight: 800;
  text-decoration: none;
}

.hero-photo-card {
  position: relative;
  margin: 0;
  overflow: visible;
  border-radius: 42% 42% 19% 19% / 27% 27% 13% 13%;
  filter: drop-shadow(0 38px 54px rgba(28, 16, 39, 0.28));
  transform: translate3d(0, var(--hero-parallax, 0px), 0) rotate(1.5deg);
  transition: transform 0.22s ease-out;
}

.hero-photo-card::before {
  position: absolute;
  z-index: -1;
  inset: -17px 18px 20px -17px;
  border: 2px solid var(--gold);
  border-radius: inherit;
  content: "";
  transform: rotate(-4deg);
}

.hero-photo-card::after {
  position: absolute;
  z-index: 2;
  right: -22px;
  bottom: 54px;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  content: "✦";
  color: var(--plum-950);
  background: var(--gold);
  box-shadow: 0 16px 34px rgba(28, 16, 39, 0.2);
  font-size: 1.85rem;
  line-height: 76px;
  text-align: center;
}

.hero-photo-card img {
  width: 100%;
  aspect-ratio: 4 / 5.15;
  border: 7px solid rgba(255, 255, 255, 0.9);
  border-radius: inherit;
  object-fit: cover;
  object-position: center 30%;
  background: var(--cream-2);
}

.hero-photo-card figcaption {
  position: absolute;
  z-index: 3;
  right: 26px;
  bottom: 22px;
  padding: 9px 14px;
  border-radius: 999px;
  color: #fff;
  background: rgba(28, 16, 39, 0.78);
  box-shadow: 0 10px 25px rgba(28, 16, 39, 0.22);
  font-size: 0.75rem;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.brief-section {
  position: relative;
  z-index: 3;
  padding: 78px 0;
  color: #fff;
  background:
    radial-gradient(circle at 18% 30%, rgba(231, 111, 93, 0.22), transparent 27%),
    radial-gradient(circle at 82% 70%, rgba(114, 183, 164, 0.18), transparent 30%),
    var(--plum-950);
}

.brief-section::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 28px;
  content: "";
  background: var(--paper);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.brief-shell {
  display: grid;
  grid-template-columns: minmax(210px, 0.48fr) minmax(0, 1.52fr);
  gap: 48px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--coral);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.brief-heading .eyebrow,
.section-dark .eyebrow,
.experience-section .eyebrow,
.contact-card .eyebrow {
  color: var(--gold);
}

.brief-heading h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.7rem, 5vw, 4.6rem);
  line-height: 0.95;
}

.brief-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.brief-grid article {
  position: relative;
  min-height: 168px;
  padding: 20px 17px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 22px 22px 8px 22px;
  background: rgba(255, 255, 255, 0.065);
  backdrop-filter: blur(12px);
  transition: transform 0.28s ease, border-color 0.28s ease, background 0.28s ease;
}

.brief-grid article::before {
  position: absolute;
  top: 0;
  right: 0;
  width: 52px;
  height: 4px;
  border-radius: 0 0 0 4px;
  content: "";
  background: linear-gradient(90deg, var(--coral), var(--gold));
}

.brief-grid article:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-7px);
}

.brief-grid strong {
  display: block;
  margin-bottom: 13px;
  color: #fff;
  font-family: var(--display);
  font-size: clamp(1.38rem, 2.2vw, 2.08rem);
  font-weight: 500;
  line-height: 1.02;
}

.brief-grid span {
  color: rgba(255, 255, 255, 0.67);
  font-size: 0.78rem;
  line-height: 1.55;
}

.intro-strip {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  padding: 23px 0;
}

.chips span {
  display: inline-flex;
  align-items: center;
  padding: 8px 13px;
  border: 1px solid rgba(85, 53, 111, 0.14);
  border-radius: 999px;
  color: var(--plum-700);
  background: linear-gradient(180deg, #fff, #faf7f2);
  box-shadow: 0 5px 14px rgba(36, 27, 42, 0.04);
  font-size: 0.75rem;
  font-weight: 800;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.chips span:hover {
  color: #fff;
  background: var(--plum-800);
  transform: translateY(-2px);
}

.section {
  position: relative;
  padding: 112px 0;
  overflow: hidden;
  background: var(--paper);
}

.section::before,
.contact-section::before {
  position: absolute;
  top: 56px;
  right: max(24px, calc((100vw - var(--container)) / 2 - 20px));
  content: attr(data-section-number);
  color: rgba(40, 23, 53, 0.045);
  font-family: var(--display);
  font-size: clamp(6.2rem, 14vw, 12rem);
  font-weight: 600;
  line-height: 0.75;
  pointer-events: none;
}

.section-tint {
  background: var(--cream);
}

.section-dark {
  color: #fff;
  background: var(--plum-950);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 52px;
}

.section-heading h2,
.highlights-heading h2 {
  margin: 0 0 20px;
  color: var(--plum-950);
  font-size: clamp(2.8rem, 5.8vw, 5.2rem);
  line-height: 0.97;
}

.section-heading > p:last-child {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.section-dark .section-heading h2,
.experience-section .section-heading h2 {
  color: #fff;
}

.section-dark .section-heading > p:last-child {
  color: rgba(255, 255, 255, 0.68);
}

.publication-stack {
  display: grid;
  gap: 18px;
}

.publication-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(300px, 1.12fr);
  gap: 48px;
  align-items: start;
  padding: 33px 34px 33px 40px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px 30px 30px 30px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.publication-row::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 7px;
  content: "";
  background: linear-gradient(180deg, var(--coral), var(--gold), var(--mint));
}

.publication-row::after {
  position: absolute;
  top: -70px;
  right: -70px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  content: "";
  background: rgba(114, 183, 164, 0.08);
  transition: transform 0.45s ease;
}

.publication-row:hover {
  border-color: rgba(85, 53, 111, 0.25);
  box-shadow: var(--shadow-md);
  transform: translateY(-6px);
}

.publication-row:hover::after {
  transform: scale(1.35);
}

.publication-type {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--coral);
  font-size: 0.71rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.publication-row h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 8px;
  color: var(--plum-950);
  font-family: var(--display);
  font-size: clamp(1.55rem, 2.4vw, 2.15rem);
  font-weight: 500;
  line-height: 1.12;
}

.publication-row h3 a {
  color: inherit;
  text-decoration-color: rgba(231, 111, 93, 0.45);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.publication-authors {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 650;
}

.publication-details {
  position: relative;
  z-index: 1;
}

.publication-details p {
  margin: 0;
  color: #5d5361;
}

.paper-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.paper-links a {
  display: inline-flex;
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--plum-800);
  background: var(--cream);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.paper-links a:hover,
.paper-links a:focus-visible {
  color: #fff;
  background: var(--plum-800);
  transform: translateY(-2px);
}

.publication-subheading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin: 66px 0 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.publication-subheading .eyebrow {
  margin-bottom: 0;
}

.publication-subheading h3 {
  margin: 0;
  color: var(--plum-950);
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 500;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.73fr) minmax(0, 1.27fr);
  gap: clamp(50px, 8vw, 100px);
  align-items: start;
}

.split-layout > .section-heading {
  position: sticky;
  top: 118px;
}

.teaching-stack {
  display: grid;
  gap: 18px;
}

.teaching-card {
  position: relative;
  padding: 30px 32px 30px 34px;
  overflow: hidden;
  border: 1px solid rgba(85, 53, 111, 0.13);
  border-radius: 8px 28px 28px 28px;
  background: rgba(255, 253, 249, 0.88);
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.teaching-card::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 6px;
  content: "";
  background: var(--mint);
}

.teaching-card:nth-child(2)::before {
  background: var(--gold);
}

.teaching-card:nth-child(3)::before {
  background: var(--coral);
}

.teaching-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(7px);
}

.teaching-primary {
  background: linear-gradient(135deg, #fffdf9, #f8e9e3);
}

.date-badge {
  margin-bottom: 8px;
  color: var(--mint-deep);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.teaching-card h3 {
  margin: 0 0 6px;
  color: var(--plum-950);
  font-family: var(--display);
  font-size: 1.48rem;
  font-weight: 500;
}

.teaching-card p {
  color: var(--muted);
}

.teaching-card p:last-child {
  margin-bottom: 0;
}

.course-title {
  color: var(--coral) !important;
  font-size: 0.92rem;
  font-weight: 800;
}

.timeline {
  position: relative;
  max-width: 1010px;
  margin-left: auto;
}

.timeline::before {
  position: absolute;
  top: 9px;
  bottom: 12px;
  left: 172px;
  width: 3px;
  border-radius: 3px;
  content: "";
  background: linear-gradient(180deg, var(--coral), var(--gold), var(--mint));
  transform: scaleY(var(--timeline-progress, 0));
  transform-origin: top;
  transition: transform 0.1s linear;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 65px;
  padding: 0 0 55px;
}

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

.timeline-item::before {
  position: absolute;
  z-index: 2;
  top: 5px;
  left: 162px;
  width: 17px;
  height: 17px;
  border: 4px solid var(--paper);
  border-radius: 50%;
  content: "";
  background: var(--coral);
  box-shadow: 0 0 0 1px rgba(231, 111, 93, 0.5);
  transition: transform 0.3s ease;
}

.timeline-item:nth-child(2)::before {
  background: var(--gold);
  box-shadow: 0 0 0 1px rgba(232, 185, 91, 0.55);
}

.timeline-item:nth-child(3)::before,
.timeline-item:nth-child(4)::before {
  background: var(--mint);
  box-shadow: 0 0 0 1px rgba(114, 183, 164, 0.55);
}

.timeline-item:hover::before {
  transform: scale(1.35);
}

.timeline-date {
  padding-top: 1px;
  color: var(--coral);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: right;
  text-transform: uppercase;
}

.timeline-body {
  padding: 0 0 3px;
}

.timeline-body h3 {
  margin: 0 0 5px;
  color: var(--plum-950);
  font-family: var(--display);
  font-size: 1.65rem;
  font-weight: 500;
  line-height: 1.2;
}

.timeline-body p {
  color: var(--muted);
}

.timeline-body p:last-child {
  margin-bottom: 0;
}

.degree {
  color: var(--mint-deep) !important;
  font-size: 0.9rem;
  font-weight: 800;
}

.experience-section {
  background:
    radial-gradient(circle at 10% 0%, rgba(231, 111, 93, 0.22), transparent 27%),
    radial-gradient(circle at 90% 90%, rgba(114, 183, 164, 0.17), transparent 28%),
    linear-gradient(140deg, var(--plum-950), #19343c);
}

.experience-section::before {
  color: rgba(255, 255, 255, 0.045);
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.experience-card {
  position: relative;
  min-height: 310px;
  padding: 30px 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 30px 10px 30px 30px;
  background: rgba(255, 255, 255, 0.065);
  backdrop-filter: blur(12px);
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.experience-card::after {
  position: absolute;
  right: -55px;
  bottom: -55px;
  width: 145px;
  height: 145px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  content: "";
  transition: transform 0.4s ease;
}

.experience-card:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-9px) rotate(-0.5deg);
}

.experience-card:hover::after {
  transform: scale(1.4);
}

.experience-card > span {
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.experience-card h3 {
  margin: 17px 0 14px;
  color: #fff;
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 500;
  line-height: 1.18;
}

.experience-card p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.68);
}

.highlights-section {
  background:
    linear-gradient(90deg, rgba(183, 217, 232, 0.16) 1px, transparent 1px),
    linear-gradient(rgba(183, 217, 232, 0.16) 1px, transparent 1px),
    var(--paper);
  background-size: 38px 38px;
}

.highlights-heading {
  max-width: 780px;
  margin-bottom: 46px;
}

.skills-panel {
  display: grid;
  grid-template-columns: 0.66fr 1.34fr;
  gap: 42px;
  padding: 38px 40px;
  border: 1px solid rgba(85, 53, 111, 0.16);
  border-radius: 34px 12px 34px 34px;
  background: linear-gradient(135deg, var(--plum-900), #3b355d);
  box-shadow: var(--shadow-md);
}

.skills-panel-title .eyebrow {
  color: var(--gold);
}

.skills-panel-title h3 {
  margin: 0;
  color: #fff;
  font-family: var(--display);
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 500;
  line-height: 1.05;
}

.skills-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.skill-group {
  position: relative;
  padding: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px 18px 6px 18px;
  background: rgba(255, 255, 255, 0.075);
  transition: background 0.25s ease, transform 0.25s ease;
}

.skill-group:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-4px);
}

.skill-label {
  display: block;
  margin-bottom: 7px;
  color: var(--coral-soft);
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.skill-group p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.9rem;
  font-weight: 650;
}

.highlight-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 22px;
}

.highlight-list-card {
  padding: 34px 34px 28px;
  border: 1px solid var(--line);
  border-radius: 10px 32px 32px 32px;
  background: rgba(255, 253, 249, 0.92);
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.highlight-list-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-6px);
}

.highlight-card-heading {
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.highlight-card-heading h3 {
  margin: 0;
  color: var(--plum-950);
  font-family: var(--display);
  font-size: 2.2rem;
  font-weight: 500;
}

.highlight-list {
  display: grid;
  gap: 0;
  padding: 0;
  margin: 0;
  list-style: none;
}

.highlight-list li {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 16px;
  padding: 17px 0;
  border-bottom: 1px dashed rgba(36, 27, 42, 0.13);
}

.highlight-list li:last-child {
  border-bottom: 0;
}

.highlight-year {
  color: var(--coral);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.highlight-list li > div {
  display: grid;
  gap: 3px;
}

.highlight-list strong {
  color: var(--plum-900);
  font-size: 0.92rem;
  line-height: 1.4;
}

.highlight-list li > div > span {
  color: var(--muted);
  font-size: 0.79rem;
}

#photography {
  background: var(--cream);
}

.gallery-grid-portfolio {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: 90px;
  gap: 17px;
}

.gallery-card {
  position: relative;
  grid-column: span 3;
  grid-row: span 5;
  margin: 0;
  overflow: hidden;
  border-radius: 10px 26px 26px 26px;
  background: var(--plum-900);
  box-shadow: var(--shadow-sm);
  cursor: zoom-in;
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), box-shadow 0.35s ease;
}

.gallery-card:nth-child(1),
.gallery-card:nth-child(6) {
  grid-column: span 6;
  grid-row: span 6;
}

.gallery-card:nth-child(2),
.gallery-card:nth-child(5) {
  grid-row: span 6;
}

.gallery-card:nth-child(4),
.gallery-card:nth-child(7) {
  grid-column: span 4;
}

.gallery-card:nth-child(8) {
  grid-column: span 5;
}

.gallery-card:hover,
.gallery-card:focus-visible {
  z-index: 3;
  box-shadow: var(--shadow-lg);
  outline: none;
  transform: translateY(-8px) scale(1.012);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(.2,.8,.2,1), filter 0.45s ease;
}

.gallery-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(to top, rgba(28, 16, 39, 0.9), transparent 58%);
  pointer-events: none;
}

.gallery-card:hover img,
.gallery-card:focus-visible img {
  filter: saturate(1.07) contrast(1.04);
  transform: scale(1.055);
}

.gallery-card figcaption {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  gap: 3px;
  padding: 24px 20px 19px;
  color: #fff;
  transform: translateY(4px);
  transition: transform 0.3s ease;
}

.gallery-card:hover figcaption,
.gallery-card:focus-visible figcaption {
  transform: translateY(0);
}

.gallery-card strong {
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 500;
}

.gallery-card figcaption span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.74rem;
  line-height: 1.45;
}

.life-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  counter-reset: life;
}

.life-card {
  position: relative;
  min-height: 270px;
  padding: 64px 25px 26px;
  overflow: hidden;
  border: 1px solid rgba(85, 53, 111, 0.13);
  border-radius: 28px 8px 28px 28px;
  background: rgba(255, 253, 249, 0.82);
  box-shadow: var(--shadow-sm);
  counter-increment: life;
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.life-card::before {
  position: absolute;
  top: 14px;
  left: 22px;
  content: "0" counter(life);
  color: var(--coral);
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 500;
}

.life-card::after {
  position: absolute;
  top: -35px;
  right: -35px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  content: "";
  background: rgba(114, 183, 164, 0.13);
  transition: transform 0.35s ease;
}

.life-card:nth-child(even)::after {
  background: rgba(231, 111, 93, 0.12);
}

.life-card:hover {
  background: #fff;
  box-shadow: var(--shadow-md);
  transform: translateY(-7px) rotate(-0.35deg);
}

.life-card:hover::after {
  transform: scale(1.45);
}

.life-card h3 {
  margin: 0 0 10px;
  color: var(--plum-950);
  font-family: var(--display);
  font-size: 1.48rem;
  font-weight: 500;
}

.life-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.contact-section {
  position: relative;
  padding: 95px 0;
  overflow: hidden;
  background: var(--paper);
}

.contact-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
  align-items: center;
  padding: 54px 56px;
  overflow: hidden;
  border-radius: 42px 12px 42px 42px;
  color: #fff;
  background:
    radial-gradient(circle at 90% 10%, rgba(232, 185, 91, 0.34), transparent 28%),
    radial-gradient(circle at 5% 95%, rgba(114, 183, 164, 0.25), transparent 27%),
    linear-gradient(135deg, var(--plum-900), #573050 68%, #8d4c54);
  box-shadow: var(--shadow-lg);
}

.contact-card::before {
  position: absolute;
  right: -95px;
  bottom: -95px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  content: "";
}

.contact-card h2 {
  margin: 0 0 13px;
  color: #fff;
  font-family: var(--display);
  font-size: clamp(2.7rem, 5vw, 4.7rem);
  font-weight: 500;
  line-height: 0.98;
}

.contact-card p:last-child {
  max-width: 680px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.7);
}

.site-footer {
  padding: 28px 0;
  color: rgba(255, 255, 255, 0.66);
  background: var(--plum-950);
  font-size: 0.82rem;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.footer-row a {
  color: var(--gold);
  font-weight: 800;
  text-decoration: none;
}

.floating-top {
  position: fixed;
  z-index: 1500;
  right: 24px;
  bottom: 24px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50% 50% 12px 50%;
  color: #fff;
  background: var(--coral);
  box-shadow: 0 14px 34px rgba(231, 111, 93, 0.34);
  cursor: pointer;
  opacity: 0;
  transform: translateY(18px) scale(0.9);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease;
  pointer-events: none;
}

.floating-top.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.floating-top:hover,
.floating-top:focus-visible {
  background: var(--plum-800);
  transform: translateY(-4px) scale(1.05);
}

.lightbox {
  position: fixed;
  z-index: 4000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 30px;
  visibility: hidden;
  opacity: 0;
  background: rgba(17, 10, 24, 0.93);
  backdrop-filter: blur(18px);
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.lightbox.is-open {
  visibility: visible;
  opacity: 1;
}

.lightbox figure {
  display: grid;
  gap: 12px;
  max-width: min(92vw, 1050px);
  max-height: 88vh;
  margin: 0;
  transform: translateY(16px) scale(0.97);
  transition: transform 0.3s ease;
}

.lightbox.is-open figure {
  transform: translateY(0) scale(1);
}

.lightbox img {
  width: auto;
  max-width: 100%;
  max-height: 78vh;
  margin: auto;
  border-radius: 24px 8px 24px 24px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.48);
}

.lightbox figcaption {
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--display);
  font-size: 1.15rem;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 22px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  font-size: 2rem;
  cursor: pointer;
}

.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.75s cubic-bezier(.2,.8,.2,1),
    transform 0.75s cubic-bezier(.2,.8,.2,1);
  transition-delay: var(--reveal-delay, 0ms);
}

.js .reveal[data-reveal="left"] {
  transform: translateX(-42px);
}

.js .reveal[data-reveal="right"] {
  transform: translateX(42px);
}

.js .reveal[data-reveal="scale"] {
  transform: scale(0.94);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

@keyframes heroRise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (hover: hover) and (pointer: fine) {
  .cursor-orb {
    opacity: 1;
  }
}

@media (max-width: 1180px) {
  .primary-nav {
    gap: 13px;
  }

  .primary-nav a {
    font-size: 0.72rem;
  }

  .brief-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .brief-grid article:last-child {
    grid-column: span 2;
  }

  .life-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1000px) {
  :root {
    --header-height: 72px;
  }

  .nav-toggle {
    display: block;
  }

  .primary-nav {
    position: fixed;
    inset: var(--header-height) 0 auto 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    max-height: 0;
    padding: 0 24px;
    overflow: hidden;
    background: rgba(28, 16, 39, 0.98);
    box-shadow: 0 24px 55px rgba(28, 16, 39, 0.3);
    transition: max-height 0.32s ease, padding 0.32s ease;
  }

  .primary-nav.is-open {
    max-height: calc(100vh - var(--header-height));
    padding: 18px 24px 28px;
    overflow-y: auto;
  }

  .primary-nav a {
    padding: 14px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.88rem;
  }

  .primary-nav a::before {
    display: none;
  }

  .primary-nav .nav-cta {
    grid-column: span 2;
    margin-top: 15px;
    text-align: center;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero {
    min-height: 0;
    padding: 132px 0 90px;
    background:
      radial-gradient(circle at 10% 15%, rgba(231, 111, 93, 0.13), transparent 30%),
      var(--cream);
  }

  .hero-ribbon {
    top: auto;
    right: -25%;
    bottom: -330px;
    width: 85vw;
    height: 700px;
    opacity: 0.15;
  }

  .hero-grid-clean {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .hero-copy {
    max-width: 800px;
  }

  .hero-name {
    font-size: clamp(4.2rem, 13vw, 7rem);
  }

  .hero-photo-card {
    width: min(100%, 590px);
    margin-inline: auto;
    transform: none !important;
  }

  .hero-photo-card img {
    aspect-ratio: 4 / 4.7;
  }

  .brief-shell,
  .skills-panel,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .brief-heading {
    max-width: 500px;
  }

  .brief-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .brief-grid article:last-child {
    grid-column: auto;
  }

  .publication-row,
  .split-layout {
    grid-template-columns: 1fr;
  }

  .split-layout {
    gap: 10px;
  }

  .split-layout > .section-heading {
    position: static;
  }

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

  .experience-card {
    min-height: 0;
  }

  .skills-panel {
    gap: 28px;
  }

  .gallery-grid-portfolio {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 350px;
  }

  .gallery-card,
  .gallery-card:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 720px) {
  .container,
  .nav-shell {
    width: min(calc(100% - 32px), var(--container));
  }

  .section {
    padding: 84px 0;
  }

  .section::before,
  .contact-section::before {
    top: 40px;
    right: 12px;
    font-size: 6.5rem;
  }

  .hero {
    padding-top: 120px;
  }

  

  .hero-status {
    max-width: 290px;
    font-size: 0.69rem;
    line-height: 1.55;
  }

  .hero-name {
    font-size: clamp(3.7rem, 18vw, 5.8rem);
    line-height: 0.88;
  }

  .hero-lead {
    font-size: 0.98rem;
    line-height: 1.72;
  }

  .hero-actions,
  .contact-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .hero-photo-card::after {
    right: -5px;
    width: 62px;
    height: 62px;
    font-size: 1.4rem;
    line-height: 62px;
  }

  .brief-section {
    padding: 64px 0 76px;
  }

  .brief-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brief-grid article {
    min-height: 150px;
  }

  .publication-row {
    gap: 18px;
    padding: 28px 25px 28px 31px;
  }

  .publication-subheading {
    align-items: start;
    flex-direction: column;
    gap: 6px;
  }

  .timeline::before {
    left: 8px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-left: 36px;
  }

  .timeline-item::before {
    left: 0;
  }

  .timeline-date {
    text-align: left;
  }

  .skills-groups,
  .highlight-columns,
  .life-grid {
    grid-template-columns: 1fr;
  }

  .skills-panel,
  .highlight-list-card,
  .contact-card {
    padding: 30px 24px;
  }

  .highlight-list li {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .gallery-grid-portfolio {
    grid-auto-rows: 310px;
    gap: 13px;
  }

  .gallery-card strong {
    font-size: 1.12rem;
  }

  .gallery-card figcaption span {
    display: none;
  }
}

@media (max-width: 520px) {
  .brand-name {
    display: none;
  }

  .primary-nav {
    grid-template-columns: 1fr;
  }

  .primary-nav .nav-cta {
    grid-column: auto;
  }

  .hero-photo-card {
    border-radius: 28px 28px 10px 28px;
  }

  .hero-photo-card img {
    aspect-ratio: 4 / 5;
    border-width: 5px;
  }

  .hero-photo-card::before {
    inset: -11px 10px 13px -10px;
  }

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

  .brief-grid article {
    min-height: 0;
    padding: 20px;
  }

  .chips {
    justify-content: flex-start;
  }

  .gallery-grid-portfolio {
    grid-template-columns: 1fr;
    grid-auto-rows: 430px;
  }

  .floating-top {
    right: 16px;
    bottom: 16px;
  }

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

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .cursor-orb {
    display: none;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .site-header,
  .scroll-progress,
  .cursor-orb,
  .floating-top,
  .lightbox,
  .hero-actions,
  .contact-actions,
  .site-footer {
    display: none !important;
  }

  .hero,
  .section,
  .brief-section,
  .contact-section {
    padding: 40px 0;
  }

  .js .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}


/* Direct academic section titles */
.direct-section-title {
  font-size: clamp(3.35rem, 6.5vw, 5.9rem) !important;
  line-height: 0.92 !important;
  letter-spacing: -0.05em !important;
}

.brief-heading .direct-section-title {
  font-size: clamp(3rem, 5.6vw, 5rem) !important;
}

.skills-panel {
  grid-template-columns: 1fr;
}

.skills-groups {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.plain-card-title {
  font-family: var(--display);
  letter-spacing: -0.03em;
}

@media (max-width: 1000px) {
  .skills-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .direct-section-title {
    font-size: clamp(2.85rem, 14vw, 4rem) !important;
  }

  .skills-groups {
    grid-template-columns: 1fr;
  }
}

/* Final structural refinements */
#research .section-heading {
  margin-bottom: 38px;
}

.skills-panel-title {
  margin-bottom: 22px;
}

.skills-panel-title h3 {
  margin: 0;
  color: #fff;
  font-family: var(--display);
  font-size: clamp(2.15rem, 3.4vw, 3.15rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1;
}

.gallery-grid-portfolio {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: auto;
  gap: 20px;
}

.gallery-card,
.gallery-card:nth-child(n) {
  grid-column: span 2;
  grid-row: auto;
  aspect-ratio: 4 / 5;
}

.gallery-card:nth-child(7) {
  grid-column: 2 / span 2;
}

.gallery-card:nth-child(8) {
  grid-column: 4 / span 2;
}

@media (max-width: 1000px) {
  .gallery-grid-portfolio {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-card,
  .gallery-card:nth-child(n) {
    grid-column: auto;
    aspect-ratio: 4 / 5;
  }
}

@media (max-width: 560px) {
  .gallery-grid-portfolio {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .gallery-card,
  .gallery-card:nth-child(n) {
    grid-column: auto;
    aspect-ratio: 4 / 5;
  }
}

#research .publication-stack + .publication-row {
  margin-top: 18px;
}
