/* ── Font ── */
@font-face {
  font-family: 'OverusedGrotesk';
  src: url('../fonts/OverusedGrotesk-Medium.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'OverusedGrotesk';
  src: url('../fonts/OverusedGrotesk-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

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

/* ── Base ── */
:root {
  --bg: #f9f9f9;
  --text: #2c3e42;
  --text-light: #3d5459;
  --font: 'OverusedGrotesk', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --header-pad-left: 1.875rem; /* ~30px, bumped from 20px */
  --header-pad-right: 1.25rem;
}

html { font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}

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

/* ── Header ── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 2rem var(--header-pad-right) 2rem var(--header-pad-left);
  display: flex;
  align-items: center;
  background: var(--bg);
}

.logo {
  line-height: 1;
  flex-shrink: 0;
}

.logo-img {
  height: 44px;
  width: auto;
  display: block;
}

/* Desktop nav */
.nav-desktop {
  display: flex;
  gap: 2rem;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-desktop a {
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  transition: opacity 0.2s ease;
}

.nav-desktop a:hover { opacity: 0.55; }

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 28px;
  height: 20px;
  position: relative;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  position: absolute;
  left: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger span:nth-child(3) { bottom: 0; }

/* ── Mobile menu overlay ── */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.menu-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.menu-header {
  width: 100%;
  padding: 2rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.menu-close {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 28px;
  height: 28px;
}

.menu-close svg { width: 100%; height: 100%; }
.menu-close line { stroke: var(--text); stroke-width: 2; }

.menu-logo {
  display: flex;
  align-items: center;
}

.menu-logo .logo-img {
  height: 48px;
}

.menu-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  margin-top: 6rem;
}

.menu-nav a {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: opacity 0.2s ease;
}

.menu-nav a:hover { opacity: 0.55; }

/* ── Background video slider (homepage) ── */
.bg-slides {
  position: fixed;
  inset: 0;
  z-index: -1;
}

.bg-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 2s ease;
}

.bg-slide.is-active {
  opacity: 1;
}

.has-video .header {
  background: transparent;
}

.has-video::after {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(249, 249, 249, 0.75);
  z-index: 0;
  pointer-events: none;
}

.has-video .header,
.has-video .hero {
  position: relative;
  z-index: 1;
}

/* ── Hero (homepage only) ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 1.5rem 4rem;
}

.hero-content {
  max-width: 480px;
  text-align: center;
}

.hero-heading {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.hero-body {
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-light);
}

/* ── Page content (inner pages) ── */
.page-content {
  max-width: 720px;
  width: 88%;
  margin: 0 auto;
  padding: 10rem 0 6rem;
}

.page-heading {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 1rem;
}

.page-heading:not(:first-child) {
  margin-top: 3rem;
}

.page-text {
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.page-list {
  list-style: none;
  margin: 0 0 1.5rem 0;
  padding: 0;
}

.page-list li {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text-light);
  padding-left: 1.25rem;
  position: relative;
  margin-bottom: 0.35rem;
}

.page-list li::before {
  content: '\2022';
  position: absolute;
  left: 0;
  color: var(--text-light);
}

/* ── People ── */
.person {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.person-photo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.person-info {
  flex: 1;
  min-width: 0;
}

.person-name {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}

.person-role {
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--text-light);
  margin-bottom: 0.625rem;
  letter-spacing: 0.01em;
}

.person-bio {
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-light);
}

/* ── Links in page content ── */

.page-image {
  display: block;
  width: 100%;
  border-radius: 4px;
  margin-bottom: 2rem;
}

.page-content a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  transition: opacity 0.2s ease;
}

.page-content a:hover {
  opacity: 0.55;
}

/* ── Media items ── */
.media-item {
  margin-bottom: 2.5rem;
}

.media-title {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 0.5rem;
}

/* ── Publication list ── */
.pub-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pub-item {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text-light);
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #e0e0e0;
}

.pub-item:last-child {
  border-bottom: none;
}

/* ── Contact form ── */
.contact-form {
  margin-top: 2.5rem;
}

.form-row {
  display: flex;
  gap: 1.25rem;
}

.form-field {
  flex: 1;
  margin-bottom: 1.25rem;
}

.form-field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.375rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.625rem 0.75rem;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--text);
  background: #fff;
  border: 1px solid #d0d0d0;
  border-radius: 4px;
  outline: none;
  transition: border-color 0.2s ease;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--text);
}

.form-field textarea {
  resize: vertical;
}

.form-submit {
  display: inline-block;
  padding: 0.7rem 2rem;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: var(--text);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.form-submit:hover {
  opacity: 0.8;
}

.form-submit:disabled {
  opacity: 0.5;
  cursor: default;
}

.form-status {
  margin-top: 0.75rem;
  font-size: 0.9375rem;
}

/* ── Footer ── */
.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
  padding: 1rem var(--header-pad-left);
  text-align: center;
  font-size: 0.5rem;
  line-height: 1.6;
  color: var(--text-light);
  opacity: 0.7;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .header {
    justify-content: center;
    position: relative;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .nav-desktop { display: none; }

  .hamburger {
    display: block;
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
  }

  .logo-img { height: 36px; }

  .hero { padding-top: 4rem; }
  .hero-heading { font-size: 1.15rem; }
  .hero-body { font-size: 1.05rem; }

  .page-content {
    padding-top: 6rem;
    width: 90%;
  }

  .page-heading { font-size: 1.3rem; }

  .person {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .person-photo {
    width: 100px;
    height: 100px;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }
}

@media (min-width: 769px) {
  .menu-overlay { display: none !important; }
}
