:root {
  --bg: transparent;
  --surface: rgba(255, 255, 255, 0.22);
  --surface-strong: rgba(255, 255, 255, 0.38);
  --ink: #111111;
  --muted: #575757;
  --soft: #8d8d8d;
  --line: rgba(18, 18, 18, 0.1);
  --line-strong: rgba(18, 18, 18, 0.16);
  --warm: #a4745d;
  --shadow: 0 34px 96px rgba(58, 49, 39, 0.15);
  --serif: "Bodoni 72", Didot, "Cormorant Garamond", Georgia, "Noto Serif SC", "Songti SC", serif;
  --sans: Inter, Manrope, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  letter-spacing: 0;
  position: relative;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 1;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.08) 48%, rgba(255, 255, 255, 0.2)),
    radial-gradient(circle at 22% 34%, rgba(255, 255, 255, 0.34), transparent 32%);
}

body.is-dark::before {
  background: linear-gradient(90deg, rgba(8, 8, 8, 0.42), rgba(8, 8, 8, 0.12), rgba(8, 8, 8, 0.34));
}

.page-video {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: saturate(0.96) contrast(1.02);
  transition: opacity 700ms ease;
}

.page-video.is-ready {
  opacity: 1;
}

main,
.site-footer {
  position: relative;
  z-index: 2;
}

body.is-dark {
  --bg: transparent;
  --surface: rgba(22, 22, 20, 0.24);
  --surface-strong: rgba(29, 29, 27, 0.42);
  --ink: #f5f1e8;
  --muted: #c8c1b8;
  --soft: #a8a097;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --warm: #d2a58a;
  --shadow: 0 34px 96px rgba(0, 0, 0, 0.38);
}

body.is-dark .hero-text,
body.is-dark .about-copy p,
body.is-dark .profile-meta,
body.is-dark .stack-list li,
body.is-dark .education-panel,
body.is-dark .identity-row span,
body.is-dark .experience-card small,
body.is-dark .experience-card time,
body.is-dark .demo-card small,
body.is-dark .thought-list small,
body.is-dark .thought-list time {
  color: rgba(245, 241, 232, 0.76);
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  transform: translateY(-140%);
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 16px;
  font-size: 13px;
  transition: transform 180ms ease;
}

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

.site-header {
  position: fixed;
  z-index: 40;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 1fr minmax(168px, 240px);
  align-items: center;
  gap: 20px;
  padding: 22px clamp(22px, 4vw, 58px);
  color: #111111;
  transition: color 220ms ease, background 220ms ease, backdrop-filter 220ms ease;
}

body.is-dark .site-header {
  color: #f7f2ea;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--line);
}

body.is-dark .site-header.is-scrolled {
  background: rgba(15, 15, 14, 0.28);
}

.nav-links {
  display: flex;
  justify-content: flex-start;
  gap: clamp(18px, 3vw, 44px);
  font-size: 12px;
  color: rgba(17, 17, 17, 0.62);
}

body.is-dark .nav-links {
  color: rgba(247, 242, 234, 0.68);
}

.nav-links a {
  position: relative;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav-links a::after {
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 4px;
  height: 4px;
  content: "";
  transform: translateX(-50%) scale(0);
  border-radius: 50%;
  background: currentColor;
  transition: transform 180ms ease;
}

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

.nav-links a.is-active::after,
.nav-links a:hover::after {
  transform: translateX(-50%) scale(1);
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}

.theme-toggle,
.contact-button {
  min-height: 44px;
  border: 0;
  cursor: pointer;
}

.theme-toggle {
  width: 50px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: 0 8px 24px rgba(33, 27, 21, 0.11);
  display: inline-flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 8px;
}

.moon,
.sun {
  position: relative;
  width: 13px;
  height: 13px;
  display: block;
  border-radius: 50%;
}

.moon {
  background: #111111;
}

.moon::after {
  position: absolute;
  right: -2px;
  top: -1px;
  width: 10px;
  height: 10px;
  content: "";
  border-radius: 50%;
  background: #ffffff;
}

.sun {
  border: 2px solid #111111;
}

.contact-button,
.primary-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #111111;
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(10, 10, 10, 0.18);
  font-size: 12px;
  font-weight: 520;
}

.contact-button {
  padding: 0 22px;
}

.hero {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  isolation: isolate;
  background: transparent;
}

.hero-fallback,
.hero-scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-fallback {
  z-index: -2;
  background:
    radial-gradient(circle at 21% 45%, rgba(255, 255, 255, 0.2), transparent 34%),
    radial-gradient(circle at 72% 40%, rgba(149, 135, 121, 0.08), transparent 33%);
  animation: fallbackDrift 12s ease-in-out infinite alternate;
}

.hero-scrim {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.03) 54%, rgba(255, 255, 255, 0.09)),
    radial-gradient(circle at 45% 22%, rgba(255, 255, 255, 0.22), transparent 24%);
  backdrop-filter: blur(0.5px);
}

body.is-dark .hero-scrim {
  background: linear-gradient(90deg, rgba(10, 10, 10, 0.62), rgba(10, 10, 10, 0.2), rgba(10, 10, 10, 0.5));
}

.hero-copy {
  position: relative;
  z-index: 4;
  width: min(440px, calc(100% - 40px));
  padding-top: 180px;
  margin-left: clamp(32px, 15vw, 230px);
}

.eyebrow {
  margin: 0;
  color: var(--warm);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.2;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0;
}

h1 {
  margin: 6px 0 12px;
  font-size: clamp(58px, 7vw, 98px);
  line-height: 0.96;
  font-family: var(--serif);
  font-weight: 500;
}

.hero-subtitle {
  margin: 0 0 22px;
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.26;
  font-weight: 600;
}

.hero-text {
  max-width: 370px;
  margin: 0;
  color: rgba(17, 17, 17, 0.76);
  font-size: 15px;
  line-height: 1.92;
  font-weight: 500;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 34px;
  font-size: 13px;
}

.primary-pill {
  min-height: 48px;
  padding: 0 28px;
  gap: 8px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.primary-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(10, 10, 10, 0.22);
}

.text-link {
  color: #2f2f2f;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

body.is-dark .text-link {
  color: var(--ink);
}

.stage-visual {
  position: absolute;
  z-index: 2;
  right: clamp(52px, 8vw, 142px);
  top: 92px;
  width: min(48vw, 590px);
  height: 430px;
}

.arch {
  position: absolute;
  right: 118px;
  top: 0;
  width: 276px;
  height: 350px;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 150px 150px 0 0;
  background: linear-gradient(145deg, rgba(216, 220, 224, 0.94), rgba(249, 250, 250, 0.94));
  box-shadow: -24px 22px 0 rgba(88, 79, 70, 0.25);
  animation: floatArch 5s ease-in-out infinite alternate;
}

.platform {
  position: absolute;
  right: 0;
  bottom: 34px;
  width: 540px;
  height: 82px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffffff, #d8d5cf);
  box-shadow: 0 34px 82px rgba(54, 46, 38, 0.23);
}

.sphere {
  position: absolute;
  right: 132px;
  bottom: 108px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 26%, #ffffff, #b6b5b1);
  box-shadow: 0 20px 38px rgba(0, 0, 0, 0.16);
  animation: floatSphere 4.6s ease-in-out infinite alternate;
}

.branch {
  position: absolute;
  right: 344px;
  bottom: 108px;
  width: 78px;
  height: 144px;
  border-left: 1px solid rgba(139, 105, 76, 0.42);
}

.branch span {
  position: absolute;
  width: 34px;
  height: 34px;
  border-top: 1px solid rgba(139, 105, 76, 0.46);
  border-radius: 50%;
}

.branch span:nth-child(1) {
  left: -18px;
  top: 8px;
}

.branch span:nth-child(2) {
  left: 4px;
  top: 45px;
  width: 26px;
  height: 26px;
}

.branch span:nth-child(3) {
  left: -10px;
  top: 84px;
  width: 22px;
  height: 22px;
}

.scroll-indicator {
  position: absolute;
  z-index: 4;
  bottom: 32px;
  left: 50%;
  width: 17px;
  height: 29px;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.96);
  border-radius: 999px;
}

.scroll-indicator::after {
  position: absolute;
  left: 50%;
  top: 6px;
  width: 3px;
  height: 6px;
  content: "";
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  animation: scrollDot 1.8s ease-in-out infinite;
}

.content-shell {
  position: relative;
  z-index: 10;
  width: min(1500px, calc(100% - 64px));
  margin: -48px auto 0;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 22px;
  background: var(--surface);
  backdrop-filter: blur(14px) saturate(1.08);
  box-shadow: 0 30px 86px rgba(58, 49, 39, 0.11);
  overflow: hidden;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 42px 46px;
  border-bottom: 1px solid var(--line);
}

.about-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  align-items: center;
  gap: 32px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.avatar-wrap {
  position: relative;
  width: 196px;
  height: 196px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  box-shadow: 0 22px 44px rgba(20, 20, 20, 0.18);
  overflow: hidden;
}

.avatar-wrap img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 50%;
  filter: contrast(1.05) saturate(0.92);
}

.about-copy h2,
.section-heading h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.16;
}

.identity-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 18px;
  margin-top: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
  box-shadow: 0 14px 30px rgba(20, 20, 20, 0.06);
}

.identity-row span {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: rgba(17, 17, 17, 0.76);
  font-size: 15px;
  font-weight: 700;
}

.identity-row b {
  color: rgba(17, 17, 17, 0.48);
  font-size: 12px;
  font-weight: 600;
}

.about-copy p {
  margin: 18px 0 0;
  color: rgba(17, 17, 17, 0.76);
  font-size: 15px;
  line-height: 1.96;
  font-weight: 500;
}

.profile-meta {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 20px;
  margin: 22px 0 0;
  color: rgba(17, 17, 17, 0.72);
  font-size: 13px;
  font-weight: 500;
}

.profile-meta div {
  min-width: 0;
}

.profile-meta dt {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.profile-meta dd {
  margin: 0;
}

.school-badge {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: transparent;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  overflow: hidden;
}

.school-badge img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.education-panel {
  display: grid;
  gap: 14px;
  margin-top: 0;
  padding: 22px 0 20px;
  border: 1px solid var(--line);
  border-width: 0 0 1px;
  border-radius: 18px;
  background: transparent;
  box-shadow: none;
}

.education-panel h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.16;
}

.education-title {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) max-content;
  gap: 16px;
  align-items: center;
  min-height: 76px;
}

.education-title .school-badge {
  align-self: center;
  justify-self: center;
  width: 68px;
  height: 68px;
  font-size: 14px;
  box-shadow: none;
}

.education-title strong {
  display: block;
  color: var(--ink);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.45;
}

.education-period {
  justify-self: end;
  color: var(--ink);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.45;
  white-space: nowrap;
}

.course-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-left: 0;
}

.course-list span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: rgba(17, 17, 17, 0.7);
  padding: 0 12px;
  font-size: 13px;
  font-weight: 600;
}

body.is-dark .course-list span,
body.is-dark .identity-row b {
  color: rgba(245, 241, 232, 0.72);
}

.stack-card {
  padding-top: 22px;
  padding-left: 0;
  border-left: 0;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.section-heading a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--soft);
  font-size: 12px;
  white-space: nowrap;
}

.stack-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 22px 18px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.stack-list li {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  color: rgba(17, 17, 17, 0.78);
  font-size: 14px;
  font-weight: 700;
}

.skill-img,
.stack-icon,
.skill-tile {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
}

.skill-img {
  display: block;
  object-fit: contain;
}

.skill-tile {
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #f4f4f4;
  box-shadow: inset 0 0 0 1px rgba(17, 17, 17, 0.08);
}

.skill-tile .skill-img {
  width: 27px;
  height: 27px;
}

.stack-icon {
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #1f2933;
  font-size: 11px;
  font-weight: 800;
  border: 1px solid rgba(17, 17, 17, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.spring-ai { background: linear-gradient(135deg, #dff4d6, #8dcc72); }
.agent { background: linear-gradient(135deg, #ebe6ff, #b7a6f3); }
.langchain { background: linear-gradient(135deg, #dff7ec, #87d7ad); }
.langgraph { background: linear-gradient(135deg, #e4f7f1, #86d7c2); }
.rocketmq { background: linear-gradient(135deg, #ffe5dc, #f2a083); }
.rag { background: linear-gradient(135deg, #e1f4ff, #83c9ef); color: #17435b; }

.section-block {
  padding: 30px 46px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

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

.project-card {
  position: relative;
  min-height: 180px;
  overflow: hidden;
  border-radius: 12px;
  color: #ffffff;
  isolation: isolate;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.11);
  opacity: 0.88;
  backdrop-filter: blur(10px);
  transition: transform 220ms ease, box-shadow 220ms ease, filter 220ms ease;
}

.project-card::before,
.project-card::after {
  position: absolute;
  inset: 0;
  content: "";
}

.project-card::before {
  z-index: -2;
  transition: transform 380ms ease;
}

.project-card::after {
  z-index: -1;
  background: linear-gradient(180deg, rgba(5, 8, 12, 0.02) 15%, rgba(5, 8, 12, 0.68));
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 42px rgba(0, 0, 0, 0.18);
  opacity: 0.96;
}

.project-card:hover::before {
  transform: scale(1.06);
}

.project-vibely::before {
  background:
    radial-gradient(ellipse at 62% 52%, rgba(198, 209, 218, 0.28), transparent 28%),
    radial-gradient(ellipse at 30% 18%, rgba(98, 116, 130, 0.26), transparent 38%),
    linear-gradient(150deg, #182028, #2b3640 58%, #222b33);
}

.multimodal-card {
  min-height: 210px;
}

.multimodal-card::after {
  background:
    linear-gradient(180deg, rgba(12, 18, 24, 0.08) 0%, rgba(12, 18, 24, 0.34) 42%, rgba(12, 18, 24, 0.86) 100%),
    radial-gradient(circle at 72% 18%, rgba(255, 255, 255, 0.18), transparent 16%);
}

.multimodal-card .project-body {
  top: 34px;
  bottom: 34px;
  align-content: center;
  gap: 13px;
}

.multimodal-card .project-body strong {
  max-width: 88%;
  font-size: clamp(22px, 2.1vw, 32px);
  line-height: 1.12;
  letter-spacing: 0;
}

.multimodal-card .project-body span {
  max-width: 94%;
  font-size: 15px;
  line-height: 1.68;
  opacity: 0.95;
}

.multimodal-card .project-body small {
  margin-top: 2px;
  font-size: 13px;
  opacity: 0.86;
}

.project-admin .project-body strong {
  font-size: clamp(34px, 3.2vw, 54px);
  letter-spacing: 0.01em;
}

.project-admin .project-body span {
  max-width: 92%;
}

.project-admin .project-body,
.project-photo .project-body,
.project-blog .project-body {
  top: 34px;
  bottom: 34px;
  align-content: center;
  gap: 14px;
}

.project-photo .project-body strong,
.project-blog .project-body strong {
  max-width: 92%;
  font-size: clamp(21px, 1.9vw, 30px);
  line-height: 1.15;
}

.project-photo .project-body strong {
  max-width: 96%;
  font-size: clamp(26px, 2.15vw, 36px);
  line-height: 1.18;
}

.project-photo .project-body span,
.project-blog .project-body span {
  max-width: 92%;
}

.project-admin::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 10%, transparent 10% 100%),
    repeating-linear-gradient(0deg, rgba(130, 168, 190, 0.2) 0 1px, transparent 1px 24px),
    radial-gradient(circle at 72% 24%, rgba(130, 180, 210, 0.26), transparent 18%),
    linear-gradient(150deg, #17212a, #2a3741 54%, #11181f);
}

.project-photo::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 38px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 38px),
    radial-gradient(circle at 62% 33%, rgba(255, 211, 139, 0.72), rgba(255, 179, 82, 0.24) 14%, transparent 30%),
    radial-gradient(circle at 30% 72%, rgba(105, 136, 170, 0.2), transparent 24%),
    linear-gradient(145deg, #151515, #302a25 52%, #5a4b3d);
}

.project-blog::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 34px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 34px),
    radial-gradient(circle at 72% 30%, rgba(71, 145, 255, 0.48), transparent 22%),
    radial-gradient(circle at 28% 72%, rgba(82, 214, 166, 0.24), transparent 26%),
    linear-gradient(145deg, #111927, #1d2b3b 52%, #22362f);
}

.external-mark {
  position: absolute;
  right: 16px;
  top: 14px;
  z-index: 1;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.project-body {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 7px;
  justify-items: center;
  text-align: center;
}

.project-body strong {
  font-size: clamp(18px, 1.55vw, 24px);
  font-weight: 700;
  line-height: 1.18;
}

.project-body span {
  font-size: 14px;
  line-height: 1.62;
  opacity: 0.94;
  font-weight: 520;
}

.project-body small {
  font-size: 12px;
  opacity: 0.84;
  font-weight: 500;
}

.lower-grid {
  display: grid;
  grid-template-columns: 0.96fr 1.55fr;
}

.lower-grid.experience-only {
  grid-template-columns: 1fr;
}

.lower-grid .section-block {
  border-bottom: 1px solid var(--line);
}

.experience {
  border-right: 1px solid var(--line);
}

.experience-only .experience {
  border-right: 0;
}

.experience-list {
  display: grid;
  gap: 13px;
}

.experience-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 58px;
  align-items: center;
  gap: 13px;
  min-height: 72px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  color: var(--muted);
  transition: background 180ms ease, transform 180ms ease;
}

.experience-card:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateX(3px);
}

.company-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.company-ai {
  background: linear-gradient(135deg, #101010, #8468e8);
}

.company-java {
  background: #d24a32;
}

.company-agent {
  background: linear-gradient(135deg, #1f8f65, #111111);
}

.experience-card strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.experience-card small {
  display: block;
  overflow: hidden;
  margin-top: 4px;
  color: rgba(17, 17, 17, 0.62);
  font-size: 12px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.experience-card time {
  color: rgba(17, 17, 17, 0.6);
  font-size: 12px;
  font-weight: 600;
  text-align: right;
}

.thought-list {
  display: grid;
  gap: 13px;
}

.thought-list a {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 86px;
  align-items: center;
  gap: 13px;
  min-height: 52px;
  color: var(--muted);
  font-size: 12px;
  border-radius: 12px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  transition: background 180ms ease, transform 180ms ease;
}

.thought-list a:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateX(3px);
}

body.is-dark .thought-list a,
body.is-dark .experience-card,
body.is-dark .demo-card {
  background: rgba(20, 20, 18, 0.18);
}

body.is-dark .experience-card:hover,
body.is-dark .thought-list a:hover {
  background: rgba(20, 20, 18, 0.28);
}

.thought-list strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.thought-list small {
  display: block;
  overflow: hidden;
  margin-top: 4px;
  color: rgba(17, 17, 17, 0.62);
  font-size: 12px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.thought-list time {
  color: rgba(17, 17, 17, 0.6);
  font-size: 12px;
  font-weight: 500;
  text-align: right;
}

.thought-thumb {
  height: 42px;
  border-radius: 9px;
}

.thumb-blue { background: linear-gradient(135deg, #dfe8ef, #8aa1b4); }
.thumb-cyan { background: linear-gradient(135deg, #cfe8f3, #5f8aa0); }
.thumb-warm { background: linear-gradient(135deg, #e7ded0, #b08f70); }

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

.demo-card {
  min-width: 0;
  display: grid;
  gap: 7px;
  border-radius: 12px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  transition: transform 200ms ease;
}

.demo-card:hover {
  transform: translateY(-4px);
}

.demo-media {
  height: 94px;
  overflow: hidden;
  border-radius: 10px;
  position: relative;
}

.particles {
  background: radial-gradient(circle, #7d6fe6, #111527 60%);
}

.particles::after {
  position: absolute;
  inset: 18px;
  content: "";
  border-radius: 50%;
  background:
    radial-gradient(circle at 20% 30%, #ffffff 0 1px, transparent 2px),
    radial-gradient(circle at 65% 22%, #ffffff 0 1px, transparent 2px),
    radial-gradient(circle at 54% 72%, #ffffff 0 1px, transparent 2px),
    radial-gradient(circle at 82% 54%, #ffffff 0 1px, transparent 2px);
  opacity: 0.8;
  animation: particleSpin 4s linear infinite;
}

.dashboard {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.16) 10%, transparent 10%),
    radial-gradient(circle at 62% 42%, #52d2f2, transparent 16%),
    linear-gradient(135deg, #17314a, #9fd8ef);
}

.sortable {
  background:
    repeating-linear-gradient(0deg, #ffffff 0 18px, #ececec 18px 20px),
    #ededed;
}

.theme-demo {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.5), transparent 45%),
    linear-gradient(135deg, #e7ded0, #9f8066);
}

.demo-card strong {
  overflow: hidden;
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.demo-card small {
  overflow: hidden;
  color: rgba(17, 17, 17, 0.68);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.demo-card em {
  width: max-content;
  border-radius: 999px;
  background: rgba(79, 137, 216, 0.12);
  color: #4f76c9;
  padding: 4px 8px;
  font-size: 11px;
  font-style: normal;
}

.site-footer {
  width: min(1500px, calc(100% - 64px));
  min-height: 86px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: var(--soft);
  font-size: 12px;
}

.footer-meta {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
  line-height: 1.35;
}

.footer-meta p {
  margin: 0;
}

.footer-meta a {
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  font-weight: 560;
  text-decoration: none;
  transition: color 180ms ease, opacity 180ms ease;
}

.footer-meta a:hover {
  color: #ffffff;
}

.back-top {
  position: absolute;
  right: 8px;
  top: 16px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-strong);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 24px rgba(40, 32, 25, 0.1);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms ease, transform 700ms ease;
}

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

@keyframes fallbackDrift {
  from { transform: scale(1) translate3d(0, 0, 0); }
  to { transform: scale(1.04) translate3d(-16px, 10px, 0); }
}

@keyframes floatArch {
  from { transform: translateY(8px); }
  to { transform: translateY(-8px); }
}

@keyframes floatSphere {
  from { transform: translateY(5px) translateX(0); }
  to { transform: translateY(-9px) translateX(-6px); }
}

@keyframes scrollDot {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.4; }
  45% { transform: translate(-50%, 9px); opacity: 1; }
}

@keyframes particleSpin {
  to { transform: rotate(360deg); }
}

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    gap: 20px;
  }

  .stage-visual {
    right: -40px;
    opacity: 0.74;
  }

  .intro-grid,
  .lower-grid {
    grid-template-columns: 1fr;
  }

  .stack-card,
  .experience {
    border-left: 0;
    border-right: 0;
    padding-left: 0;
  }

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

@media (max-width: 860px) {
  .site-header {
    padding: 16px 18px;
    grid-template-columns: auto auto;
  }

  .nav-links {
    order: 3;
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .header-actions {
    gap: 8px;
  }

  .contact-button {
    display: none;
  }

  .hero {
    min-height: 760px;
  }

  .hero-copy {
    padding-top: 172px;
    margin-left: 24px;
  }

  .stage-visual {
    top: 390px;
    right: -118px;
    width: 560px;
    transform: scale(0.7);
    transform-origin: top right;
  }

  .content-shell,
  .site-footer {
    width: min(100% - 28px, 720px);
  }

  .content-shell {
    margin-top: -32px;
  }

  .intro-grid,
  .section-block {
    padding: 28px 20px;
  }

  .about-card {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .avatar-wrap {
    width: 184px;
    height: 184px;
  }

  .stack-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .project-grid,
  .demo-grid {
    grid-template-columns: 1fr;
  }

  .thought-list a,
  .experience-card {
    grid-template-columns: 50px minmax(0, 1fr);
  }

  .thought-list time,
  .experience-card time {
    grid-column: 2;
    text-align: left;
  }

}

@media (max-width: 520px) {
  .hero-copy {
    width: calc(100% - 44px);
  }

  h1 {
    font-size: 74px;
  }

  .hero-cta {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .intro-grid {
    gap: 28px;
  }

  .profile-meta,
  .identity-row,
  .stack-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .course-list {
    padding-left: 0;
  }

  .education-title {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .education-period {
    grid-column: 2;
    justify-self: start;
  }
}

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

  .page-video {
    display: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
