:root {
  --bg: #08090d;
  --surface: rgba(255, 255, 255, 0.12);
  --surface-strong: rgba(255, 255, 255, 0.18);
  --ink: #f7f4ee;
  --muted: rgba(247, 244, 238, 0.76);
  --soft: rgba(255, 255, 255, 0.14);
  --line: rgba(255, 255, 255, 0.22);
  --accent: #f6d2b3;
  --accent-strong: #fff2de;
  --silver: rgba(255, 255, 255, 0.08);
  --max: 1120px;
  --radius: 8px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(6, 7, 10, 0.84) 0%, rgba(6, 7, 10, 0.58) 48%, rgba(6, 7, 10, 0.76) 100%),
    linear-gradient(180deg, rgba(6, 7, 10, 0.42) 0%, rgba(6, 7, 10, 0.88) 100%),
    url("/assets/interstellar_5.png") center center / cover fixed no-repeat,
    var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

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

p,
h1,
h2,
h3 {
  margin-top: 0;
}

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 18px 0;
  background: transparent;
  backdrop-filter: none;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.46);
}

.brand {
  font-weight: 720;
  font-size: 22px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(247, 244, 238, 0.72);
  font-size: 16px;
}

.site-nav a {
  border-radius: 999px;
  padding: 7px 11px;
  transition: background 160ms ease, color 160ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  background: rgba(255, 255, 255, 0.14);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--ink);
  padding: 7px 12px;
  font: inherit;
  font-size: 14px;
}

.hero,
.page-hero,
.section,
.site-footer {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.hero {
  min-height: 78vh;
  display: grid;
  align-content: center;
  padding: 92px 0 84px;
}

.page-hero {
  padding: 104px 0 56px;
}

.page-hero.compact {
  padding-bottom: 36px;
}

.eyebrow {
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 18px;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 940px;
  margin-bottom: 26px;
  font-size: clamp(48px, 9vw, 92px);
  line-height: 0.98;
  letter-spacing: 0;
}

.page-hero h1 {
  max-width: 920px;
  font-size: clamp(42px, 7vw, 76px);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: 0;
}

.hero-copy,
.page-hero p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(19px, 2.2vw, 25px);
  line-height: 1.42;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 660;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

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

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

.section {
  padding: 82px 0;
}

.band {
  width: 100%;
  max-width: none;
  padding-right: max(16px, calc((100% - var(--max)) / 2));
  padding-left: max(16px, calc((100% - var(--max)) / 2));
  background: rgba(8, 9, 13, 0.42);
  border-top: 1px solid var(--soft);
  border-bottom: 1px solid var(--soft);
  backdrop-filter: blur(18px);
}

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

.feature-grid,
.project-grid,
.life-grid,
.note-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

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

.feature,
.project-card,
.note-preview,
.life-card,
.contact-item,
.publication,
.timeline-item,
.callout {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 28px;
  backdrop-filter: blur(18px);
}

.feature-number,
.project-date,
.pub-year,
.note-type,
.life-label,
.contact-label {
  display: block;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

.feature p,
.project-card p,
.note-preview p,
.life-card p,
.publication p,
.timeline-item p,
.callout p {
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 42px;
  align-items: start;
}

.callout {
  box-shadow: var(--shadow);
}

.callout-title {
  color: var(--ink) !important;
  font-weight: 760;
}

.text-link {
  color: var(--accent-strong);
  font-weight: 720;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.closing {
  padding-top: 98px;
  padding-bottom: 116px;
}

.research-list {
  display: grid;
  gap: 44px;
}

.research-block {
  max-width: 880px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--line);
}

.research-block:last-child {
  border-bottom: 0;
}

.publication-list {
  display: grid;
  gap: 16px;
}

.publication {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  column-gap: 26px;
}

.publication h2,
.publication p:not(.pub-year) {
  grid-column: 2;
}

.publication h2 {
  margin-bottom: 8px;
  font-size: clamp(23px, 3vw, 34px);
}

.pub-year {
  grid-row: 1 / span 3;
}

.featured-publication {
  border-color: rgba(246, 210, 179, 0.46);
  background: var(--surface-strong);
}

.placeholder {
  background: var(--silver);
  border-style: dashed;
}

.timeline {
  display: grid;
  gap: 16px;
}

.contact-list {
  display: grid;
  gap: 14px;
}

.contact-item {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

.contact-item a {
  color: var(--accent-strong);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.contact-item span {
  color: var(--muted);
}

.scroll-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 12;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 9, 13, 0.46);
  color: var(--ink);
  font-size: 28px;
  font-weight: 720;
  line-height: 1;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  transition: transform 160ms ease, background 160ms ease;
}

.scroll-top:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.14);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 820px) {
  body {
    font-size: 16px;
  }

  .site-header {
    align-items: flex-start;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 58px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(8, 9, 13, 0.92);
    padding: 8px;
    box-shadow: var(--shadow);
  }

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

  .site-nav a {
    border-radius: 6px;
    padding: 12px;
  }

  .hero {
    min-height: auto;
    padding: 72px 0 64px;
  }

  .page-hero {
    padding-top: 72px;
  }

  h1 {
    font-size: clamp(44px, 13vw, 72px);
  }

  .feature-grid,
  .project-grid,
  .life-grid,
  .note-list,
  .split {
    grid-template-columns: 1fr;
  }

  .section {
    padding-top: 58px;
    padding-bottom: 58px;
  }

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

  .publication h2,
  .publication p:not(.pub-year) {
    grid-column: 1;
  }

  .pub-year {
    grid-row: auto;
  }

  .contact-item {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
