:root {
  --bg: #f4f6f9;
  --surface: rgba(255, 255, 255, 0.84);
  --surface-strong: #ffffff;
  --border: rgba(15, 37, 61, 0.1);
  --text: #13263b;
  --muted: #5b6b7b;
  --accent: #0f2740;
  --accent-soft: #dde7f1;
  --accent-line: #9eb3c7;
  --accent-glow: rgba(42, 93, 146, 0.18);
  --shadow: 0 30px 80px rgba(12, 24, 39, 0.08);
  --shadow-hover: 0 34px 90px rgba(12, 24, 39, 0.16);
  --radius-lg: 32px;
  --radius-md: 22px;
  --radius-sm: 14px;
  --content-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at top left, rgba(203, 217, 232, 0.7), transparent 36%),
    linear-gradient(180deg, #fbfcfe 0%, var(--bg) 100%);
  color: var(--text);
  font-family: "Aptos", "Segoe UI", "Helvetica Neue", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(10px);
  opacity: 0.7;
}

body::before {
  top: 12%;
  left: -120px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(138, 170, 204, 0.26) 0%, rgba(138, 170, 204, 0) 70%);
  animation: drift 16s ease-in-out infinite;
}

body::after {
  right: -80px;
  bottom: 10%;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(15, 39, 64, 0.12) 0%, rgba(15, 39, 64, 0) 72%);
  animation: drift 20s ease-in-out infinite reverse;
}

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

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

.page-shell {
  width: min(calc(100% - 40px), var(--content-width));
  margin: 0 auto 64px;
}

.site-header {
  position: sticky;
  top: 18px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px;
  padding: 18px 22px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: rgba(15, 39, 64, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 40px rgba(10, 21, 34, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.brand,
.site-nav a {
  color: #f7f9fb;
}

.brand {
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-nav a {
  font-size: 0.95rem;
  color: rgba(247, 249, 251, 0.86);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #ffffff;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  position: absolute;
  width: 18px;
  height: 2px;
  background: #ffffff;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle span:last-child {
  transform: translateY(6px);
}

.menu-toggle.is-open span:first-child {
  transform: rotate(45deg);
}

.menu-toggle.is-open span:last-child {
  transform: rotate(-45deg);
}

.section {
  padding: 54px 0 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 44px;
  align-items: center;
  min-height: calc(100vh - 140px);
}

.hero-copy h1,
.section-heading h2,
.contact-panel h2 {
  margin: 0;
  color: var(--accent);
  font-family: "Baskerville", "Times New Roman", serif;
  font-weight: 400;
  line-height: 0.98;
}

.hero-copy h1 {
  font-size: clamp(3.4rem, 8vw, 6.5rem);
  max-width: 10ch;
}

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

.hero-subtitle {
  margin: 18px 0 10px;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: #20374f;
}

.hero-summary,
.section-heading p,
.panel p,
.publication-card p,
.media-card p,
.news-card p,
.contact-panel p {
  margin: 0;
  color: var(--muted);
}

.hero-summary {
  max-width: 58ch;
  font-size: 1.06rem;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(15, 39, 64, 0.18);
}

.button-primary {
  background: var(--accent);
  color: #ffffff;
}

.contact-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
}

.contact-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.button-secondary {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.75);
  color: var(--accent);
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 34px 0 0;
}

.hero-highlights div,
.panel,
.publication-card,
.media-card,
.news-card,
.contact-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease, background-color 0.28s ease;
}

.hero-highlights div {
  padding: 18px;
}

.hero-highlights dt {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-highlights dd {
  margin: 0;
  font-weight: 700;
  color: var(--accent);
}

.hero-portrait {
  position: relative;
}

.portrait-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #dbe5ee 0%, #eef3f8 100%);
  box-shadow: 0 30px 60px rgba(13, 26, 41, 0.14);
  isolation: isolate;
}

.portrait-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: inherit;
  pointer-events: none;
}

.portrait-frame::before {
  content: "";
  position: absolute;
  inset: auto -20% -30% auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0) 68%);
  transform: translate3d(0, 0, 0);
  animation: shimmerOrbit 12s linear infinite;
  pointer-events: none;
  z-index: 1;
}

.portrait-frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.01);
  transition: transform 0.45s ease;
}

.portrait-caption {
  position: absolute;
  right: -20px;
  bottom: 24px;
  width: min(280px, calc(100% - 24px));
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-md);
  background: rgba(15, 39, 64, 0.9);
  box-shadow: 0 20px 40px rgba(10, 21, 34, 0.22);
}

.portrait-caption p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.96rem;
}

.section-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
}

.section-heading h2,
.hero-copy h1 {
  text-wrap: balance;
}

.section-heading h2,
.contact-panel h2 {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 20px;
}

.panel {
  padding: 28px;
}

.panel-accent {
  background:
    linear-gradient(160deg, rgba(15, 39, 64, 0.96), rgba(34, 63, 92, 0.95));
}

.panel-accent h3,
.panel-accent p {
  color: #ffffff;
}

.panel h3,
.publication-card h3,
.media-card h3,
.news-card h3 {
  margin: 0 0 12px;
  font-size: 1.28rem;
  line-height: 1.25;
}

.publication-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 20px;
}

.featured-publications,
.publication-list,
.media-grid,
.news-grid {
  display: grid;
  gap: 20px;
}

.publication-card,
.media-card,
.news-card {
  padding: 24px;
}

.panel:hover,
.publication-card:hover,
.media-card:hover,
.news-card:hover,
.contact-panel:hover,
.hero-highlights div:hover {
  transform: translateY(-6px);
  border-color: rgba(42, 93, 146, 0.2);
  box-shadow: var(--shadow-hover);
}

.publication-card-featured {
  min-height: 100%;
  padding: 32px;
  background:
    linear-gradient(145deg, rgba(15, 39, 64, 0.97), rgba(26, 53, 80, 0.92)),
    linear-gradient(180deg, #10253b 0%, #163553 100%);
  position: relative;
  overflow: hidden;
}

.publication-card-featured::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.14) 46%, transparent 70%);
  transform: translateX(-140%);
  transition: transform 0.8s ease;
  pointer-events: none;
}

.publication-card-featured h3,
.publication-card-featured p,
.publication-card-featured a,
.publication-card-featured .card-meta {
  color: #f4f7fb;
}

.publication-card-featured:hover::after {
  transform: translateX(140%);
}

.publication-card-academic {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(227, 235, 243, 0.92));
}

.publication-card a,
.media-card a,
.news-card a {
  display: inline-flex;
  align-items: center;
  margin-top: 16px;
  color: var(--accent);
  font-weight: 800;
}

.publication-card-featured a {
  color: #ffffff;
}

.tag {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 16px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tag-highlight {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.card-meta {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

.media-card-primary {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(233, 239, 245, 0.92));
}

.media-card-secondary {
  background: rgba(255, 255, 255, 0.62);
}

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

.news-groups {
  display: grid;
  gap: 34px;
}

.news-group {
  display: grid;
  gap: 18px;
}

.news-group-title {
  margin: 0;
  color: var(--accent);
  font-family: "Baskerville", "Times New Roman", serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 400;
}

.news-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  overflow: hidden;
  position: relative;
}

.news-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(221, 231, 241, 0.3) 100%);
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
}

.news-card-body {
  display: grid;
  gap: 10px;
}

.news-card-image {
  width: calc(100% + 48px);
  max-width: calc(100% + 48px);
  margin: -24px -24px 8px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.news-card:hover::before {
  opacity: 1;
}

.news-card:hover .news-card-image {
  transform: scale(1.04);
}

.hero-portrait:hover .portrait-frame img {
  transform: scale(1.04);
}

.news-card-author,
.news-card-tagline,
.news-card-date {
  font-size: 0.92rem;
}

.news-card-date {
  color: var(--accent);
  font-weight: 700;
}

.news-card-author {
  margin-top: -2px;
  color: var(--accent);
  font-weight: 800;
}

.news-card-tagline {
  margin-bottom: 16px;
  font-style: italic;
}

.news-card-link {
  margin-top: auto;
}

.news-empty {
  margin: 0;
  color: var(--muted);
}

.article-shell {
  max-width: 920px;
  margin: 0 auto;
}

.article-back {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--accent);
  font-weight: 800;
}

.article-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.article-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-body {
  padding: 36px;
}

.article-body h1 {
  margin: 0 0 14px;
  color: var(--accent);
  font-family: "Baskerville", "Times New Roman", serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.05;
}

.article-summary {
  margin-top: 16px;
  font-size: 1.08rem;
  color: #20374f;
}

.article-content {
  display: grid;
  gap: 18px;
  margin-top: 26px;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 34px;
}

.site-footer {
  padding: 28px 0 8px;
  text-align: center;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--reveal-delay, 0s);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(24px, -18px, 0) scale(1.08);
  }
}

@keyframes shimmerOrbit {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }

  50% {
    transform: translate3d(-26px, -18px, 0) rotate(180deg);
  }

  100% {
    transform: translate3d(0, 0, 0) rotate(360deg);
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

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

@media (max-width: 1080px) {
  .hero,
  .about-grid,
  .publication-layout,
  .contact-panel,
  .media-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 24px;
  }

  .hero-portrait {
    max-width: 560px;
  }

  .portrait-caption {
    right: 20px;
  }
}

@media (max-width: 820px) {
  .page-shell {
    width: min(calc(100% - 24px), var(--content-width));
  }

  .site-header {
    flex-wrap: wrap;
    border-radius: 28px;
    padding: 14px 16px;
  }

  .menu-toggle {
    position: relative;
    display: inline-flex;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 6px;
  }

  .site-nav.is-open {
    display: flex;
  }

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

  .portrait-caption {
    position: static;
    width: 100%;
    margin-top: 14px;
  }
}

@media (max-width: 560px) {
  .section {
    padding-top: 42px;
  }

  .hero-copy h1 {
    max-width: none;
  }

  .panel,
  .publication-card,
  .media-card,
  .news-card,
  .contact-panel,
  .article-body {
    padding: 22px;
  }

  .news-card-image {
    width: calc(100% + 44px);
    max-width: calc(100% + 44px);
    margin: -22px -22px 8px;
  }

  .button,
  .contact-actions .button {
    width: 100%;
  }
}
