:root {
  --bg: #f2f6ef;
  --panel: #ffffff;
  --text: #182018;
  --muted: #4a5a49;
  --primary: #14532d;
  --accent: #b08b2c;
  --line: #d6e1d3;
  --shadow: 0 20px 40px rgba(20, 83, 45, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: "DM Sans", sans-serif;
  background: radial-gradient(circle at 0% 0%, #dcebd5 0%, transparent 40%),
              radial-gradient(circle at 100% 20%, #e8efd5 0%, transparent 35%),
              var(--bg);
  color: var(--text);
  line-height: 1.6;
}

h1,
h2,
h3,
.brand {
  font-family: "Sora", sans-serif;
  margin: 0;
  line-height: 1.2;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.bg-orb {
  position: fixed;
  border-radius: 999px;
  pointer-events: none;
  z-index: -1;
  opacity: 0.36;
}

.orb-1 {
  width: 320px;
  height: 320px;
  background: #b8d8bb;
  top: -100px;
  left: -80px;
}

.orb-2 {
  width: 460px;
  height: 460px;
  background: #f2dda8;
  bottom: -220px;
  right: -180px;
}

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(8px);
  background: rgba(242, 246, 239, 0.78);
  border-bottom: 1px solid var(--line);
  z-index: 30;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 0;
}

.brand {
  text-decoration: none;
  color: var(--primary);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  gap: 1.1rem;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.hero {
  padding: 6.2rem 0 3.4rem;
}

.kicker {
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 3.8rem);
  margin: 0.4rem 0 1rem;
}

.hero-text {
  width: min(740px, 100%);
  font-size: 1.06rem;
  color: var(--muted);
}

.hero-badges {
  margin-top: 1.4rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-badges span {
  border: 1px solid #b5c7b0;
  background: #edf3eb;
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  font-size: 0.86rem;
  font-weight: 700;
}

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

.section-head {
  margin-bottom: 1rem;
}

.section-head h2 {
  font-size: clamp(1.4rem, 4vw, 2.1rem);
  color: var(--primary);
  margin-bottom: 0.45rem;
}

.section-head p {
  color: var(--muted);
  margin: 0;
}

.about-grid,
.member-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.about-grid article {
  grid-column: span 4;
  background: var(--panel);
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 1.2rem;
}

.about-grid h3 {
  margin-bottom: 0.4rem;
}

.member-card {
  grid-column: span 6;
  background: linear-gradient(145deg, #ffffff, #f2f7ef);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 1.15rem;
}

.member-card h3 {
  font-size: 1.04rem;
}

.member-card .role {
  margin: 0.35rem 0 0.5rem;
  color: var(--accent);
  font-weight: 700;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.project-card {
  grid-column: span 4;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 46px rgba(20, 83, 45, 0.2);
}

.thumb {
  aspect-ratio: 16 / 10;
  background: #dbe8d8;
}

.thumb img,
.thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-info {
  padding: 1rem;
}

.project-info h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.project-info p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.research-list {
  display: grid;
  gap: 0.75rem;
}

.research-list a {
  color: var(--primary);
  text-decoration: none;
  border: 1px solid var(--line);
  background: #f9fcf8;
  border-radius: 12px;
  padding: 0.8rem 1rem;
  font-weight: 500;
}

.research-list a:hover {
  border-color: #aac8a9;
  background: #eef6ea;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.4rem 0 2rem;
  color: var(--muted);
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.gallery-modal {
  width: min(940px, 94vw);
  border: none;
  border-radius: 16px;
  padding: 0;
  background: #ffffff;
}

.gallery-modal::backdrop {
  background: rgba(5, 14, 5, 0.64);
}

.close-btn {
  border: none;
  background: var(--primary);
  color: white;
  font-weight: 700;
  padding: 0.55rem 0.9rem;
  border-radius: 8px;
  margin: 1rem;
  float: right;
  cursor: pointer;
}

.gallery-content {
  padding: 1rem 1rem 1.3rem;
}

.gallery-meta h3 {
  color: var(--primary);
}

.gallery-meta p {
  margin-top: 0.25rem;
  color: var(--muted);
}

.gallery-media {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

.gallery-media img,
.gallery-media video {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .about-grid article,
  .project-card {
    grid-column: span 6;
  }
}

@media (max-width: 740px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  .nav-links {
    overflow-x: auto;
    width: 100%;
    padding-bottom: 0.2rem;
  }

  .about-grid article,
  .member-card,
  .project-card {
    grid-column: span 12;
  }

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