:root {



  --bg: var(--theme-color-a397ab7f7a);
  --bg-soft: var(--theme-color-c590853aed);
  --surface: var(--theme-color-8f12c6596d);
  --surface-strong: var(--theme-color-2a0b7b6a66);
  --border: var(--theme-color-c01f8cb1ab);
  --border-strong: var(--theme-color-be15a0e470);
  --title: var(--theme-color-1af3fb2886);
  --text: var(--theme-color-28f3e03f35);
  --text-muted: var(--theme-color-897fa525c0);
  --text-soft: var(--theme-color-6e99e4efe5);
  --accent: var(--theme-color-d401724f09);
  --accent-soft: var(--theme-color-33b8e2233a);
  --shadow: 0 18px 50px var(--theme-color-487cf26cde);
  --max-width: 1320px;
  --radius: 8px;
  --space-section: 60px;
  --space-page: 36px;
}

:root:lang(zh-Hant) {

}

* {
  box-sizing: border-box;
}

html {
  background: var(--theme-color-d79a75a6e3);
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  overscroll-behavior-y: none;
}

body {
  min-width: 320px;
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(circle at 18% 10%, var(--theme-color-d0e994c6f4), transparent 28rem),
    linear-gradient(180deg, var(--theme-color-d79a75a6e3) 0%, var(--theme-color-c590853aed) 50%, var(--theme-color-d79a75a6e3) 100%);
  line-height: 1.65;
  overflow-x: hidden;
  overscroll-behavior-y: none;
}

::selection {
  color: var(--theme-color-34d6dbd1aa);
  background: var(--theme-color-068697d81a);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image: linear-gradient(var(--theme-color-7ef9eb4aa9) 1px, transparent 1px);
  background-size: 100% 72px;
  mask-image: linear-gradient(to bottom, var(--theme-color-69a5a93a90), transparent 78%);
}

body::after {
  position: fixed;
  inset: -320px -420px;
  z-index: -2;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 18% 20%, var(--theme-color-38bafeba74), transparent 38rem),
    radial-gradient(circle at 84% 16%, var(--theme-color-d95734fd5b), transparent 44rem),
    radial-gradient(circle at 50% 88%, var(--theme-color-5289c4bd4d), transparent 42rem);
  background-position: 0% 0%, 100% 8%, 48% 100%;
  background-repeat: no-repeat;
  background-size: 118% 118%, 132% 132%, 124% 124%;
  filter: blur(18px);
  opacity: 0.76;
  transform: translate3d(0, 0, 0);
  animation: ambientDrift 18s ease-in-out infinite alternate;
  will-change: transform, background-position;
}

.cursor-field {
  position: fixed;
  inset: 0;
  z-index: 60;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  mix-blend-mode: screen;
}

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

p,
h1,
h2,
h3 {
  margin-top: 0;
}

p {
  margin-bottom: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 8px 12px;
  color: var(--bg);
  background: var(--accent);
  border-radius: var(--radius);
  transform: translateY(-140%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 12;
  border-bottom: 1px solid var(--theme-color-4487e20f64);
  background: var(--theme-color-a14a102794);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - (var(--space-page) * 2), var(--max-width));
  min-height: 62px;
  margin: 0 auto;
  gap: 24px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav--languages .site-search {
  flex: 1 1 360px;
  min-width: 100px;
  max-width: 500px;
}

.language-switcher {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
}

.language-switcher button {
  padding: 8px 3px;
  border: 0;
  background: none;
  color: var(--text-soft);
  font: 600 0.95rem var(--font-body);
  cursor: pointer;
  transition: color 180ms ease;
}

.language-switcher button:hover,
.language-switcher button[aria-pressed="true"] { color: var(--text); }
.language-switcher button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
/* Reserve the homepage menu's width even on pages with only a Home link. */
.nav--languages .nav-links { flex: 0 0 29.25rem; }

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.nav-links a {
  position: relative;
  padding: 4px 0;
  transition: color 180ms ease;
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: -2px;
  left: 0;
  height: 1px;
  content: "";
  background: var(--accent);
  opacity: 0;
  transform: scaleX(0.35);
  transition: opacity 180ms ease, transform 180ms ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--text);
}

.nav-links a.is-active::after,
.nav-links a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

main {
  width: min(100% - (var(--space-page) * 2), var(--max-width));
  margin: 0 auto;
}

main {
  padding-top: 62px;
}

.section {
  position: relative;
  padding: var(--space-section) 0;
  isolation: isolate;
}

.hero {
  display: grid;
  min-height: auto;
  align-items: center;
  overflow: visible;
  padding-top: var(--space-section);
  padding-bottom: var(--space-section);
}

.hero-polyhedron {
  position: absolute;
  top: -1150px;
  right: -520px;
  z-index: 0;
  width: 2400px;
  height: 2400px;
  pointer-events: auto;
  opacity: 0.7;
  mix-blend-mode: screen;
  contain: layout paint size;
  transform: translate3d(0, 0, 0);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  animation: fadeUp 700ms ease both;
}
.home-page .hero-content {
  transform: translate3d(0, 0, 0);
  will-change: transform;
  transition: transform 750ms cubic-bezier(0.4, 0, 0.2, 1);
}
.home-hero-lowered .home-page .hero-content {
  transform: translate3d(0, clamp(24px, 8vh, 88px), 0);
}
@media (max-width: 600px) {
  .home-hero-lowered .home-page .hero-content { transform: translate3d(0, clamp(20px, 4vh, 36px), 0); }
}

/* Fade foreground elements only; keep the body's background stacking stable. */
.home-page > .site-header,
.home-page .hero-content,
.home-page > .scroll-cue:not(.is-dismissed) {
  animation: homeContentIn 900ms ease-out backwards;
}
/* Start the foreground fade only once the hero's first canvas frame is ready. */
.home-intro-pending .home-page > .site-header,
.home-intro-pending .home-page .hero-content,
.home-intro-pending .home-page > .scroll-cue:not(.is-dismissed) {
  animation-play-state: paused;
}
@keyframes homeContentIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .home-page .hero-content { transition: none; }
  .home-page > .site-header,
  .home-page .hero-content,
  .home-page > .scroll-cue:not(.is-dismissed) { animation: none; }
}

.eyebrow {
  margin-bottom: 10px;
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: normal;
  text-transform: uppercase;
  animation: accentBreath 6.8s ease-in-out 1s infinite backwards;
}

h1 {
  max-width: 900px;
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 0.98;
  letter-spacing: 0;
  color: var(--title);
}

h2 {
  margin-bottom: 0;
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1.08;
  letter-spacing: 0;
  color: var(--title);
}

h3 {
  margin-bottom: 0;
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.35;
}

.affiliation {
  max-width: 720px;
  margin-bottom: 10px;
  color: var(--text-muted);
  font-size: 1.28rem;
}

.hero-summary {
  max-width: none;
  color: var(--text);
  font-size: 1.28rem;
  white-space: nowrap;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 10px;
  color: var(--text);
  font-size: 1.08rem;
}

.hero-links a {
  position: relative;
  color: var(--text-muted);
  transition: color 180ms ease;
}

.hero-links a::after {
  position: absolute;
  right: 0;
  bottom: -4px;
  left: 0;
  height: 1px;
  content: "";
  background: var(--accent);
  opacity: 0.6;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease, opacity 180ms ease;
}

.hero-links a:hover {
  color: var(--text);
}

.hero-links a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 8px;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.section-heading .eyebrow {
  margin-bottom: 0;
}

.content-block {
  max-width: 840px;
  color: var(--text-muted);
  font-size: 1.15rem;
}

.content-block p + p {
  margin-top: 18px;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 840px) minmax(240px, 1fr);
  align-items: start;
  gap: 44px;
}

.about-portrait {
  width: min(280px, 100%);
  justify-self: end;
  transform: translate(-36px, 8px);
}

.about-portrait img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.about-portrait [hidden] {
  display: none !important;
}

.about-portrait__image {
  box-shadow: 0 12px 30px var(--theme-color-eb22a8aca6);
}

.about-portrait__reflection {
  margin-top: 0;
  aspect-ratio: 4 / 1;
  overflow: hidden;
  opacity: 0.25;
  mask-image: linear-gradient(to bottom, var(--theme-color-598b32b7d9), transparent 95%);
  -webkit-mask-image: linear-gradient(to bottom, var(--theme-color-598b32b7d9), transparent 95%);
}

.about-portrait__reflection img {
  transform: scaleY(-1);
}

.about-visual {
  display: flex;
  min-height: 260px;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
}

.sjtu-line-mark {
  transform: translate(5px, 5px);
  width: min(410px, 100%);
  height: auto;
  fill: none;
  opacity: 1;
  overflow: visible;
}

.sjtu-line-mark path {
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.works-page main,
.playground-page main {
  animation: pageFadeIn 520ms ease both;
}

.honors-block {
  margin-top: 24px;
  padding-left: 16px;
  border-left: 2px solid var(--theme-color-feeb7c2f13);
}

.honors-block h3 {
  margin-bottom: 10px;
  font-size: 1rem;
}

.honors-block ul {
  display: grid;
  margin: 0;
  padding-left: 18px;
  gap: 6px;
}

.honors-block li {
  color: var(--text-muted);
}

.research-matrix {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.research-cell {
  position: relative;
  min-height: 164px;
  padding: 22px 20px 20px 24px;
  border: 1px solid var(--border);
  border-left: 2px solid var(--theme-color-feeb7c2f13);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  outline: 0;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.research-cell:hover,
.research-cell:focus-visible {
  border-color: var(--border-strong);
  border-left-color: var(--accent);
  background: var(--surface-strong);
  transform: translateY(-3px);
}

.research-cell h3 {
  margin-bottom: 12px;
  font-size: 1.02rem;
  font-weight: 800;
}

.research-cell p {
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.55;
}

.hover-tooltip {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 30;
  width: min(320px, calc(100vw - 32px));
  padding: 12px 14px;
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.45;
  pointer-events: none;
  border: 1px solid var(--theme-color-19bec18b6c);
  border-radius: var(--radius);
  background: var(--theme-color-1ec5e220fa);
  box-shadow: 0 14px 36px var(--theme-color-8493165481);
  opacity: 0;
  transform: translate3d(-999px, -999px, 0);
  transition: opacity 150ms ease;
}

.hover-tooltip.is-visible {
  opacity: 1;
}

.hover-tooltip--compact {
  width: max-content;
  max-width: calc(100vw - 32px);
}

.keywords span,
.keywords a,
.status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.76rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--theme-color-7ef9eb4aa9);
}

.keywords a {
  color: var(--accent);
  border-color: var(--theme-color-5ab0ccd974);
  background: var(--accent-soft);
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.keywords a:hover,
.keywords a:focus-visible {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--theme-color-a76df91eb6);
}

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

.card,
.skill-group,
.publication-note,
.publication-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.card {
  display: flex;
  min-height: 280px;
  padding: 24px;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.card--pending { position: relative; }

.card-update-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  cursor: help;
}

.card-update-dot::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--theme-color-d57b309ca9);
  animation: cardUpdateBreathe 2.8s ease-in-out infinite;
}

.card-update-dot:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }

.publication-item > .card-update-dot { z-index: 3; }

@keyframes cardUpdateBreathe {
  0%, 100% { opacity: 0.5; background: var(--accent); box-shadow: 0 0 4px var(--theme-color-e8a81f3e2a); }
  50% { opacity: 1; background: var(--theme-color-2f46b8d88d); box-shadow: 0 0 10px var(--theme-color-6b712038f6), 0 0 20px var(--theme-color-5e81ab8ea7); }
}

.card:hover,
.skill-group:hover,
.skill-group:focus-visible,
.publication-item:hover {
  border-color: var(--border-strong);
  background: var(--surface-strong);
  transform: translateY(-4px);
}

.publication-item--blurred {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, var(--theme-color-b3a3e8cf62), var(--theme-color-eb07cc067b)),
    var(--theme-color-29db6df610);
  box-shadow:
    inset 0 1px 0 var(--theme-color-536e662fd2),
    var(--shadow);
}

.publication-item--blurred::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  content: "";
  pointer-events: none;
  background: var(--theme-color-e1de02397d);
  -webkit-backdrop-filter: blur(3px) saturate(0.82);
  backdrop-filter: blur(3px) saturate(0.82);
}

.publication-item--blurred .publication-year,
.publication-item--blurred .publication-content {
  filter: blur(5px);
  opacity: 0.72;
}

.publication-item--report .publication-summary {
  white-space: normal;
}

.publication-placeholder-lines { display: grid; gap: 12px; margin: 20px 0 8px; }
.publication-placeholder-lines span { height: 8px; width: 92%; border-radius: 4px; background: var(--text-soft); opacity: 0.3; }
.publication-placeholder-lines span:nth-child(2) { width: 76%; }
.publication-placeholder-lines span:nth-child(3) { width: 44%; }

.section-link {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

.section-link a {
  position: relative;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.84rem;
  transition: color 180ms ease;
}

.section-link a::after {
  position: absolute;
  right: 0;
  bottom: -4px;
  left: 0;
  height: 1px;
  content: "";
  background: var(--accent);
  opacity: 0.65;
  transform: scaleX(0);
  transform-origin: left;
  transition: opacity 180ms ease, transform 180ms ease;
}

.section-link a:hover {
  color: var(--text);
}

.section-link a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

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

.publication-list {
  display: grid;
  gap: 14px;
}

.publication-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding: 22px 24px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.publication-year-heading {
  margin: 0 0 12px;
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 0.88rem;
  letter-spacing: normal;
}

.publication-year {
  padding-top: 3px;
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: normal;
}

.publication-content h3 {
  margin: 0 0 8px;
  color: var(--title);
  font-size: 1.08rem;
  line-height: 1.35;
}

.publication-item:first-child .publication-content h3 {
  font-size: 1.24rem;
}

.publication-venue,
.publication-summary {
  margin: 0;
}

.publication-venue {
  margin-top: 3px;
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 0.82rem;
}

.publication-summary {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.55;
  white-space: nowrap;
}

.publication-preview-layer {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  pointer-events: none;
  will-change: transform;
}

.publication-paper-preview {
  position: absolute;
  top: 0;
  left: 0;
  width: auto;
  max-width: min(420px, 42vw);
  max-height: min(360px, calc(100vh - 32px));
  padding: 0;
  object-fit: contain;
  border: 0;
  border-radius: 12px;
  background: transparent;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  will-change: opacity;
  transition: opacity 140ms ease, visibility 0s linear 140ms;
}

.publication-paper-preview.is-visible {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

@media (max-width: 600px) {
  .publication-paper-preview { max-width: min(360px, calc(100vw - 32px)); }
}

@media (prefers-reduced-motion: reduce) {
  .publication-paper-preview { transition: none; }
}

.publication-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 14px;
}

.publication-links a,
.publication-links span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 0;
  color: var(--accent);
  font: 13px var(--font-body);
  border: 0;
  border-radius: 0;
  background: none;
}

.publication-links a {
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.publication-links a:hover,
.publication-links a:focus-visible {
  color: var(--text);
  border-color: var(--border-strong);
  background: none;
}

.status {
  flex: 0 0 auto;
  color: var(--accent);
  border-color: var(--theme-color-53576d271a);
  background: none;
}

.keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.game-gate {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: grid;
  place-items: center;
  padding: 24px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 220ms ease;
}

.game-gate.is-open {
  pointer-events: auto;
  opacity: 1;
}

.game-gate__backdrop {
  position: absolute;
  inset: 0;
  background: var(--theme-color-2b40fd9c9b);
  backdrop-filter: blur(10px);
}

.game-gate__panel {
  position: relative;
  width: min(100%, 520px);
  padding: 28px;
  border: 1px solid var(--theme-color-19bec18b6c);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, var(--theme-color-44dd08be16), var(--theme-color-7ef9eb4aa9)),
    var(--theme-color-f6452a36cb);
  box-shadow: 0 28px 80px var(--theme-color-4db2deba6d), 0 0 34px var(--theme-color-d0e994c6f4);
  transform: translateY(14px) scale(0.98);
  transition: transform 220ms ease;
}

.game-gate__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  font-size: 1.1rem;
  line-height: 1;
  border: 1px solid var(--theme-color-19bec18b6c);
  background: var(--theme-color-325b8581b5);
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.game-gate__close:hover,
.game-gate__close:focus-visible {
  color: var(--text);
  background: var(--theme-color-39bd54a9d4);
  transform: translateY(-1px);
}

.game-gate.is-open .game-gate__panel {
  transform: translateY(0) scale(1);
}

.game-gate__title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
}

.game-gate__panel h2 {
  flex: 1 1 auto;
  max-width: 14ch;
  margin: 0;
  color: var(--accent);
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  line-height: 1.08;
}

.game-gate__mark {
  --line-color: var(--theme-color-6058dd8e69);
  --line-glow: var(--theme-color-3661645906);
  --line-runner: var(--theme-color-06b8b87093);
  --gate-mark-shift-x: -20px;

  width: clamp(72px, 18vw, 112px);
  flex: 0 0 auto;
  color: var(--line-color);
  transform: translateX(var(--gate-mark-shift-x));
}

.thinking-line-mark {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.thinking-line-mark__main,
.thinking-line-mark__glow {
  fill-rule: evenodd;
}

.thinking-line-mark__main {
  fill: currentColor;
}

.thinking-line-mark__glow {
  fill: var(--line-glow);
}

.thinking-line-mark__glow,
.thinking-line-mark__runner {
  opacity: 0;
  filter: url("#game-gate-rust-glow");
  pointer-events: none;
  transform-origin: center;
}

.thinking-line-mark__runner {
  fill: none;
  stroke: var(--line-runner);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 6 94;
  stroke-dashoffset: 0;
}

.thinking-visual.is-animated .thinking-line-mark__glow {
  opacity: 0.28;
  animation: thinkingGlowBreathe 3.2s ease-in-out infinite;
}

.thinking-visual.is-animated .thinking-line-mark__runner {
  opacity: 0.72;
  animation: thinkingRunnerMove 2.8s linear infinite;
}
.game-gate:not(.is-open) :is(.thinking-line-mark__glow, .thinking-line-mark__runner) {
  animation-play-state: paused;
}

@keyframes thinkingGlowBreathe {
  0%,
  100% {
    opacity: 0.12;
    transform: scale(1);
  }

  50% {
    opacity: 0.42;
    transform: scale(1.006);
  }
}

@keyframes thinkingRunnerMove {
  to {
    stroke-dashoffset: -100;
  }
}

.game-gate__panel p:not(.eyebrow) {
  color: var(--text-muted);
  line-height: 1.7;
}

.game-gate__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}

.game-gate__button {
  min-height: 36px;
  padding: 8px 14px;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.84rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--theme-color-7ef9eb4aa9);
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.game-gate__button--primary {
  color: var(--accent);
  border-color: var(--theme-color-cefbac401f);
  background: var(--accent-soft);
}

.game-gate__button:hover,
.game-gate__button:focus-visible {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--theme-color-33b8e2233a);
  outline: 0;
  transform: translateY(-1px);
}

.skill-group {
  padding: 22px;
}

.skill-group h3 {
  margin-bottom: 10px;
}

.skill-group p {
  color: var(--text-muted);
}

.playground-list .publication-content h3 {
  font-size: 1.08rem;
}

.playground-list .publication-summary {
  white-space: normal;
  max-width: 100ch;
}

.playground-list .work-points {
  margin-top: 14px;
  font-size: 0.94rem;
  line-height: 1.7;
}

.playground-list .keywords {
  margin-top: 16px;
}

.playground-title-button {
  padding: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.playground-title-button:hover {
  color: var(--accent);
}

.playground-list .publication-links button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 4px 0;
  color: var(--accent);
  font: 13px var(--font-body);
  border: 0;
  border-radius: 0;
  background: none;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.playground-list .publication-links button:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: none;
}

.mods-dialog {
  width: min(980px, calc(100% - 40px));
  max-width: none;
  max-height: 86vh;
  max-height: 86dvh;
  margin: auto;
  padding: 0;
  overflow: hidden;
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--theme-color-972d81cd99);
  box-shadow: var(--shadow);
}

.mods-dialog[open] {
  display: flex;
  flex-direction: column;
  animation: fadeUp 180ms ease both;
}

.mods-dialog::backdrop {
  background: var(--theme-color-712130fab7);
  backdrop-filter: blur(10px);
}

.mods-dialog__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  border-bottom: 1px solid var(--border);
}

.mods-dialog__header .eyebrow {
  margin-bottom: 8px;
  font-size: 0.72rem;
}

.mods-dialog__header h2 {
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.25;
}

.mods-dialog__close {
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  padding: 0;
  color: var(--accent);
  font-size: 1.3rem;
  line-height: 1;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--accent-soft);
  cursor: pointer;
}

.mods-dialog__close:hover {
  color: var(--text);
}

.playground-list button:focus-visible,
.mods-dialog :is(button, a):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.mods-dialog__body {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 24px;
  scrollbar-color: var(--border-strong) var(--theme-color-972d81cd99);
}

.mod-entry {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 24px;
  padding: 24px 0;
}

.mod-entry + .mod-entry {
  border-top: 1px solid var(--border);
}

.mod-entry img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  background: var(--theme-color-d79a75a6e3);
}

.mod-entry__content {
  min-width: 0;
  overflow-wrap: anywhere;
}

.mod-entry__content h3 {
  margin: 6px 0 8px;
  font-size: 1rem;
  line-height: 1.4;
}

.mod-entry__content p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.mod-entry__content .mod-entry__category {
  color: var(--accent);
  font: 0.7rem var(--font-body);
}

.mod-entry__link,
.mods-dialog__footer a {
  display: inline-block;
  color: var(--accent);
  font: 0.76rem var(--font-body);
}

.mod-entry__link {
  margin-top: 12px;
}

.mods-dialog a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mods-dialog__footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
}

.mods-dialog__header,
.mods-dialog__footer {
  flex-shrink: 0;
}

@media (max-width: 560px) {
  .mods-dialog { width: calc(100% - 24px); max-height: 90dvh; }
  .mods-dialog__header { padding: 18px; gap: 12px; }
  .mods-dialog__header h2 { font-size: 1.25rem; }
  .mods-dialog__body { padding: 0 18px; }
  .mods-dialog__footer { padding: 14px 18px; }
  .mod-entry { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 20px 0; }
}

.playground-profile-link {
  margin: 0 0 22px;
  color: var(--accent);
  font: 0.8rem var(--font-body);
}

.playground-summary {
  display: list-item;
  list-style: none;
  position: relative;
  padding-left: 20px;
  margin-bottom: 0;
  cursor: pointer;
}

.playground-summary::marker {
  content: "";
}

.playground-summary::before {
  position: absolute;
  top: 0.78em;
  left: 0;
  width: 0;
  height: 0;
  content: "";
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 8px solid var(--accent);
  transform: translateY(-50%) rotate(0deg);
  transform-origin: 38% 50%;
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.playground-disclosure[open] > .playground-summary::before {
  transform: translateY(-50%) rotate(90deg);
}

.playground-summary h2 {
  display: inline-grid;
  width: calc(100% - 32px);
  gap: 8px;
  vertical-align: middle;
}

.playground-summary:hover {
  border-bottom-color: var(--border-strong);
}

.playground-summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
}

.playground-disclosure__content {
  display: flow-root;
  padding-top: 22px;
}

.playground-subsection {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.playground-subsection .playground-summary {
  padding-inline: 0;
}

.playground-subsection .playground-disclosure__content {
  padding-top: 18px;
}

.playground-list .playground-subitem {
  margin: 18px 0 0 28px;
  padding: 18px 0 0 22px;
  border-top: 1px solid var(--border);
  border-left: 2px solid var(--border);
}

.playground-list .playground-subitem .publication-content {
  padding: 0;
}

.playground-list .playground-subitem h3 {
  font-size: 1rem;
}

.playground-details .playground-subitem {
  margin-left: 22px;
  padding-left: 22px;
  border-left: 2px solid var(--border);
}

.playground-page #mods {
  padding-bottom: 20px;
}

.playground-page #games-and-more {
  padding-top: 20px;
}

.playground-page .mod-gallery {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.playground-page .mod-gallery .mod-entry {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  padding: 18px;
  min-width: 0;
}

.playground-page .mod-gallery .mod-entry img {
  aspect-ratio: 16 / 10;
  object-fit: contain;
}

.playground-page .mod-gallery .mod-entry__content {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.playground-page .mod-gallery .mod-entry__link {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 14px;
}

@media (max-width: 1000px) {
  .playground-page .mod-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .playground-page .mod-gallery { grid-template-columns: minmax(0, 1fr); }
}

.playground-profile-link a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.playground-page .mod-entry__content h2 {
  margin: 6px 0 8px;
  font-size: 1.15rem;
  line-height: 1.4;
}

.playground-page .mod-entry__content p {
  margin: 0;
}

.playground-page .mod-entry__category,
.playground-details .publication-venue {
  color: var(--accent);
}

.playground-details .publication-summary {
  white-space: normal;
}

.playground-details .keywords {
  margin-top: 16px;
}

@media (max-width: 560px) {
  .playground-page .works-hero h1 { font-size: 2.2rem; }
  .playground-page .work-detail { padding: 20px; }
}

@media (max-width: 860px) {
  .playground-page main { padding-top: 124px; }
}

.code-showcase {
  height: 230px;
  margin-top: 50px;
  padding: 18px;
  border: 1px solid var(--theme-color-0583ec9f67);
  border-radius: var(--radius);
  background: var(--theme-color-69873d4ea1);
  box-shadow: var(--shadow);
  cursor: pointer;
  overflow: hidden;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.code-showcase:hover,
.code-showcase:focus-visible {
  border-color: var(--theme-color-feeb7c2f13);
  box-shadow: 0 18px 54px var(--theme-color-c72f388f1a), 0 0 18px var(--theme-color-d0e994c6f4);
  outline: 0;
}

.code-showcase__viewport,
.code-modal__source {
  margin: 0;
  color: var(--theme-color-44edc04d62);
  font-family: var(--font-code);
  font-size: 0.78rem;
  line-height: 1.28;
  white-space: pre-wrap;
  user-select: none;
  transition: color 220ms ease, text-shadow 220ms ease;
}

.code-showcase__viewport code,
.code-modal__source code {
  font-family: var(--font-code);
  font-weight: 400;
}

.code-showcase__viewport {
  height: 100%;
  overflow: hidden;
}

.code-showcase:hover .code-showcase__viewport,
.code-showcase:focus-visible .code-showcase__viewport {
  color: var(--theme-color-e90934d08b);
  text-shadow: 0 0 7px var(--theme-color-d0e994c6f4);
}

.code-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 28px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 180ms ease;
}

.code-modal.is-open {
  pointer-events: auto;
  opacity: 1;
}

.code-modal__backdrop {
  position: absolute;
  inset: 0;
  background: var(--theme-color-2b40fd9c9b);
  backdrop-filter: blur(10px);
}

.code-modal__panel {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(100%, 1040px);
  max-height: min(82vh, 820px);
  border: 1px solid var(--theme-color-19bec18b6c);
  border-radius: var(--radius);
  background: var(--theme-color-598b32b7d9);
  box-shadow: 0 24px 80px var(--theme-color-1ae88974c6), 0 0 28px var(--theme-color-d0e994c6f4);
  overflow: hidden;
  transform: translateY(10px) scale(0.985);
  transition: transform 180ms ease;
}

.code-modal.is-open .code-modal__panel {
  transform: translateY(0) scale(1);
}

.code-modal__header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 16px 18px;
  border-bottom: 1px solid var(--theme-color-5289c4bd4d);
}

.code-modal__close {
  width: 34px;
  height: 34px;
  border: 1px solid var(--theme-color-53576d271a);
  background: transparent;
  font: inherit;
  transition: background 180ms ease, border-color 180ms ease;
}

.game-gate__close,
.code-modal__close {
  color: var(--accent);
  border-radius: var(--radius);
  cursor: pointer;
}

.game-gate__close:hover,
.game-gate__close:focus-visible,
.code-modal__close:hover,
.code-modal__close:focus-visible {
  border-color: var(--border-strong);
  outline: 0;
}

.code-modal__close:hover,
.code-modal__close:focus-visible {
  background: var(--theme-color-d0e994c6f4);
}

.code-modal__source {
  padding: 18px;
  color: var(--theme-color-99270e926b);
  overflow: auto;
  scrollbar-color: var(--theme-color-fe86e5f7a1) var(--theme-color-598b32b7d9);
  scrollbar-width: thin;
}

.code-modal__source::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.code-modal__source::-webkit-scrollbar-track {
  background: var(--theme-color-598b32b7d9);
}

.code-modal__source::-webkit-scrollbar-thumb {
  border: 2px solid var(--theme-color-598b32b7d9);
  border-radius: 999px;
  background: var(--theme-color-5e81ab8ea7);
}

.code-modal__source::-webkit-scrollbar-thumb:hover {
  background: var(--theme-color-99270e926b);
}

.publication-note {
  max-width: none;
  padding: 24px;
}

.publication-note p:first-child {
  color: var(--text);
  font-size: 1.1rem;
}

.works-hero {
  padding-bottom: 10px;
}
.works-hero + .section {
  padding-top: 18px;
}

.works-hero h1 {
  font-size: 3.6rem;
}

.works-list {
  display: grid;
  gap: 18px;
}

.work-detail {
  padding: 26px;
  border: 1px solid var(--border);
  border-left: 2px solid var(--theme-color-feeb7c2f13);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.work-detail:hover {
  border-color: var(--border-strong);
  border-left-color: var(--accent);
  background: var(--surface-strong);
  transform: translateY(-3px);
}

.work-detail h2 {
  font-size: 1.55rem;
}


.work-detail p,
.work-points {
  color: var(--text-muted);
}

.work-detail p {
  margin-top: 18px;
}

.work-points {
  display: grid;
  gap: 7px;
  margin: 16px 0 18px;
  padding-left: 20px;
}



.scroll-cue {
  position: fixed;
  left: 50%;
  bottom: max(5vh, 20px);
  z-index: 8;
  display: grid;
  justify-items: center;
  gap: 22px;
  padding: 14px 22px;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transform: translateX(-50%);
  transition: opacity 180ms ease, visibility 180ms;
}

.scroll-cue__arrows {
  display: grid;
  grid-auto-rows: 11px;
  gap: 0;
  padding-bottom: 6px;
  transform: scale(0.8);
}

.scroll-cue__arrows span {
  width: 17px;
  height: 17px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  opacity: 0.2;
  transform: rotate(45deg);
  animation: scrollCueGlow 1.8s ease-in-out infinite;
}

.scroll-cue__arrows span:nth-child(2) { animation-delay: 160ms; }
.scroll-cue__arrows span:nth-child(3) { animation-delay: 320ms; }
.scroll-cue__label { font: 0.8rem var(--font-body); color: var(--theme-color-d14f901611); letter-spacing: 0.025em; white-space: nowrap; }
.scroll-cue:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; border-radius: 8px; }
.scroll-cue.is-dismissed { opacity: 0; visibility: hidden; pointer-events: none; }
.scroll-cue.is-dismissed .scroll-cue__arrows span { animation-play-state: paused; }

@keyframes scrollCueGlow {
  0%, 65%, 100% { opacity: 0.2; filter: drop-shadow(0 0 0 transparent); transform: translateY(0) rotate(45deg); }
  30% { opacity: 1; filter: drop-shadow(0 0 5px var(--theme-color-52f485af6e)); transform: translateY(4px) rotate(45deg); }
}





@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ambientDrift {
  0% {
    background-position: 0% 0%, 100% 8%, 48% 100%;
    transform: translate3d(-92px, -44px, 0) scale(1);
  }

  45% {
    background-position: 24% 18%, 72% 34%, 58% 74%;
    transform: translate3d(76px, 56px, 0) scale(1.06);
  }

  100% {
    background-position: 38% 10%, 58% 2%, 36% 82%;
    transform: translate3d(118px, -46px, 0) scale(1.03);
  }
}

@keyframes accentBreath {
  0%,
  100% {
    text-shadow: 0 0 0 var(--theme-color-4137b2be75);
  }

  50% {
    text-shadow:
      0 0 4px var(--theme-color-a76df91eb6),
      0 0 8px var(--theme-color-d0e994c6f4);
  }
}

@media (max-width: 860px) {
  h1 {
    font-size: 4rem;
  }

  h2 {
    font-size: 2.2rem;
  }

  .nav {
    align-items: flex-start;
    min-height: auto;
    padding: 16px 0;
    flex-direction: column;
    gap: 14px;
  }

  .site-search { width: min(100%, 280px); flex-basis: auto; }

  .nav--languages {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 16px;
  }
  .nav--languages .site-search { width: 100%; min-width: 0; }
  .nav--languages .nav-links { grid-column: 1 / -1; scrollbar-width: none; }
  .nav--languages .nav-links::-webkit-scrollbar { display: none; }
  .home-page main { padding-top: 124px; }
  .home-page .section { scroll-margin-top: 40px; }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .section-heading,
  .project-grid,
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: start;
    gap: 10px;
  }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .about-portrait {
    order: -1;
    justify-self: center;
    width: min(240px, 70vw);
    transform: translateY(8px);
  }

  .about-visual {
    min-height: 180px;
    justify-content: flex-start;
  }

  .sjtu-line-mark {
    width: min(280px, 72vw);
    opacity: 0.02;
  }

  .hero-summary {
    white-space: normal;
  }

  .hero-polyhedron {
    top: -390px;
    right: -760px;
    width: 1250px;
    height: 1250px;
    opacity: 0.22;
  }

  .card {
    min-height: auto;
  }

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

@media (max-width: 560px) {
  :root {
    --space-section: 28px;
    --space-page: 18px;
  }

  h1 {
    font-size: 2.8rem;
  }

  h2 {
    font-size: 1.9rem;
  }

  .hero-summary {
    font-size: 1.08rem;
  }

  .hero-polyhedron {
    display: none;
  }

  .eyebrow,
  .status {
    animation: none;
  }

  .nav-links {
    gap: 16px;
    font-size: 0.88rem;
  }

  .hero-links {
    flex-direction: column;
  }

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


  .card-header {
    flex-direction: column;
  }

  .publication-item {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 20px;
  }

  .publication-summary {
    white-space: normal;
  }

  .publication-year {
    padding-top: 0;
  }

  .game-gate__title-row {
    align-items: flex-start;
    gap: 12px;
  }

  .game-gate__mark {
    width: 72px;
  }

  .research-matrix {
    grid-template-columns: 1fr;
  }

  .about-visual {
    display: none;
  }
}

@media (hover: none) and (pointer: coarse) {
  body::after {
    filter: none;
    opacity: 0.28;
    animation: none;
    will-change: auto;
  }

  .site-header,
  .game-gate__panel,
  .code-modal__panel {
    backdrop-filter: none;
  }

  .hero-polyhedron,
  .about-visual {
    display: none;
  }

  .eyebrow,
  .status,
  .thinking-line-mark__glow,
  .thinking-line-mark__runner {
    animation: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-cue__arrows span { animation: none !important; opacity: 0.7; }
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }


  .cursor-field {
    display: none;
  }

  .hero-polyhedron {
    opacity: 0.22;
  }

  body::after {
    animation: none;
  }

  .card:hover,
  .skill-group:hover,
  .skill-group:focus-visible,
  .work-detail:hover,
  .research-cell:hover,
  .research-cell:focus-visible {
    transform: none;
  }

  .hover-tooltip {
    transition: opacity 0.001ms !important;
  }

}
.site-search { position: relative; width: min(500px, 44vw); }
.site-search input { width: 100%; height: 40px; padding: 0 14px; color: var(--text); font: 0.9rem var(--font-body); border: 1px solid var(--border); border-radius: 999px; outline: 0; background: var(--theme-color-e7d1bbbea9); transition: background-color 260ms ease, border-color 260ms ease; }
.site-search input:focus { border-color: var(--border-strong); background: var(--accent-soft); }
.site-search__results { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 20; display: none; padding: 6px; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--theme-color-a6ebffc33c); box-shadow: var(--shadow); }
.site-search.has-results .site-search__results { display: grid; gap: 3px; }
.site-search__result { display: grid; gap: 2px; padding: 9px 10px; color: var(--text); text-align: left; border: 0; border-radius: 5px; background: transparent; cursor: pointer; }
.site-search__result:hover, .site-search__result:focus-visible { background: var(--accent-soft); outline: 0; }
.site-search__result span, .site-search__empty { color: var(--accent); font: 0.7rem var(--font-body); }
.site-search__empty { margin: 8px 10px; }
.search-highlight { padding: 0; color: inherit; background: var(--theme-color-5ab0ccd974); border-radius: 2px; box-shadow: inset 0 -0.08em 0 var(--theme-color-99270e926b); }

.timeline-invitation { margin-top: 10px; }
.timeline-link {
  position: relative;
  display: inline-block;
  padding-bottom: 5px;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
}

.home-page :is(.eyebrow, .status)[data-accent-text] {
  position: relative;
  animation: none;
}
.home-page :is(.eyebrow, .status)[data-accent-text]::after {
  content: attr(data-accent-text) / "";
  position: absolute;
  inset: 0;
  padding: inherit;
  color: transparent;
  text-shadow: 0 0 4px var(--theme-color-a76df91eb6), 0 0 8px var(--theme-color-d0e994c6f4);
  pointer-events: none;
  opacity: 0;
  animation: accentGlowOpacity 6.8s ease-in-out 1s infinite backwards;
}
@keyframes accentGlowOpacity {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .home-page :is(.eyebrow, .status)[data-accent-text]::after { animation: none; }
  .home-page .hero-content { will-change: auto; }
}
.timeline-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
  animation: timelineLinkPulse 2.6s ease-in-out infinite;
}
.timeline-link:hover { color: var(--text); }
.timeline-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
@keyframes timelineLinkPulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .timeline-link::after { animation: none; opacity: 0.7; }
}
