:root {
  --bg: #f3f6f8;
  --surface: rgba(255,255,255,0.95);
  --surface-2: #ecf4f4;
  --text: #163133;
  --muted: #5f7174;
  --primary: #1c6b68;
  --primary-dark: #114846;
  --accent: #c9e8e5;
  --border: rgba(22, 49, 51, 0.12);
  --shadow: 0 18px 45px rgba(15, 39, 43, 0.10);
  --radius: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: linear-gradient(180deg, #f8fbfb 0%, #eef4f4 100%);
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
code { background: #edf3f3; padding: 2px 6px; border-radius: 8px; }

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 1100;
  background: rgba(247, 251, 251, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(22, 49, 51, 0.08);
}

.nav-wrap {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
  text-decoration: none;
  min-width: 0;
}

.brand-logo {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand strong {
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand small { color: var(--muted); }

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav > ul > li { position: relative; }
.main-nav a {
  display: block;
  padding: 12px 13px;
  border-radius: 12px;
  color: var(--text);
  font-weight: 600;
  font-size: .96rem;
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li:hover > a,
.main-nav > ul > li.open > a {
  background: var(--surface-2);
  text-decoration: none;
}

.submenu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 235px;
  padding: 10px;
  background: rgba(255,255,255,0.98);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  display: none;
}
.dropdown:hover .submenu,
.dropdown.open .submenu {
  display: block;
}
.submenu li + li { margin-top: 4px; }
.submenu a { padding: 10px 12px; }

.menu-toggle {
  display: none;
  border: 1px solid var(--border);
  background: white;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 1.2rem;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 88vh;
  display: flex;
  align-items: center;
  background: url('assets/hero-photo.png') center/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 31, 33, .86) 0%, rgba(10, 48, 49, .74) 42%, rgba(10, 48, 49, .38) 100%);
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, .7fr);
  gap: 30px;
  padding: 84px 0 78px;
  align-items: end;
}

.hero-copy {
  color: #f7fdfd;
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 8px;
  color: #b8eeea;
  text-transform: uppercase;
  letter-spacing: .09em;
  font-weight: 700;
  font-size: .82rem;
}

.hero h1,
.section-head h2,
.card h3 {
  font-family: 'Playfair Display', serif;
}

.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(2.4rem, 5vw, 4.35rem);
  line-height: 1.05;
}
.hero-role {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
}
.hero-affiliation {
  margin: 6px 0 18px;
  color: #d5efec;
  font-size: 1rem;
}
.lead {
  color: #edf7f6;
  font-size: 1.05rem;
  max-width: 680px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 700;
  border: 1px solid transparent;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn.primary { background: var(--primary); color: white; }
.btn.primary:hover { background: var(--primary-dark); }
.btn.secondary {
  color: white;
  border-color: rgba(255,255,255,.35);
  background: rgba(255,255,255,.08);
}
.btn.secondary:hover { background: rgba(255,255,255,.16); }
.inline-btn { margin-top: 12px; }

.hero-panel,
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 22px;
  display: grid;
  gap: 14px;
}

.mini-card {
  padding: 16px;
  border-radius: 16px;
  background: rgba(236, 244, 244, 0.78);
}
.mini-card span {
  display: block;
  color: var(--muted);
  font-size: .85rem;
  margin-bottom: 6px;
}
.mini-card strong { font-size: 1rem; }
.profile-links { display: flex; gap: 10px; flex-wrap: wrap; }
.profile-links a {
  padding: 8px 12px;
  border-radius: 999px;
  background: white;
  border: 1px solid var(--border);
  font-size: .92rem;
}

.section { padding: 78px 0; }
.section.alt { background: linear-gradient(180deg, #eef4f4 0%, #e8f0f0 100%); }
.section-head { margin-bottom: 26px; }
.section-head h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.2;
}
.section-head .eyebrow { color: var(--primary); }

.about-grid,
.grid-2,
.grid-3 {
  display: grid;
  gap: 22px;
}
.about-grid { grid-template-columns: .8fr 1.2fr; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stack { display: grid; gap: 18px; }
.top-gap { margin-top: 22px; }

.card { padding: 26px; }
.card h3 { margin-top: 0; margin-bottom: 14px; font-size: 1.42rem; }
.section-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.section-row h3 { margin-bottom: 0; }

.photo-card { padding: 14px; }
.profile-photo {
  width: 100%;
  height: 100%;
  max-height: 640px;
  object-fit: cover;
  border-radius: 16px;
}

.tag-list,
.clean-list,
.contact-list,
.item-list {
  margin: 0;
  padding-left: 20px;
}
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
}
.tag-list li {
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: .95rem;
}

.entry + .entry {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.entry-title {
  display: block;
  font-weight: 700;
  margin-bottom: 4px;
}
.entry-meta {
  color: var(--muted);
  font-size: .92rem;
  margin-bottom: 6px;
}
.entry-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}
.entry-links a {
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: .9rem;
}

.count-badge {
  min-width: 34px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent);
  font-weight: 700;
  text-align: center;
}

.gallery-list {
  display: grid;
  gap: 14px;
}
.gallery-item {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
}
.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.gallery-item span {
  display: block;
  padding: 10px 12px;
  font-size: .92rem;
}

.muted, .note { color: var(--muted); }
.tight-list li + li { margin-top: 8px; }

.footer {
  background: #f9fcfc;
  border-top: 1px solid var(--border);
}
.footer-wrap {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

@media (max-width: 1120px) {
  .hero-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .menu-toggle { display: block; }

  .main-nav {
    position: absolute;
    top: 88px;
    left: 16px;
    right: 16px;
    background: rgba(255,255,255,0.98);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 12px;
    display: none;
  }
  .main-nav.open { display: block; }
  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
  }
  .submenu {
    position: static;
    margin-top: 6px;
    box-shadow: none;
    background: transparent;
    border: none;
    padding: 0 0 0 12px;
  }
  .dropdown:hover .submenu { display: none; }
  .dropdown.open .submenu { display: block; }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    padding: 68px 0 54px;
  }
}

@media (max-width: 640px) {
  .container { width: min(100% - 22px, 1180px); }
  .brand strong { white-space: normal; }
  .hero h1 { font-size: 2.2rem; }
  .section { padding: 62px 0; }
  .card { padding: 20px; }
  .footer-wrap { flex-direction: column; justify-content: center; }
}
