*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --ink: #13151A;
  --secondary: #8A8F98;
  --border: #E4E4E0;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --header-w: 100%;
  --header-h: clamp(3.75rem, 9vh, 4.75rem);
  --header-top: clamp(2.5rem, 5vh, 4rem);
  --header-offset: calc(var(--header-top) + var(--header-h) + 2rem);
}

html, body {
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  background: #fff;
  color: var(--ink);
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 300;
  font-style: italic;
}

.site-header {
  position: fixed;
  top: var(--header-top);
  left: 0;
  width: 100%;
  height: var(--header-h);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(3rem, 7vw, 6rem);
  background: #fff;
}

.header-logo {
  font-family: 'Times New Roman', Times, serif;
  font-weight: 400;
  font-style: normal;
  font-size: clamp(1.32rem, 2.07vw, 1.67rem);
  color: var(--ink);
  letter-spacing: 0.04em;
  white-space: nowrap;
  text-decoration: none;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.65rem, 2vw, 1.35rem);
  list-style: none;
}

.header-nav a,
.header-nav .nav-trigger {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-style: normal;
  font-size: clamp(0.9rem, 1.15vw, 1.04rem);
  color: var(--ink);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.35rem 0.15rem;
  letter-spacing: 0.03em;
  transition: color 0.2s ease;
}

.header-nav a:hover,
.header-nav .nav-trigger:hover { color: var(--secondary); }

.nav-item { position: relative; }

.dropdown {
  position: absolute;
  top: calc(100% + 0.65rem);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 9rem;
  padding: 0.45rem;
  border-radius: 6px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(19, 21, 26, 0.07);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown a {
  display: block;
  padding: 0.55rem 0.85rem;
  border-radius: 4px;
  white-space: nowrap;
  font-weight: 400;
  font-style: normal;
}

.dropdown a:hover {
  background: rgba(19, 21, 26, 0.04);
  color: var(--ink);
}

/* ── Research page ── */
.research-page {
  min-height: 100vh;
  padding: var(--header-offset) clamp(1.25rem, 4vw, 2.5rem) 2rem;
  display: flex;
  flex-direction: column;
}

.research-intro {
  height: calc((100vh - var(--header-offset)) * 0.35);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;
}

.research-title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 300;
  font-style: normal;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-align: center;
}

.research-subtitle {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 300;
  font-style: italic;
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  color: var(--secondary);
  letter-spacing: 0.01em;
  line-height: 1.4;
  text-align: center;
}

.research-cards {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 2rem);
  align-content: start;
}

.research-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  border: 1px solid var(--border);
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
  background: #fff;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.research-card:hover {
  border-color: rgba(19, 21, 26, 0.14);
  box-shadow: 0 8px 28px rgba(19, 21, 26, 0.06);
}

.research-card-title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.research-card-desc {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 300;
  font-style: normal;
  font-size: clamp(0.95rem, 1.35vw, 1.0625rem);
  color: var(--ink);
  line-height: 1.5;
}

.research-card-rule {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0.25rem 0 0;
}

.research-card-image {
  width: 100%;
  aspect-ratio: 45 / 35;
  border-radius: 4px;
  background: rgba(19, 21, 26, 0.04);
  object-fit: cover;
  object-position: center;
}

/* ── Footer ── */
.site-footer {
  background-color: var(--ink);
  color: #fff;
  padding: clamp(1.5rem, 3vw, 2.5rem) clamp(3rem, 7vw, 6rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(0.9rem, 1.15vw, 1.04rem);
  transition: opacity 0.2s ease;
}

.site-footer a:hover {
  opacity: 0.8;
}

.footer-social {
  display: flex;
  align-items: center;
}

@media (max-width: 720px) {
  .site-header {
    height: auto;
    min-height: var(--header-h);
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
  }

  .header-nav {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.35rem 0.75rem;
  }

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

  .research-intro {
    height: auto;
    min-height: calc((100vh - var(--header-offset)) * 0.35);
  }
}
