:root {
  --bg: #f8f2f8;
  --surface: #ffffff;
  --surface-alt: #f2edf7;
  --text: #1f1f1f;
  --muted: #666666;
  --border: #ddd9e8;
  --accent: #7b4e68;
  --accent-hover: #623b52;
  --max-width: 1120px;
  --radius: 10px;
  --shadow: 0 12px 28px rgba(76, 58, 73, 0.08);
  --shadow-hover: 0 18px 36px rgba(76, 58, 73, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Helvetica Neue", Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 241, 247, 0.95), transparent 34%),
    radial-gradient(circle at top right, rgba(233, 240, 255, 0.88), transparent 32%),
    radial-gradient(circle at center right, rgba(244, 229, 238, 0.72), transparent 28%),
    linear-gradient(180deg, #fcf6fb 0%, #f6f1f8 44%, #eef2fb 100%);
  color: var(--text);
  line-height: 1.65;
}

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

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

.container {
  width: min(92%, var(--max-width));
  margin: 0 auto;
}

.narrow {
  max-width: 760px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 242, 248, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(123, 78, 104, 0.04);
}

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

.logo {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.nav-link {
  position: relative;
  font-size: 0.98rem;
  color: var(--muted);
  padding: 4px 0;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
}

.nav-link:hover {
  transform: translateY(-1px);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 3px;
  background: var(--accent);
}

.hero {
  padding: 84px 0 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 12px;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  line-height: 1.05;
  margin: 0 0 16px;
}

h2 {
  font-size: 2rem;
  margin: 0 0 18px;
}

h3 {
  margin-top: 0;
  margin-bottom: 12px;
}

.subtitle {
  font-size: 1.15rem;
  color: var(--accent);
  margin-bottom: 18px;
}

.intro,
.page-lead {
  font-size: 1.06rem;
  color: var(--muted);
  max-width: 700px;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow: 0 8px 18px rgba(76, 58, 73, 0.08);
}

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

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

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

.btn-secondary:hover {
  background: var(--surface-alt);
  transform: translateY(-1px);
}

.hero-card {
  display: flex;
  justify-content: center;
}

.profile-placeholder {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(145deg, #f8ebf2, #f4f7ff);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 1rem;
  overflow: hidden;
}

.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section {
  padding: 64px 0;
  position: relative;
}

.alt-bg {
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 28px;
}

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

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: #cbbfd0;
}

.overview-card {
  cursor: pointer;
}

.text-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--accent);
  font-weight: 600;
}

.back-link {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--accent);
  font-weight: 600;
}

.page-main {
  min-height: calc(100vh - 160px);
}

.page-hero {
  padding: 56px 0 8px;
}

.page-main .section:first-of-type {
  padding-top: 8px;
}

.page-main .section + .section {
  padding-top: 44px;
}

.clean-list {
  padding-left: 18px;
}

.publication-item {
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}

.publication-item:last-child {
  border-bottom: none;
}

.publication-meta,
.publication-journal {
  margin: 8px 0;
  color: var(--muted);
}

.publication-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.publication-links a {
  color: var(--accent);
  font-weight: 600;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(240px, 0.9fr);
  gap: 28px;
  align-items: start;
}

.detail-main h2:first-child {
  margin-top: 0;
}

.detail-side {
  position: sticky;
  top: 108px;
}

.about-story {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(240px, 0.8fr);
  gap: 24px;
  align-items: start;
}

.about-story-text p:first-child {
  margin-top: 0;
}

.about-side-figure {
  margin: 0;
  padding: 14px;
}

.about-side-figure figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

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

.project-figure {
  margin: 0;
  padding: 18px;
}

.project-figure-result {
  margin: 28px 0 24px;
}

.project-figure-image {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fbfaf7;
}

.project-figure-image-contain {
  object-fit: contain;
}

.project-figure figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.55;
}

.thoughts-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.85fr);
  gap: 28px;
  align-items: start;
}

.thoughts-main .publication-item:first-child {
  padding-top: 0;
}

.thought-tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #ece4f2;
  color: #7b4e68;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.thought-date {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.thoughts-side .card + .card {
  margin-top: 18px;
}

.flowchart-block {
  margin: 34px 0 40px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 26px;
  background: linear-gradient(180deg, #f4f1ea 0%, #fbfaf8 100%);
  box-shadow: var(--shadow);
}

.flowchart-header {
  margin-bottom: 18px;
}

.flowchart-header .page-lead {
  margin: 0;
  max-width: 760px;
}

.pipeline-flow {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pipeline-phase {
  margin-top: 4px;
}

.pipeline-phase h3 {
  margin: 4px 0 0;
  font-size: 1.05rem;
}

.pipeline-phase-label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  color: var(--muted);
}

.pipeline-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

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

.pipeline-card {
  border: 1px solid #8b857c;
  border-radius: 12px;
  padding: 22px 22px 18px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.pipeline-card h3 {
  margin: 0 0 12px;
  font-size: 1.15rem;
  line-height: 1.3;
}

.pipeline-card .clean-list {
  margin: 0;
  padding-left: 18px;
}

.pipeline-card .clean-list li {
  margin-bottom: 8px;
  color: #3f3b36;
}

.pipeline-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: rgba(31, 58, 95, 0.1);
  color: var(--accent);
  font-weight: 700;
}

.pipeline-card-featured {
  border-width: 2px;
}

.pipeline-card-narrow {
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
}

.pipeline-card-wide {
  width: 100%;
}

.pipeline-arrow {
  align-self: center;
  font-size: 2rem;
  line-height: 1;
  color: #6d6a63;
}

.flow-blue {
  background: #dee7ef;
}

.flow-green {
  background: #e3ece2;
}

.flow-sand {
  background: #efe4d3;
}

.flow-lilac {
  background: #e7dfeb;
}

.flow-rose {
  background: #f0dfdc;
}

.flow-gold {
  background: #f1e6bf;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  background: rgba(240, 236, 247, 0.82);
}

h2 {
  position: relative;
  padding-bottom: 10px;
}

h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 52px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), rgba(123, 78, 104, 0));
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
}

@media (max-width: 900px) {
  .hero-grid,
  .card-grid {
    grid-template-columns: 1fr;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .detail-side {
    position: static;
  }

  .thoughts-shell {
    grid-template-columns: 1fr;
  }

  .about-story {
    grid-template-columns: 1fr;
  }

  .project-figure-stack {
    grid-template-columns: 1fr;
  }

  .pipeline-grid {
    grid-template-columns: 1fr;
  }

  .header-inner {
    flex-direction: column;
    justify-content: center;
    padding: 16px 0;
  }

  .nav {
    justify-content: center;
  }

  h1 {
    font-size: 2.6rem;
  }
}

@media (max-width: 560px) {
  .hero {
    padding-top: 56px;
  }

  .section {
    padding: 48px 0;
  }

  .btn {
    width: 100%;
  }
}
