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

:root {
  --ink: #172033;
  --muted: #526070;
  --line: #d8dee8;
  --panel: #ffffff;
  --surface: #f6f8fb;
  --accent: #1f6f78;
  --accent-dark: #164e55;
  --shadow: 0 18px 44px rgba(23, 32, 51, 0.09);
}

body {
  min-height: 100vh;
  font-family: "Inter", Arial, sans-serif;
  background: var(--surface);
  color: var(--ink);
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(216, 222, 232, 0.82);
  background: rgba(246, 248, 251, 0.92);
  backdrop-filter: blur(16px);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 18px 0;
}

.logo {
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  list-style: none;
}

.nav-links a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  border-radius: 999px;
  padding: 0 12px;
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease;
}

.nav-links a:hover,
.nav-links a.active {
  background: #e8f2f3;
  color: var(--accent-dark);
}

.hero {
  padding: 64px 0 76px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.72fr);
  align-items: center;
  gap: 56px;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  max-width: 820px;
  color: var(--ink);
  font-size: clamp(2.15rem, 6vw, 4.45rem);
  font-weight: 800;
  line-height: 1.02;
}

.hero-copy,
.page-intro {
  max-width: 760px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

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

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 16px;
  background: var(--panel);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.button:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.portrait {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
}

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

.highlight-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}

.highlight {
  min-height: 128px;
  padding: 24px;
  background: #ffffff;
}

.highlight strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 1rem;
}

.highlight span {
  color: var(--muted);
  line-height: 1.55;
}

.page-section {
  padding: 54px 0 80px;
}

.page-shell {
  max-width: 980px;
}

.content-list {
  display: grid;
  gap: 18px;
  margin-top: 34px;
}

.item,
.contact-item,
.section-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 24px;
  box-shadow: 0 8px 24px rgba(23, 32, 51, 0.045);
}

.item-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 8px;
}

h2 {
  color: var(--ink);
  font-size: 1.23rem;
  line-height: 1.25;
}

.date {
  color: var(--accent-dark);
  font-size: 0.93rem;
  font-weight: 800;
  white-space: nowrap;
}

.subtitle {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 1rem;
}

p,
li {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.72;
}

ul {
  padding-left: 20px;
}

li + li {
  margin-top: 7px;
}

.text-link {
  color: var(--accent-dark);
  font-weight: 800;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-left: 0;
  list-style: none;
}

.pill-list li {
  border: 1px solid #c8dbde;
  border-radius: 999px;
  padding: 7px 12px;
  background: #f2f8f9;
  color: var(--accent-dark);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.2;
}

.pill-list li + li {
  margin-top: 0;
}

.project-actions {
  margin-top: 14px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.project-card {
  display: flex;
  min-height: 250px;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 24px;
  box-shadow: 0 8px 24px rgba(23, 32, 51, 0.045);
}

.project-card.featured {
  grid-column: span 2;
  min-height: 220px;
  background: linear-gradient(135deg, #ffffff 0%, #eef7f8 100%);
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.tag {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border: 1px solid #c8dbde;
  border-radius: 999px;
  padding: 0 10px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
}

.project-card h2 {
  margin-bottom: 12px;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.affiliation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.affiliation-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 24px;
  box-shadow: 0 8px 24px rgba(23, 32, 51, 0.045);
}

.affiliation-card h2 {
  margin-bottom: 18px;
}

.affiliation-list {
  display: grid;
  gap: 12px;
  padding-left: 0;
  list-style: none;
}

.affiliation-list li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.affiliation-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.affiliation-list span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.contact-item h2 {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-item a,
.contact-item span {
  color: var(--ink);
  font-weight: 700;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.contact-item a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 26px 0;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 820px) {
  .site-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero {
    padding-top: 42px;
  }

  .hero-grid,
  .highlights,
  .project-grid,
  .detail-grid,
  .affiliation-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .project-card.featured {
    grid-column: span 1;
  }

  .portrait {
    max-width: 360px;
  }

  .item-header {
    flex-direction: column;
    gap: 6px;
  }

  .date {
    white-space: normal;
  }
}
