@import url('https://fonts.googleapis.com/css2?family=Marcellus&family=Inter:wght@400;600;700;800&display=swap');
:root {
  --brown: #3a2418;
  --dark: #1f1714;
  --cream: #fffdf9;
  --sand: #f7efe6;
  --muted: #7a6a5f;
  --sea: #4aaec2;
  --card: rgba(255, 255, 255, 0.86);
  --line: rgba(58, 36, 24, 0.16);
  --shadow: 0 18px 50px rgba(58, 36, 24, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--dark);
  background: var(--cream);
  line-height: 1.65;
}

a {
  color: var(--brown);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}


/* =========================
   Header
========================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 14px clamp(20px, 6vw, 84px);

  background: rgba(255, 253, 249, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  color: var(--brown);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

nav {
  display: flex;
  gap: 24px;
  font-size: 0.9rem;
  font-weight: 700;
}

nav a {
  color: var(--dark);
  opacity: 0.8;
}

nav a:hover {
  opacity: 1;
  text-decoration: none;
}


/* =========================
   Hero
========================= */

.hero {
  position: relative;
  min-height: calc(100vh - 66px);
  overflow: hidden;

  padding: 62px clamp(20px, 6vw, 84px) 280px;

  background:
    radial-gradient(
      circle at 82% 18%,
      rgba(74, 174, 194, 0.12),
      transparent 30%
    ),
    linear-gradient(
      180deg,
      #fffdf9 0%,
      #fbf4ec 62%,
      #f1e2d4 100%
    );
}

.hero-inner {
  position: relative;
  z-index: 3;

  width: min(1120px, 100%);
  margin: 0 auto;
}

.hero-text {
  max-width: 790px;
  text-align: left;
}

.profile-photo {
  display: block;

  width: 300px;
  height: 300px;
  margin-bottom: 26px;

  object-fit: cover;
  object-position: center;

  border: 1px solid rgba(58, 36, 24, 0.18);
  border-radius: 50%;

  box-shadow: 0 22px 52px rgba(58, 36, 24, 0.16);
}

.eyebrow {
  margin: 0 0 12px;

  color: #7a4f36;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 14px;

  color: var(--brown);
  font-family: "Marcellus", serif;
  font-size: clamp(3.8rem, 7vw, 5.4rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
}

/* CV button under name */

.profile-links {
  display: flex;
  align-items: center;
  gap: 10px;

  margin: 0 0 24px;
}

.cv-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 54px;
  padding: 6px 16px;

  color: var(--brown);
  background: rgba(255, 255, 255, 0.56);

  border: 1px solid rgba(58, 36, 24, 0.28);
  border-radius: 999px;

  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;

  box-shadow: none;

  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.cv-button:hover {
  color: #ffffff;
  background: var(--brown);
  border-color: var(--brown);
  text-decoration: none;
  transform: translateY(-1px);
}

.hero-description {
  max-width: 760px;
  margin: 0;

  color: #3f332d;
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
}

.quick-links {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 10px;

  margin-top: 30px;
}

.quick-links a {
  padding: 9px 18px;

  color: var(--brown);
  background: rgba(255, 255, 255, 0.74);

  border: 1px solid rgba(58, 36, 24, 0.14);
  border-radius: 999px;

  font-size: 0.9rem;
  font-weight: 700;

  box-shadow: 0 10px 28px rgba(58, 36, 24, 0.06);

  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.quick-links a:hover {
  background: rgba(255, 255, 255, 0.96);
  text-decoration: none;
  transform: translateY(-2px);
}

.quick-links a.active {
  color: #ffffff;
  background: var(--sea);
  border-color: var(--sea);
}

.quick-links a.active:hover {
  background: #3c9eb2;
  border-color: #3c9eb2;
}


/* =========================
   Ocean video
========================= */

.ocean {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;

  width: 100%;
  height: 300px;
  overflow: hidden;

  background: #7fd7d2;
  pointer-events: none;
}

.ocean video {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;
  opacity: 0.9;
}

.ocean::before {
  content: "";

  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  left: 0;

  height: 92px;

  background: linear-gradient(
    180deg,
    rgba(251, 244, 236, 1) 0%,
    rgba(251, 244, 236, 0.72) 38%,
    rgba(251, 244, 236, 0) 100%
  );

  pointer-events: none;
}


/* =========================
   Main sections
========================= */

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 72px clamp(20px, 6vw, 84px);
}

.section h2 {
  margin: 0 0 24px;

  color: var(--brown);
  font-family: "Marcellus", serif;
  font-size: clamp(2.6rem, 4vw, 3.8rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.section p {
  color: #4b3f39;
}

.two-col {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 34px;
  align-items: start;
}

.info-box,
.card,
.timeline div,
.contact,
.pub-list {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.info-box,
.card,
.contact {
  padding: 28px;
}

.info-box h3,
.card h3 {
  margin-top: 0;
  color: var(--brown);
  letter-spacing: -0.025em;
}

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

.card {
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 80px rgba(58, 36, 24, 0.14);
}

/* Research cards become clickable */
.research-card {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}

.research-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(0,0,0,.12);
}

.research-card h3 {
  color: inherit;
}

.poster-link {
  display: inline-block;
  margin-top: 16px;
  font-weight: 700;
  color: #7b5d42;
}

.pub-list {
  padding: 28px 34px;
}

.pub-list li {
  margin: 14px 0;
  color: #4b3f39;
}

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

.timeline div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  align-items: start;

  padding: 24px;
}

time {
  color: #7a4f36;
  font-weight: 800;
}


/* =========================
   Gallery
========================= */

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

.gallery-item {
  position: relative;

  height: 230px;
  padding: 0;
  overflow: hidden;

  background: #ffffff;

  border: 1px solid var(--line);
  border-radius: 28px;

  box-shadow: var(--shadow);
  cursor: pointer;
}

.gallery-item img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;

  transition: transform 0.35s ease;
}

.gallery-item span {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;

  padding: 10px 14px;

  color: var(--brown);
  background: rgba(255, 253, 249, 0.82);

  border-radius: 999px;

  font-weight: 800;
  text-align: left;

  backdrop-filter: blur(12px);
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-modal {
  position: fixed;
  z-index: 100;
  inset: 0;

  display: none;
  align-items: center;
  justify-content: center;

  padding: 24px;

  background: rgba(31, 23, 20, 0.56);
  backdrop-filter: blur(10px);
}

.gallery-modal.show {
  display: flex;
}

.gallery-modal-content {
  position: relative;

  width: min(860px, 100%);
  max-height: 88vh;
  overflow: auto;

  background: #fffdf9;
  border-radius: 30px;

  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
}

.gallery-modal-content img {
  display: block;

  width: 100%;
  max-height: 62vh;

  object-fit: cover;
}

.gallery-modal-content h3 {
  margin: 22px 28px 6px;

  color: var(--brown);
  font-size: 1.45rem;
}

.gallery-modal-content p {
  margin: 0 28px 28px;
  color: #4b3f39;
}

.modal-close {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;

  width: 38px;
  height: 38px;

  color: var(--brown);
  background: rgba(255, 253, 249, 0.88);

  border: 0;
  border-radius: 50%;

  font-size: 1.7rem;
  line-height: 1;

  cursor: pointer;
}


/* =========================
   Footer
========================= */

footer {
  padding: 34px;

  color: var(--muted);
  text-align: center;

  border-top: 1px solid var(--line);
}


/* =========================
   Responsive
========================= */

@media (max-width: 900px) {
  nav {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 52px 20px 260px;
  }

  .hero-text {
    max-width: 100%;
  }

  .profile-photo {
    width: 250px;
    height: 250px;
    margin-bottom: 24px;
  }

  h1 {
    font-size: clamp(4rem, 18vw, 5.8rem);
  }

  .profile-links {
    margin-bottom: 22px;
  }

  .ocean {
    height: 240px;
  }

  .two-col,
  .cards,
  .timeline div {
    grid-template-columns: 1fr;
  }

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

  .timeline div {
    gap: 6px;
  }
}

@media (max-width: 600px) {
  .profile-photo {
    width: 210px;
    height: 210px;
  }

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

  .gallery-item {
    height: 250px;
  }

  .quick-links {
    gap: 8px;
  }

  .quick-links a {
    padding: 8px 14px;
    font-size: 0.84rem;
  }
}