:root {
  color-scheme: light;
  --ink: #171717;
  --muted: #65645f;
  --line: #dfddd5;
  --paper: #f6f2ea;
  --white: #ffffff;
  --gold: #a88f5b;
  --red: #8f3d2f;
  --blue: #284a5f;
  --green: #355848;
  --cyan: #89d7cc;
  --coral: #df7765;
  --lime: #d8f28f;
  --shadow: 0 24px 70px rgba(46, 39, 28, 0.12);
}

body[data-theme="dark"] {
  --ink: #f4f0e7;
  --muted: #b9c0ca;
  --line: rgba(244, 240, 231, 0.18);
  --paper: #0f1418;
  --white: #182027;
  --red: #ff8a76;
  --blue: #8cc8ef;
  color: var(--ink);
  background:
    linear-gradient(120deg, rgba(103, 216, 214, 0.16), transparent 28%),
    linear-gradient(300deg, rgba(240, 100, 73, 0.18), transparent 30%),
    #111318;
}

body[data-theme="dark"]::before {
  background: radial-gradient(circle at var(--mx) var(--my), rgba(103, 216, 214, 0.18), transparent 26rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 16% 10%, rgba(137, 215, 204, 0.22), transparent 24rem),
    radial-gradient(circle at 86% 18%, rgba(223, 119, 101, 0.12), transparent 22rem),
    var(--paper);
  letter-spacing: 0;
  --mx: 50%;
  --my: 18%;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -5;
  pointer-events: none;
  background: radial-gradient(circle at var(--mx) var(--my), rgba(103, 216, 214, 0.2), transparent 26rem);
}

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

button {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(360px, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 56px);
  border-bottom: 1px solid rgba(20, 20, 20, 0.1);
  background: rgba(244, 247, 250, 0.88);
  backdrop-filter: blur(16px);
}

body[data-theme="dark"] .topbar {
  background: rgba(17, 19, 24, 0.84);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
}

.brand strong {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.brand span {
  color: var(--muted);
  font-size: 14px;
  font-family: "Cascadia Mono", "SF Mono", Consolas, monospace;
  white-space: nowrap;
}

nav {
  display: flex;
  gap: clamp(14px, 2vw, 30px);
  justify-content: center;
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.top-actions {
  position: relative;
  display: flex;
  gap: 8px;
}

.icon-button,
.ask-close,
.suggestion,
.ask-form button {
  border: 1px solid rgba(20, 20, 20, 0.18);
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
}

.icon-button {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  white-space: nowrap;
  transition: transform 0.18s ease, background 0.18s ease;
}

.icon-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-button:hover {
  transform: translateY(-2px);
  background: var(--white);
}

.ask-toggle {
  color: var(--white);
  background: var(--ink);
}

body[data-theme="dark"] .ask-toggle {
  color: #111318;
  background: #f4f0e7;
}

body[data-theme="dark"] .icon-button {
  color: #f4f0e7;
  background: rgba(244, 240, 231, 0.1);
  border-color: rgba(244, 240, 231, 0.25);
}

body[data-theme="dark"] .icon-button:hover {
  background: rgba(244, 240, 231, 0.18);
}

body[data-theme="dark"] .ask-toggle {
  color: #101418;
  background: #f4f0e7;
}

.contact-menu {
  position: relative;
}

.contact-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  z-index: 30;
  width: 270px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
  color: var(--ink);
  transform: translateY(-6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.contact-popover[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.contact-popover p {
  margin-bottom: 14px;
  color: var(--muted);
  font-family: "Comic Sans MS", "Segoe Print", cursive;
  font-size: 17px;
  line-height: 1.35;
}

.contact-popover a,
.contact-popover > span {
  display: block;
  padding: 8px 0;
  color: var(--ink);
  font-size: 13px;
  border-top: 1px solid var(--line);
}

.hero {
  position: relative;
  min-height: calc(100vh - 74px);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 430px);
  gap: clamp(34px, 6vw, 86px);
  align-items: center;
  padding: 70px clamp(20px, 5vw, 72px) 42px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(20, 20, 20, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(20, 20, 20, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, black, transparent 72%);
}

.hero::after {
  content: "";
  position: absolute;
  right: -10vw;
  top: 0;
  z-index: -1;
  width: 52vw;
  height: 100%;
  background:
    linear-gradient(135deg, rgba(40, 74, 95, 0.12), rgba(137, 215, 204, 0.18), transparent 62%);
  clip-path: polygon(28% 0, 100% 0, 100% 100%, 0 100%);
}

@keyframes drift {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 260px 0;
  }
}

.ambient-field {
  display: none;
}

.ambient-field span {
  position: absolute;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(20, 20, 20, 0.16);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.12);
  animation: floatNode 12s ease-in-out infinite;
}

.ambient-field span:nth-child(1) {
  left: 8vw;
  top: 12vh;
}

.ambient-field span:nth-child(2) {
  right: 30vw;
  bottom: 8vh;
  width: 180px;
  height: 180px;
  animation-delay: -4s;
}

.ambient-field span:nth-child(3) {
  right: 8vw;
  top: 18vh;
  width: 120px;
  height: 120px;
  animation-delay: -7s;
}

@keyframes floatNode {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(16px, -22px, 0) scale(1.06);
  }
}

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

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 850px;
  margin-bottom: 24px;
  font-size: clamp(46px, 5.6vw, 82px);
  line-height: 0.96;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero-subline {
  display: block;
  max-width: 700px;
  margin-top: 18px;
  color: #30302d;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 650;
  line-height: 1.12;
}

.hero-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0.98em;
  height: 0.98em;
  padding: 0 0.18em;
  margin: 0 0.05em;
  border-radius: 999px;
  color: #0f1720;
  font-size: 0.7em;
  line-height: 1;
  vertical-align: 0.04em;
  box-shadow: inset 0 -0.08em 0 rgba(0, 0, 0, 0.1);
}

.hero-mark.smile {
  width: 0.96em;
  background: #ffc83d;
  font-weight: 900;
}

.hero-mark.code {
  background: #a9d8ff;
}

.hero-mark.trade {
  background: #f6b7ad;
}

.hero-mark.data {
  background: #b9e6de;
}

.lead {
  max-width: 620px;
  color: #3e3b35;
  font-size: clamp(16px, 1.55vw, 20px);
  line-height: 1.75;
}

.lead.is-empty,
.signal-strip:empty {
  display: none;
}

body[data-theme="dark"] .lead,
body[data-theme="dark"] .signal-strip span {
  color: #d8d2c7;
}

body[data-theme="dark"] .hero {
  color: #f4f0e7;
  background:
    radial-gradient(circle at 18% 34%, rgba(103, 216, 214, 0.16), transparent 24rem),
    linear-gradient(120deg, #111a1f, #0f1418 74%);
}

body[data-theme="dark"] .hero::before {
  background:
    linear-gradient(90deg, rgba(244, 240, 231, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(244, 240, 231, 0.06) 1px, transparent 1px);
}

body[data-theme="dark"] .hero-panel,
body[data-theme="dark"] .taxonomy,
body[data-theme="dark"] .report-card,
body[data-theme="dark"] .resume-frame-wrap,
body[data-theme="dark"] .blog-grid article,
body[data-theme="dark"] .habit-grid article {
  color: #f4f0e7;
  background: rgba(24, 32, 39, 0.88);
  border-color: rgba(244, 240, 231, 0.18);
}

body[data-theme="dark"] .profile-tags span {
  color: #f4f0e7;
  background: rgba(244, 240, 231, 0.08);
  border-color: rgba(244, 240, 231, 0.18);
}

body[data-theme="dark"] .career-list p,
body[data-theme="dark"] .card-meta,
body[data-theme="dark"] .report-card p,
body[data-theme="dark"] .taxonomy li,
body[data-theme="dark"] .section-heading p,
body[data-theme="dark"] .intro > p {
  color: #cbd1d9;
}

body[data-theme="dark"] .intro,
body[data-theme="dark"] .library,
body[data-theme="dark"] .resume-preview,
body[data-theme="dark"] .blog {
  color: #f4f0e7;
  background:
    linear-gradient(135deg, rgba(20, 29, 35, 0.98), rgba(15, 20, 24, 0.94)),
    #0f1418;
}

body[data-theme="dark"] .section-kicker,
body[data-theme="dark"] .eyebrow {
  color: #ff9b8b;
}

body[data-theme="dark"] .filter {
  color: #d8d2c7;
  border-color: rgba(244, 240, 231, 0.28);
}

body[data-theme="dark"] .filter.active,
body[data-theme="dark"] .button.primary,
body[data-theme="dark"] .file-link {
  color: #101418;
  background: #f4f0e7;
  border-color: #f4f0e7;
}

body[data-theme="dark"] .button.ghost {
  color: #f4f0e7;
  border-color: rgba(244, 240, 231, 0.72);
  background: rgba(244, 240, 231, 0.06);
}

body[data-theme="dark"] .signal-strip span,
body[data-theme="dark"] .card-tags span {
  color: #f4f0e7;
  background: rgba(244, 240, 231, 0.1);
  border-color: rgba(244, 240, 231, 0.22);
}

body[data-theme="dark"] .lab,
body[data-theme="dark"] .fun-habits,
body[data-theme="dark"] .footer {
  color: #f4f0e7;
}

body[data-theme="dark"] .lab-copy h2,
body[data-theme="dark"] .lab-node strong,
body[data-theme="dark"] .lab-core strong,
body[data-theme="dark"] .case-feature h3,
body[data-theme="dark"] .case-feature.dark h3,
body[data-theme="dark"] .footer h2,
body[data-theme="dark"] .fun-habits h2 {
  color: #f4f0e7;
}

body[data-theme="dark"] .lab-copy p:last-child,
body[data-theme="dark"] .lab-node p,
body[data-theme="dark"] .lab-core span,
body[data-theme="dark"] .lab-core small,
body[data-theme="dark"] .case-feature p,
body[data-theme="dark"] .case-feature.dark p,
body[data-theme="dark"] .case-feature.dark .case-flow {
  color: #d8dee8;
}

body[data-theme="dark"] .case-feature,
body[data-theme="dark"] .case-feature.dark {
  color: #f4f0e7;
  background:
    linear-gradient(145deg, rgba(24, 32, 39, 0.96), rgba(12, 16, 20, 0.94)),
    repeating-linear-gradient(135deg, rgba(103, 216, 214, 0.09) 0 10px, transparent 10px 26px);
  border-color: rgba(244, 240, 231, 0.3);
}

body[data-theme="dark"] .case-flow span {
  color: #101418;
  background: rgba(244, 240, 231, 0.88);
  border-color: rgba(244, 240, 231, 0.88);
}

body[data-theme="dark"] .open-deck,
body[data-theme="dark"] .slide-controls button {
  color: #f4f0e7;
  border-color: rgba(244, 240, 231, 0.42);
}

.hero-actions,
.slide-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.signal-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 720px;
  margin-top: 24px;
}

.signal-strip span {
  border: 1px solid rgba(20, 20, 20, 0.18);
  border-radius: 6px;
  padding: 9px 11px;
  background: rgba(255, 253, 248, 0.56);
  color: #34312b;
  font-size: 12px;
  font-weight: 800;
}

.button,
.open-deck,
.filter,
.file-link,
.slide-controls button,
.close-modal {
  border: 1px solid var(--ink);
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.file-link,
.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 18px;
  font-weight: 700;
}

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

.ghost {
  background: rgba(255, 253, 248, 0.44);
}

.button:hover,
.open-deck:hover,
.filter:hover,
.slide-controls button:hover {
  transform: translateY(-2px);
}

.hero-panel {
  position: relative;
  padding: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(23, 23, 23, 0.12);
  border-radius: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.portrait-panel {
  display: grid;
  gap: 18px;
}

.portrait-frame {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  border-radius: 14px;
  overflow: hidden;
  background: #222;
}

.portrait-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 58%, rgba(0, 0, 0, 0.38)),
    radial-gradient(circle at 20% 8%, rgba(255, 255, 255, 0.14), transparent 28%);
  pointer-events: none;
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 22%;
  filter: saturate(0.95) contrast(1.03);
}

.career-list {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 10px 16px;
  align-items: baseline;
  padding: 0 2px 2px;
}

.career-list span {
  color: var(--muted);
  font-family: "Cascadia Mono", "SF Mono", Consolas, monospace;
  font-size: 11px;
}

.career-list a {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.career-list a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.career-list p {
  grid-column: 2;
  margin: -8px 0 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.hero-panel::before {
  content: none;
}

.panel-top,
.card-meta,
.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.panel-top {
  padding: 0 2px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 2px;
}

.profile-tags span {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #34312b;
  background: rgba(246, 242, 234, 0.76);
  font-size: 11px;
  font-weight: 800;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin: 22px 0;
  background: var(--line);
}

.metric-grid div {
  min-height: 112px;
  padding: 18px;
  background: rgba(255, 253, 248, 0.9);
}

.metric-grid strong {
  display: block;
  font-size: 34px;
}

.metric-grid span,
.card-meta,
.card-tags,
.taxonomy,
.case-flow,
.report-card p,
.method-grid p,
.section-heading p,
.intro > p {
  color: var(--muted);
}

.deck-stack {
  position: relative;
  height: 230px;
  margin-top: 10px;
}

.deck-card {
  position: absolute;
  inset: auto 0 0 0;
  min-height: 142px;
  padding: 20px;
  color: var(--white);
  border-radius: 8px;
  box-shadow: 0 16px 35px rgba(20, 20, 20, 0.18);
  transition: transform 0.28s ease;
}

.hero-panel:hover .deck-card-a {
  transform: rotate(-6deg) translate(-8px, -72px);
}

.hero-panel:hover .deck-card-b {
  transform: rotate(5deg) translate(6px, -36px);
}

.hero-panel:hover .deck-card-c {
  transform: translateY(6px);
}

.deck-card span {
  display: block;
  margin-bottom: 24px;
  font-size: 12px;
  opacity: 0.78;
}

.deck-card b {
  font-size: 21px;
  line-height: 1.35;
}

.deck-card-a {
  transform: rotate(-4deg) translateY(-62px);
  background: linear-gradient(135deg, var(--blue), #143246);
}

.deck-card-b {
  transform: rotate(3deg) translateY(-30px);
  background: linear-gradient(135deg, var(--red), var(--coral));
}

.deck-card-c {
  color: var(--ink);
  background: linear-gradient(135deg, var(--lime), var(--cyan));
}

.ticker {
  display: flex;
  gap: 8px;
  overflow: auto;
  padding: 0 clamp(20px, 5vw, 72px) 48px;
}

.ticker span,
.card-tags span,
.case-flow span {
  white-space: nowrap;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 253, 248, 0.7);
  font-size: 13px;
}

.ticker span:nth-child(3n) {
  border-color: rgba(31, 76, 107, 0.35);
  background: rgba(103, 216, 214, 0.22);
}

.ticker span:nth-child(4n) {
  border-color: rgba(125, 31, 31, 0.26);
  background: rgba(240, 100, 73, 0.16);
}

.section {
  padding: 76px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
}

.lab {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 0.65fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 88px);
  align-items: center;
  min-height: 720px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(20, 20, 20, 0.94), rgba(20, 20, 20, 0.78)),
    radial-gradient(circle at 78% 34%, rgba(103, 216, 214, 0.24), transparent 24rem),
    radial-gradient(circle at 48% 74%, rgba(240, 100, 73, 0.22), transparent 22rem),
    var(--ink);
  overflow: hidden;
}

.lab::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 253, 248, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(255, 253, 248, 0.06) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 68% 52%, black, transparent 68%);
}

.lab-copy,
.lab-stage {
  position: relative;
  z-index: 1;
}

.lab-copy h2 {
  max-width: 640px;
}

.lab-copy p:last-child {
  max-width: 520px;
  margin-top: 24px;
  color: #d8d2c7;
  font-size: 18px;
  line-height: 1.85;
}

.lab-stage {
  min-height: 520px;
}

.lab-core {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: min(280px, 52vw);
  aspect-ratio: 1;
  place-items: center;
  padding: 28px;
  border: 1px solid rgba(255, 253, 248, 0.22);
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(214, 255, 107, 0.18), transparent 68%),
    rgba(255, 253, 248, 0.08);
  box-shadow:
    0 0 0 22px rgba(255, 253, 248, 0.03),
    0 0 0 52px rgba(103, 216, 214, 0.04),
    0 24px 90px rgba(0, 0, 0, 0.28);
  transform: translate(-50%, -50%);
}

.lab-core span,
.lab-core small {
  color: #d8d2c7;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.lab-core strong {
  font-size: clamp(74px, 10vw, 130px);
  line-height: 0.82;
}

.lab-node {
  position: absolute;
  width: min(270px, 42vw);
  padding: 18px;
  border: 1px solid rgba(255, 253, 248, 0.18);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.08);
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.lab-node span {
  display: block;
  margin-bottom: 36px;
  color: var(--lime);
  font-weight: 900;
}

.lab-node strong {
  display: block;
  margin-bottom: 10px;
  font-size: 21px;
}

.lab-node p {
  margin-bottom: 0;
  color: #d8d2c7;
  line-height: 1.7;
}

.node-a {
  left: 4%;
  top: 5%;
}

.node-b {
  right: 2%;
  top: 22%;
}

.node-c {
  left: 16%;
  bottom: 4%;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.7fr);
  gap: clamp(28px, 6vw, 88px);
  align-items: end;
  background:
    linear-gradient(110deg, rgba(255, 253, 248, 0.96), rgba(255, 253, 248, 0.82)),
    repeating-linear-gradient(90deg, rgba(31, 76, 107, 0.18) 0 10px, transparent 10px 22px);
}

h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 58px);
  line-height: 1.08;
  letter-spacing: 0;
}

.intro > p,
.section-heading p {
  max-width: 620px;
  font-size: 17px;
  line-height: 1.8;
}

.library {
  background: linear-gradient(180deg, #ebe4d6, #f3eee2);
}

.section-heading {
  align-items: end;
  margin-bottom: 30px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.filter {
  min-height: 38px;
  padding: 0 13px;
  color: var(--muted);
  background: transparent;
}

.filter.active {
  color: var(--white);
  background: var(--ink);
}

.library-layout {
  display: block;
}

.taxonomy {
  align-self: start;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.taxonomy p {
  color: var(--ink);
  font-weight: 800;
}

.taxonomy ul {
  display: grid;
  gap: 18px;
  padding: 0;
  margin: 0;
  list-style: none;
  line-height: 1.65;
}

.taxonomy span {
  color: var(--red);
  font-weight: 800;
}

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

.empty-reports {
  grid-column: 1 / -1;
  min-height: 160px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.72);
  color: var(--muted);
}

.report-card {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.report-visual {
  position: relative;
  height: 150px;
  margin: -2px -2px 18px;
  border-radius: 7px;
  overflow: hidden;
  background: #eee;
}

.report-visual::before,
.report-visual::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

.report-visual::before {
  inset: 0;
  background:
    linear-gradient(110deg, transparent 0 38%, rgba(255, 255, 255, 0.28) 48%, transparent 58%),
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.18), transparent 28%);
  mix-blend-mode: screen;
  transform: translateX(-38%);
  transition: transform 0.75s ease;
}

.report-visual::after {
  inset: 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  opacity: 0.5;
  transform: scale(0.98);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.report-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.45s ease;
}

.report-card:hover .report-visual img {
  transform: scale(1.08);
}

.report-card:hover .report-visual::before {
  transform: translateX(38%);
}

.report-card:hover .report-visual::after {
  opacity: 0.9;
  transform: scale(1);
}

.report-card:hover {
  transform: translateY(-6px);
  border-color: rgba(31, 76, 107, 0.35);
  box-shadow: 0 18px 45px rgba(33, 29, 22, 0.12);
}

.report-card.featured {
  border-color: rgba(125, 31, 31, 0.38);
  box-shadow: inset 0 0 0 1px rgba(125, 31, 31, 0.1);
  background:
    linear-gradient(145deg, rgba(255, 253, 248, 0.96), rgba(255, 253, 248, 0.86)),
    linear-gradient(135deg, rgba(214, 255, 107, 0.7), rgba(103, 216, 214, 0.6));
}

.report-card.is-hidden {
  display: none;
}

.card-meta {
  margin-bottom: 28px;
  font-size: 12px;
}

.report-card h3 {
  margin-bottom: 14px;
  font-size: 24px;
  line-height: 1.22;
}

.report-card p {
  line-height: 1.7;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 20px;
}

.card-tags span {
  padding: 6px 9px;
  font-size: 12px;
}

.file-size {
  margin-top: 12px;
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
}

.open-deck {
  min-height: 42px;
  margin-top: 18px;
  color: var(--ink);
  background: transparent;
  font-weight: 800;
}

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

.case-feature {
  min-height: 360px;
  padding: 28px;
  background:
    linear-gradient(150deg, rgba(255, 253, 248, 0.98), rgba(255, 253, 248, 0.88)),
    repeating-linear-gradient(135deg, rgba(184, 137, 63, 0.18) 0 8px, transparent 8px 20px);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.case-feature.dark {
  color: var(--white);
  background:
    linear-gradient(145deg, rgba(20, 20, 20, 0.92), rgba(20, 20, 20, 0.98)),
    repeating-linear-gradient(135deg, rgba(103, 216, 214, 0.24) 0 10px, transparent 10px 26px);
  border-color: var(--ink);
}

.case-index {
  display: block;
  margin-bottom: 74px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
}

.case-feature h3 {
  max-width: 620px;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.12;
}

.case-feature p {
  max-width: 620px;
  line-height: 1.8;
}

.case-feature.dark p,
.case-feature.dark .case-flow {
  color: #dad3c5;
}

.case-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.method {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 80px);
  background: var(--white);
}

.method-grid {
  gap: 1px;
  background: var(--line);
}

.method-grid div {
  min-height: 210px;
  padding: 24px;
  background: var(--white);
}

.method-grid strong {
  font-size: 22px;
}

.method-grid p {
  margin-top: 18px;
  line-height: 1.75;
}

.footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 64px clamp(20px, 5vw, 72px);
  color: var(--white);
  background: var(--ink);
}

.resume-preview {
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.96), rgba(235, 228, 214, 0.84)),
    var(--white);
}

.fun-habits {
  display: grid;
  grid-template-columns: minmax(280px, 0.62fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  background:
    linear-gradient(135deg, rgba(20, 20, 20, 0.94), rgba(31, 76, 107, 0.86)),
    var(--ink);
  color: var(--white);
}

.blog {
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.96), rgba(235, 228, 214, 0.78)),
    var(--white);
}

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

.blog-grid article {
  min-height: 260px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.82);
}

.blog-grid span {
  display: block;
  margin-bottom: 48px;
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.blog-grid h3 {
  margin-bottom: 12px;
  font-size: 24px;
  line-height: 1.22;
}

.blog-grid p {
  color: var(--muted);
  line-height: 1.75;
}

.fun-habits h2 {
  max-width: 680px;
}

.ea-proof-card {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(360px, 1fr);
  gap: clamp(18px, 3vw, 34px);
  align-items: stretch;
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid rgba(255, 253, 248, 0.16);
  border-radius: 8px;
  background:
    radial-gradient(circle at 84% 14%, rgba(214, 255, 107, 0.16), transparent 28%),
    linear-gradient(135deg, rgba(255, 253, 248, 0.09), rgba(255, 253, 248, 0.04));
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.ea-proof-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ea-proof-copy > span {
  color: var(--lime);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.ea-proof-copy h3 {
  font-size: clamp(28px, 3.2vw, 46px);
  line-height: 1;
}

.ea-proof-copy p {
  max-width: 620px;
  color: #ddd7cb;
  line-height: 1.8;
}

.ea-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 4px 0;
}

.ea-metrics div {
  min-height: 92px;
  padding: 16px;
  border: 1px solid rgba(255, 253, 248, 0.12);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.08);
}

.ea-metrics strong {
  display: block;
  margin-bottom: 8px;
  color: var(--white);
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1;
}

.ea-metrics span {
  color: #c8c1b5;
  font-size: 13px;
  font-weight: 800;
}

.ea-report-open {
  width: fit-content;
  margin-top: auto;
}

.ea-curve {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 330px;
  padding: 22px;
  border: 1px solid rgba(255, 253, 248, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 253, 248, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(255, 253, 248, 0.06) 1px, transparent 1px),
    #f9f9f4;
  background-size: 34px 34px;
  overflow: hidden;
}

.ea-curve video,
.ea-curve img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid rgba(14, 19, 24, 0.16);
  background: #fff;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
  transition: transform 0.35s ease;
}

.ea-curve video {
  border-radius: 6px;
}

.ea-curve a {
  width: fit-content;
  color: #101418;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.ea-curve:hover video,
.ea-curve:hover img {
  transform: scale(1.035);
}

.habit-grid {
  display: grid;
  gap: 12px;
}

.habit-grid article {
  position: relative;
  padding: 22px;
  border: 1px solid rgba(255, 253, 248, 0.18);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.08);
  backdrop-filter: blur(14px);
  overflow: hidden;
}

.habit-grid span {
  display: block;
  margin-bottom: 16px;
  color: var(--lime);
  font-weight: 900;
}

.habit-grid h3 {
  margin-bottom: 10px;
  font-size: 24px;
}

.habit-grid p {
  margin-bottom: 0;
  color: #d8d2c7;
  line-height: 1.75;
}

.habit-visual {
  position: relative;
  height: 138px;
  margin: -2px -2px 20px;
  border: 1px solid rgba(255, 253, 248, 0.12);
  border-radius: 7px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 253, 248, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(255, 253, 248, 0.06) 1px, transparent 1px),
    rgba(10, 14, 18, 0.62);
  background-size: 28px 28px;
}

.chart-line {
  position: absolute;
  inset: 20px 16px 18px;
  background:
    linear-gradient(135deg, transparent 0 10%, #67d8d6 11% 13%, transparent 14% 22%, #d6ff6b 23% 25%, transparent 26% 38%, #67d8d6 39% 41%, transparent 42% 55%, #f06449 56% 58%, transparent 59% 100%);
  filter: drop-shadow(0 0 10px rgba(103, 216, 214, 0.55));
  animation: chartScan 4.8s linear infinite;
}

.trade-ticket {
  position: absolute;
  left: 16px;
  padding: 7px 9px;
  border: 1px solid rgba(214, 255, 107, 0.35);
  border-radius: 6px;
  color: #d6ff6b;
  background: rgba(15, 20, 24, 0.78);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 11px;
  font-weight: 800;
}

.ticket-a {
  top: 18px;
}

.ticket-b {
  bottom: 16px;
  color: #f4f0e7;
  border-color: rgba(244, 240, 231, 0.26);
}

.trade-pulse {
  position: absolute;
  right: 40px;
  top: 50%;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #d6ff6b;
  box-shadow: 0 0 0 0 rgba(214, 255, 107, 0.44);
  animation: pulseTrade 1.7s ease-out infinite;
}

.workflow-visual {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  gap: 10px;
  padding: 22px;
}

.workflow-node {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 62px;
  place-items: center;
  border: 1px solid rgba(244, 240, 231, 0.24);
  border-radius: 8px;
  color: #f4f0e7;
  background: rgba(244, 240, 231, 0.08);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 12px;
  font-weight: 800;
}

.workflow-beam {
  position: absolute;
  left: 24px;
  top: 50%;
  width: 72px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #67d8d6, transparent);
  animation: workflowMove 3.2s ease-in-out infinite;
}

.loading-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.loading-visual i {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #f4f0e7;
  opacity: 0.35;
  animation: loadingDots 1.2s ease-in-out infinite;
}

.loading-visual i:nth-child(2) {
  animation-delay: 0.16s;
}

.loading-visual i:nth-child(3) {
  animation-delay: 0.32s;
}

@keyframes chartScan {
  from { transform: translateX(-22px); }
  to { transform: translateX(22px); }
}

@keyframes pulseTrade {
  0% { box-shadow: 0 0 0 0 rgba(214, 255, 107, 0.42); transform: scale(0.92); }
  70% { box-shadow: 0 0 0 22px rgba(214, 255, 107, 0); transform: scale(1); }
  100% { box-shadow: 0 0 0 0 rgba(214, 255, 107, 0); transform: scale(0.92); }
}

@keyframes workflowMove {
  0% { transform: translateX(0); opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateX(calc(100% + 170px)); opacity: 0; }
}

@keyframes loadingDots {
  0%, 100% { transform: translateY(0); opacity: 0.35; }
  50% { transform: translateY(-10px); opacity: 0.9; }
}

.resume-frame-wrap {
  height: 760px;
  border: 1px solid rgba(20, 20, 20, 0.14);
  border-radius: 8px;
  background: #dfe7ef;
  box-shadow: 0 24px 70px rgba(33, 29, 22, 0.14);
  overflow: hidden;
}

.resume-frame {
  width: 100%;
  height: 100%;
  border: 0;
  background: #dfe7ef;
}

.resume-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 18px;
}

body[data-lang="en"] .resume-cn {
  display: none;
}

body[data-lang="cn"] .resume-actions a[href$="Shawn_Duan_Resume.docx"],
body[data-lang="cn"] .resume-actions a[href$="Shawn_Duan_Resume.pdf"] {
  display: none;
}

.ask-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 60;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(480px, 100vw);
  height: 100vh;
  background: #f6f9fc;
  border-left: 1px solid rgba(20, 20, 20, 0.12);
  box-shadow: -28px 0 80px rgba(20, 20, 20, 0.14);
  transform: translateX(105%);
  transition: transform 0.28s ease;
}

.ask-panel.is-open {
  transform: translateX(0);
}

.ask-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  border-bottom: 1px solid var(--line);
}

.ask-head h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.22;
}

.ask-close {
  width: 38px;
  height: 38px;
  background: transparent;
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
}

.ask-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  overflow: auto;
}

.bot-message,
.user-message {
  max-width: 92%;
  padding: 13px 14px;
  border-radius: 8px;
  line-height: 1.65;
}

.bot-message {
  align-self: flex-start;
  background: var(--white);
  color: var(--muted);
  border: 1px solid var(--line);
}

.user-message {
  align-self: flex-end;
  color: var(--white);
  background: var(--ink);
}

.suggestion {
  min-height: 42px;
  padding: 0 12px;
  text-align: left;
  background: transparent;
  color: var(--ink);
}

.ask-form {
  display: grid;
  grid-template-columns: 1fr 44px;
  gap: 8px;
  padding: 18px 24px 24px;
  border-top: 1px solid var(--line);
}

.ask-form input {
  min-height: 48px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 14px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.ask-form button {
  color: var(--white);
  background: var(--ink);
  font-weight: 900;
}

.footer h2 {
  max-width: 780px;
}

.footer .primary {
  border-color: var(--white);
  color: var(--ink);
  background: var(--white);
}

.deck-modal {
  width: min(880px, calc(100vw - 32px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  box-shadow: var(--shadow);
}

.deck-modal::backdrop {
  background: rgba(20, 20, 20, 0.56);
  backdrop-filter: blur(6px);
}

.modal-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  border-bottom: 1px solid var(--line);
}

.modal-head h3 {
  margin-bottom: 0;
  font-size: 26px;
}

.modal-subtitle {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.close-modal {
  width: 42px;
  height: 42px;
  color: var(--ink);
  background: transparent;
  font-size: 28px;
  line-height: 1;
}

.slides {
  position: relative;
  min-height: 340px;
  padding: 24px;
  background:
    linear-gradient(90deg, rgba(20, 20, 20, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(20, 20, 20, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
}

.slide {
  display: none;
  min-height: 292px;
  padding: 30px;
  color: var(--white);
  background: var(--blue);
  border-radius: 8px;
}

.slide.active {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.slide span {
  margin-bottom: auto;
  opacity: 0.72;
}

.slide h4 {
  margin-bottom: 12px;
  font-size: 46px;
}

.slide p {
  max-width: 620px;
  margin-bottom: 0;
  font-size: 18px;
  line-height: 1.75;
}

.slide-controls {
  justify-content: flex-end;
  padding: 0 24px 24px;
  margin-top: 0;
}

.file-link {
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
}

.slide-controls button {
  min-height: 40px;
  padding: 0 14px;
  background: transparent;
}

@media (max-width: 1080px) {
  .hero,
  .lab,
  .method,
  .fun-habits,
  .ea-proof-card {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .portrait-panel {
    max-width: 520px;
  }

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

  .ea-curve {
    min-height: 260px;
  }
}

@media (max-width: 760px) {
  .topbar {
    align-items: flex-start;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 14px 16px;
  }

  .brand {
    width: 100%;
    justify-content: flex-start;
    gap: 10px;
  }

  .brand span {
    display: none;
  }

  nav {
    grid-column: 1 / -1;
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 3px;
    justify-content: flex-start;
    gap: 14px;
    font-size: 12.5px;
    scrollbar-width: none;
  }

  nav::-webkit-scrollbar,
  .signal-strip::-webkit-scrollbar,
  .profile-tags::-webkit-scrollbar,
  .ticker::-webkit-scrollbar {
    display: none;
  }

  .top-actions {
    order: 2;
    width: auto;
    justify-content: flex-end;
    gap: 6px;
  }

  .icon-button {
    width: 34px;
    height: 34px;
  }

  .hero {
    min-height: auto;
    padding: 38px 16px 28px;
    gap: 28px;
  }

  .hero::before {
    background-size: 42px 42px;
    mask-image: linear-gradient(180deg, black, transparent 92%);
  }

  .hero::after {
    width: 100%;
    opacity: 0.58;
    clip-path: polygon(0 58%, 100% 36%, 100% 100%, 0 100%);
  }

  h1 {
    max-width: 100%;
    margin-bottom: 16px;
    font-size: clamp(38px, 12vw, 56px);
    line-height: 0.98;
  }

  .hero-subline {
    margin-top: 12px;
    font-size: clamp(22px, 7vw, 32px);
    line-height: 1.1;
  }

  .lead {
    font-size: 15px;
    line-height: 1.65;
  }

  .hero-actions {
    margin-top: 22px;
  }

  .button {
    min-height: 42px;
    padding: 0 14px;
  }

  .signal-strip {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-top: 18px;
    padding-bottom: 4px;
  }

  .signal-strip span {
    flex: 0 0 auto;
  }

  .portrait-panel {
    max-width: none;
    padding: 10px;
    border-radius: 16px;
  }

  .portrait-frame {
    aspect-ratio: 16 / 11;
  }

  .portrait-frame img {
    object-position: center 18%;
  }

  .career-list {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 9px 12px;
  }

  .career-list p {
    font-size: 12px;
  }

  .profile-tags {
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .intro,
  .section-heading,
  .case-row,
  .method-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: grid;
    align-items: start;
  }

  .filters {
    justify-content: flex-start;
  }

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

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

  .lab {
    min-height: auto;
  }

  .lab-stage {
    min-height: 620px;
  }

  .lab-core {
    width: min(230px, 72vw);
  }

  .lab-node {
    width: min(260px, 82vw);
  }

  .node-a {
    left: 0;
    top: 0;
  }

  .node-b {
    right: 0;
    top: 220px;
  }

  .node-c {
    left: 0;
    bottom: 0;
  }

  .hero-panel,
  .report-card,
  .case-feature {
    border-radius: 8px;
  }

  .ea-metrics {
    grid-template-columns: 1fr;
  }

  .ea-curve {
    min-height: 190px;
    padding: 12px;
  }

  .deck-stack {
    height: 210px;
  }

  .slide h4 {
    font-size: 34px;
  }
}
