:root {
  --bg: #f8f8f5;
  --panel: #ffffff;
  --text: #202124;
  --muted: #666d75;
  --line: #e6e6e2;
  --accent: #0f766e;
  --accent-soft: #e6f3f1;
  --gold: #b7791f;
  --shadow: 0 18px 48px rgba(20, 24, 28, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.1), transparent 28rem),
    linear-gradient(180deg, #fbfbf8 0%, var(--bg) 100%);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.6;
}

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

a:hover {
  text-decoration: underline;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 24px;
  background: rgba(248, 248, 245, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.brand {
  color: var(--text);
  font-weight: 800;
  letter-spacing: -0.03em;
}

nav {
  display: flex;
  gap: 20px;
}

nav a {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 650;
  text-decoration: none;
}

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

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px 64px;
}

.hero {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  padding: 62px 0 44px;
}

.portrait-card,
.highlight-card,
.paper,
.project {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.portrait-card {
  width: 100%;
  max-width: 320px;
  padding: 22px;
  overflow: hidden;
  text-align: center;
}

.portrait-image {
  display: block;
  width: 100%;
  max-width: 276px;
  max-height: 276px;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.9), rgba(14, 82, 76, 0.9)),
    var(--accent);
}

.role {
  margin: 18px 0 12px;
  color: var(--muted);
  font-weight: 650;
}

.profile-links {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.92rem;
  font-weight: 700;
}

.kicker {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.18;
  letter-spacing: -0.035em;
}

h1 {
  font-size: clamp(2.05rem, 4vw, 3.45rem);
}

h1 span {
  display: block;
  margin-top: 6px;
  font-family: "Noto Serif SC", serif;
  font-size: 0.46em;
  color: var(--accent);
}

h2 {
  font-size: clamp(1.35rem, 2.35vw, 1.95rem);
}

h3 {
  font-size: 1.08rem;
}

.lead {
  margin-top: 24px;
  color: var(--text);
  font-size: 1.08rem;
}

.hero-copy p:not(.kicker),
.page-hero p,
.section-title + p {
  color: var(--muted);
}

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

.button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-weight: 750;
  text-decoration: none;
}

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

.section,
.cv-section {
  padding: 44px 0;
  border-top: 1px solid var(--line);
}

.section-title {
  margin-bottom: 24px;
}

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

.direction-grid article {
  min-height: 250px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, white, #fbfbf8);
}

.direction-image {
  display: block;
  width: 100%;
  margin-bottom: 26px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fbf5e8;
}

.direction-grid span,
.project span,
.venue {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 18px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
}

.news-panel {
  height: 250px;
  padding: 0 12px 0 0;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.56);
  scrollbar-color: var(--accent) transparent;
  scrollbar-width: thin;
}

.news-panel::-webkit-scrollbar {
  width: 8px;
}

.news-panel::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.35);
}

.news-list {
  padding: 0 16px 0 18px;
  margin: 0;
  list-style: none;
}

.news-list li {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.news-list li:first-child {
  padding-top: 18px;
}

.news-list li:last-child {
  border-bottom: 0;
  padding-bottom: 18px;
}

.news-list time {
  color: var(--accent);
  font-weight: 800;
}

.highlight-card,
.project {
  padding: 22px;
}

.project {
  display: flex;
  overflow: hidden;
  flex-direction: column;
  padding: 0;
}

.project-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, #f8f6ee, #eef6f4);
  cursor: zoom-in;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.project-image:hover {
  opacity: 0.92;
  transform: scale(1.01);
}

.project-image:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent), transparent 35%);
  outline-offset: -6px;
}

.project-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.project-copy a {
  margin-top: auto;
}

.lightbox-open {
  overflow: hidden;
}

.image-lightbox {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 56px 24px 28px;
  background: rgb(21 18 15 / 0.86);
}

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

.lightbox-image {
  width: auto;
  max-width: min(94vw, 1400px);
  max-height: 82vh;
  object-fit: contain;
  border-radius: 18px;
  background: #fffaf2;
  box-shadow: 0 24px 80px rgb(0 0 0 / 0.38);
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  padding: 9px 14px;
  border: 1px solid rgb(255 255 255 / 0.36);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.12);
  color: white;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.lightbox-caption {
  max-width: 90vw;
  margin: 14px auto 0;
  color: rgb(255 255 255 / 0.82);
  text-align: center;
}

.paper-list {
  display: grid;
  gap: 10px;
}

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

.paper {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 14px;
  row-gap: 8px;
  align-items: start;
  padding: 14px 16px;
}

.paper p,
.project p {
  color: var(--muted);
}

.paper .venue {
  grid-column: 1;
  margin-bottom: 0;
}

.paper h3 {
  grid-column: 1 / -1;
  font-size: 1rem;
  line-height: 1.3;
}

.paper p {
  grid-column: 1 / -1;
  margin: 0;
  line-height: 1.42;
}

.paper > a,
.paper-links {
  grid-row: 1;
  grid-column: 2;
  align-self: center;
  font-size: 0.94rem;
  font-weight: 750;
  white-space: nowrap;
}

.text-link {
  display: inline-flex;
  margin-top: 18px;
  font-weight: 800;
}

.page {
  padding-top: 34px;
}

.page-hero {
  max-width: 850px;
  padding: 28px 0 40px;
}

.page-hero h1 {
  font-size: clamp(1.72rem, 3.1vw, 2.55rem);
}

.project-grid {
  margin-top: 20px;
}

.cv-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 28px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.cv-item time {
  color: var(--accent);
  font-weight: 800;
}

.skill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-cloud span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--muted);
  font-weight: 700;
}

footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 24px 48px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

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

  nav {
    flex-wrap: wrap;
  }

  .hero,
  .two-col,
  .direction-grid,
  .project-grid,
  .paper-list.compact,
  .cv-item {
    grid-template-columns: 1fr;
  }
}
