:root {
  --bg: #0b1220;
  --bg-soft: #101a2d;
  --surface: #ffffff;
  --surface-soft: #f5f7fb;
  --text: #102033;
  --text-light: #5f6f85;
  --white: #ffffff;
  --line: #d9e1ec;
  --primary: #0f6cbd;
  --primary-dark: #0a4e8d;
  --accent: #1aa7a1;
  --shadow: 0 10px 30px rgba(16, 32, 51, 0.08);
  --radius: 18px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: var(--surface);
  line-height: 1.65;
}

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

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

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin: 0 auto;
}

.narrow {
  width: min(860px, 100%);
}

.topbar {
  background: #09101c;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
}

.topbar p,
.topbar a {
  color: #ffffff;
  margin: 0;
}

.topbar-inner {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.header-inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand img {
  width: 200px;
  height: auto;
  object-fit: contain;
}

.site-nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.site-nav a {
  font-weight: 600;
  color: var(--text-light);
  padding: 0.2rem 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--primary);
  border-color: var(--primary);
}

.hero {
  position: relative;
  background:
    linear-gradient(135deg, rgba(7, 16, 30, 0.9), rgba(10, 25, 48, 0.68)),
    url("../img/hero/hero-bg.jpg") center/cover no-repeat;
  color: var(--white);
  overflow: hidden;
}

.hero-home {
  min-height: 78vh;
  display: flex;
  align-items: center;
}

.hero-figure {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.5fr 0.8fr;
  gap: 2rem;
  padding: 5rem 0;
}

.hero h1,
.page-hero h1 {
  margin: 0 0 1rem;
  line-height: 1.08;
  font-size: clamp(2.2rem, 4vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 800px;
}

.lead {
  font-size: 1.15rem;
  color: var(--text-light);
  max-width: 800px;
}

.hero-text {
  color: rgba(255, 255, 255, 0.82);
  max-width: 760px;
}

.hero-badge-group,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero-badge-group {
  margin-bottom: 1.25rem;
}

.badge {
  display: inline-flex;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.92rem;
  font-weight: 600;
}

.page-hero {
  padding: 5rem 0 3rem;
  background: linear-gradient(180deg, #f7f9fc 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
}

.use-case-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 20px;
}

.use-case-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.use-case-text h4 {
  margin: 0 0 10px 0;
  font-size: 1.05rem;
  font-weight: 700;
  font-style: italic;
  color: #ffffff;
}

.use-case-text p {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.8;
  color: rgba(200, 215, 235, 0.55);
  max-width: 90%;
}

.use-case-image img {
  display: block;
  width: 100%;
  max-width: 520px;
  height: auto;
  border-radius: 0;
  object-fit: cover;
}

.university-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.university-heading h3 {
  margin: 0;
}

.university-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.team-member {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  padding: 20px;
  align-items: start;
}

.team-photo {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 10px;
}

.team-main h4 {
  margin: 0 0 10px;
}

.team-main p {
  margin: 0;
}

.team-bio-wrapper {
  grid-column: 1 / -1;
  margin-top: 4px;
}

.team-bio {
  line-height: 1.7;
  text-align: justify;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.team-bio.collapsed {
  max-height: 7.5em; /* about 4-5 lines depending on font */
}

.team-bio p {
  margin: 0 0 12px;
}

.team-bio p:last-child {
  margin-bottom: 0;
}

.read-more-btn {
  margin-top: 10px;
  padding: 0;
  border: none;
  background: none;
  color: inherit;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

.team-member h4 a {
  color: inherit;
  text-decoration: none;
}

.team-member h4 a:hover {
  text-decoration: underline;
}

.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--surface-soft);
}

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

.section-heading.center,
.center-text,
.center-row {
  text-align: center;
  justify-content: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.8rem;
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.7rem, 2.8vw, 2.8rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h3 {
  margin-top: 0;
  margin-bottom: 0.8rem;
  font-size: 1.15rem;
  line-height: 1.3;
}

p,
li {
  color: var(--text-light);
}

.grid {
  display: grid;
  gap: 1.5rem;
}

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

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

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

.card,
.stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.glass {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: none;
}

.glass h3,
.glass li {
  color: var(--white);
}

.feature-list {
  margin: 0;
  padding-left: 1.2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.8rem 1.2rem;
  border-radius: 12px;
  font-weight: 700;
  transition: 0.2s ease;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  background: var(--white);
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.media-card {
  padding: 0;
  overflow: hidden;
}

.media-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.card-body {
  padding: 1.4rem;
}

.stat-card h3 {
  font-size: 1.2rem;
  color: var(--text);
}

.wp-card {
  padding: 2rem;
}

.wp-tag,
.pub-type {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: #e9f2fb;
  color: var(--primary);
  font-size: 0.84rem;
  font-weight: 700;
}

.wp-subtitle,
.pub-meta {
  color: var(--text-light);
  font-weight: 600;
}

.site-footer {
  background: #0b1220;
  color: rgba(255, 255, 255, 0.82);
  padding-top: 3.5rem;
}

.site-footer h3,
.site-footer h4 {
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li + li {
  margin-top: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1rem 0 1.5rem;
  font-size: 0.92rem;
}

@media (max-width: 980px) {
  .hero-grid,
  .grid-2,
  .grid-3,
  .grid-4,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 0;
  }

  .site-nav {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .topbar-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem 0;
  }

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

  .hero-grid {
    padding: 4rem 0;
  }
}