@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;750;800&display=swap");

:root {
  --bg: #f7f9f8;
  --text: #12313b;
  --accent: #0f766e;
  --accent-2: #12313b;
  --accent-soft: #dff4ef;
  --panel: #ffffff;
  --panel-soft: #eef7f4;
  --border: #d7e0df;
  --muted: #60757c;
  --warm: #d8c7a3;
  --shadow: 0 12px 32px rgba(18, 49, 59, 0.05);
  --container: 1080px;
  --nav-height: 74px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 24px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
}

a {
  color: var(--accent-2);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

h1,
h2,
h3 {
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: -0.04em;
  line-height: 1.02;
  margin: 0;
}

p {
  margin: 0 0 1rem;
}

.site-header {
  backdrop-filter: blur(12px);
  background: rgba(247, 249, 248, 0.94);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header-inner {
  align-items: center;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 28px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--container);
  min-height: var(--nav-height);
  padding: 0 22px;
}

.site-logo {
  color: var(--text);
  font-weight: 750;
  letter-spacing: -0.03em;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  white-space: nowrap;
}

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

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

.site-nav a.is-active {
  color: var(--accent);
}

.page-main,
.site-footer {
  margin: 0 auto;
  max-width: var(--container);
  padding: 0 24px;
}

.hero {
  align-items: center;
  display: grid;
  gap: 34px;
  grid-template-columns: 1.25fr 0.75fr;
  padding: 58px 0 62px;
}

.hero-copy {
  max-width: 720px;
}

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

.hero h1 {
  font-size: clamp(1.45rem, 3vw, 2.35rem);
  letter-spacing: -0.04em;
  margin-bottom: 22px;
}

.hero-subtitle {
  color: var(--text);
  font-size: 1rem;
  font-weight: 750;
  margin-bottom: 12px;
}

.lead {
  color: var(--muted);
  font-size: 1.16rem;
  max-width: 720px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.hero-badges span {
  background: var(--accent-soft);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 10px;
}

.hero-visual {
  background: var(--panel-soft);
  border: 1px solid var(--border);
  border-radius: 26px;
  box-shadow: var(--shadow);
  aspect-ratio: 1656 / 950;
  margin: 0;
  overflow: hidden;
}

.hero-visual img {
  display: block;
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.page-section {
  border-top: 1px solid var(--border);
  padding: 64px 0;
}

.page-section-soft {
  background: transparent;
}

.section-header {
  margin-bottom: 30px;
  max-width: 780px;
}

.section-header h2 {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.section-header p {
  color: var(--muted);
  font-size: 1.05rem;
}

.card-stack {
  display: grid;
  gap: 18px;
}

.content-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 24px;
  padding: 18px;
}

.scientific-work-list .content-card {
  align-items: stretch;
  grid-template-columns: minmax(220px, 38%) minmax(0, 1fr);
}

.card-visual {
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.12), rgba(255, 255, 255, 0.78)),
    var(--panel-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  height: 230px;
  min-width: 0;
  overflow: hidden;
}

.card-visual {
  margin: 0;
  position: relative;
}

.card-image {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex;
  height: 230px;
  justify-content: center;
  margin: 0;
  min-width: 0;
  overflow: hidden;
  padding: 12px;
}

.card-image-button {
  align-items: center;
  background: transparent;
  border: 0;
  cursor: zoom-in;
  display: flex;
  height: 100%;
  justify-content: center;
  padding: 0;
  position: relative;
  width: 100%;
}

.card-image-button img {
  border: 1px solid #b8c3c7;
  border-radius: 8px;
  display: block;
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.card-image-button span {
  background: rgba(18, 49, 59, 0.86);
  border-radius: 999px;
  bottom: 10px;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 750;
  opacity: 0.72;
  padding: 6px 9px;
  position: absolute;
  right: 10px;
  transition: opacity 160ms ease;
}

.card-image-button:hover span,
.card-image-button:focus-visible span {
  opacity: 1;
}

.card-visual span,
.card-visual::before,
.card-visual::after {
  content: "";
  position: absolute;
}

.card-visual span {
  background: rgba(15, 118, 110, 0.16);
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 999px;
  inset: 28% 18%;
}

.card-visual::before {
  background: rgba(18, 49, 59, 0.12);
  height: 2px;
  left: 18%;
  right: 18%;
  top: 52%;
}

.card-visual::after {
  background: var(--accent);
  border-radius: 999px;
  box-shadow: 54px 24px 0 rgba(15, 118, 110, 0.55), 112px -20px 0 rgba(18, 49, 59, 0.24);
  height: 12px;
  left: 24%;
  top: 47%;
  width: 12px;
}

.card-visual-assessment::before {
  box-shadow: 0 -28px 0 rgba(18, 49, 59, 0.08), 0 28px 0 rgba(18, 49, 59, 0.08);
  transform: rotate(-8deg);
}

.card-visual-movement::before {
  transform: rotate(-22deg);
}

.card-visual-tools::before {
  box-shadow: 0 18px 0 rgba(15, 118, 110, 0.1), 0 36px 0 rgba(15, 118, 110, 0.07);
}

.card-body {
  align-self: center;
  padding: 6px 4px;
}

.card-title {
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 10px;
}

.card-body p {
  color: var(--muted);
}

.card-summary {
  font-size: 0.98rem;
  line-height: 1.5;
}

.card-summary.is-collapsed {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.content-card.is-expanded .card-summary.is-collapsed {
  display: block;
  overflow: visible;
}

.card-contributors {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.45;
  margin: 10px 0 0;
}

.content-card.is-expanded .card-contributors-compact {
  display: none;
}

.card-details {
  margin-top: 10px;
}

.card-contributors-full {
  color: var(--muted);
}

.card-related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.card-related-links a,
.card-action {
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 750;
}

.card-action {
  background: transparent;
  border: 0;
  cursor: pointer;
  margin: 16px 0 0;
  padding: 0;
}

.card-action:hover {
  color: var(--accent-2);
}

.keyword-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}

.keyword-list li {
  background: var(--accent-soft);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 9px;
}

.keyword-extra {
  display: none;
}

.content-card.is-expanded .keyword-extra {
  display: list-item;
}

.compact-card-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.compact-card-grid .content-card {
  box-shadow: none;
  display: block;
  padding: 22px;
}

.section-end-link {
  font-size: 0.94rem;
  margin: 28px 0 0;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.profile-links span {
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 8px 12px;
  text-decoration: none;
}

.back-to-top-button {
  align-items: center;
  background: var(--accent);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  bottom: 24px;
  box-shadow: var(--shadow);
  color: #ffffff;
  display: flex;
  font-weight: 700;
  height: 42px;
  justify-content: center;
  opacity: 0;
  position: fixed;
  right: 24px;
  text-decoration: none;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease, background 180ms ease;
  width: 42px;
  pointer-events: none;
}

.back-to-top-button.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top-button:hover {
  background: var(--accent-2);
  color: #ffffff;
}

.site-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.95rem;
  padding-bottom: 42px;
  padding-top: 34px;
}

.image-lightbox {
  align-items: center;
  background: rgba(18, 49, 59, 0.82);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 28px;
  position: fixed;
  z-index: 30;
}

.image-lightbox[hidden] {
  display: none;
}

.image-lightbox img {
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  max-height: min(86vh, 980px);
  max-width: min(92vw, 1240px);
  object-fit: contain;
  padding: 14px;
}

.lightbox-close {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 750;
  padding: 8px 12px;
  position: fixed;
  right: 24px;
  top: 24px;
}

@media (max-width: 760px) {
  .site-header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 12px 18px;
  }

  .page-main,
  .site-footer {
    padding: 0 18px;
  }

  .hero {
    display: block;
    padding: 56px 0 48px;
  }

  .hero-visual {
    height: 230px;
    margin-top: 32px;
  }

  .page-section {
    padding: 48px 0;
  }

  .scientific-work-list .content-card,
  .compact-card-grid {
    grid-template-columns: 1fr;
  }

  .card-visual,
  .card-image {
    height: 210px;
  }

  .back-to-top-button {
    bottom: 18px;
    right: 18px;
  }
}
