:root {
  --bg: #F5F5F7;
  --bg-alt: #ECECF1;
  --bg-card: #FFFFFF;
  --text: #1D1D1F;
  --text-secondary: #86868B;
  --text-muted: #AEAEB2;
  --accent: #0071E3;
  --accent-hover: #0065D1;
  --accent-soft: rgba(0, 113, 227, 0.08);
  --border: rgba(15, 23, 42, 0.08);
  --shadow-card: 0 10px 30px rgba(15, 23, 42, 0.06);
  --shadow-hover: 0 20px 46px rgba(15, 23, 42, 0.12);
  --radius: 24px;
  --radius-sm: 16px;
  --radius-xs: 12px;
  --radius-pill: 999px;
  --nav-height: 58px;
  --container: 1120px;
  --transition: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  --font: system-ui, -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

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

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

a:hover {
  color: var(--accent-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  color: var(--text);
  line-height: 1.2;
  font-weight: 650;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.05rem);
  letter-spacing: -0.03em;
}

h2 {
  font-size: 1.75rem;
  letter-spacing: -0.015em;
}

h3 {
  font-size: 1.25rem;
}

h4 {
  font-size: 1.05rem;
}

p {
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  line-height: 1.65;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Navigation ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: rgba(248, 248, 250, 0.76);
  border-bottom: 1px solid var(--border);
  height: var(--nav-height);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

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

.nav-links {
  display: flex;
  gap: 1.75rem;
  align-items: center;
  position: relative;
}

.nav-links a {
  font-size: 0.84rem;
  font-weight: 560;
  color: var(--text-secondary);
  transition: color var(--transition);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown>a::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  margin-left: 4px;
}

.dropdown-menu {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
  padding: 0.5rem;
  min-width: 220px;
  z-index: 200;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-bottom-color: var(--bg-card);
  border-top: 0;
}

.nav-dropdown:hover .dropdown-menu {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-xs);
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.dropdown-menu a:hover {
  background: var(--bg);
  color: var(--text);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 24px;
  height: 18px;
  position: relative;
  z-index: 110;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  position: absolute;
  left: 0;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 8px; }
.nav-toggle span:nth-child(3) { top: 16px; }

.nav-toggle.active span:nth-child(1) {
  top: 8px;
  transform: rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle.active span:nth-child(3) {
  top: 8px;
  transform: rotate(-45deg);
}

/* Mobile menu overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  z-index: 99;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-overlay.visible {
  display: block;
  opacity: 1;
}

body.nav-open {
  overflow: hidden;
}

/* ── Cards ── */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(0, 113, 227, 0.15);
}

.card-link {
  display: block;
  color: inherit;
}

.card-link:hover {
  color: inherit;
}

/* ── Bento Grid ── */
.bento {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: auto;
}

.bento-wide {
  grid-column: span 2;
}

.bento-hero {
  grid-column: span 3;
}

.bento-stat {
  grid-column: span 1;
}

.bento-tall {
  grid-row: span 2;
}

.bento-full {
  grid-column: 1 / -1;
}

/* ── Hero / Bio Card ── */
.hero-card {
  display: grid !important;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: center;
  gap: 2rem;
  padding: 2rem;
  min-height: 300px;
  background: var(--bg-card);
  border: 1px solid rgba(15, 23, 42, 0.07);
}

.hero-photo {
  width: 220px;
  height: 280px;
  border-radius: 18px;
  object-fit: cover;
  object-position: center 20%;
  background: transparent;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.hero-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 280px;
  gap: 0.45rem;
}

.hero-info h1 {
  margin-bottom: 0.25rem;
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 0.7rem;
  font-weight: 400;
  max-width: 38ch;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.42rem 0.88rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, #FFFFFF, #F7F8FA);
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
  border: 1px solid var(--border);
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.04);
}

.pill:hover {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: rgba(0, 113, 227, 0.22);
}

.pill svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* ── Section Headers ── */
.section {
  padding: 4.75rem 0 4.25rem;
}

.section-header {
  margin-bottom: 2rem;
}

.section-header h2 {
  margin-bottom: 0.25rem;
}

.section-header p {
  font-size: 1rem;
}

/* ── Callout ── */
.callout {
  background: linear-gradient(135deg, #ECF4FF, #F3EEFF 58%, #F5FAFF);
  border-radius: var(--radius);
  padding: 2.1rem;
  border: 1px solid rgba(0, 113, 227, 0.15);
  box-shadow: var(--shadow-card);
}

.callout h4 {
  color: var(--accent);
  margin-bottom: 0.5rem;
  font-size: 1.02rem;
}

.callout p {
  color: var(--text);
  font-size: 0.94rem;
  margin: 0;
}

.section-kicker {
  padding: 0.1rem 0.15rem 0;
}

.section-kicker h3 {
  font-size: 1.16rem;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

/* ── Stats ── */
.stats-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  width: 100%;
}

.stats-card {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(150deg, #FFFFFF, #F9FBFF);
  min-height: 300px;
}

.stat {
  text-align: center;
  position: relative;
  padding: 0.85rem 0.5rem;
}

.stat+.stat {
  border-left: none;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.stat-number {
  font-size: clamp(2rem, 4vw, 2.65rem);
  font-weight: 680;
  color: var(--text);
  letter-spacing: -0.03em;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.2rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.35;
}

/* ── Research Area Grid ── */
.area-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

/* ── Research Area Cards ── */
.area-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.area-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.area-card:hover .area-card-img {
  transform: scale(1.05);
}

.area-card-content {
  padding: 1.35rem 1.5rem;
  position: relative;
  z-index: 1;
  background: var(--bg-card);
}

.area-card-content h3 {
  font-size: 1.08rem;
  margin-bottom: 0.25rem;
}

.area-card-content p {
  font-size: 0.83rem;
  margin: 0;
}

.area-card--no-img {
  padding: 0;
  justify-content: center;
}

.area-card--no-img .area-card-content {
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}

.contact-card {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  align-items: flex-start;
}

.contact-card>div {
  min-width: 180px;
}

/* ── Publications ── */
.search-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-card);
  border-radius: var(--radius-pill);
  padding: 0.6rem 1.25rem;
  box-shadow: var(--shadow-card);
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
}

.search-bar svg {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.search-bar input {
  border: none;
  background: none;
  outline: none;
  font-size: 0.9rem;
  color: var(--text);
  width: 100%;
  font-family: var(--font);
}

.search-bar input::placeholder {
  color: var(--text-muted);
}

.filter-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--transition);
}

.filter-tab:hover,
.filter-tab.active {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}

.pub-year {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 2rem 0 1rem;
  color: var(--text);
}

.pub-entry {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
}

.pub-entry:hover {
  transform: scale(1.01);
  box-shadow: var(--shadow-hover);
}

.pub-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.pub-authors {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.pub-venue {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 0.5rem;
}

.pub-links {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.pub-link {
  font-size: 0.72rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  background: var(--bg);
  color: var(--accent);
  font-weight: 500;
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.pub-link:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ── Timeline ── */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  margin-bottom: 1.5rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 0.5rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateX(-4px);
}

.timeline-date {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.15rem;
}

.timeline-content h4 {
  margin-bottom: 0.15rem;
  font-size: 1rem;
}

.timeline-content p {
  font-size: 0.88rem;
  margin: 0;
}

/* ── Teaching Cards ── */
.course-card {
  padding: 1.5rem;
}

.course-card h4 {
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.course-period {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.course-desc {
  font-size: 0.88rem;
  margin: 0;
}

/* ── Skill Tags ── */
.skill-group {
  margin-bottom: 1.5rem;
}

.skill-group h4 {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.skill-tag {
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  background: var(--bg);
  font-size: 0.82rem;
  color: var(--text);
  border: 1px solid var(--border);
}

/* ── Breadcrumb ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.breadcrumb a {
  color: var(--text-secondary);
}

.breadcrumb span {
  color: var(--text-muted);
}

/* ── Image Gallery ── */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

.gallery-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition);
}

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

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.gallery-caption {
  padding: 0.75rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
  background: var(--bg-card);
}

/* ── Lightbox ── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius-sm);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Research Detail Sections ── */
.research-section {
  margin-bottom: 3rem;
}

.research-section h3 {
  margin-bottom: 0.75rem;
}

.research-figure {
  margin: 1.5rem 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.research-figure img {
  width: 100%;
}

.research-figure figcaption {
  padding: 0.75rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
  background: var(--bg);
}

.ref-list {
  margin-top: 1rem;
}

.ref-list li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  padding-left: 1.25rem;
  position: relative;
}

.ref-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* ── Collaborator Pills ── */
.collab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.collab-pill {
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  background: var(--bg);
  font-size: 0.78rem;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

/* ── Footer ── */
.footer {
  padding: 3rem 0 2rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  margin-top: 2rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.82rem;
}

/* ── Fade-in Animation ── */
.fade-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .fade-in.will-animate {
    opacity: 0;
    transform: translateY(20px);
  }

  .fade-in.will-animate.visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Awards Badge ── */
.award-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-pill);
  background: #FFF3CD;
  color: #856404;
  font-size: 0.72rem;
  font-weight: 600;
}

/* ── Membership Card ── */
.member-card {
  padding: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.member-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--accent);
  font-size: 1rem;
  flex-shrink: 0;
}

/* ── Print ── */
@media print {

  .nav,
  .footer {
    display: none;
  }

  .card {
    box-shadow: none;
    border: 1px solid #ddd;
    break-inside: avoid;
  }

  body {
    background: #fff;
  }
}

/* ── Responsive ── */

/* Tablet landscape */
@media (max-width: 900px) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .bento-wide,
  .bento-hero,
  .bento-stat {
    grid-column: span 2;
  }

  .section {
    padding: 3.5rem 0 3rem;
  }

  h1 {
    font-size: 2rem;
  }

  .hero-card {
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 1.5rem;
    padding: 1.75rem;
  }

  .hero-photo {
    width: 180px;
    height: 230px;
  }

  .hero-info {
    min-height: auto;
  }

  .stats-card {
    min-height: auto;
  }

  .stats-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stat+.stat {
    border-top: none;
    border-left: 1px solid rgba(15, 23, 42, 0.08);
  }

  .card {
    padding: 1.75rem;
  }

  .contact-card {
    gap: 2rem;
  }

  .area-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .area-card-img {
    height: 160px;
  }
}

/* Tablet portrait — hamburger nav kicks in */
@media (max-width: 768px) {
  .nav {
    overflow: visible;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - var(--nav-height));
    max-height: calc(100dvh - var(--nav-height));
    background: rgba(248, 248, 250, 0.97);
    backdrop-filter: saturate(180%) blur(24px);
    -webkit-backdrop-filter: saturate(180%) blur(24px);
    flex-direction: column;
    padding: 1.25rem 1.5rem 2rem;
    gap: 0;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    z-index: 101;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-links.open {
    display: flex;
    animation: menuSlideIn 0.25s ease forwards;
  }

  @keyframes menuSlideIn {
    from {
      opacity: 0;
      transform: translateY(-8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .nav-links>a {
    display: block;
    padding: 0.9rem 0;
    font-size: 1.05rem;
    font-weight: 550;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    text-align: center;
    -webkit-tap-highlight-color: transparent;
  }

  .nav-links>a.active {
    color: var(--accent);
  }

  .nav-dropdown {
    display: block !important;
    width: 100%;
    position: relative;
    border-bottom: 1px solid var(--border);
    text-align: center;
  }

  .nav-dropdown>a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0.9rem 0 !important;
    font-size: 1.05rem !important;
    font-weight: 550;
    color: var(--text);
    border-bottom: none !important;
    -webkit-tap-highlight-color: transparent;
  }

  .nav-dropdown>a.active {
    color: var(--accent);
  }

  .nav-dropdown>a::after {
    content: '';
    width: 7px;
    height: 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    flex-shrink: 0;
    transition: transform 0.3s ease;
  }

  .nav-dropdown.dropdown-open>a {
    color: var(--accent);
  }

  .nav-dropdown.dropdown-open>a::after {
    transform: rotate(-135deg);
  }

  .dropdown-menu {
    position: static !important;
    transform: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.25s ease, visibility 0.25s;
    min-width: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent;
  }

  .dropdown-menu::before {
    display: none !important;
  }

  .nav-dropdown.dropdown-open .dropdown-menu {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    max-height: 400px;
    padding: 0 0 0.5rem 0 !important;
  }

  .dropdown-menu a {
    display: block;
    padding: 0.6rem 0;
    font-size: 0.92rem;
    border-radius: 0;
    color: var(--text-secondary);
    font-weight: 480;
    border: none;
    text-align: center;
  }

  .dropdown-menu a:active {
    background: var(--accent-soft);
    color: var(--accent);
  }

  .nav-toggle {
    display: block;
  }

  .hero-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 2rem;
    gap: 1.25rem;
  }

  .hero-photo {
    width: 160px;
    height: 210px;
    margin: 0 auto;
  }

  .hero-info {
    align-items: center;
  }

  .hero-links {
    justify-content: center;
  }

  .hero-subtitle {
    max-width: none;
  }

  .section {
    padding: 3rem 0 2.5rem;
  }
}

/* Mobile */
@media (max-width: 540px) {
  :root {
    --radius: 18px;
    --radius-sm: 12px;
  }

  .container {
    padding: 0 1rem;
  }

  .bento {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .bento-wide,
  .bento-hero,
  .bento-stat {
    grid-column: span 1;
  }

  .section {
    padding: 2.5rem 0 2rem;
  }

  h1 {
    font-size: 1.6rem;
  }

  h2 {
    font-size: 1.35rem;
  }

  h3 {
    font-size: 1.1rem;
  }

  .card {
    padding: 1.5rem;
  }

  .hero-card {
    padding: 1.5rem;
    gap: 1rem;
  }

  .hero-photo {
    width: 130px;
    height: 170px;
    border-radius: 14px;
    object-position: center 18%;
  }

  .stats-card {
    padding: 1.25rem;
  }

  .stats-row {
    grid-template-columns: repeat(3, 1fr);
  }

  .stat {
    padding: 0.6rem 0.25rem;
  }

  .stat-number {
    font-size: 1.75rem;
  }

  .stat-label {
    font-size: 0.7rem;
  }

  .area-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .area-card-img {
    height: 140px;
  }

  .area-card-content {
    padding: 1.15rem 1.25rem;
  }

  .callout {
    padding: 1.5rem;
  }

  .callout p {
    font-size: 0.88rem;
  }

  .contact-card {
    flex-direction: column;
    gap: 1.5rem;
  }

  .contact-card>div {
    min-width: 0;
  }

  .footer {
    padding: 2rem 0 1.5rem;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
  }

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

  .pill {
    padding: 0.38rem 0.72rem;
    font-size: 0.72rem;
  }
}

/* Small mobile */
@media (max-width: 380px) {
  .container {
    padding: 0 0.75rem;
  }

  .hero-card {
    padding: 1.25rem;
  }

  .hero-photo {
    width: 110px;
    height: 144px;
  }

  h1 {
    font-size: 1.35rem;
  }

  .stats-row {
    grid-template-columns: 1fr;
  }

  .stat+.stat {
    border-left: none;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
  }

  .hero-links {
    gap: 0.35rem;
  }

  .pill {
    padding: 0.32rem 0.6rem;
    font-size: 0.68rem;
  }

  .card {
    padding: 1.25rem;
  }

  .area-card-img {
    height: 120px;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}