/* ==========================================================================
   全嘉涛 · 个人作品集设计系统 v2.0（Luminous Atelier · 光影画廊规范）
   Strict 8px Grid · 5-Tier Elevation · Atmospheric Silk Gradients
   ========================================================================== */

:root {
  /* ------------------------------------------------------------------------
     1. Strict 8px Spacing Scale
     ------------------------------------------------------------------------ */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;

  /* ------------------------------------------------------------------------
     2. Surface Elevation Hierarchy (5 Tiers)
     ------------------------------------------------------------------------ */
  --bg-canvas: #f5f7fc;
  --bg-surface: rgba(255, 255, 255, 0.88);
  --bg-surface-solid: #ffffff;
  --bg-elevated: rgba(248, 250, 255, 0.86);
  --bg-studio: #eef1f8;
  --bg-dark: #0e1320;

  /* Glassmorphism & Borders */
  --glass-bg: rgba(248, 250, 255, 0.72);
  --glass-card: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(252, 253, 255, 0.86) 100%);
  --glass-border: rgba(15, 23, 42, 0.07);
  --hairline: rgba(15, 23, 42, 0.075);
  --hairline-strong: rgba(15, 23, 42, 0.14);
  --specular-top: inset 0 1px 0 rgba(255, 255, 255, 0.94);

  /* Ink Hierarchy */
  --ink-primary: #0f172a;
  --ink-secondary: #475569;
  --ink-muted: #7b8698;
  --ink-inverse: #f8fafc;
  --ink-inverse-muted: rgba(226, 232, 240, 0.76);

  /* ------------------------------------------------------------------------
     3. Brand & Project Atmospheric Gradient Tokens
     ------------------------------------------------------------------------ */
  --accent-primary: #2563eb;
  --accent-dingtalk: #1668ff;
  --accent-tencent: #0052d9;
  --accent-remind: #c0267a;
  --accent-meituan: #b45309;
  --accent-link: #1d4ed8;

  /* Page-level overridable atmosphere tokens (default: Homepage Silk Aurora) */
  --page-accent: #2563eb;
  --aura-1: rgba(96, 165, 250, 0.22);
  --aura-2: rgba(139, 92, 246, 0.18);
  --aura-3: rgba(244, 114, 182, 0.11);

  --grad-accent: linear-gradient(125deg, #2563eb 0%, #4f46e5 55%, #7c3aed 100%);
  --grad-accent-soft: linear-gradient(135deg, rgba(37, 99, 235, 0.09) 0%, rgba(124, 58, 237, 0.07) 100%);
  --grad-text: linear-gradient(100deg, #1d4ed8 0%, #4f46e5 52%, #9333ea 100%);
  --grad-obsidian: linear-gradient(135deg, #0b1020 0%, #131c36 52%, #1d183b 100%);

  /* ------------------------------------------------------------------------
     4. Optical Shadow Scale (Tinted Ambient Elevation)
     ------------------------------------------------------------------------ */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 12px rgba(15, 23, 42, 0.03);
  --shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.04), 0 10px 26px -6px rgba(30, 41, 59, 0.07);
  --shadow-card: 0 1px 2px rgba(15, 23, 42, 0.03), 0 14px 38px -10px rgba(30, 41, 59, 0.085);
  --shadow-card-hover: 0 4px 12px rgba(15, 23, 42, 0.05), 0 24px 56px -12px rgba(37, 99, 235, 0.14);
  --shadow-lg: 0 8px 24px -8px rgba(15, 23, 42, 0.08), 0 28px 64px -20px rgba(30, 41, 59, 0.14);
  --shadow-slide: 0 2px 6px rgba(15, 23, 42, 0.04), 0 16px 40px -12px rgba(15, 23, 42, 0.09);
  --shadow-obsidian: 0 20px 52px -16px rgba(11, 16, 32, 0.42);

  /* ------------------------------------------------------------------------
     5. Strict Radius Hierarchy
     ------------------------------------------------------------------------ */
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-xl: 32px;
  --radius-pill: 9999px;

  /* ------------------------------------------------------------------------
     6. Typography & Motion
     ------------------------------------------------------------------------ */
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC",
    "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-mono: "SF Mono", ui-monospace, "JetBrains Mono", Menlo, Monaco, Consolas, monospace;

  --container-max: 1180px;
  --container-narrow: 920px;
  --nav-height: 68px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 180ms;
  --dur-med: 420ms;
  --dur-slow: 720ms;
}

/* Per-Project Atmospheric Theme Presets */
body[data-theme="dingtalk"] {
  --page-accent: #1668ff;
  --aura-1: rgba(22, 119, 255, 0.22);
  --aura-2: rgba(56, 189, 248, 0.18);
  --aura-3: rgba(129, 140, 248, 0.14);
  --grad-accent: linear-gradient(125deg, #1677ff 0%, #2563eb 52%, #0ea5e9 100%);
  --grad-text: linear-gradient(100deg, #1d4ed8 0%, #0284c7 100%);
}

body[data-theme="tencent"] {
  --page-accent: #0052d9;
  --aura-1: rgba(0, 82, 217, 0.2);
  --aura-2: rgba(6, 182, 212, 0.18);
  --aura-3: rgba(59, 130, 246, 0.14);
  --grad-accent: linear-gradient(125deg, #0052d9 0%, #0284c7 55%, #06b6d4 100%);
  --grad-text: linear-gradient(100deg, #0052d9 0%, #0891b2 100%);
}

body[data-theme="remind"] {
  --page-accent: #c0267a;
  --aura-1: rgba(219, 39, 119, 0.18);
  --aura-2: rgba(124, 58, 237, 0.18);
  --aura-3: rgba(244, 114, 182, 0.14);
  --grad-accent: linear-gradient(125deg, #db2777 0%, #9333ea 55%, #6366f1 100%);
  --grad-text: linear-gradient(100deg, #be185d 0%, #7c3aed 100%);
}

body[data-theme="meituan"] {
  --page-accent: #b45309;
  --aura-1: rgba(255, 195, 0, 0.18);
  --aura-2: rgba(245, 158, 11, 0.13);
  --aura-3: rgba(180, 83, 9, 0.08);
  --grad-accent: linear-gradient(125deg, #111827 0%, #374151 60%, #92400e 100%);
  --grad-text: linear-gradient(100deg, #111827 0%, #92400e 100%);
}

/* ==========================================================================
   Reset & Ambient Atmospheric Backdrop
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.72;
  color: var(--ink-primary);
  background-color: var(--bg-canvas);
  background-image:
    radial-gradient(ellipse 72% 48% at 14% -4%, var(--aura-1) 0%, transparent 64%),
    radial-gradient(ellipse 62% 44% at 86% 2%, var(--aura-2) 0%, transparent 62%),
    radial-gradient(ellipse 50% 34% at 52% 16%, var(--aura-3) 0%, transparent 68%);
  background-repeat: no-repeat;
  overflow-x: hidden;
  position: relative;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
}

::selection {
  background: color-mix(in srgb, var(--page-accent) 18%, transparent);
  color: var(--ink-primary);
}

/* Layout Containers */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

.container--narrow {
  max-width: var(--container-narrow);
}

/* ==========================================================================
   Reading Progress Bar (Gradient Luminous Line)
   ========================================================================== */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 120;
  pointer-events: none;
  background: transparent;
}

.reading-progress__bar {
  height: 100%;
  width: 0%;
  background: var(--grad-accent);
  box-shadow: 0 0 12px color-mix(in srgb, var(--page-accent) 55%, transparent);
  transition: width 80ms linear;
}

/* ==========================================================================
   Top Sticky Navigation (Luminous Frosted Bar)
   ========================================================================== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: var(--glass-bg);
  backdrop-filter: saturate(190%) blur(24px);
  -webkit-backdrop-filter: saturate(190%) blur(24px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}

.site-nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--ink-primary);
}

.brand::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--grad-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--page-accent) 14%, transparent);
  flex-shrink: 0;
}

.brand__name {
  font-size: 16px;
}

.brand__en {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 14px;
  font-weight: 550;
  color: var(--ink-secondary);
  transition: color var(--dur-fast) ease;
  position: relative;
  padding: 4px 0;
}

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

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  border-radius: var(--radius-pill);
  background: var(--grad-accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--dur-fast) var(--ease-out);
}

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--hairline-strong);
  background: var(--glass-card);
  box-shadow: var(--specular-top), var(--shadow-xs);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-primary);
  transition: all var(--dur-fast) var(--ease-out);
}

.nav-cta:hover {
  background: var(--grad-obsidian);
  color: var(--ink-inverse);
  border-color: transparent;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -6px rgba(15, 23, 42, 0.35);
}

.nav-toggle {
  display: none;
  background: var(--glass-card);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-xs);
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  color: var(--ink-primary);
}

/* Mobile Drawer */
.mobile-drawer {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--hairline);
  padding: 18px 24px 26px;
  z-index: 99;
}

.mobile-drawer.is-open {
  display: block;
}

.mobile-drawer a {
  display: block;
  padding: 12px 0;
  font-size: 16px;
  font-weight: 550;
  color: var(--ink-primary);
  border-bottom: 1px solid var(--hairline);
}

.mobile-drawer a:last-child {
  border-bottom: none;
}

/* ==========================================================================
   Buttons & Unified Pill System
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 26px;
  border-radius: var(--radius-pill);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  transition: all var(--dur-fast) var(--ease-out);
}

.btn--primary {
  background: var(--grad-obsidian);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 10px 26px -8px rgba(15, 23, 42, 0.42);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 16px 34px -8px rgba(37, 99, 235, 0.45);
}

.btn--ghost {
  background: var(--glass-card);
  color: var(--ink-primary);
  border-color: var(--hairline-strong);
  box-shadow: var(--specular-top), var(--shadow-xs);
}

.btn--ghost:hover {
  border-color: color-mix(in srgb, var(--page-accent) 45%, transparent);
  transform: translateY(-2px);
  box-shadow: var(--specular-top), var(--shadow-sm);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-secondary);
  background: rgba(15, 23, 42, 0.045);
  border: 1px solid rgba(15, 23, 42, 0.06);
  letter-spacing: 0.01em;
}

.pill--accent {
  color: var(--card-accent, var(--page-accent));
  background: color-mix(in srgb, var(--card-accent, var(--page-accent)) 9%, white);
  border-color: color-mix(in srgb, var(--card-accent, var(--page-accent)) 22%, white);
}

/* ==========================================================================
   Homepage Hero (Editorial Silk Aura + Gradient Display)
   ========================================================================== */
.hero {
  position: relative;
  padding: clamp(28px, 4vw, 48px) 0 clamp(56px, 7vw, 88px);
}

.hero__stage {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: stretch;
  min-height: min(78vh, 820px);
  margin-bottom: clamp(28px, 4vw, 44px);
}

.hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 720px;
  width: min(100%, 720px);
  justify-self: end;
  padding: clamp(36px, 6vw, 80px) clamp(16px, 2vw, 28px) clamp(36px, 6vw, 80px) max(20px, calc((100vw - var(--container-max)) / 2 + 20px));
  box-sizing: border-box;
}

.hero__photo {
  margin: 0;
  position: relative;
  min-height: min(72vh, 760px);
  overflow: hidden;
  border-radius: 0;
  animation: hero-photo-in 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero__photo::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: min(32%, 180px);
  background: linear-gradient(90deg, rgba(241, 246, 255, 0.95), rgba(241, 246, 255, 0));
  pointer-events: none;
  z-index: 1;
}

.hero__photo picture,
.hero__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 18%;
}

.hero__metrics-wrap {
  position: relative;
  z-index: 2;
}

@keyframes hero-photo-in {
  from {
    opacity: 0;
    transform: translateX(18px) scale(1.02);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-secondary);
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  background: var(--glass-card);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--specular-top), 0 6px 20px -6px rgba(37, 99, 235, 0.12);
  margin-bottom: 28px;
  width: fit-content;
}

.hero__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grad-accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}

.hero__title {
  margin: 0 0 24px;
  font-size: clamp(32px, 4.1vw, 51px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.032em;
  color: var(--ink-primary);
  max-width: 1040px;
}

.hero__title-muted {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 650;
}

.hero__lead {
  margin: 0 0 40px;
  font-size: clamp(16.5px, 1.5vw, 19px);
  line-height: 1.76;
  color: var(--ink-secondary);
  max-width: 740px;
}

.hero__lead strong {
  color: var(--ink-primary);
  font-weight: 650;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 0;
}

/* Luminous Glass Metrics Strip */
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--glass-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-lg);
  box-shadow: var(--specular-top), var(--shadow-card);
  overflow: hidden;
}

.hero-metric {
  padding: 26px 28px;
  border-right: 1px solid var(--hairline);
  transition: background var(--dur-fast) ease;
}

.hero-metric:hover {
  background: rgba(255, 255, 255, 0.6);
}

.hero-metric:last-child {
  border-right: none;
}

.hero-metric__value {
  font-family: var(--font-sans);
  font-size: clamp(23px, 2.2vw, 29px);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(120deg, #0f172a 15%, #2563eb 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.2;
  margin-bottom: 8px;
}

.hero-metric__label {
  font-size: 13px;
  color: var(--ink-secondary);
  line-height: 1.55;
}

/* ==========================================================================
   Unified Section Scaffolding (Signature Kicker Pill)
   ========================================================================== */
.section {
  padding: clamp(64px, 8vw, 108px) 0;
}

.section--bordered {
  border-top: 1px solid var(--hairline);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(32px, 4.5vw, 48px);
}

.section-head__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--grad-accent-soft);
  border: 1px solid color-mix(in srgb, var(--page-accent) 18%, white);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--page-accent);
  margin-bottom: 14px;
}

.section-head__kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--grad-accent);
}

.section-head__title {
  margin: 0;
  font-size: clamp(27px, 3.1vw, 38px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.18;
  color: var(--ink-primary);
}

.section-head__desc {
  margin: 0;
  max-width: 450px;
  font-size: 14.5px;
  color: var(--ink-secondary);
  line-height: 1.68;
}

/* ==========================================================================
   Selected Works Gallery Cards (Luminous Specular Surface)
   ========================================================================== */
.works-stack {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.project-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(0, 0.92fr);
  background: var(--glass-card);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--specular-top), var(--shadow-card);
  transition: transform var(--dur-med) var(--ease-out),
    box-shadow var(--dur-med) var(--ease-out),
    border-color var(--dur-med) ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow:
    var(--specular-top),
    0 26px 60px -16px color-mix(in srgb, var(--card-accent, var(--page-accent)) 22%, rgba(15, 23, 42, 0.16));
  border-color: color-mix(in srgb, var(--card-accent, var(--page-accent)) 28%, white);
}

.project-card--reverse {
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.28fr);
}

.project-card--reverse .project-card__media {
  order: 2;
}

.project-card__media {
  position: relative;
  background: var(--media-bg, var(--bg-studio));
  overflow: hidden;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.project-card__media > img {
  width: 100%;
  height: auto;
  object-fit: contain;
  transition: transform var(--dur-slow) var(--ease-out);
}

.project-card__media--seamless {
  padding: 18px;
  background: radial-gradient(circle at 50% 42%, #ffffff 0%, #f1eef6 68%, #ebe6f3 100%);
}

.project-card:hover .project-card__media > img {
  transform: scale(1.028);
}

/* ==========================================================================
   Native HTML/CSS Responsive Cover Artboards
   ========================================================================== */
.artboard {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 400px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(26px, 3.2vw, 40px);
  user-select: none;
}

/* --- Artboard 01: DingTalk Flash Note 2.0 --- */
.artboard--dingtalk {
  background: linear-gradient(128deg, #ffffff 0%, #eff5ff 44%, #d6e4ff 100%);
}

.art-dt__orb {
  position: absolute;
  width: 54%;
  aspect-ratio: 1;
  top: 4%;
  left: 28%;
  border-radius: 50%;
  background: radial-gradient(
    circle at 34% 32%,
    rgba(255, 255, 255, 0.96) 0%,
    rgba(222, 237, 255, 0.56) 54%,
    rgba(176, 208, 255, 0.65) 100%
  );
  box-shadow: inset -12px -16px 32px rgba(145, 186, 255, 0.28);
  pointer-events: none;
  z-index: 1;
}

.art-dt__logo {
  position: relative;
  z-index: 2;
  height: 28px;
  width: auto;
  object-fit: contain;
  align-self: flex-start;
}

.art-dt__copy {
  position: relative;
  z-index: 2;
  max-width: 64%;
  margin: auto 0;
  padding: 20px 0 14px;
}

.art-dt__title {
  margin: 0;
  font-size: clamp(25px, 2.55vw, 38px);
  font-weight: 750;
  line-height: 1.24;
  letter-spacing: -0.025em;
  background: linear-gradient(120deg, #1d4ed8 0%, #2563eb 60%, #0284c7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.art-dt__title span {
  display: block;
}

.art-dt__tagline {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 66%;
  font-size: clamp(12px, 1.02vw, 14px);
  font-weight: 600;
  color: #2558d8;
  line-height: 1.45;
}

.art-dt__mic {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: #1677ff;
}

.art-dt__mascot {
  position: absolute;
  right: -2%;
  bottom: -6%;
  width: clamp(200px, 46%, 315px);
  height: auto;
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 18px 28px rgba(36, 82, 228, 0.16));
  transition: transform 560ms var(--ease-out);
}

.project-card:hover .art-dt__mascot {
  transform: translateY(-7px) scale(1.03);
}

/* --- Artboard 02: Tencent Health Large-Conference Tool --- */
.artboard--tencent {
  background: linear-gradient(132deg, #f3f9ff 0%, #e4f0ff 52%, #cfe4ff 100%);
}

.art-tx__orb {
  position: absolute;
  width: 58%;
  aspect-ratio: 1;
  top: -14%;
  left: 22%;
  border-radius: 50%;
  background: radial-gradient(
    circle at 40% 40%,
    rgba(182, 206, 255, 0.56) 0%,
    rgba(195, 216, 255, 0.24) 62%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.art-tx__head {
  position: relative;
  z-index: 3;
  max-width: 58%;
}

.art-tx__logo {
  height: 24px;
  width: auto;
  object-fit: contain;
  margin-bottom: 22px;
}

.art-tx__title {
  margin: 0 0 8px;
  font-size: clamp(21px, 2.05vw, 29px);
  font-weight: 750;
  line-height: 1.28;
  letter-spacing: -0.025em;
  color: #0f172a;
}

.art-tx__title em {
  font-style: normal;
  background: linear-gradient(115deg, #0052d9 0%, #0284c7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.art-tx__sub {
  margin: 0 0 18px;
  font-size: 14px;
  font-weight: 500;
  color: #475569;
}

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

.art-tx__pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0052d9 0%, #1d6bf3 100%);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 6px 14px -4px rgba(0, 82, 217, 0.34);
}

.art-tx__web {
  position: absolute;
  right: -8%;
  bottom: 2%;
  width: 66%;
  height: auto;
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 16px 32px rgba(15, 23, 42, 0.13));
  transition: transform 560ms var(--ease-out);
}

.art-tx__mobile {
  position: absolute;
  right: 28%;
  bottom: -12%;
  width: 26%;
  height: auto;
  z-index: 3;
  pointer-events: none;
  filter: drop-shadow(0 18px 34px rgba(15, 23, 42, 0.18));
  transition: transform 620ms var(--ease-out);
}

.project-card:hover .art-tx__web {
  transform: translateY(-5px);
}

.project-card:hover .art-tx__mobile {
  transform: translateY(-9px);
}

/* --- Artboard 04: Meituan Beidou LLM Talent Sourcing --- */
.artboard--meituan {
  background: linear-gradient(135deg, #fffdf7 0%, #fef7df 52%, #f9edc4 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 20px;
}

.art-mt__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(17, 24, 39, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 24, 39, 0.035) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 84% 78% at 54% 48%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 84% 78% at 54% 48%, #000 30%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

.art-mt__orb {
  position: absolute;
  width: 56%;
  aspect-ratio: 1;
  top: -18%;
  right: -8%;
  border-radius: 50%;
  background: radial-gradient(
    circle at 42% 42%,
    rgba(255, 195, 0, 0.34) 0%,
    rgba(255, 209, 0, 0.12) 56%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.art-mt__head {
  position: relative;
  z-index: 3;
}

.art-mt__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.art-mt__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 26px;
  padding: 0 9px;
  border-radius: 7px;
  background: #ffc300;
  color: #111827;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: inset 0 -1px 0 rgba(17, 24, 39, 0.14);
}

.art-mt__program {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.08em;
  color: #78350f;
  text-transform: uppercase;
}

.art-mt__title {
  margin: 0 0 8px;
  font-size: clamp(20px, 1.95vw, 27px);
  font-weight: 760;
  line-height: 1.26;
  letter-spacing: -0.025em;
  color: #111827;
}

.art-mt__title em {
  font-style: normal;
  color: #92400e;
}

.art-mt__sub {
  margin: 0 0 16px;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.55;
  color: #57534e;
}

.art-mt__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.art-mt__tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 7px;
  background: #18181b;
  color: #ffc300;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.art-mt__funnel-card {
  position: relative;
  z-index: 3;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 16px;
  padding: 16px 16px 14px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 18px 36px -14px rgba(120, 53, 15, 0.16);
  transition: transform 520ms var(--ease-out);
}

.project-card:hover .art-mt__funnel-card {
  transform: translateY(-5px);
}

.art-mt__fc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(17, 24, 39, 0.06);
  font-size: 11px;
  font-weight: 650;
  color: #111827;
}

.art-mt__fc-head span:last-child {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: #78716c;
}

.art-mt__steps {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.art-mt__step {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.art-mt__step-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 11px;
  color: #44403c;
  font-weight: 550;
}

.art-mt__step-val {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 750;
  color: #111827;
  font-variant-numeric: tabular-nums;
}

.art-mt__bar-track {
  height: 7px;
  border-radius: 999px;
  background: #f5f3ec;
  overflow: hidden;
}

.art-mt__bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #18181b 0%, #3f3f46 100%);
}

.art-mt__bar-fill--gold {
  background: linear-gradient(90deg, #f59e0b 0%, #ffc300 100%);
}

.art-mt__step--handoff {
  margin-top: 2px;
  padding-top: 8px;
  border-top: 1px dashed rgba(17, 24, 39, 0.14);
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  font-size: 10.5px;
  color: #78716c;
}

.art-mt__handoff-pill {
  padding: 2px 7px;
  border-radius: 5px;
  background: #f5f5f4;
  border: 1px solid rgba(17, 24, 39, 0.08);
  font-size: 10px;
  font-weight: 600;
  color: #57534e;
}

.project-card__body {
  padding: clamp(28px, 3.6vw, 44px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.project-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.project-card__index {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--card-accent, var(--ink-muted));
  letter-spacing: 0.08em;
}

.project-card__title {
  margin: 0 0 10px;
  font-size: clamp(22px, 2.3vw, 28px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
  color: var(--ink-primary);
}

.project-card__subtitle {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--card-accent, var(--ink-secondary));
}

.project-card__summary {
  margin: 0 0 22px;
  font-size: 14.5px;
  line-height: 1.72;
  color: var(--ink-secondary);
}

.project-card__highlights {
  list-style: none;
  margin: 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.project-card__highlights li {
  position: relative;
  padding-left: 16px;
  font-size: 13.5px;
  color: var(--ink-secondary);
  line-height: 1.55;
}

.project-card__highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--card-accent, var(--ink-muted));
  opacity: 0.85;
}

.project-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
}

.project-card__meta {
  font-size: 12.5px;
  color: var(--ink-muted);
}

.project-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--card-accent, var(--ink-primary)) 8%, transparent);
  font-size: 13.5px;
  font-weight: 650;
  color: var(--card-accent, var(--ink-primary));
  white-space: nowrap;
  transition: background var(--dur-fast) ease, color var(--dur-fast) ease;
}

.project-card:hover .project-card__link {
  background: var(--card-accent, var(--ink-primary));
  color: #ffffff;
}

.project-card__link svg {
  transition: transform var(--dur-fast) var(--ease-out);
}

.project-card:hover .project-card__link svg {
  transform: translateX(3px);
}

/* ==========================================================================
   Academic Publications
   ========================================================================== */
.pub-list {
  background: var(--glass-card);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-lg);
  box-shadow: var(--specular-top), var(--shadow-card);
  overflow: hidden;
}

.pub-item {
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: start;
  padding: 28px 34px;
  border-bottom: 1px solid var(--hairline);
  transition: background var(--dur-fast) ease;
}

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

.pub-item:hover {
  background: rgba(240, 246, 255, 0.52);
}

.pub-item__venue {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pub-item__year {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-muted);
}

.pub-item__badge {
  display: inline-flex;
  width: fit-content;
  padding: 5px 11px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 650;
  color: var(--accent-primary);
  background: var(--grad-accent-soft);
  border: 1px solid rgba(37, 99, 235, 0.16);
}

.pub-item__title {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 650;
  line-height: 1.45;
  color: var(--ink-primary);
}

.pub-item__authors {
  margin: 0 0 8px;
  font-size: 13.5px;
  color: var(--ink-muted);
}

.pub-item__authors strong {
  color: var(--ink-primary);
  font-weight: 650;
}

.pub-item__desc {
  margin: 0;
  font-size: 14px;
  color: var(--ink-secondary);
  line-height: 1.68;
}

.pub-item__action {
  align-self: center;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent-link);
  white-space: nowrap;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ==========================================================================
   Other Design & Hardware Explorations
   ========================================================================== */
.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.mini-card {
  background: var(--glass-card);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--specular-top), var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  transition: transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) ease,
    border-color var(--dur-fast) ease;
}

.mini-card:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, 0.22);
  box-shadow: var(--specular-top), var(--shadow-card-hover);
}

.mini-card__tag {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--grad-accent-soft);
  font-size: 11.5px;
  font-weight: 650;
  color: var(--accent-primary);
  margin-bottom: 12px;
}

.mini-card__title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.mini-card__desc {
  margin: 0;
  font-size: 14px;
  color: var(--ink-secondary);
  line-height: 1.66;
}

.mini-card__award {
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-primary);
}

/* ==========================================================================
   Experience, Education, Awards & Skills Grid
   ========================================================================== */
.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 28px;
  align-items: start;
}

.panel {
  background: var(--glass-card);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-lg);
  padding: 32px 34px;
  box-shadow: var(--specular-top), var(--shadow-card);
}

.panel + .panel {
  margin-top: 24px;
}

.panel__title {
  margin: 0 0 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--page-accent);
  text-transform: uppercase;
}

.panel__title::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--grad-accent);
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.timeline-item {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--hairline);
}

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

.timeline-item__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 4px;
}

.timeline-item__org {
  font-size: 16.5px;
  font-weight: 650;
  color: var(--ink-primary);
}

.timeline-item__date {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
  white-space: nowrap;
}

.timeline-item__role {
  font-size: 14px;
  font-weight: 550;
  color: var(--accent-primary);
  margin-bottom: 10px;
}

.timeline-item__list {
  margin: 0;
  padding-left: 18px;
  font-size: 13.8px;
  color: var(--ink-secondary);
  line-height: 1.68;
}

.timeline-item__list li + li {
  margin-top: 5px;
}

.award-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.award-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--hairline);
}

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

.award-item__title {
  font-size: 14.5px;
  font-weight: 650;
  color: var(--ink-primary);
  margin-bottom: 3px;
}

.award-item__sub {
  font-size: 13px;
  color: var(--ink-secondary);
}

.award-item__year {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 650;
  color: var(--accent-primary);
  background: var(--grad-accent-soft);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.skill-groups {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.skill-group__label {
  font-size: 12.5px;
  font-weight: 650;
  color: var(--ink-muted);
  margin-bottom: 8px;
}

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

.skill-tag {
  padding: 5px 12px;
  border-radius: var(--radius-xs);
  font-size: 12.5px;
  font-weight: 550;
  color: var(--ink-primary);
  background: rgba(241, 245, 255, 0.85);
  border: 1px solid rgba(37, 99, 235, 0.1);
  transition: border-color var(--dur-fast) ease, background var(--dur-fast) ease;
}

.skill-tag:hover {
  background: #ffffff;
  border-color: rgba(37, 99, 235, 0.28);
}

/* ==========================================================================
   Sculptural Obsidian Contact Card & Footer
   ========================================================================== */
.contact-card {
  position: relative;
  overflow: hidden;
  background: var(--grad-obsidian);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  padding: clamp(38px, 5.2vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  color: #ffffff;
  box-shadow: var(--shadow-obsidian);
}

.contact-card::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -80px;
  top: -140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.36) 0%, rgba(56, 189, 248, 0.12) 48%, transparent 72%);
  pointer-events: none;
}

.contact-card > * {
  position: relative;
  z-index: 2;
}

.contact-card .section-head__kicker {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: #a5b4fc;
}

.contact-card__title {
  margin: 0 0 10px;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -0.028em;
  color: #ffffff;
}

.contact-card__desc {
  margin: 0;
  font-size: 15px;
  color: var(--ink-inverse-muted);
  max-width: 520px;
}

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

.contact-card .btn--primary {
  background: linear-gradient(135deg, #ffffff 0%, #eef2ff 100%);
  color: #0f172a;
  box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.4);
}

.contact-card .btn--primary:hover {
  background: #ffffff;
}

.contact-card .btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: none;
}

.contact-card .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.42);
}

.site-footer {
  padding: 36px 0 56px;
  border-top: 1px solid var(--hairline);
  margin-top: 64px;
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ink-muted);
}

/* ==========================================================================
   Case Study Detail Pages (Unified Editorial Design System)
   ========================================================================== */
.case-hero {
  padding: clamp(44px, 6vw, 72px) 0 40px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 0;
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 550;
  color: var(--ink-tertiary);
  margin-bottom: 28px;
  transition: color var(--dur-fast) var(--ease-out);
}

.back-link svg {
  transition: transform var(--dur-fast) var(--ease-out);
}

.back-link:hover {
  color: var(--ink-primary);
}

.back-link:hover svg {
  transform: translateX(-3px);
}

.case-hero__kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: none;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--page-accent);
  margin-bottom: 12px;
  letter-spacing: 0.08em;
}

.case-hero__kicker::before {
  content: "";
  width: 18px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--page-accent);
  opacity: 0.72;
}

.case-hero__title {
  margin: 0 0 16px;
  font-size: clamp(32px, 4.4vw, 52px);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.032em;
  color: var(--ink-primary);
}

.case-hero__lead {
  margin: 0 0 36px;
  font-size: clamp(16px, 1.48vw, 18.5px);
  line-height: 1.74;
  color: var(--ink-secondary);
  max-width: 800px;
}

.case-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--glass-card);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-lg);
  box-shadow: var(--specular-top), var(--shadow-card);
  overflow: hidden;
  margin-bottom: 36px;
}

.case-meta__item {
  padding: 22px 24px;
  border-right: 1px solid var(--hairline);
}

.case-meta__item:last-child {
  border-right: none;
}

.case-meta__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
  margin-bottom: 6px;
}

.case-meta__value {
  font-size: 14.5px;
  font-weight: 650;
  color: var(--ink-primary);
  line-height: 1.45;
}

.case-hero__visual {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.92);
  background: var(--bg-studio);
  box-shadow: var(--specular-top), var(--shadow-card);
}

.case-hero__visual > img {
  width: 100%;
  cursor: zoom-in;
}

/* Case study pages use a single calm sticky chapter bar (reclaims 68px viewport height) */
body[data-theme] .site-nav {
  position: relative;
}

/* Sticky Chapter Bar (Single Calm Top Bar) */
.chapter-nav {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(248, 250, 254, 0.92);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  margin-top: 36px;
}

.chapter-nav__list {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 10px 0;
  margin: 0;
  list-style: none;
}

.chapter-nav__list::-webkit-scrollbar {
  display: none;
}

.chapter-nav__list a {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-secondary);
  white-space: nowrap;
  transition: color var(--dur-fast) ease, background var(--dur-fast) ease;
}

.chapter-nav__list a:hover {
  color: var(--ink-primary);
  background: rgba(15, 23, 42, 0.05);
}

.chapter-nav__list a.is-active {
  color: #ffffff;
  font-weight: 600;
  background: #0f172a;
}

/* Case Study Chapters */
.case-section {
  padding: clamp(72px, 8vw, 108px) 0;
  border-bottom: 1px solid var(--hairline);
  scroll-margin-top: 68px;
}

.case-section:last-of-type {
  border-bottom: none;
}

.case-section__header {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
  gap: 36px;
  align-items: start;
  margin-bottom: 44px;
}

.case-section__text {
  padding-top: 28px;
}

.case-section__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--page-accent);
  margin-bottom: 10px;
}

.case-section__title {
  margin: 0;
  font-size: clamp(23px, 2.5vw, 31px);
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.24;
  color: var(--ink-primary);
}

.case-section__desc {
  margin: 12px 0 0;
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--ink-secondary);
  max-width: 740px;
}

.case-section__text {
  font-size: 15.5px;
  line-height: 1.78;
  color: var(--ink-secondary);
}

.case-section__text p {
  margin: 0 0 14px;
}

.case-section__text p:last-child {
  margin-bottom: 0;
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

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

.insight-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  box-shadow: var(--specular-top), var(--shadow-xs);
}

.insight-card__label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--page-accent);
  margin-bottom: 7px;
}

.insight-card__title {
  margin: 0 0 6px;
  font-size: 15.5px;
  font-weight: 650;
  color: var(--ink-primary);
}

.insight-card__body {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.64;
  color: var(--ink-secondary);
}

/* Next / Prev Case Study Pager */
.project-pager {
  padding: 48px 0 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.pager-card {
  background: var(--glass-card);
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: var(--radius-lg);
  padding: 28px 30px;
  box-shadow: var(--specular-top), var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) ease,
    box-shadow var(--dur-fast) ease;
}

.pager-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--page-accent) 30%, white);
  box-shadow: var(--specular-top), var(--shadow-card-hover);
}

.pager-card--right {
  text-align: right;
  align-items: flex-end;
}

.pager-card__dir {
  font-size: 12.5px;
  font-weight: 650;
  color: var(--page-accent);
}

.pager-card__title {
  font-size: 19px;
  font-weight: 700;
  color: var(--ink-primary);
  letter-spacing: -0.02em;
}

.pager-card__sub {
  font-size: 13.5px;
  color: var(--ink-secondary);
}

/* ==========================================================================
   Full-Screen Gallery Lightbox
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(10, 14, 26, 0.94);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

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

.lightbox__stage {
  max-width: min(94vw, 1520px);
  max-height: calc(100vh - 130px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__img {
  max-width: 100%;
  max-height: calc(100vh - 130px);
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}

.lightbox__bar {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(94vw, 1180px);
  color: rgba(255, 255, 255, 0.88);
  font-size: 13.5px;
}

.lightbox__counter {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.56);
  white-space: nowrap;
}

.lightbox__btn {
  position: fixed;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur-fast) ease, transform var(--dur-fast) ease;
}

.lightbox__btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

.lightbox__close {
  top: 20px;
  right: 22px;
}

.lightbox__prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

/* ==========================================================================
   Toast Notification
   ========================================================================== */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(16px);
  background: var(--grad-obsidian);
  color: #ffffff;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 13.5px;
  font-weight: 550;
  box-shadow: 0 16px 38px rgba(11, 16, 32, 0.36);
  opacity: 0;
  pointer-events: none;
  z-index: 1000;
  transition: opacity 220ms ease, transform 260ms var(--ease-out);
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   Scroll Reveal Motion
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 380ms var(--ease-out),
    transform 380ms var(--ease-out);
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero__photo {
    animation: none;
  }
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 980px) {
  .hero__stage {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 0;
  }

  .hero__copy {
    max-width: none;
    width: 100%;
    justify-self: stretch;
    padding: clamp(48px, 8vw, 72px) 20px 28px;
    order: 2;
  }

  .hero__photo {
    order: 1;
    min-height: min(58vh, 520px);
    max-height: 560px;
  }

  .hero__photo::after {
    inset: auto 0 0 0;
    width: auto;
    height: 36%;
    background: linear-gradient(0deg, rgba(241, 246, 255, 0.98), rgba(241, 246, 255, 0));
  }

  .hero__photo img {
    object-position: 50% 16%;
  }

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

  .hero-metric:nth-child(2),
  .case-meta__item:nth-child(2) {
    border-right: none;
  }

  .hero-metric:nth-child(1),
  .hero-metric:nth-child(2),
  .case-meta__item:nth-child(1),
  .case-meta__item:nth-child(2) {
    border-bottom: 1px solid var(--hairline);
  }

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

  .project-card--reverse .project-card__media {
    order: 0;
  }

  .project-card__media,
  .artboard {
    min-height: 310px;
  }

  .art-dt__mascot {
    width: 44%;
    max-width: 240px;
  }

  .art-tx__head {
    max-width: 100%;
    margin-bottom: 110px;
  }

  .art-tx__web {
    width: 66%;
    bottom: -4%;
  }

  .art-tx__mobile {
    width: 28%;
    right: 40%;
    bottom: -14%;
  }

  .artboard--meituan {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .pub-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .mini-grid,
  .insight-grid,
  .profile-grid,
  .case-section__header {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .case-section__text {
    padding-top: 0;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 680px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

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

  .hero-metrics,
  .case-meta,
  .project-pager {
    grid-template-columns: 1fr;
  }

  .hero-metric,
  .case-meta__item {
    border-right: none;
    border-bottom: 1px solid var(--hairline);
  }

  .hero-metric:last-child,
  .case-meta__item:last-child {
    border-bottom: none;
  }

  .panel {
    padding: 24px 20px;
  }

  .pub-item {
    padding: 22px 20px;
  }

  .lightbox__prev,
  .lightbox__next {
    display: none;
  }
}
