:root {
  --bg: #f7fafc;
  --surface: #ffffff;
  --surface-muted: #eef5f7;
  --surface-strong: #13202b;
  --text: #172033;
  --muted: #5a6b7e;
  --line: #d9e4ea;
  --brand: #0f8fb3;
  --brand-deep: #075c75;
  --green: #12a474;
  --amber: #c57a12;
  --shadow: 0 18px 45px rgba(16, 33, 48, 0.12);
  --soft-shadow: 0 10px 28px rgba(16, 33, 48, 0.08);
  --hover-shadow: 0 24px 60px rgba(7, 92, 117, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  line-height: 1.65;
  background:
    linear-gradient(135deg, rgba(15, 143, 179, 0.07) 0 1px, transparent 1px 48px),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 42%, #ffffff 100%);
}

body.menu-open {
  overflow: hidden;
}

img {
  max-width: 100%;
}

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

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3 {
  margin: 0 0 0.65rem;
  line-height: 1.12;
}

h1 {
  font-size: clamp(2.65rem, 7vw, 5.9rem);
  letter-spacing: 0;
  font-weight: 800;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.7rem);
  font-weight: 800;
}

h3 {
  font-size: 1.08rem;
  font-weight: 700;
}

p {
  margin: 0 0 1rem;
}

.container {
  width: min(1180px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(217, 228, 234, 0.9);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
}

.nav-shell {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  font-weight: 800;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: var(--surface-strong);
  color: #ffffff;
  font-size: 0.82rem;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 0.9rem;
  border-radius: 8px;
  color: #263547;
  font-size: 1.05rem;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: #e7f7fb;
  color: var(--brand-deep);
  text-decoration: none;
}

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

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 10px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--text);
}

.hero-section {
  position: relative;
  min-height: calc(100svh - 72px);
  overflow: hidden;
  padding: clamp(3rem, 6vw, 5rem) 0 5.5rem;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(15, 143, 179, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(15, 143, 179, 0.06) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.45) 55%, transparent 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.92fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

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

.hero-profile-panel {
  display: grid;
  gap: 1rem;
  align-self: start;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--brand-deep);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-lede,
.page-hero p,
.section-copy p,
.cta-panel p {
  color: var(--muted);
  font-size: 1.04rem;
  max-width: 68ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1.45rem 0 1.4rem;
}

.compact-actions {
  margin-top: 1rem;
  margin-bottom: 0;
}

.profile-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: -0.3rem 0 1.25rem;
}

.profile-link-row a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid rgba(15, 143, 179, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--brand-deep);
  padding: 0 0.7rem;
  font-size: 0.86rem;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.profile-link-row a:hover {
  background: #ffffff;
  box-shadow: var(--soft-shadow);
  text-decoration: none;
  transform: translateY(-3px);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 1rem;
  font-size: 0.94rem;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.button:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.button-primary {
  background: var(--brand);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 143, 179, 0.26);
}

.button-primary:hover {
  background: var(--brand-deep);
}

.button-secondary {
  background: var(--surface);
  border-color: var(--line);
  color: var(--text);
}

.button-secondary:hover {
  background: #edf7fa;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 800;
}

.text-link::after {
  content: ">";
  transition: transform 0.2s ease;
}

.text-link:hover::after {
  transform: translateX(3px);
}

.terminal-card {
  width: min(100%, 620px);
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 8px;
  overflow: hidden;
  background: #111827;
  color: #d9f7e6;
  box-shadow: var(--shadow);
}

.terminal-top {
  display: flex;
  gap: 0.42rem;
  padding: 0.8rem 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #0c1320;
}

.terminal-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.terminal-top span:nth-child(1) {
  background: #ef4444;
}

.terminal-top span:nth-child(2) {
  background: #f59e0b;
}

.terminal-top span:nth-child(3) {
  background: #22c55e;
}

.terminal-body {
  padding: 1rem;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.9rem;
}

.terminal-line {
  width: 0;
  max-width: max-content;
  margin: 0.24rem 0;
  overflow: hidden;
  white-space: nowrap;
  animation: typing 1.1s steps(42, end) forwards;
}

.type-line-2 {
  color: #9fdad1;
  animation-delay: 0.55s;
}

.type-line-3 {
  color: #86efac;
  animation-delay: 1.05s;
}

.type-line-4 {
  color: #f8d48a;
  animation-delay: 1.55s;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.8rem;
  width: 30px;
  height: 46px;
  border: 2px solid rgba(7, 92, 117, 0.6);
  border-radius: 16px;
  transform: translateX(-50%);
}

.scroll-cue span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 5px;
  height: 8px;
  border-radius: 8px;
  background: var(--brand-deep);
  transform: translateX(-50%);
  animation: scrollWheel 1.5s ease-in-out infinite;
}

.section {
  padding: clamp(3rem, 6vw, 5.5rem) 0;
}

.section-muted {
  background: rgba(238, 245, 247, 0.72);
  border-top: 1px solid rgba(217, 228, 234, 0.8);
  border-bottom: 1px solid rgba(217, 228, 234, 0.8);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.3rem;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: clamp(1.4rem, 4vw, 3.5rem);
  align-items: start;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  gap: clamp(1.4rem, 4vw, 3.5rem);
}

.home-news-software-layout {
  align-items: start;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

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

.stat-value {
  display: block;
  color: var(--brand-deep);
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1;
}

.stat-label {
  display: block;
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.timeline-panel,
.contact-card,
.activity-card,
.source-notes,
.page-hero-card,
.profile-panel,
.feature-card,
.work-card,
.software-card,
.visual-card,
.pipeline-step,
.home-portrait-card,
.workflow-figure-wide,
.github-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--soft-shadow);
}

.feature-card,
.work-card,
.software-card,
.visual-card,
.pipeline-step,
.contact-card,
.page-hero-card,
.profile-panel,
.home-portrait-card,
.workflow-figure-wide,
.github-panel,
.publication-item-biblio {
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.feature-card:hover,
.software-card:hover,
.visual-card:hover,
.pipeline-step:hover,
.contact-card:hover,
.page-hero-card:hover,
.profile-panel:hover,
.home-portrait-card:hover,
.workflow-figure-wide:hover,
.github-panel:hover {
  border-color: rgba(15, 143, 179, 0.34);
  box-shadow: var(--hover-shadow);
  transform: translateY(-10px) scale(1.018);
}

.timeline-panel {
  padding: 1rem;
}

.timeline-panel-flat {
  background: rgba(255, 255, 255, 0.92);
}

.timeline-item {
  display: grid;
  gap: 0.18rem;
  padding: 0.8rem 0;
  border-bottom: 1px dashed var(--line);
}

.timeline-item:first-child {
  padding-top: 0;
}

.timeline-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.timeline-date {
  color: var(--brand-deep);
  font-size: 0.8rem;
  font-weight: 800;
}

.timeline-title {
  font-weight: 800;
}

.timeline-meta,
.meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.95rem;
}

.feature-card {
  position: relative;
  min-height: 178px;
  padding: 1.05rem;
  overflow: hidden;
  cursor: default;
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--green), var(--amber));
}

.feature-card span {
  display: inline-flex;
  margin-bottom: 0.8rem;
  color: var(--brand-deep);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.93rem;
}

.feature-card:hover {
  border-color: rgba(18, 164, 116, 0.45);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 249, 247, 0.96));
}

.feature-card:hover::before {
  height: 7px;
}

.feature-card:hover h3 {
  color: var(--brand-deep);
}

.feature-card:hover p {
  color: #36475a;
}

.news-list {
  display: grid;
  gap: 1.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-list li {
  display: grid;
  grid-template-columns: 5.4rem minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  padding: 0;
  color: var(--text);
}

.news-list time {
  display: block;
  color: var(--text);
  font-weight: 800;
  line-height: 1.5;
}

.news-title,
.news-detail {
  margin: 0;
}

.news-title {
  color: var(--text);
  font-weight: 700;
  line-height: 1.45;
}

.news-title a {
  color: inherit;
}

.news-title a:hover {
  color: var(--brand-deep);
}

.news-detail {
  margin-top: 0.22rem;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  line-height: 1.55;
}

.software-stack,
.software-grid {
  display: grid;
  gap: 1rem;
}

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

.software-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem;
  align-items: start;
}

.software-logo {
  width: 112px;
  height: 112px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 0.5rem;
}

.software-logo-wordmark {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #e8f6f3, #f9fcfd);
  color: var(--brand-deep);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  text-align: center;
}

.software-title {
  margin: 0 0 0.35rem;
}

.software-tagline,
.software-description,
.software-meta {
  margin: 0.25rem 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.publication-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.publication-links a,
.publication-tag,
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid #c9dfe6;
  border-radius: 6px;
  padding: 0 0.55rem;
  background: #f3fbfd;
  color: var(--brand-deep);
  font-size: 0.78rem;
  font-weight: 800;
}

.publication-links a:hover {
  background: #e5f6fa;
  text-decoration: none;
}

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

.work-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1rem;
  overflow: hidden;
}

.work-card:hover {
  border-color: rgba(15, 143, 179, 0.34);
  transform: translateY(-12px) scale(1.018);
  box-shadow: var(--hover-shadow);
}

.work-thumb {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  margin-bottom: 0.85rem;
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.work-card:hover .work-thumb {
  border-color: rgba(15, 143, 179, 0.32);
  box-shadow: 0 12px 28px rgba(16, 33, 48, 0.1);
  transform: scale(1.035);
}

.work-title {
  font-size: 1.02rem;
}

.work-meta,
.work-summary {
  margin: 0.3rem 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.author-note {
  margin: -0.35rem 0 1rem;
}

.cta-section {
  padding-top: 3rem;
}

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border: 1px solid rgba(15, 143, 179, 0.24);
  border-radius: 8px;
  background: #ffffff;
  padding: clamp(1.2rem, 3vw, 2rem);
  box-shadow: var(--soft-shadow);
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3.2rem, 6vw, 6rem) 0;
  background:
    linear-gradient(135deg, rgba(15, 143, 179, 0.09) 0 1px, transparent 1px 44px),
    linear-gradient(180deg, #ffffff 0%, #eef7fa 100%);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-size: clamp(2.25rem, 5.5vw, 4.8rem);
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.page-hero-flat {
  max-width: 980px;
}

.page-hero-card {
  padding: 1.25rem;
}

.page-hero-card strong {
  display: block;
  color: var(--brand-deep);
  font-size: 3rem;
  line-height: 1;
}

.page-hero-card span {
  color: var(--muted);
}

.about-flat {
  max-width: 980px;
}

.home-portrait-card {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  margin: 0;
  padding: 1rem;
}

.hero-portrait-card {
  background: rgba(255, 255, 255, 0.94);
}

.home-portrait-card img {
  width: 168px;
  height: 210px;
  border-radius: 8px;
  border: 1px solid var(--line);
  object-fit: cover;
  object-position: center 28%;
}

.home-portrait-card figcaption {
  display: grid;
  gap: 0.3rem;
}

.home-portrait-card strong {
  color: var(--text);
  font-size: 1.28rem;
}

.home-portrait-card span {
  color: var(--muted);
}

.card-label {
  display: block;
  margin-bottom: 0.7rem;
  color: var(--brand-deep);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.research-workflow-section {
  padding-bottom: 1rem;
}

.workflow-figure-wide {
  margin: 0;
  max-width: 860px;
  margin-inline: auto;
  overflow: hidden;
  padding: clamp(0.8rem, 2vw, 1.25rem);
}

.workflow-figure-wide img {
  display: block;
  width: 100%;
  min-height: clamp(180px, 25vw, 300px);
  object-fit: contain;
  border-radius: 8px;
  background: #ffffff;
}

.workflow-figure-wide figcaption {
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 0.94rem;
}

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

.visual-card {
  margin: 0;
  overflow: hidden;
}

.visual-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: contain;
  background: #ffffff;
}

.visual-card figcaption {
  padding: 0.85rem 1rem 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.method-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-content: start;
}

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

.pipeline-step {
  padding: 1.05rem;
}

.pipeline-step span {
  display: block;
  color: var(--brand-deep);
  font-weight: 800;
}

.pipeline-step p {
  color: var(--muted);
  margin: 0.45rem 0 0;
}

.logo-card {
  display: grid;
  gap: 1rem;
  justify-items: start;
}

.logo-card img {
  width: 132px;
  border-radius: 8px;
}

.github-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: clamp(1.1rem, 3vw, 1.6rem);
}

.github-panel p {
  color: var(--muted);
  max-width: 68ch;
}

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

.contact-card {
  padding: 1.25rem;
}

.link-stack {
  display: grid;
  gap: 0.55rem;
}

.link-stack a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfc;
  padding: 0.72rem 0.85rem;
  font-weight: 800;
}

.link-stack a::after {
  content: ">";
}

.link-stack a:hover {
  background: #edf7fa;
  text-decoration: none;
}

.profile-panel {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
}

.profile-panel img {
  width: 112px;
  height: 112px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.profile-panel strong,
.profile-panel span {
  display: block;
}

.profile-panel strong {
  font-size: 1.25rem;
}

.profile-panel span {
  color: var(--muted);
}

.activity-card,
.source-notes {
  padding: 1rem;
}

.activity-card strong {
  display: block;
  color: var(--brand-deep);
  font-size: 2rem;
  line-height: 1;
}

.activity-card span,
.source-notes p {
  color: var(--muted);
}

.source-notes {
  margin-top: 1rem;
  background: #f8fbfc;
}

.filter-panel {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 0.9rem;
  box-shadow: var(--soft-shadow);
}

.filter-panel label {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.filter-panel select {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  padding: 0 0.7rem;
}

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.publication-list {
  display: grid;
  gap: 0.35rem;
}

.publication-year-block {
  margin: 1.5rem 0 0.45rem;
  padding: 0.25rem 0 0.55rem;
  border-bottom: 1px solid var(--line);
  color: var(--brand-deep);
  font-size: 1.35rem;
}

.publication-item-biblio {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.9rem;
  border-bottom: 1px dashed var(--line);
  border-radius: 8px;
}

.publication-item-biblio:hover {
  border-color: rgba(15, 143, 179, 0.24);
  background: #f8fbfc;
  box-shadow: var(--soft-shadow);
  transform: translateY(-5px);
}

.publication-index {
  color: var(--muted);
  font-weight: 800;
}

.publication-title {
  margin: 0;
  font-size: 1.03rem;
  line-height: 1.35;
}

.paper-title-link {
  color: var(--text);
}

.paper-title-link:hover {
  color: var(--brand-deep);
}

.publication-authors,
.publication-venue {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.publication-stats-strip {
  margin-bottom: 1rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-wrap {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-card.reveal.visible:hover,
.software-card.reveal.visible:hover,
.visual-card.reveal.visible:hover,
.pipeline-step.reveal.visible:hover,
.contact-card.reveal.visible:hover,
.page-hero-card.reveal.visible:hover,
.profile-panel.reveal.visible:hover,
.home-portrait-card.reveal.visible:hover,
.workflow-figure-wide.reveal.visible:hover,
.github-panel.reveal.visible:hover {
  border-color: rgba(15, 143, 179, 0.34);
  box-shadow: var(--hover-shadow);
  transform: translateY(-10px) scale(1.018);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.work-card.reveal.visible:hover {
  border-color: rgba(15, 143, 179, 0.34);
  box-shadow: var(--hover-shadow);
  transform: translateY(-12px) scale(1.018);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.publication-item-biblio:hover {
  transform: translateY(-5px);
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes scrollWheel {
  0% {
    opacity: 0;
    transform: translate(-50%, 0);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, 16px);
  }
}

@media (max-width: 1050px) {
  .hero-grid,
  .page-hero-grid,
  .two-column,
  .split-layout {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: none;
  }

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

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

@media (max-width: 780px) {
  h1 {
    font-size: clamp(2.4rem, 16vw, 4rem);
  }

  .nav-shell {
    min-height: 64px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 64px;
    left: 4vw;
    right: 4vw;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    padding: 0.55rem;
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    justify-content: flex-start;
  }

  .hero-section {
    padding-top: 2.2rem;
  }

  .stats-strip,
  .feature-grid,
  .work-grid,
  .software-grid,
  .visual-grid,
  .pipeline-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .cta-panel,
  .github-panel,
  .footer-wrap {
    align-items: flex-start;
    flex-direction: column;
  }

  .software-card,
  .profile-panel,
  .home-portrait-card,
  .publication-item-biblio {
    grid-template-columns: 1fr;
  }

  .news-list li {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .software-logo,
  .profile-panel img {
    width: 96px;
    height: 96px;
  }

  .home-portrait-card img {
    width: 140px;
    height: 176px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .terminal-line {
    width: 100%;
  }
}
