:root {
  color-scheme: light;
  --bg: #f9f7f2;
  --bg-soft: #f1ede5;
  --surface: rgba(255, 255, 255, 0.84);
  --surface-strong: #ffffff;
  --surface-muted: rgba(255, 255, 255, 0.58);
  --text: #1b1814;
  --text-muted: #6a6258;
  --text-soft: #8a7d6f;
  --accent: #b08946;
  --accent-strong: #8a6831;
  --accent-soft: rgba(176, 137, 70, 0.12);
  --line: rgba(43, 35, 25, 0.12);
  --line-strong: rgba(43, 35, 25, 0.18);
  --shadow-sm: 0 1px 2px rgba(38, 30, 21, 0.04);
  --shadow-md: 0 16px 45px rgba(56, 42, 24, 0.09);
  --shadow-lg: 0 30px 80px rgba(50, 39, 23, 0.13);
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 32px;
  --nav-h: 72px;
  --container: 1120px;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", sans-serif;
}

.dark {
  color-scheme: dark;
  --bg: #120f0b;
  --bg-soft: #1a1510;
  --surface: rgba(33, 27, 21, 0.78);
  --surface-strong: #211912;
  --surface-muted: rgba(255, 255, 255, 0.06);
  --text: #f7f2ea;
  --text-muted: #c7bcac;
  --text-soft: #a69784;
  --accent: #d1b276;
  --accent-strong: #e5c995;
  --accent-soft: rgba(209, 178, 118, 0.16);
  --line: rgba(244, 234, 217, 0.13);
  --line-strong: rgba(244, 234, 217, 0.2);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.24);
  --shadow-md: 0 16px 45px rgba(0, 0, 0, 0.26);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 28px);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 18% 8%, rgba(176, 137, 70, 0.12), transparent 30rem),
    radial-gradient(circle at 78% 0%, rgba(196, 170, 118, 0.12), transparent 28rem),
    linear-gradient(180deg, #fcfaf6 0%, var(--bg) 42%, #f6f1e8 100%);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  transition: background-color 220ms ease, color 220ms ease;
}

.dark body {
  background:
    radial-gradient(circle at 18% 8%, rgba(177, 141, 78, 0.2), transparent 30rem),
    radial-gradient(circle at 82% 0%, rgba(171, 143, 96, 0.13), transparent 26rem),
    linear-gradient(180deg, #0e0b08 0%, var(--bg) 48%, #120f0b 100%);
}

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

a:hover {
  color: var(--accent-strong);
}

img,
svg {
  display: block;
}

strong {
  color: var(--text);
  font-weight: 700;
}

em {
  color: var(--text);
}

::selection {
  background: rgba(176, 137, 70, 0.22);
}

:focus-visible {
  outline: 3px solid rgba(176, 137, 70, 0.34);
  outline-offset: 4px;
  border-radius: 8px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 200;
  transform: translateY(-150%);
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  padding: 0.6rem 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease;
}

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

.container,
.nav-shell {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  border-bottom: 1px solid transparent;
  background: rgba(249, 247, 242, 0.76);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.dark .site-header {
  background: rgba(18, 15, 11, 0.72);
}

.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08), var(--shadow-sm);
}

.nav-shell,
.site-header > .container {
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand,
.site-title {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(241, 235, 224, 0.82));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), var(--shadow-sm);
  color: var(--accent-strong);
  font-size: 0.72rem;
  font-weight: 800;
}

.dark .brand-mark {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), var(--shadow-sm);
}

.desktop-nav,
.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 1.75rem);
}

.nav-link,
.site-nav a {
  position: relative;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 160ms ease;
}

.nav-link:hover,
.nav-link.active,
.site-nav a:hover,
.site-nav a.active {
  color: var(--text);
}

.nav-link::after,
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.55rem;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
  opacity: 0;
  transform: scaleX(0.35);
  transition: opacity 160ms ease, transform 160ms ease;
}

.nav-link:hover::after,
.nav-link.active::after,
.site-nav a:hover::after,
.site-nav a.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.icon-button,
.menu-toggle {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--text);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.icon-button:hover,
.menu-toggle:hover {
  border-color: var(--line-strong);
  background: var(--surface);
  transform: translateY(-1px);
}

.theme-toggle {
  position: relative;
}

.theme-toggle svg {
  position: absolute;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
  transition: opacity 180ms ease, transform 180ms ease;
}

.theme-toggle .sun-icon {
  opacity: 0;
  transform: rotate(-45deg) scale(0.78);
}

.dark .theme-toggle .moon-icon {
  opacity: 0;
  transform: rotate(45deg) scale(0.78);
}

.dark .theme-toggle .sun-icon {
  opacity: 1;
  transform: rotate(0) scale(1);
}

.menu-toggle {
  display: none;
  gap: 4px;
  padding: 0;
}

.menu-toggle span {
  width: 17px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease, opacity 160ms ease;
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-nav {
  display: none;
}

.section {
  padding: clamp(5.2rem, 9vw, 8rem) 0;
}

.hero {
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding-top: calc(var(--nav-h) + 5rem);
  padding-bottom: 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: clamp(3rem, 8vw, 7rem);
  align-items: center;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.personal-panel h2 {
  margin: 0;
  color: var(--text);
  letter-spacing: -0.045em;
  line-height: 1.03;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(3.9rem, 9.5vw, 7.8rem);
  font-weight: 800;
}

.hero h1 span {
  display: block;
  margin-top: 0.28rem;
  color: var(--text-soft);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 650;
  letter-spacing: -0.02em;
}

.hero-title {
  max-width: 660px;
  margin: 1.4rem 0 0;
  color: var(--text);
  font-size: clamp(1.25rem, 2.5vw, 1.85rem);
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.026em;
}

.hero-tagline {
  max-width: 680px;
  margin: 1rem 0 0;
  color: var(--text-muted);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  line-height: 1.72;
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 2rem;
}

.button,
.office-chip {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 0.52rem;
  border-radius: 999px;
  padding: 0.68rem 1rem;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button svg,
.office-chip svg {
  width: 17px;
  height: 17px;
}

.button.primary {
  border: 1px solid rgba(176, 137, 70, 0.8);
  background: linear-gradient(180deg, #c39a55, #9a7537);
  box-shadow: 0 12px 30px rgba(176, 137, 70, 0.24);
  color: #fff;
}

.button.secondary,
.office-chip {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  color: var(--text);
}

.button.primary svg,
.button.secondary svg,
.office-chip svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.button.secondary svg {
  fill: currentColor;
  stroke: none;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.office-chip {
  color: var(--text-muted);
}

.profile-card {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  display: grid;
  align-content: end;
  gap: 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.58)),
    linear-gradient(135deg, rgba(176, 137, 70, 0.13), rgba(191, 167, 120, 0.08));
  box-shadow: var(--shadow-lg);
  padding: 2rem;
}

.dark .profile-card {
  background:
    linear-gradient(160deg, rgba(36, 29, 22, 0.94), rgba(28, 22, 17, 0.7)),
    linear-gradient(135deg, rgba(209, 178, 118, 0.16), rgba(166, 138, 94, 0.1));
}

.profile-card::before {
  content: "";
  position: absolute;
  inset: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 26px;
  pointer-events: none;
}

.dark .profile-card::before {
  border-color: rgba(255, 255, 255, 0.08);
}

.profile-card::after {
  content: "";
  position: absolute;
  width: 230px;
  height: 230px;
  right: -72px;
  top: -70px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(176, 137, 70, 0.24), transparent 68%);
}

.profile-orb {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(245px, 72vw);
  aspect-ratio: 1;
  place-items: center;
  justify-self: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(240, 234, 224, 0.86)),
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.98), transparent 34%);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.9), 0 24px 70px rgba(52, 39, 24, 0.13);
}

.dark .profile-orb {
  background:
    linear-gradient(145deg, rgba(56, 45, 32, 0.98), rgba(24, 19, 14, 0.95)),
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.15), transparent 34%);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.12), 0 24px 70px rgba(0, 0, 0, 0.34);
}

.profile-orb span {
  color: var(--accent-strong);
  font-size: clamp(4rem, 8vw, 6.6rem);
  font-weight: 850;
  letter-spacing: -0.08em;
}

.profile-orb small {
  position: absolute;
  right: 22%;
  bottom: 19%;
  color: var(--text-soft);
  font-size: 1.8rem;
  font-weight: 700;
}

.profile-name,
.profile-meta {
  position: relative;
  z-index: 1;
  margin: 0;
}

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

.profile-meta {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.soft-section {
  background:
    linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.48) 12%, rgba(255, 255, 255, 0.48) 88%, transparent),
    linear-gradient(135deg, rgba(176, 137, 70, 0.07), rgba(194, 166, 118, 0.04));
}

.dark .soft-section {
  background:
    linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.035) 12%, rgba(255, 255, 255, 0.035) 88%, transparent),
    linear-gradient(135deg, rgba(209, 178, 118, 0.07), rgba(164, 137, 95, 0.035));
}

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

.section-heading h2,
.personal-panel h2 {
  font-size: clamp(2.1rem, 5vw, 4rem);
  font-weight: 780;
}

.section-heading p:not(.eyebrow),
.personal-panel p {
  margin: 1rem 0 0;
  max-width: 710px;
  color: var(--text-muted);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.78;
}

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

.research-card,
.info-card,
.list-panel,
.timeline,
.personal-panel,
.publication-year {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.research-card {
  min-height: 225px;
  border-radius: var(--radius);
  padding: 1.45rem;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.research-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.card-number {
  display: inline-flex;
  margin-bottom: 2.1rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.research-card h3,
.info-card h3,
.publication h4 {
  margin: 0;
  color: var(--text);
  letter-spacing: -0.02em;
}

.research-card h3 {
  font-size: 1.18rem;
  font-weight: 780;
}

.research-card p,
.info-card p,
.publication p,
.timeline-item p,
.check-list {
  color: var(--text-muted);
}

.research-card p {
  margin: 0.7rem 0 0;
  font-size: 0.96rem;
  line-height: 1.67;
}

.publication-stack {
  display: grid;
  gap: 1.1rem;
  margin-top: 3rem;
}

.publication-year {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 1.6rem;
  border-radius: var(--radius);
  padding: 1.35rem;
}

.publication-year h3 {
  position: sticky;
  top: calc(var(--nav-h) + 1.2rem);
  align-self: start;
  margin: 0;
  color: var(--accent);
  font-size: 1rem;
  font-weight: 850;
  letter-spacing: -0.01em;
}

.publication {
  grid-column: 2;
  padding: 0 0 1.1rem;
  border-bottom: 1px solid var(--line);
}

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

.publication h4 {
  max-width: 820px;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  font-weight: 760;
  line-height: 1.35;
}

.publication p {
  margin: 0.38rem 0 0;
  max-width: 850px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.publication a {
  font-weight: 700;
  text-decoration: none;
}

.publication a:hover {
  text-decoration: underline;
}

.two-column,
.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.info-panel {
  display: grid;
  gap: 1rem;
}

.info-card {
  border-radius: var(--radius);
  padding: 1.5rem;
}

.info-card h3 {
  font-size: 1.08rem;
}

.info-card p {
  margin: 0.55rem 0 0;
}

.list-panel,
.timeline,
.personal-panel {
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3vw, 2rem);
}

.check-list {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 1.8rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.54rem;
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 0.35rem var(--accent-soft);
}

.timeline {
  display: grid;
  gap: 1.1rem;
}

.timeline-item {
  position: relative;
  padding-left: 1.6rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.7rem;
  height: 0.7rem;
  border: 2px solid var(--accent);
  border-radius: 999px;
  background: var(--surface-strong);
}

.timeline-item + .timeline-item {
  border-top: 1px solid var(--line);
  padding-top: 1.1rem;
}

.timeline-item + .timeline-item::before {
  top: 1.55rem;
}

.timeline-item span {
  display: block;
  color: var(--text);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.timeline-item p {
  margin: 0.35rem 0 0;
}

.personal-panel {
  max-width: 860px;
  margin-inline: auto;
  text-align: center;
}

.personal-panel p {
  margin-inline: auto;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-inner p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.footer-inner div {
  display: flex;
  flex-wrap: wrap;
  gap: 1.15rem;
}

.footer-inner a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
}

.footer-inner a:hover {
  color: var(--text);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms cubic-bezier(0.16, 1, 0.3, 1), transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 80ms;
}

.reveal-delay-2 {
  transition-delay: 150ms;
}

/* Compatibility for legacy Jekyll pages. */
main.container {
  padding-top: calc(var(--nav-h) + 3rem);
  padding-bottom: 5rem;
}

main.container h1,
main.container h2,
main.container h3 {
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

main.container p,
main.container li {
  color: var(--text-muted);
}

.profile {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.5rem;
}

.profile-img img {
  border-radius: 999px;
}

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

.pub-list li {
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}

.pub-title {
  color: var(--text);
  font-weight: 760;
}

.pub-meta {
  color: var(--text-muted);
  font-size: 0.95rem;
}

@media (max-width: 980px) {
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-grid;
  }

  .mobile-nav {
    position: fixed;
    top: var(--nav-h);
    left: 20px;
    right: 20px;
    display: grid;
    gap: 0.25rem;
    max-height: 0;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 0 0 24px 24px;
    background: var(--surface-strong);
    box-shadow: var(--shadow-md);
    opacity: 0;
    transition: max-height 220ms ease, opacity 180ms ease, padding 220ms ease, border-color 180ms ease;
  }

  .mobile-nav.open {
    max-height: 420px;
    border-color: var(--line);
    opacity: 1;
    padding: 0.7rem;
  }

  .mobile-nav a {
    border-radius: 14px;
    color: var(--text);
    font-size: 1rem;
    font-weight: 720;
    padding: 0.9rem 1rem;
    text-decoration: none;
  }

  .mobile-nav a:hover {
    background: var(--accent-soft);
  }

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

  .profile-card {
    max-width: 520px;
    min-height: 360px;
  }

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

  .two-column,
  .split-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  :root {
    --nav-h: 64px;
  }

  .container,
  .nav-shell {
    width: min(var(--container), calc(100% - 28px));
  }

  .brand {
    font-size: 0.88rem;
  }

  .brand-mark {
    width: 31px;
    height: 31px;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-h) + 4rem);
  }

  .hero h1 {
    font-size: clamp(3.1rem, 17vw, 4.2rem);
  }

  .contact-row {
    align-items: stretch;
  }

  .button,
  .office-chip {
    width: 100%;
  }

  .profile-card {
    min-height: 320px;
    padding: 1.35rem;
  }

  .profile-orb {
    width: min(210px, 68vw);
  }

  .section {
    padding: 4.4rem 0;
  }

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

  .publication-year {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.1rem;
  }

  .publication-year h3 {
    position: static;
    font-size: 1.2rem;
  }

  .publication {
    grid-column: auto;
  }

  .footer-inner,
  .profile {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

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