:root {
  --white: #ffffff;
  --bg: #fbfafd;
  --bg-soft: #f6f3ff;
  --purple: #6d4aff;
  --purple-deep: #23104a;
  --purple-dark: #341a6b;
  --purple-mid: #a78bfa;
  --purple-soft: #eee9ff;
  --ink: #17141f;
  --muted: #6b6575;
  --faint: #96909f;
  --line: #e9e5f0;
  --shadow-sm: 0 4px 18px rgba(35, 16, 74, 0.06);
  --shadow-md: 0 14px 38px rgba(35, 16, 74, 0.1);
  --shadow-lg: 0 28px 70px rgba(35, 16, 74, 0.16);
  --radius-sm: 14px;
  --radius-md: 24px;
  --radius-lg: 34px;
  --radius-full: 999px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Inter', 'Noto Sans SC', 'Segoe UI', sans-serif;
  background: var(--white);
  color: var(--ink);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

.en-only {
  display: none;
}

body.lang-en .en-only {
  display: block;
}

body.lang-en .skill-tags.en-only {
  display: flex;
}

body.lang-en .zh-only {
  display: none;
}

::selection {
  background: var(--purple-soft);
  color: var(--purple-dark);
}

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

button {
  font: inherit;
}

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

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--purple), var(--purple-mid));
  z-index: 1200;
  transition: width 0.1s linear;
}

/* ========== Navbar ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(24px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  transition: all 0.4s ease;
}

.navbar.scrolled {
  padding: 11px clamp(24px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 1px 0 var(--line);
}

.nav-logo {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.6px;
  white-space: nowrap;
}

.nav-logo span {
  color: var(--purple);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.2vw, 32px);
  list-style: none;
}

.nav-links a {
  position: relative;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.25s ease;
  white-space: nowrap;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--purple);
  transition: width 0.3s ease;
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-toggle {
  position: relative;
  width: 60px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  background: #fff;
  cursor: pointer;
  transition: background 0.3s ease;
}

.lang-toggle.active {
  background: var(--purple-soft);
  border-color: var(--purple-soft);
}

.lang-toggle-slider {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
}

.lang-toggle.active .lang-toggle-slider {
  transform: translateX(32px);
}

.lang-labels {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 7px;
  font-size: 9px;
  font-weight: 700;
  color: var(--faint);
  pointer-events: none;
}

.lang-toggle:not(.active) .lang-labels .zh,
.lang-toggle.active .lang-labels .en {
  opacity: 0;
}

.menu-toggle {
  display: none;
  width: 34px;
  height: 34px;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

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

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ========== Shared ========== */
section {
  position: relative;
  max-width: 1220px;
  margin: 0 auto;
  padding: 120px clamp(24px, 5vw, 48px);
}

.section-heading {
  margin-bottom: 54px;
}

.section-heading.centered {
  text-align: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.2px;
  color: var(--purple);
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(30px, 4.4vw, 48px);
  line-height: 1.18;
  letter-spacing: -1.6px;
  font-weight: 700;
}

.section-desc {
  margin-top: 16px;
  color: var(--muted);
  font-size: 15px;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

/* ========== Hero ========== */
.hero {
  min-height: 100vh;
  max-width: 1320px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(40px, 6vw, 100px);
  padding-top: 150px;
  padding-bottom: 90px;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -18%;
  width: 720px;
  height: 720px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(109, 74, 255, 0.16), transparent 68%);
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  pointer-events: none;
}

.hero-glow-one {
  width: 320px;
  height: 320px;
  background: #d9ccff;
  top: 160px;
  right: 8%;
}

.hero-glow-two {
  width: 260px;
  height: 260px;
  background: #ece6ff;
  bottom: 30px;
  left: 6%;
}

.hero-content {
  position: relative;
  z-index: 2;
  flex: 1 1 560px;
  max-width: 630px;
}

.hero-greeting {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 12px;
}

.hero-name {
  font-size: clamp(58px, 8.4vw, 96px);
  line-height: 1.02;
  letter-spacing: -4.5px;
  font-weight: 700;
  margin-bottom: 18px;
  background: linear-gradient(120deg, var(--purple-deep) 10%, var(--purple) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--purple);
  margin-bottom: 24px;
}

.hero-summary {
  max-width: 570px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.95;
  margin-bottom: 32px;
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 500px;
  margin-bottom: 34px;
}

.highlight-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.highlight-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--purple-mid);
}

.highlight-number {
  display: block;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--purple-dark);
}

.highlight-number em {
  font-size: 16px;
  font-style: normal;
  margin-left: 2px;
  color: var(--purple);
}

.highlight-label {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  color: var(--faint);
}

.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 28px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn svg {
  width: 17px;
  height: 17px;
}

.btn-primary {
  color: #fff;
  background: var(--purple);
  box-shadow: 0 8px 24px rgba(109, 74, 255, 0.28);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(109, 74, 255, 0.38);
}

.btn-secondary {
  background: #fff;
  border: 1.5px solid var(--line);
  color: var(--ink);
}

.btn-secondary:hover {
  color: var(--purple);
  border-color: var(--purple-mid);
  transform: translateY(-3px);
}

.hero-visual {
  position: relative;
  flex: 0 1 400px;
  display: flex;
  justify-content: center;
}

.hero-visual::before {
  content: '';
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--purple-soft), #d9ccff);
  top: 12%;
  right: -8%;
  z-index: 0;
}

.photo-frame {
  position: relative;
  z-index: 1;
  width: min(390px, 80vw);
  aspect-ratio: 3 / 4;
  border-radius: 36px;
  overflow: hidden;
  background: var(--purple-soft);
  box-shadow: var(--shadow-lg);
  transform: rotate(-1.5deg);
  transition: transform 0.5s ease;
}

.photo-frame:hover {
  transform: rotate(0deg) scale(1.02);
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.photo-ring {
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 28px;
  pointer-events: none;
}

.floating-badge {
  position: absolute;
  z-index: 2;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  padding: 8px 15px;
  box-shadow: var(--shadow-md);
  font-size: 11px;
  font-weight: 600;
  color: var(--purple-dark);
  white-space: nowrap;
  animation: float-badge 5s ease-in-out infinite;
}

.badge-one {
  top: 8%;
  left: -4%;
  transform: rotate(-5deg);
}

.badge-two {
  right: -6%;
  top: 42%;
  animation-delay: 1.2s;
}

.badge-three {
  left: 2%;
  bottom: 6%;
  transform: rotate(3deg);
  animation-delay: 2.4s;
}

@keyframes float-badge {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -8px; }
}

/* ========== About ========== */
.about-section {
  background: var(--white);
  border-top: 1px solid var(--line);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 7vw, 90px);
  align-items: center;
}

.about-copy p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.95;
}

.about-lead {
  color: var(--purple-dark) !important;
  font-size: 22px !important;
  font-weight: 600;
  line-height: 1.55 !important;
  margin-bottom: 16px;
}

.value-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.value-chips span {
  padding: 7px 15px;
  border-radius: var(--radius-full);
  background: var(--purple-soft);
  color: var(--purple-dark);
  font-size: 12px;
  font-weight: 600;
}

.orbit {
  position: relative;
  width: min(350px, 100%);
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 50%;
  border: 1px dashed var(--purple-mid);
  animation: orbit-spin 36s linear infinite;
}

@keyframes orbit-spin {
  to { transform: rotate(360deg); }
}

.orbit-core {
  position: absolute;
  inset: 33%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-deep), var(--purple));
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  border: 3px solid #fff;
  animation: orbit-spin 36s linear infinite reverse;
}

.orbit-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  border-radius: 50%;
}

.orbit-bubble {
  position: absolute;
  padding: 7px 12px;
  border-radius: var(--radius-full);
  background: #fff;
  border: 1px solid var(--purple-soft);
  box-shadow: var(--shadow-sm);
  color: var(--purple-dark);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  animation: orbit-spin 36s linear infinite reverse;
}

.bubble-1 { top: 4%; left: 40%; }
.bubble-2 { top: 26%; right: 2%; }
.bubble-3 { bottom: 26%; right: 4%; }
.bubble-4 { bottom: 3%; left: 38%; }
.bubble-5 { bottom: 27%; left: 2%; }
.bubble-6 { top: 26%; left: 0; }

/* ========== Experience ========== */
.experience-section {
  background: var(--bg-soft);
  max-width: none;
}

.experience-section > * {
  max-width: 1220px;
  margin-left: auto;
  margin-right: auto;
}

.bookshelf {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: 18px;
  padding: 20px 0 30px;
}

.book {
  position: relative;
  width: 168px;
  height: 226px;
  padding: 22px 17px;
  border: none;
  border-radius: var(--radius-sm);
  text-align: left;
  color: #fff;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
}

.book::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 2px;
}

.book::after {
  content: '';
  position: absolute;
  right: -30px;
  bottom: -40px;
  width: 110px;
  height: 110px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
}

.book:hover,
.book.active {
  transform: translateY(-14px) rotate(-2deg);
  box-shadow: var(--shadow-lg);
}

.bookshelf.two-books .book {
  width: min(360px, 42vw);
  height: 236px;
  padding: 26px 24px;
}

.bookshelf.two-books .book-title {
  font-size: 20px;
}

.bookshelf.two-books .book-meta {
  left: 24px;
  right: 24px;
  bottom: 22px;
  font-size: 12px;
}

.bookshelf.three-books .book {
  width: min(280px, 30vw);
  height: 226px;
  padding: 22px 18px;
}

.bookshelf.three-books .book-meta {
  left: 18px;
  right: 18px;
  bottom: 18px;
}

.experience-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.exp-summary-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 130px;
  padding: 22px 18px;
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.exp-summary-item strong {
  font-size: 28px;
  line-height: 1.1;
  color: var(--purple-dark);
  letter-spacing: -0.5px;
}

.exp-summary-item strong em {
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  margin-left: 2px;
}

.exp-summary-item > span {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

.book-0 { background: linear-gradient(145deg, #23104a, #6d4aff); }
.book-1 { background: linear-gradient(145deg, #341a6b, #8a6bff); }
.book-2 { background: linear-gradient(145deg, #4c2b8c, #a78bfa); }
.book-3 { background: linear-gradient(145deg, #2c155c, #7655e8); }
.book-4 { background: linear-gradient(145deg, #3d2079, #9275f5); }
.book-5 { background: linear-gradient(145deg, #5a2fa6, #b39afb); }

.book-index {
  font-size: 11px;
  opacity: 0.75;
  letter-spacing: 1px;
}

.book-chip {
  position: absolute;
  top: 18px;
  right: 16px;
  padding: 4px 9px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.book-title {
  display: block;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  margin: 10px 0 12px;
}

.book-meta {
  position: absolute;
  left: 17px;
  right: 17px;
  bottom: 18px;
  font-size: 11px;
  line-height: 1.6;
  opacity: 0.88;
}

.book-detail {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-12px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  margin: 0 auto;
  transition: max-height 0.55s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease, transform 0.4s ease, margin 0.4s ease;
}

.book-detail.active {
  max-height: 2400px;
  opacity: 1;
  transform: none;
  margin-top: 28px;
}

.book-detail-content {
  padding: clamp(28px, 5vw, 52px);
}

.detail-close,
.modal-close,
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: var(--purple-soft);
  color: var(--purple-dark);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.3s ease;
}

.detail-close:hover,
.modal-close:hover,
.lightbox-close:hover {
  color: #fff;
  background: var(--purple);
  transform: rotate(90deg);
}

.detail-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--purple);
  margin-bottom: 8px;
}

.detail-title {
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.8px;
  margin-bottom: 6px;
}

.detail-meta {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 8px;
}

.detail-role {
  color: var(--purple-dark);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 26px;
}

.detail-hire-chip {
  display: inline-block;
  margin-left: 8px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: var(--purple-soft);
  color: var(--purple-dark);
  font-size: 11px;
  font-weight: 700;
  vertical-align: middle;
}

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

.detail-block h4 {
  font-size: 14px;
  margin-bottom: 12px;
}

.detail-block p,
.detail-block li {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.85;
}

.detail-block ul {
  list-style: none;
  display: grid;
  gap: 9px;
}

.detail-block li {
  position: relative;
  padding-left: 18px;
}

.detail-block li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--purple-mid);
}

.detail-results li::before {
  background: var(--purple);
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.detail-tags span {
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: var(--purple-soft);
  color: var(--purple-dark);
  font-size: 11px;
  font-weight: 600;
}

/* ========== Skills ========== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.skill-card {
  position: relative;
  height: 240px;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  perspective: 1200px;
  text-align: left;
}

.skill-card-inner {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-card.flipped .skill-card-inner {
  transform: rotateY(180deg);
}

.skill-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
}

.skill-front {
  align-items: flex-start;
  justify-content: flex-end;
  padding: 28px;
  background: linear-gradient(150deg, #fff, var(--bg-soft));
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s ease;
}

.skill-card:hover .skill-front {
  box-shadow: var(--shadow-md);
}

.skill-front::after {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  border: 1px solid var(--purple-soft);
}

.skill-icon {
  position: absolute;
  top: 24px;
  left: 28px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--purple);
}

.skill-name {
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 6px;
}

.skill-hint {
  font-size: 11px;
  color: var(--faint);
}

.skill-back {
  transform: rotateY(180deg);
  padding: 28px 24px;
  background: linear-gradient(150deg, var(--purple-deep), var(--purple));
  color: #fff;
  box-shadow: var(--shadow-md);
}

.skill-back-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}

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

.skill-tags.en-only {
  display: none;
}

.skill-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 11px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  backdrop-filter: blur(4px);
}

/* ========== Portfolio ========== */
.portfolio-section {
  background: var(--bg);
  max-width: none;
}

.portfolio-section > * {
  max-width: 1220px;
  margin-left: auto;
  margin-right: auto;
}

.filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.filter-btn,
.gallery-tab {
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover,
.gallery-tab:hover {
  border-color: var(--purple-mid);
  color: var(--purple-dark);
}

.filter-btn.active,
.gallery-tab.active {
  background: var(--purple);
  border-color: var(--purple);
  color: #fff;
  box-shadow: 0 6px 18px rgba(109, 74, 255, 0.25);
}

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

.project-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
}

.project-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-md);
}

.project-card.hidden {
  display: none;
}

.project-visual {
  position: relative;
  height: 136px;
  overflow: hidden;
}

.project-visual::before,
.project-visual::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.project-visual::before {
  width: 190px;
  height: 190px;
  top: -75px;
  right: -30px;
}

.project-visual::after {
  width: 130px;
  height: 130px;
  bottom: -75px;
  left: 20px;
}

.project-visual.community { background: linear-gradient(135deg, #341a6b, #8a6bff); }
.project-visual.growth { background: linear-gradient(135deg, #4c2b8c, #a78bfa); }
.project-visual.data { background: linear-gradient(135deg, #23104a, #7655e8); }
.project-visual.ecommerce { background: linear-gradient(135deg, #3d2079, #9275f5); }
.project-visual.ai { background: linear-gradient(135deg, #1b0b3a, #6d4aff); }

.project-category {
  position: absolute;
  left: 20px;
  top: 18px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

.project-number {
  position: absolute;
  right: 20px;
  bottom: -8px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 62px;
  font-weight: 700;
  letter-spacing: -3px;
}

.project-body {
  padding: 22px 22px 24px;
}

.project-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 8px;
}

.project-summary {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 16px;
  min-height: 44px;
}

.project-metrics {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.project-metric strong {
  display: block;
  font-size: 19px;
  color: var(--purple-dark);
}

.project-metric span {
  font-size: 11px;
  color: var(--faint);
}

.project-open {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-size: 12px;
  font-weight: 600;
  color: var(--purple);
}

.project-open::after {
  content: '→';
  transition: transform 0.3s ease;
}

.project-card:hover .project-open::after {
  transform: translateX(4px);
}

/* ========== Gallery ========== */
.gallery-section {
  max-width: none;
  background: #fff;
}

.gallery-section > * {
  max-width: 1220px;
  margin-left: auto;
  margin-right: auto;
}

.gallery-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
}

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

.gallery-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--purple-soft);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
}

.gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.gallery-card.review {
  grid-column: span 2;
}

.gallery-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

.gallery-card:hover .gallery-img {
  transform: scale(1.04);
}

.gallery-card.review .gallery-img {
  height: 300px;
  object-position: top center;
}

.gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 30px 20px 16px;
  background: linear-gradient(transparent, rgba(35, 16, 74, 0.78));
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.gallery-expand {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  color: var(--purple-dark);
  font-size: 15px;
  opacity: 0;
  transform: translateY(-6px);
  transition: all 0.3s ease;
}

.gallery-card:hover .gallery-expand {
  opacity: 1;
  transform: none;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1600;
  display: grid;
  place-items: center;
  padding: 30px;
  background: rgba(18, 7, 36, 0.86);
  backdrop-filter: blur(12px);
}

.image-lightbox[hidden] {
  display: none;
}

.lightbox-image {
  max-width: min(96vw, 1100px);
  max-height: 82vh;
  width: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
}

.lightbox-caption {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
}

/* ========== PDF viewer ========== */
.pdf-viewer {
  position: fixed;
  inset: 0;
  z-index: 1700;
  display: flex;
  flex-direction: column;
  background: rgba(18, 7, 36, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.pdf-viewer[hidden] {
  display: none;
}

.pdf-viewer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px clamp(16px, 5vw, 30px);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.pdf-viewer-title {
  font-size: 14px;
  font-weight: 600;
}

.pdf-viewer-count {
  font-size: 13px;
  opacity: 0.8;
  margin-left: auto;
  margin-right: 8px;
}

.pdf-viewer-close {
  width: 38px;
  height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pdf-viewer-close:hover {
  background: var(--purple);
  border-color: var(--purple);
  transform: rotate(90deg);
}

.pdf-viewer-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 80px;
}

.pdf-viewer-img {
  max-width: min(92vw, 900px, 100%);
  max-height: calc(100vh - 150px);
  width: auto;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.pdf-nav-row {
  position: absolute;
  inset: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.pdf-page-nav {
  flex: none;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.3s ease;
}

.pdf-page-nav:hover:not(:disabled) {
  background: var(--purple);
  border-color: var(--purple);
}

.pdf-page-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

@media (max-width: 680px) {
  .pdf-viewer-bar {
    gap: 8px;
    padding: 12px 14px;
  }

  .pdf-viewer-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
  }

  .pdf-viewer-count {
    font-size: 12px;
    margin-right: 4px;
  }

  .pdf-viewer-close {
    width: 34px;
    height: 34px;
    font-size: 22px;
  }

  .pdf-viewer-stage {
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
    padding: 10px 10px 0;
    overflow: hidden;
  }

  .pdf-viewer-img {
    width: 100%;
    max-width: 100%;
    max-height: calc(100vh - 178px);
    border-radius: 6px;
  }

  .pdf-nav-row {
    position: static;
    width: 100%;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 14px 0 max(12px, env(safe-area-inset-bottom));
    pointer-events: auto;
  }

  .pdf-page-nav {
    width: 56px;
    height: 44px;
    border-radius: 999px;
    font-size: 28px;
    background: rgba(124, 58, 237, 0.35);
    border-color: rgba(255, 255, 255, 0.4);
  }
}

/* ========== Modal ========== */
.project-modal {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: grid;
  place-items: center;
  padding: 24px;
}

.project-modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(35, 16, 74, 0.48);
  backdrop-filter: blur(8px);
}

.modal-panel {
  position: relative;
  width: min(760px, 100%);
  max-height: min(86vh, 820px);
  overflow-y: auto;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: clamp(30px, 5vw, 54px);
  animation: modal-in 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.modal-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  color: var(--purple);
  margin-bottom: 8px;
}

.modal-title {
  font-size: clamp(24px, 3.4vw, 34px);
  letter-spacing: -0.8px;
  margin-bottom: 18px;
}

.modal-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}

.modal-metric {
  flex: 1 1 130px;
}

.modal-metric strong {
  display: block;
  font-size: 22px;
  color: var(--purple-dark);
}

.modal-metric span {
  font-size: 11px;
  color: var(--faint);
}

.modal-section {
  margin-bottom: 22px;
}

.modal-section h4 {
  font-size: 14px;
  margin-bottom: 10px;
}

.modal-section p,
.modal-section li {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.85;
}

.modal-section ul {
  list-style: none;
  display: grid;
  gap: 8px;
}

.modal-section li {
  position: relative;
  padding-left: 18px;
}

.modal-section li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--purple-mid);
}

/* ========== Education ========== */
.edu-timeline {
  position: relative;
  display: grid;
  gap: 18px;
  max-width: 900px;
  margin: 0 auto 32px;
}

.edu-timeline::before {
  content: '';
  position: absolute;
  left: 118px;
  top: 20px;
  bottom: 20px;
  width: 1px;
  background: var(--line);
}

.edu-card {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 36px;
  align-items: center;
  padding: 22px 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.edu-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.edu-period {
  font-size: 12px;
  color: var(--purple);
  font-weight: 600;
  line-height: 1.5;
}

.edu-body h3 {
  font-size: 19px;
  margin-bottom: 3px;
}

.edu-major {
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
}

.edu-note {
  color: var(--muted);
  font-size: 13px;
  margin-top: 3px;
}

.awards-panel {
  max-width: 900px;
  margin: 0 auto;
  padding: 28px 30px;
  border-radius: var(--radius-md);
  background: var(--bg-soft);
  border: 1px solid var(--purple-soft);
}

.awards-panel h3 {
  font-size: 15px;
  margin-bottom: 14px;
  color: var(--purple-dark);
}

.award-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.award-tags span {
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.course-note {
  margin-top: 16px;
  font-size: 12px;
  color: var(--faint);
  line-height: 1.8;
}

/* ========== AI Practice ========== */
.ai-practice-section {
  background: linear-gradient(180deg, #fff, var(--bg-soft));
  max-width: none;
}

.ai-practice-section > * {
  max-width: 1220px;
  margin-left: auto;
  margin-right: auto;
}

.ai-cases {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}

.ai-cases .ai-feature {
  grid-template-columns: 1fr;
}

.ai-cases .ai-feature-main {
  padding: clamp(26px, 2.6vw, 38px);
}

.ai-cases .ai-feature-main h3 {
  font-size: clamp(22px, 2vw, 27px);
}

.ai-cases .ai-side {
  padding: 24px 26px;
}

.ai-feature {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  background: #fff;
}

.ai-feature-main {
  padding: clamp(30px, 4.5vw, 54px);
}

.ai-status {
  display: inline-block;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: var(--purple-soft);
  color: var(--purple-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
}

.ai-feature-main h3 {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.25;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.ai-intro {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
  margin-bottom: 24px;
}

.ai-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 26px;
}

.ai-metric strong {
  display: block;
  font-size: 24px;
  line-height: 1.1;
  color: var(--purple-dark);
}

.ai-metric span {
  font-size: 11px;
  color: var(--faint);
}

.ai-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ai-side {
  display: grid;
  gap: 14px;
  padding: clamp(26px, 3.5vw, 40px);
  background: radial-gradient(circle at 80% 20%, #46228e, var(--purple-deep) 60%, #140727);
}

.ai-side-card {
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
}

.ai-side-card h4 {
  color: #fff;
  font-size: 14px;
  margin-bottom: 6px;
}

.ai-side-card p {
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
  line-height: 1.75;
}

.ai-insights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.ai-insight {
  padding: 24px 26px;
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.ai-insight > span {
  color: var(--purple-mid);
  font-size: 12px;
  font-weight: 700;
}

.ai-insight h4 {
  margin: 8px 0 6px;
  font-size: 16px;
}

.ai-insight p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

/* ========== Recognition ========== */
.recognition-section {
  background: var(--bg);
  max-width: none;
}

.recognition-section > * {
  max-width: 1220px;
  margin-left: auto;
  margin-right: auto;
}

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

.honor-card {
  position: relative;
  padding: clamp(28px, 4vw, 42px);
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.honor-card::after {
  content: '';
  position: absolute;
  right: -70px;
  top: -70px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(109, 74, 255, 0.12), transparent 70%);
  pointer-events: none;
}

.honor-badge {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(109, 74, 255, 0.25);
}

.honor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.honor-head .honor-badge {
  margin-bottom: 0;
}

.honor-medal {
  width: 82px;
  height: 82px;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(35, 16, 74, 0.18));
}

.honor-card h3 {
  font-size: 20px;
  margin-bottom: 4px;
}

.honor-meta {
  color: var(--purple);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 14px;
}

.honor-copy {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
  margin-bottom: 22px;
}

.honor-evidence {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.evidence-btn {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  background: #fff;
  color: var(--purple-dark);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.evidence-btn:hover {
  background: var(--purple);
  border-color: var(--purple);
  color: #fff;
  transform: translateY(-2px);
}

.review-quotes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 22px;
}

.review-quote {
  position: relative;
  padding: 34px 32px 28px;
  border-radius: var(--radius-md);
  background: var(--purple-soft);
  border: 1px solid var(--purple-soft);
}

.quote-mark {
  position: absolute;
  top: 4px;
  left: 22px;
  color: var(--purple-mid);
  font-size: 54px;
  line-height: 1;
  opacity: 0.7;
}

.review-quote p {
  position: relative;
  color: var(--purple-dark);
  font-size: 14px;
  line-height: 1.9;
}

.review-quote cite {
  display: block;
  margin-top: 14px;
  color: var(--purple);
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
}

.partner-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: calc(100% - 2 * clamp(24px, 5vw, 48px));
  max-width: 1220px;
  margin: 44px auto 20px;
  text-align: center;
}

.partner-heading h3 {
  width: 100%;
  margin: 0 auto;
  font-size: 22px;
  letter-spacing: -0.5px;
  text-align: center;
}

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

.partner-quote {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 230px;
  padding: 34px 24px 24px;
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.partner-quote .quote-mark {
  top: 2px;
  left: 18px;
}

.partner-quote p {
  flex: 1;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.85;
}

.partner-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.partner-actions cite {
  color: var(--faint);
  font-size: 11px;
  font-style: normal;
}

.partner-actions .evidence-btn {
  padding: 6px 12px;
  font-size: 11px;
}

.partner-quote .feedback-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.partner-quote .feedback-line {
  position: relative;
  flex: none;
  margin: 0;
  padding-left: 16px;
}

.partner-quote .feedback-line::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--purple);
}

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

/* ========== Workstyle ========== */
.workstyle-section {
  max-width: none;
  background: radial-gradient(circle at 20% 20%, #3b1d78, var(--purple-deep) 55%, #120724);
  color: #fff;
}

.workstyle-section > * {
  max-width: 1220px;
  margin-left: auto;
  margin-right: auto;
}

.workstyle-section .eyebrow {
  color: var(--purple-mid);
}

.workstyle-section .section-title {
  color: #fff;
}

.carousel-wrap {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.carousel {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: marquee 34s linear infinite;
}

.carousel:hover {
  animation-play-state: paused;
}

@keyframes marquee {
  to { transform: translateX(calc(-1 * var(--carousel-shift, 50%))); }
}

.style-card {
  width: 300px;
  min-height: 190px;
  padding: 28px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
}

.style-index {
  color: var(--purple-mid);
  font-size: 12px;
  font-weight: 700;
}

.style-card h3 {
  margin: 14px 0 8px;
  font-size: 19px;
  color: #fff;
}

.style-card p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.8;
}

/* ========== Contact ========== */
.contact-section {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  background: linear-gradient(180deg, #fff, var(--bg-soft));
}

.contact-inner {
  width: 100%;
}

.contact-title {
  min-height: 1.4em;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.3;
  letter-spacing: -1.5px;
  font-weight: 700;
}

.contact-title .typed {
  color: var(--purple-dark);
}

.contact-title .caret {
  display: inline-block;
  width: 2px;
  height: 0.9em;
  margin-left: 3px;
  background: var(--purple);
  vertical-align: -0.08em;
  animation: blink 1s steps(2) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.contact-sub {
  max-width: 620px;
  margin: 18px auto 42px;
  color: var(--muted);
  font-size: 15px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 720px;
  margin: 0 auto;
  text-align: left;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

a.contact-item:hover {
  transform: translateY(-4px);
  border-color: var(--purple-mid);
  box-shadow: var(--shadow-md);
}

.contact-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--purple-soft);
  color: var(--purple-dark);
  font-size: 18px;
}

.contact-item small {
  display: block;
  color: var(--faint);
  font-size: 11px;
}

.contact-item strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 26px clamp(24px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 12px;
  background: #fff;
}

.back-to-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 900;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--purple);
  font-size: 18px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.back-to-top:hover {
  background: var(--purple);
  color: #fff;
}

/* ========== Responsive ========== */
@media (max-width: 1000px) {
  .nav-links {
    position: fixed;
    top: 70px;
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(16px);
  }

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

  .nav-links a {
    display: block;
    padding: 10px 12px;
  }

  .menu-toggle {
    display: flex;
  }

  .hero {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 130px;
  }

  .hero-visual {
    align-self: center;
    margin-top: 20px;
  }

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

  .gallery-card.review {
    grid-column: span 2;
  }

  .about-grid,
  .ai-feature,
  .ai-cases {
    grid-template-columns: 1fr;
  }

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

  .orbit {
    max-width: 320px;
  }
}

@media (max-width: 680px) {
  section {
    padding: 84px 20px;
  }

  .navbar {
    padding: 16px 20px;
  }

  .hero {
    padding-top: 120px;
    padding-bottom: 60px;
  }

  .hero-name {
    letter-spacing: -2.5px;
  }

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

  .highlight-item {
    padding: 13px 14px;
  }

  .highlight-number {
    font-size: 22px;
  }

  .photo-frame {
    width: min(320px, 84vw);
  }

  .badge-one { left: -2%; }
  .badge-two { right: -2%; }

  .experience-summary,
  .skills-grid,
  .project-grid,
  .gallery-grid,
  .honor-grid,
  .review-quotes,
  .partner-quotes,
  .ai-insights,
  .detail-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .gallery-card.review {
    grid-column: span 1;
  }

  .gallery-img,
  .gallery-card.review .gallery-img {
    height: 230px;
  }

  .book {
    width: calc(50% - 9px);
    height: 190px;
  }

  .bookshelf.two-books .book {
    width: 100%;
    max-width: 360px;
    height: 190px;
    padding: 22px 20px;
  }

  .bookshelf.two-books .book-meta {
    left: 20px;
    right: 20px;
    bottom: 18px;
  }

  .bookshelf.three-books .book {
    width: 100%;
    max-width: 320px;
    height: 185px;
    padding: 22px 20px;
  }

  .bookshelf.three-books .book-meta {
    left: 20px;
    right: 20px;
    bottom: 18px;
  }

  .book-title {
    font-size: 15px;
  }

  .bookshelf.two-books .book-title {
    font-size: 17px;
  }

  .edu-timeline::before {
    display: none;
  }

  .edu-card {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .footer {
    flex-direction: column;
    text-align: center;
  }

  .back-to-top {
    right: 18px;
    bottom: 18px;
  }

  .image-lightbox {
    padding: 14px;
  }

  .lightbox-image {
    max-height: 78vh;
  }
}

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

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