:root {
  --accent: #c897a9;
  --accent-deep: #a66e83;
  --hover-tint: #f5f1f3;
  --hover-tint-strong: #efe8eb;
  --text-main: #37352f;
  --text-soft: rgba(55, 53, 47, 0.72);
  --bg-main: #ffffff;
  --bg-tint: #f8e8ee;
  --tag-bg: #fce4ec;
  --line: #e6e3e1;
  --shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

/* Base and global layout */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

a[x-apple-data-detectors],
a[x-apple-data-detectors-type],
a[x-apple-data-detectors-type="calendar-event"],
a[x-apple-data-detectors-type="date"],
a[x-apple-data-detectors-type="telephone"] {
  color: inherit !important;
  text-decoration: none !important;
  font-size: inherit !important;
  font-family: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
}

::selection {
  background: transparent;
  color: var(--text-main);
}

::-moz-selection {
  background: transparent;
  color: var(--text-main);
}

.selection-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9996;
}

.selection-rect {
  position: fixed;
  border-radius: 2px;
  background: rgba(200, 151, 169, 0.28);
  pointer-events: none;
}

.selection-accent {
  position: fixed;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  border-radius: 999px;
  background: rgba(166, 110, 131, 0.72);
  pointer-events: none;
  opacity: 0;
  transform: translate(-100px, -100px);
  transition: opacity 0.14s ease, height 0.14s ease;
  z-index: 9998;
}

.selection-accent.is-visible {
  opacity: 1;
}

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  line-height: 1.68;
}

body.trail-cursor-enabled,
body.trail-cursor-enabled a,
body.trail-cursor-enabled button {
  cursor: none;
}

a {
  color: var(--accent-deep);
  text-decoration: underline;
  text-decoration-color: rgba(166, 110, 131, 0.35);
  text-underline-offset: 2px;
  transition: color 0.14s ease, text-decoration-color 0.14s ease;
}

a:hover,
a:focus-visible {
  color: #8f5f71;
  text-decoration-color: #8f5f71;
}

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

.cursor-trail {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.cursor-trail.is-visible {
  opacity: 1;
}

.cursor-trail__canvas,
.cursor-trail__lead {
  position: fixed;
  top: 0;
  left: 0;
}

.cursor-trail__canvas {
  width: 100vw;
  height: 100vh;
}

.cursor-trail__lead {
  border-radius: 50%;
  transform: translate(-120px, -120px);
  will-change: transform;
  transform-origin: center;
}

.cursor-trail__lead {
  width: 12px;
  height: 12px;
  margin-left: -6px;
  margin-top: -6px;
  background: rgba(214, 144, 171, 0.92);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.36), 0 0 18px rgba(214, 144, 171, 0.18);
}

.cursor-trail__lead::before,
.cursor-trail__lead::after {
  content: "";
  position: absolute;
  opacity: 0;
}

body.cat-cursor-active .cursor-trail__lead {
  width: 24px;
  height: 24px;
  margin-left: -9px;
  margin-top: -20px;
  border-radius: 0;
  background: rgba(214, 144, 171, 0.98);
  box-shadow: 0 0 14px rgba(214, 144, 171, 0.12);
  -webkit-mask-image: url("../assets/images/cat-cursor.svg");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-image: url("../assets/images/cat-cursor.svg");
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}

body.cat-cursor-active .cursor-trail__lead::before,
body.cat-cursor-active .cursor-trail__lead::after {
  opacity: 0;
}

.cursor-trail.is-pressed .cursor-trail__lead {
  width: 10px;
  height: 10px;
  margin-left: -5px;
  margin-top: -5px;
}

body.cat-cursor-active .cursor-trail.is-pressed .cursor-trail__lead {
  width: 22px;
  height: 22px;
  margin-left: -8px;
  margin-top: -18px;
}

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

.section {
  padding: 4.8rem 0 0;
}

/* Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(230, 227, 225, 0.85);
}

.nav-wrap {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  overflow: visible;
}

.nav-toggle {
  display: none;
  appearance: none;
  border: 1px solid rgba(216, 193, 202, 0.85);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  width: 46px;
  height: 46px;
  padding: 0;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: column;
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.6px;
  border-radius: 999px;
  background: #8f5f71;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  border-color: #c6adb7;
  background: #fff;
}

.primary-nav {
  overflow: visible;
  margin-right: 0.9rem;
}

.brand {
  display: inline-block;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 600;
  letter-spacing: 0.01em;
  transform-origin: left center;
  transition: transform 0.24s ease, letter-spacing 0.24s ease, color 0.2s ease;
  will-change: transform;
}

.brand:hover,
.brand:focus-visible {
  color: var(--accent-deep);
  letter-spacing: 0.018em;
  transform: scale(1.16) translateX(3px);
}

.nav-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.75rem;
  margin-left: -0.45rem;
}

.nav-list a {
  position: relative;
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.95rem;
  padding-bottom: 0.18rem;
  border-bottom: none;
  transition: color 0.18s ease, transform 0.18s ease;
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1.5px;
  background: rgba(166, 110, 131, 0.78);
  transition: width 0.22s ease;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--text-main);
  transform: translateY(-1px);
}

.nav-list a:hover::after,
.nav-list a:focus-visible::after {
  width: 100%;
}

/* Hero section */
.hero-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 3.2rem;
  align-items: start;
}

.hero-left {
  animation: gentle-rise 0.45s ease both;
}

.hero-right {
  animation: gentle-rise 0.55s ease both;
}

.profile-placeholder {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 80% 82%;
  margin-left: -8px;
  border: 1px solid var(--line);
  display: block;
  background: #fafafa;
}

.news-card {
  margin-top: 1.6rem;
  padding: 0.95rem 1.15rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  height: 410px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.news-card:hover {
  background: #fff;
  border-color: #d8d2d5;
}

.card-title {
  margin: 0 0 0.7rem;
  font-size: 1.03rem;
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
}

.card-title i {
  font-size: 0.92rem;
  color: var(--accent-deep);
  opacity: 0.88;
}

.news-card:hover .card-title i {
  animation: news-icon-wiggle 0.5s ease;
}

@keyframes gentle-rise {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes news-icon-wiggle {
  0% {
    transform: rotate(0deg);
  }
  30% {
    transform: rotate(-6deg);
  }
  60% {
    transform: rotate(5deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

.compact-list {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.45rem;
  color: var(--text-soft);
  font-size: 0.93rem;
  overflow-y: auto;
  padding-right: 0.85rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(166, 110, 131, 0.35) transparent;
  flex: 1;
  min-height: 0;
}

.compact-list::-webkit-scrollbar {
  width: 6px;
}

.compact-list::-webkit-scrollbar-track {
  background: transparent;
}

.compact-list::-webkit-scrollbar-thumb {
  background: rgba(166, 110, 131, 0.28);
  border-radius: 999px;
}

.compact-list::-webkit-scrollbar-thumb:hover {
  background: rgba(166, 110, 131, 0.42);
}

.news-date {
  color: var(--text-main);
  font-weight: 600;
}

.eyebrow {
  margin: 0;
  color: var(--accent-deep);
  font-size: 0.88rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

h1 {
  margin: 0.55rem 0 0.25rem;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.18;
}

.hero-title {
  margin: 0;
  font-size: 1.15rem;
  color: var(--text-soft);
}

.hero-bio {
  max-width: 92ch;
}

.hero-links {
  list-style: none;
  padding: 0;
  margin: 1.1rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
  font-size: 0.95rem;
}

.hero-links li {
  display: inline-flex;
  align-items: center;
}

.hero-links li + li::before {
  content: "|";
  margin-right: 0.65rem;
  color: rgba(55, 53, 47, 0.4);
}

.hero-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  color: var(--text-soft);
  border-bottom: 1px solid transparent;
  padding: 0.05rem 0;
}

.hero-links a i {
  font-size: 0.95rem;
  width: 1rem;
  text-align: center;
  color: rgba(55, 53, 47, 0.72);
  transition: color 0.2s ease, transform 0.2s ease;
}

.hero-links a:hover,
.hero-links a:focus-visible {
  color: var(--accent-deep);
  border-bottom-color: rgba(166, 110, 131, 0.5);
  background: none;
}

.hero-links a:hover i,
.hero-links a:focus-visible i {
  color: var(--accent-deep);
  transform: translateY(-1px);
}

.section-heading {
  max-width: 74ch;
  margin-bottom: 1.45rem;
}

h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2.2vw, 1.85rem);
  line-height: 1.25;
}

.section-heading p {
  margin-top: 0.55rem;
  color: var(--text-soft);
}

.section-heading-wide {
  max-width: none;
}

.section-heading-wide p {
  white-space: nowrap;
}

/* Research cards */
.research-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.research-card {
  position: relative;
  background: #fff;
  border: 1px solid #e3e3e3;
  border-radius: 8px;
  padding: 1.1rem 1.1rem 1.2rem;
  box-shadow: none;
  display: block;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease, background-color 0.22s ease;
}

.research-card:hover {
  border-color: #bfaeb7;
  background: #fffdfd;
  box-shadow: 0 12px 28px rgba(40, 32, 36, 0.12), 0 2px 6px rgba(166, 110, 131, 0.12);
  transform: translateY(-3px);
}

.research-card:focus-visible {
  outline: 2px solid rgba(166, 110, 131, 0.45);
  outline-offset: 2px;
}

.research-card h3 {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.35;
  transition: color 0.2s ease;
  display: inline;
  border-bottom: 1.5px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.research-card:hover h3 {
  color: #2f2a2d;
}

.research-card:hover h3,
.research-card:focus-visible h3,
.research-card h3:hover {
  border-bottom-color: rgba(166, 110, 131, 0.75);
}

.research-card p {
  margin: 0.65rem 0 0;
  color: var(--text-soft);
  font-size: 0.96rem;
}

.tag-list {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tag-list li {
  background: rgba(55, 53, 47, 0.08);
  color: rgba(55, 53, 47, 0.72);
  border-radius: 4px;
  padding: 0.14rem 0.52rem;
  font-size: 0.72rem;
  font-weight: 500;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.research-card:hover .tag-list li {
  background: var(--hover-tint-strong);
  color: rgba(55, 53, 47, 0.76);
}

.tag-list li:hover {
  transform: translateY(-1.5px);
}

/* Research experience timeline */
.timeline {
  border-left: 2px solid var(--line);
  padding-left: 1.15rem;
}

.timeline-item {
  position: relative;
  padding: 0 0 1.2rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.2rem;
  transition: border-color 0.2s ease;
}

.timeline-item:hover {
  border-bottom-color: #cfc6cb;
}

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

.timeline-item::before {
  content: "";
  position: absolute;
  left: calc(-1.15rem - 6px);
  top: 0.45rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
}

.timeline-item h3 {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.4;
}

.meta-line,
.meta-sub {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.timeline-header {
  display: grid;
  gap: 0.18rem;
}

.timeline-lab {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.01em;
}

.timeline-inst {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-soft);
}

.timeline-advisors {
  margin: 0.2rem 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
}

.timeline-advisors span {
  display: inline-block;
  margin-right: 0.45rem;
  padding: 0.14rem 0.48rem;
  border-radius: 999px;
  background: #fbf3d8;
  color: #9a7a33;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  vertical-align: middle;
}

.project-block {
  margin-top: 0.95rem;
}

.project-block + .project-block {
  padding-top: 0.95rem;
  border-top: 1px dashed #e7dfe3;
}

.project-block h3 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.role-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.3rem 0.72rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid transparent;
}

.role-badge--assistant {
  background: #f3eef1;
  border-color: #e4d7de;
  color: #8f5f71;
}

.role-badge--lead {
  background: #e9f4f0;
  border-color: #cde5db;
  color: #326b58;
}

.timeline-item ul {
  margin: 0.55rem 0 0;
  padding-left: 1.1rem;
}

.timeline-item li {
  margin-bottom: 0.35rem;
}

/* Education */
.education-list {
  display: grid;
  gap: 0.9rem;
}

.education-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
  align-items: start;
}

.edu-period {
  margin: 0.2rem 0 0;
  font-size: 0.88rem;
  color: rgba(55, 53, 47, 0.62);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.edu-content {
  border-left: 2px solid #ddd6da;
  padding: 0.1rem 0 0.35rem 0.95rem;
}

.edu-content h3 {
  margin: 0;
  font-size: 1.05rem;
}

.edu-content ul {
  margin: 0.45rem 0 0;
  padding-left: 1.05rem;
}

.edu-content li {
  margin-bottom: 0.28rem;
}

/* Publications */
.publication-stream {
  display: grid;
  gap: 1.2rem;
}

.pub-item {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 1rem;
  align-items: start;
  padding: 0.9rem 0 1rem;
  border-bottom: 1px solid #eee8eb;
}

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

.pub-thumb {
  width: 104px;
  height: 78px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #e6dfe3;
  background: linear-gradient(145deg, #f7f3f5, #efeaed);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.pub-body {
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
  min-width: 0;
}

.pub-body h3 {
  margin: 0;
  font-size: 1.06rem;
  line-height: 1.34;
}

.pub-year {
  display: inline-block;
  align-self: flex-start;
  margin: 0 0 0.08rem;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(55, 53, 47, 0.58);
  text-decoration: underline;
  text-decoration-color: rgba(55, 53, 47, 0.18);
  text-underline-offset: 0.16em;
}

.pub-meta {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(55, 53, 47, 0.62);
}

.pub-keywork {
  margin: 0.12rem 0 0;
  padding-left: 0.72rem;
  border-left: 2px solid rgba(85, 76, 80, 0.12);
  font-size: 0.9rem;
  line-height: 1.62;
  color: rgba(55, 53, 47, 0.76);
}

.pub-keywork strong {
  color: rgba(55, 53, 47, 0.62);
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.pub-tags {
  list-style: none;
  margin: 0.16rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.pub-tags li {
  border-radius: 999px;
  padding: 0.16rem 0.5rem;
  font-size: 0.72rem;
  line-height: 1.2;
  color: rgba(55, 53, 47, 0.72);
  border: 1px solid transparent;
}

.pub-tags .tag-method,
.pub-tags .tag-qualitative,
.pub-tags .tag-literature {
  background: #f2edf0;
  border-color: #e8dde3;
}

.pub-tags .tag-system,
.pub-tags .tag-responsible,
.pub-tags .tag-conversational,
.pub-tags .tag-computing-ed,
.pub-tags .tag-ai-literacy {
  background: #edf2f2;
  border-color: #dde7e7;
}

.pub-tags .tag-analysis,
.pub-tags .tag-thematic,
.pub-tags .tag-dataviz {
  background: #f3f0ec;
  border-color: #e8e0d7;
}

.pub-tags .tag-domain,
.pub-tags .tag-hai,
.pub-tags .tag-older-adults,
.pub-tags .tag-synthesis,
.pub-tags .tag-learning-design {
  background: #f0edf4;
  border-color: #e2dcef;
}

.pub-links {
  margin: 0.18rem 0 0;
  font-size: 0.88rem;
  font-weight: 600;
}

.pub-inline-status {
  color: #a66e83;
  font-size: 0.9em;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(166, 110, 131, 0.4);
  text-underline-offset: 0.16em;
}

.pub-item:hover .pub-thumb {
  transform: translateY(-1px) scale(1.03);
  border-color: #d7c8cf;
  box-shadow: 0 6px 16px rgba(55, 45, 50, 0.1);
}

.pub-links a,
.links-list a {
  color: var(--accent-deep);
  text-decoration-thickness: 1px;
}

/* Teaching and links */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

.service-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.9rem 1rem 0.5rem;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.service-card:hover {
  border-color: #cbc1c6;
  box-shadow: 0 10px 24px rgba(45, 35, 40, 0.09);
  transform: translateY(-3px);
}

.service-card h3 {
  margin: 0 0 0.55rem;
  font-size: 1rem;
}

.structured-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid #f0eded;
}

.structured-list li {
  display: grid;
  grid-template-columns: 2fr 1.3fr auto;
  gap: 0.75rem;
  align-items: baseline;
  padding: 0.72rem 0;
  border-bottom: 1px solid var(--line);
}

.item-name {
  font-weight: 500;
}

.item-role,
.item-year {
  color: var(--text-soft);
}

.links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.3rem;
}

.misc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: 1.4rem;
  align-items: start;
}

.misc-heading {
  margin-bottom: 0;
}

.personal-mini {
  width: min(100%, 32rem);
  border-top: 1px dashed #e7e2e4;
  padding-top: 0.8rem;
  margin-top: 1rem;
}

.links-list--quiet {
  font-size: 0.92rem;
  gap: 0.6rem 1rem;
}

.links-list--quiet a {
  color: rgba(55, 53, 47, 0.72);
  text-decoration-color: rgba(55, 53, 47, 0.22);
  transition: color 0.2s ease, text-decoration-color 0.2s ease, transform 0.2s ease;
}

.links-list--quiet a:hover,
.links-list--quiet a:focus-visible {
  color: var(--accent-deep);
  text-decoration-color: rgba(166, 110, 131, 0.45);
  transform: translateX(2px);
}

.visitor-panel {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  padding-top: 0.2rem;
}

.visitor-panel__eyebrow,
.visitor-panel__status,
.visitor-panel__counts {
  margin: 0;
}

.visitor-panel__eyebrow {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(91, 75, 82, 0.62);
  padding-left: 0.2rem;
}

.visitor-panel__world {
  position: relative;
  width: 100%;
  height: 82px;
  margin-top: 0.55rem;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(252, 248, 246, 0.76), rgba(246, 240, 242, 0.72)),
    linear-gradient(135deg, rgba(245, 234, 239, 0.36), rgba(255, 249, 245, 0.5));
  overflow: hidden;
}

.visitor-panel__world::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(120, 97, 107, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 97, 107, 0.05) 1px, transparent 1px);
  background-size: 12px 12px;
  opacity: 0.32;
}

.pixel,
.ping {
  position: absolute;
}

.pixel {
  width: 8px;
  height: 8px;
  border-radius: 1px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  opacity: 0.32;
  transition: opacity 0.24s ease, transform 0.24s ease, box-shadow 0.24s ease;
}

.pixel--rose {
  background: rgba(169, 125, 140, 0.76);
}

.pixel--blush {
  background: rgba(203, 164, 176, 0.62);
}

.pixel--sand {
  background: rgba(205, 181, 152, 0.66);
}

.pixel--ink {
  background: rgba(102, 84, 92, 0.72);
}

.pixel.is-active {
  opacity: 0.94;
  transform: translateY(-0.5px);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    0 0 0 3px rgba(175, 136, 151, 0.08);
}

.pixel-a1 { top: 19px; left: 18px; }
.pixel-a2 { top: 19px; left: 30px; }
.pixel-a3 { top: 29px; left: 42px; }
.pixel-a4 { top: 39px; left: 54px; }
.pixel-a5 { top: 24px; left: 250px; }
.pixel-b1 { top: 39px; left: 22px; }
.pixel-b2 { top: 49px; left: 34px; }
.pixel-b3 { top: 49px; left: 46px; }
.pixel-b4 { top: 38px; left: 224px; }
.pixel-b5 { top: 49px; left: 236px; }
.pixel-c1 { top: 20px; left: 140px; }
.pixel-c2 { top: 30px; left: 152px; }
.pixel-c3 { top: 40px; left: 164px; }
.pixel-c4 { top: 50px; left: 176px; }
.pixel-c5 { top: 60px; left: 188px; }
.pixel-d1 { top: 59px; left: 116px; }
.pixel-d2 { top: 59px; left: 128px; }
.pixel-d3 { top: 59px; left: 140px; }
.pixel-d4 { top: 59px; left: 264px; }
.pixel-d5 { top: 49px; left: 276px; }

.ping {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 251, 248, 0.95);
  border: 1px solid rgba(161, 112, 129, 0.56);
  box-shadow: 0 0 0 4px rgba(179, 109, 136, 0.05);
  animation: visitorPulse 3.2s ease-in-out infinite;
  opacity: 0.4;
}

.ping--one {
  top: 27px;
  left: 42px;
}

.ping--two {
  top: 30px;
  left: 158px;
  animation-delay: 0.8s;
}

.ping--three {
  top: 45px;
  left: 236px;
  animation-delay: 1.6s;
}

.ping.is-live {
  opacity: 1;
}

.visitor-panel__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  min-width: 0;
  padding: 0.45rem 0.2rem 0 0.2rem;
}

.visitor-panel__status {
  font-size: 0.72rem;
  color: rgba(55, 53, 47, 0.58);
}

.visitor-panel__counts {
  font-size: 0.72rem;
  color: rgba(55, 53, 47, 0.44);
}

.visitor-panel__world.has-data {
  background:
    linear-gradient(180deg, rgba(252, 248, 246, 0.88), rgba(246, 240, 242, 0.8)),
    linear-gradient(135deg, rgba(236, 223, 229, 0.42), rgba(255, 249, 245, 0.56));
}

@keyframes visitorPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(179, 109, 136, 0.18);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 0 0 10px rgba(179, 109, 136, 0.02);
  }
}

/* Footer */
.site-footer {
  padding: 3.2rem 0 2.2rem;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.page-wrap {
  min-height: 100vh;
}

.detail-mobile-header {
  display: none;
}

/* Secondary research pages */
.back-link {
  display: inline-block;
  margin-top: 2rem;
  color: var(--accent-deep);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.back-link:hover,
.back-link:focus-visible {
  border-bottom-color: var(--accent);
}

.research-detail {
  padding: 2rem 0 4rem;
  max-width: 86ch;
}

.research-detail h1 {
  margin-top: 0.9rem;
}

.quote-block {
  margin: 1.3rem 0;
  padding: 0.9rem 1.1rem;
  border-left: 4px solid var(--accent);
  background: #f6f4f5;
  border-radius: 0;
  color: #5d4b55;
}

.related-papers {
  margin-top: 1.6rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--line);
}

/* Detail page mockup blocks */
.detail-hero {
  width: 100%;
  height: 280px;
  overflow: hidden;
}

.detail-hero-art {
  width: 100%;
  height: 100%;
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04));
}

.detail-hero-art::before,
.detail-hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.detail-hero--warm .detail-hero-art {
  background:
    radial-gradient(circle at 18% 30%, rgba(255, 250, 246, 0.72) 0 110px, transparent 112px),
    radial-gradient(circle at 76% 66%, rgba(208, 167, 150, 0.16) 0 180px, transparent 182px),
    linear-gradient(135deg, #fbf1eb 0%, #efd9cf 48%, #e1c2b6 100%);
}

.detail-hero--warm .detail-hero-art::before {
  background:
    linear-gradient(118deg, transparent 0 22%, rgba(255, 255, 255, 0.22) 22% 24%, transparent 24% 100%),
    linear-gradient(118deg, transparent 0 52%, rgba(255, 255, 255, 0.14) 52% 54%, transparent 54% 100%);
  opacity: 0.55;
}

.detail-hero--warm .detail-hero-art::after {
  background:
    radial-gradient(circle at 84% 28%, rgba(255, 255, 255, 0.2) 0 74px, transparent 76px),
    radial-gradient(circle at 26% 78%, rgba(182, 142, 126, 0.08) 0 120px, transparent 122px);
}

.detail-hero--peach .detail-hero-art {
  background:
    radial-gradient(circle at 20% 74%, rgba(255, 251, 247, 0.76) 0 94px, transparent 96px),
    radial-gradient(circle at 82% 24%, rgba(220, 181, 165, 0.16) 0 150px, transparent 152px),
    linear-gradient(135deg, #fcf3ee 0%, #efd8ce 48%, #dfbeb2 100%);
}

.detail-hero--peach .detail-hero-art::before {
  background:
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.12) 0 10px,
      rgba(255, 255, 255, 0) 10px 30px
    );
  opacity: 0.32;
}

.detail-hero--peach .detail-hero-art::after {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 60%),
    radial-gradient(circle at 68% 58%, rgba(193, 152, 137, 0.08) 0 96px, transparent 98px);
}

.detail-hero--sage .detail-hero-art {
  background:
    radial-gradient(circle at 22% 26%, rgba(248, 252, 248, 0.76) 0 96px, transparent 98px),
    radial-gradient(circle at 80% 72%, rgba(153, 182, 166, 0.16) 0 164px, transparent 166px),
    linear-gradient(135deg, #eef4ef 0%, #d8e5dc 48%, #bfd2c5 100%);
}

.detail-hero--sage .detail-hero-art::before {
  background:
    linear-gradient(90deg, transparent 0 10%, rgba(255, 255, 255, 0.12) 10% 11%, transparent 11% 100%),
    linear-gradient(90deg, transparent 0 34%, rgba(255, 255, 255, 0.08) 34% 35%, transparent 35% 100%),
    linear-gradient(90deg, transparent 0 58%, rgba(255, 255, 255, 0.06) 58% 59%, transparent 59% 100%);
  opacity: 0.42;
}

.detail-hero--sage .detail-hero-art::after {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 64%),
    radial-gradient(circle at 72% 32%, rgba(255, 255, 255, 0.12) 0 62px, transparent 64px);
}

.detail-intro {
  margin-top: 0.5rem;
}

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

.detail-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  background: #fff;
}

.detail-card h2 {
  font-size: 1.12rem;
  margin-bottom: 0.45rem;
}

.detail-card ul {
  margin: 0;
  padding-left: 1.15rem;
}

.page-placeholder {
  margin: 0;
  min-height: 42vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: rgba(55, 53, 47, 0.42);
  letter-spacing: 0.01em;
}

.design-section {
  margin-top: 1.6rem;
}

.design-section__note {
  margin: 0.45rem 0 0;
  color: var(--text-soft);
}

.design-project {
  border-top: 1px solid var(--line);
  padding: 1.15rem 0 1.25rem;
}

.design-project:last-child {
  border-bottom: 1px solid var(--line);
}

.design-project__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.design-project h3,
.design-archive-item h3 {
  margin: 0;
  font-size: 1.15rem;
}

.design-project__meta,
.design-archive-item__meta {
  margin: 0.2rem 0 0;
  color: var(--text-soft);
  font-size: 0.93rem;
}

.design-project__links,
.design-archive-item__links {
  margin: 0;
  white-space: nowrap;
  font-size: 0.92rem;
}

.design-project p + .design-skill-list {
  margin-top: 0.7rem;
}

.design-skill-list {
  list-style: none;
  padding: 0;
  margin: 0.82rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
}

.design-skill {
  border-radius: 999px;
  padding: 0.22rem 0.62rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: rgba(55, 53, 47, 0.82);
  border: 1px solid transparent;
}

.design-skill--hci,
.design-skill--product {
  background: #f2edf0;
  border-color: #e8dde3;
}

.design-skill--healthcare,
.design-skill--branding {
  background: #edf2f2;
  border-color: #dde7e7;
}

.design-skill--wearable,
.design-skill--enclosure,
.design-skill--mechanism {
  background: #f3f0ec;
  border-color: #e8e0d7;
}

.design-skill--app,
.design-skill--prototyping,
.design-skill--printing,
.design-skill--laser {
  background: #f0edf4;
  border-color: #e2dcef;
}

.design-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 0.95rem;
}

.design-archive-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.95rem 1rem;
  background: #fff;
}

/* Responsive layout */
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-left {
    max-width: 340px;
  }

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

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

  .design-archive-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  body.mobile-nav-open {
    overflow: hidden;
  }

  .section {
    padding-top: 4rem;
  }

  .site-header {
    overflow: visible;
  }

  .detail-mobile-header {
    display: block;
  }

  .nav-wrap {
    min-height: 68px;
    padding: 0.55rem 0;
    align-items: center;
    flex-direction: row;
    position: relative;
  }

  .brand {
    font-size: 1rem;
  }

  .nav-toggle {
    display: inline-flex;
    flex: 0 0 auto;
  }

  .primary-nav {
    display: none;
    position: absolute;
    top: calc(100% + 0.55rem);
    right: 0;
    margin-right: 0;
    width: min(84vw, 320px);
    padding: 0.3rem;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(216, 193, 202, 0.88);
    border-radius: 18px;
    box-shadow: 0 18px 38px rgba(54, 41, 47, 0.14);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px) scale(0.98);
    transform-origin: top right;
    transition: opacity 0.2s ease, transform 0.2s ease;
    backdrop-filter: blur(12px);
  }

  body.mobile-nav-open .primary-nav {
    display: block;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .nav-list {
    margin-left: 0;
    flex-direction: column;
    gap: 0.2rem;
  }

  .nav-list li {
    width: 100%;
  }

  .nav-list a {
    display: block;
    width: 100%;
    padding: 0.72rem 0.9rem;
    border-radius: 12px;
    color: var(--text-main);
    font-size: 0.96rem;
  }

  .nav-list a:hover,
  .nav-list a:focus-visible {
    background: #faf5f7;
    transform: none;
  }

  .nav-list a::after {
    display: none;
  }

  body.mobile-nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(5.6px) rotate(45deg);
  }

  body.mobile-nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  body.mobile-nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-5.6px) rotate(-45deg);
  }

  .profile-placeholder {
    width: 210px;
    height: 210px;
    margin-left: 0;
  }

  .news-card {
    height: 390px;
  }

  .compact-list {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .research-grid,
  .structured-list li {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 2.2rem;
  }

  .hero-left {
    max-width: 100%;
  }

  .design-project__head {
    flex-direction: column;
  }

  .detail-hero {
    height: 190px;
  }

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

  .research-detail {
    padding: 1.2rem 0 3.2rem;
  }

  .research-detail h1 {
    margin-top: 0.75rem;
    font-size: clamp(1.9rem, 8vw, 2.35rem);
    line-height: 1.14;
  }

  .detail-intro p,
  .quote-block,
  .detail-card li,
  .related-papers li,
  .design-section__note,
  .design-project p,
  .design-archive-item p,
  .page-placeholder {
    font-size: 0.98rem;
    line-height: 1.72;
  }

  .quote-block {
    padding: 0.95rem 1rem;
  }

  .detail-card {
    padding: 0.9rem 0.95rem;
  }

  .detail-card h2,
  .related-papers h2,
  .design-section h2 {
    font-size: 1.06rem;
  }

  .design-project {
    padding-left: 0;
    padding-right: 0;
  }

  .design-project__links,
  .design-archive-item__links,
  .design-project__meta,
  .design-archive-item__meta {
    font-size: 0.9rem;
  }

  .pub-item {
    grid-template-columns: 1fr;
    gap: 0.6rem;
    padding: 0.85rem 0 0.95rem;
  }

  .misc-layout {
    grid-template-columns: 1fr;
  }

  .visitor-panel {
    min-height: auto;
    max-width: 380px;
  }

  .pub-thumb {
    width: 120px;
    height: 86px;
  }

  .education-item {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }

  .edu-content {
    padding-left: 0.78rem;
  }

  .structured-list li {
    gap: 0.25rem;
  }

  .hero-links li + li::before {
    margin-right: 0.5rem;
  }

  .section-heading-wide p {
    white-space: normal;
  }

  .eyebrow {
    font-size: 0.8rem;
    letter-spacing: 0.05em;
  }

  h1 {
    margin-top: 0.45rem;
    line-height: 1.12;
  }

  .hero-title {
    font-size: 1.02rem;
    line-height: 1.45;
  }

  .hero-bio {
    font-size: 0.97rem;
    line-height: 1.72;
  }

  .hero-links {
    gap: 0.42rem 0.58rem;
    font-size: 0.92rem;
  }

  .hero-right {
    max-width: 100%;
  }

  .hero-right > * + * {
    margin-top: 0.82rem;
  }

  .hero-links li {
    width: 100%;
  }

  .hero-links li + li::before {
    display: none;
  }

  .section-heading p,
  .pub-meta,
  .pub-keywork,
  .timeline-item li,
  .edu-content li {
    font-size: 0.95rem;
  }

  .timeline-lab {
    font-size: 1.08rem;
  }

  .timeline-inst,
  .meta-line,
  .meta-sub {
    font-size: 0.89rem;
  }
}

@media (max-width: 980px) {
  .brand:hover,
  .brand:focus-visible {
    transform: scale(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .cursor-trail {
    display: none !important;
  }
}
