﻿:root {
  color-scheme: dark;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #eef4ff;
  background: #080a0f;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --bg: #080a0f;
  --panel: rgba(14, 18, 28, 0.9);
  --panel-strong: rgba(20, 26, 39, 0.96);
  --line: rgba(178, 197, 233, 0.26);
  --muted: #cbd5e1;
  --text: #f8fafc;
  --text-body: #e5edf7;
  --accent: #7bd7c9;
  --accent-2: #9db7ff;
  --accent-3: #f3c988;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.project-deep-dive-section {
  scroll-margin-top: 112px;
}

.deep-dive-list li {
  line-height: 1.75;
}

.project-doc-links-section {
  border-color: rgba(90, 180, 255, 0.32);
  background:
    linear-gradient(135deg, rgba(18, 47, 80, 0.78), rgba(6, 12, 25, 0.92)),
    rgba(8, 16, 32, 0.92);
}

.project-doc-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.project-doc-link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 14px 16px;
  color: #f7fbff;
  text-decoration: none;
  border: 1px solid rgba(109, 194, 255, 0.32);
  border-radius: 8px;
  background: rgba(7, 18, 34, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.project-doc-link-card span {
  font-size: 0.95rem;
  font-weight: 700;
}

.project-doc-link-card strong {
  flex: 0 0 auto;
  color: #85f4ff;
  font-size: 0.78rem;
  letter-spacing: 0;
}

.project-doc-link-card:hover {
  border-color: rgba(133, 244, 255, 0.74);
  transform: translateY(-1px);
}

@media (max-width: 720px) {
  .project-doc-link-grid {
    grid-template-columns: 1fr;
  }
}

/* Step 15 EOF override: this block intentionally sits after all previous theme steps. */
:root,
:root[data-theme="light"],
:root[data-theme="dark"] {
  color-scheme: dark !important;
  --page-bg: #070b12;
  --page-bg-2: #0b1220;
  --surface: rgba(15, 23, 42, 0.92);
  --surface-soft: rgba(20, 31, 52, 0.78);
  --surface-strong: rgba(30, 41, 59, 0.94);
  --text-main: #f8fafc;
  --text-body: #e5edf7;
  --text-muted: #b8c4d4;
  --text-subtle: #93a4b8;
  --accent: #5eead4;
  --accent-strong: #2dd4bf;
  --accent-soft: rgba(45, 212, 191, 0.14);
  --border-soft: rgba(148, 163, 184, 0.22);
  --border-strong: rgba(148, 163, 184, 0.38);
  --container: 1120px;
  --shadow-card: 0 24px 80px rgba(0, 0, 0, 0.32);
  --shadow-soft: 0 16px 50px rgba(0, 0, 0, 0.22);
}

html,
body,
:root[data-theme="light"] body,
:root[data-theme="dark"] body {
  color-scheme: dark !important;
  color: var(--text-body) !important;
  background: #070b12 !important;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 10%, rgba(45, 212, 191, 0.18), transparent 28%),
    radial-gradient(circle at 85% 18%, rgba(99, 102, 241, 0.16), transparent 30%),
    linear-gradient(180deg, #070b12 0%, #0b1220 48%, #070b12 100%) !important;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.055) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.82), transparent 78%);
}

.navbar,
.section,
.workflow-section,
.review-checklist-page,
.detail-main,
.essay-detail,
.hero,
.profile-hero,
.footer {
  width: min(1120px, calc(100% - 48px)) !important;
  max-width: 1120px !important;
  margin-inline: auto !important;
}

.profile-fact-grid > *,
.glass-card,
.project-card,
.essay-card,
.capability-card,
.proof-card,
.workflow-card,
.experience-card,
.role-fit-card,
.career-card,
.resume-grid article,
.review-section,
.todo-card,
.detail-card,
.contact-links a,
.contact-placeholder,
.education-card,
.profile-summary-card {
  color: var(--text-body) !important;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.93), rgba(15, 23, 42, 0.75)),
    radial-gradient(circle at 20% 0%, rgba(45, 212, 191, 0.08), transparent 16rem) !important;
  border: 1px solid rgba(148, 163, 184, 0.22) !important;
  box-shadow: var(--shadow-soft) !important;
}

.hero h1,
.profile-hero h1,
.section h2,
.review-hero h1,
.glass-card h3,
.project-card h3,
.workflow-card h3,
.essay-card h3 {
  color: var(--text-main) !important;
}

.hero-subtitle,
.section-lede,
.profile-hero .hero-subtitle,
.glass-card p,
.project-card p,
.workflow-card p,
.essay-card p,
.career-card li {
  color: var(--text-body) !important;
}

.tag,
.pill,
.project-status,
.detail-meta-row span,
.architecture-line span,
.evidence-chain span,
.project-value,
.key-idea,
.review-node,
.evidence-block,
.workflow-value {
  color: #dffcf8 !important;
  background: rgba(45, 212, 191, 0.08) !important;
  border-color: rgba(94, 234, 212, 0.28) !important;
}

.button,
.small-link {
  color: var(--text-main) !important;
  background: rgba(15, 23, 42, 0.74) !important;
  border-color: rgba(148, 163, 184, 0.28) !important;
}

.button.primary,
.small-link.primary-link {
  color: #031312 !important;
  background: linear-gradient(135deg, #5eead4, #38bdf8) !important;
  border-color: rgba(94, 234, 212, 0.58) !important;
}

.hero-visual,
.profile-visual {
  border-color: rgba(94, 234, 212, 0.2) !important;
  background:
    radial-gradient(circle at 50% 44%, rgba(94, 234, 212, 0.18), transparent 11rem),
    radial-gradient(circle at 82% 18%, rgba(96, 165, 250, 0.18), transparent 18rem),
    linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(7, 11, 18, 0.96) 58%, rgba(13, 48, 54, 0.88)) !important;
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.42) !important;
}

.workflow-section,
.workflow-grid,
.workflow-card,
.workflow-board,
.workflow-list {
  max-width: 1120px !important;
  margin-inline: auto !important;
}

.workflow-section {
  width: min(1120px, calc(100% - 48px)) !important;
  padding-inline: 0 !important;
}

.workflow-grid {
  width: 100% !important;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)) !important;
}

.back-to-top {
  color: var(--accent) !important;
  background: rgba(15, 23, 42, 0.78) !important;
  border: 1px solid rgba(94, 234, 212, 0.38) !important;
}

@media print {
  :root,
  :root[data-theme="light"],
  :root[data-theme="dark"],
  html,
  body {
    color-scheme: light !important;
    color: #111827 !important;
    background: #ffffff !important;
  }

  body::before,
  body::after,
  .background-layer,
  .back-to-top {
    display: none !important;
  }
}

/* Step 15: dark premium tech theme rebuild. */
:root,
:root[data-theme="light"] {
  color-scheme: dark;
  --page-bg: #070b12;
  --page-bg-2: #0b1220;
  --surface: rgba(15, 23, 42, 0.92);
  --surface-soft: rgba(20, 31, 52, 0.78);
  --surface-strong: rgba(30, 41, 59, 0.94);
  --text-main: #f8fafc;
  --text-body: #e5edf7;
  --text-muted: #b8c4d4;
  --text-subtle: #93a4b8;
  --accent: #5eead4;
  --accent-strong: #2dd4bf;
  --accent-deep: #0f766e;
  --accent-soft: rgba(45, 212, 191, 0.14);
  --border-soft: rgba(148, 163, 184, 0.22);
  --border-strong: rgba(148, 163, 184, 0.38);
  --line: rgba(148, 163, 184, 0.22);
  --line-strong: rgba(148, 163, 184, 0.38);
  --danger: #f97316;
  --success: #22c55e;
  --container: 1120px;
  --container-wide: 1180px;
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow-card: 0 24px 80px rgba(0, 0, 0, 0.32);
  --shadow-soft: 0 16px 50px rgba(0, 0, 0, 0.22);
}

html,
body {
  color-scheme: dark;
  background: #070b12 !important;
  color: var(--text-body);
  scroll-behavior: smooth;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 10%, rgba(45, 212, 191, 0.18), transparent 28%),
    radial-gradient(circle at 85% 18%, rgba(99, 102, 241, 0.16), transparent 30%),
    radial-gradient(circle at 50% 100%, rgba(14, 165, 233, 0.12), transparent 34%),
    linear-gradient(180deg, #070b12 0%, #0b1220 48%, #070b12 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.055) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.82), transparent 78%);
}

.background-layer,
.grid-noise {
  opacity: 0.42;
}

.glow-a {
  background: rgba(45, 212, 191, 0.18);
}

.glow-b {
  background: rgba(99, 102, 241, 0.14);
}

.container,
.section-inner,
.hero-inner,
.detail-inner,
.review-inner,
.navbar,
.section,
.workflow-section,
.review-checklist-page,
.detail-main,
.essay-detail,
.hero,
.profile-hero,
.footer {
  width: min(1120px, calc(100% - 48px)) !important;
  max-width: 1120px;
  margin-inline: auto !important;
}

.site-shell,
:root[data-theme="light"] body {
  background: transparent !important;
  color: var(--text-body);
}

.navbar {
  background: rgba(7, 11, 18, 0.76);
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links a,
.language-switch,
.icon-button {
  color: var(--text-body);
}

.brand-mark {
  color: #04111b;
  background: linear-gradient(135deg, var(--accent), #93c5fd);
  box-shadow: 0 10px 30px rgba(45, 212, 191, 0.22);
}

.nav-links a:hover,
.language-switch:hover,
.icon-button:hover {
  color: var(--text-main);
  border-color: rgba(94, 234, 212, 0.42);
  background: rgba(45, 212, 191, 0.09);
}

.profile-hero {
  position: relative;
  min-height: min(820px, calc(100vh - 24px));
  padding-block: 92px 104px;
  align-items: center;
}

.profile-hero::before {
  inset: 34px -32px 26px;
  border: 1px solid rgba(94, 234, 212, 0.2);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.78), rgba(7, 11, 18, 0.34)),
    radial-gradient(circle at 15% 20%, rgba(45, 212, 191, 0.16), transparent 26rem),
    radial-gradient(circle at 88% 7%, rgba(96, 165, 250, 0.12), transparent 30rem);
  box-shadow: 0 32px 120px rgba(0, 0, 0, 0.34);
}

.hero h1,
.profile-hero h1 {
  color: var(--text-main);
  text-shadow: 0 12px 48px rgba(45, 212, 191, 0.14);
}

.hero-cn,
.profile-hero .hero-cn {
  color: #dffcf8;
}

.hero-subtitle,
.section-lede,
.profile-hero .hero-subtitle {
  color: var(--text-body);
}

.eyebrow,
.section-kicker {
  color: var(--accent);
  background: rgba(45, 212, 191, 0.08);
  border: 1px solid rgba(45, 212, 191, 0.22);
  box-shadow: inset 0 0 18px rgba(45, 212, 191, 0.04);
}

.profile-fact-grid > *,
.glass-card,
.card,
.profile-card,
.project-card,
.essay-card,
.capability-card,
.proof-card,
.workflow-card,
.experience-card,
.role-fit-card,
.career-card,
.resume-grid article,
.review-section,
.todo-card,
.detail-card,
.contact-links a,
.contact-placeholder,
.education-card,
.profile-summary-card {
  color: var(--text-body);
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.93), rgba(15, 23, 42, 0.75)),
    radial-gradient(circle at 20% 0%, rgba(45, 212, 191, 0.08), transparent 16rem);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.glass-card:hover,
.project-card:hover,
.essay-card:hover,
.capability-card:hover,
.proof-card:hover,
.workflow-card:hover,
.experience-card:hover,
.role-fit-card:hover,
.career-card:hover,
.review-section:hover {
  transform: translateY(-4px);
  border-color: rgba(94, 234, 212, 0.42);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
}

.glass-card h3,
.project-card h3,
.workflow-card h3,
.essay-card h3,
.resume-grid h3,
.proof-card h3,
.career-card h3,
.role-fit-card h3,
.capability-card h3,
.review-section h2 {
  color: var(--text-main);
}

.glass-card p,
.project-card p,
.workflow-card p,
.essay-card p,
.proof-card p,
.career-card p,
.career-card li,
.resume-grid p,
.detail-card p,
.review-node p,
.workflow-bottom p,
.contact-placeholder strong,
.contact-links strong {
  color: var(--text-body);
}

.card-topline,
.visual-label,
.profile-summary-card span,
.contact-links span,
.contact-placeholder span {
  color: var(--text-subtle);
}

.tag,
.pill,
.resume-pills .pill,
.project-status,
.detail-meta-row span,
.architecture-line span,
.evidence-chain span {
  color: #dffcf8;
  background: rgba(45, 212, 191, 0.08);
  border: 1px solid rgba(94, 234, 212, 0.28);
  box-shadow: inset 0 0 18px rgba(45, 212, 191, 0.04);
}

.button,
.small-link {
  border-radius: var(--radius-sm);
  border-color: rgba(148, 163, 184, 0.28);
  color: var(--text-main);
  background: rgba(15, 23, 42, 0.74);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.button:hover,
.small-link:hover {
  transform: translateY(-2px);
  border-color: rgba(94, 234, 212, 0.5);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
}

.button.primary,
.small-link.primary-link {
  color: #031312;
  border-color: rgba(94, 234, 212, 0.58);
  background: linear-gradient(135deg, #5eead4, #38bdf8);
  box-shadow: 0 18px 52px rgba(45, 212, 191, 0.2);
}

.button.secondary,
.button.ghost,
.small-link.disabled,
.disabled-button {
  color: var(--text-body);
  background: rgba(15, 23, 42, 0.62);
  border-color: rgba(148, 163, 184, 0.3);
  opacity: 1;
}

.disabled-button,
.small-link.disabled,
.contact-placeholder {
  border-style: dashed;
  color: var(--text-muted);
}

.hero-visual,
.profile-visual {
  min-height: 520px;
  overflow: hidden;
  border: 1px solid rgba(94, 234, 212, 0.2);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 50% 44%, rgba(94, 234, 212, 0.18), transparent 11rem),
    radial-gradient(circle at 82% 18%, rgba(96, 165, 250, 0.18), transparent 18rem),
    linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(7, 11, 18, 0.96) 58%, rgba(13, 48, 54, 0.88));
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.42);
  animation: heroFloat 8s ease-in-out infinite;
}

.hero-visual::before,
.profile-visual::before {
  content: "";
  position: absolute;
  inset: 28px;
  border: 1px solid rgba(94, 234, 212, 0.18);
  border-radius: 50%;
  box-shadow:
    0 0 0 42px rgba(94, 234, 212, 0.035),
    0 0 0 86px rgba(59, 130, 246, 0.025);
}

.hero-visual::after,
.profile-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.055) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.8), transparent 72%);
  pointer-events: none;
}

.system-core,
.radar-core {
  color: var(--text-main);
  background: linear-gradient(180deg, rgba(8, 47, 73, 0.94), rgba(13, 148, 136, 0.24));
  border: 1px solid rgba(94, 234, 212, 0.42);
  box-shadow: 0 0 48px rgba(45, 212, 191, 0.16);
}

.system-ring,
.radar-node,
.visual-node {
  border-color: rgba(94, 234, 212, 0.34);
  color: var(--text-main);
  background: rgba(15, 23, 42, 0.82);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.26);
}

.metric-panel,
.bridge-strip {
  background: rgba(7, 11, 18, 0.64);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: var(--text-body);
}

.bridge-strip span,
.metric-panel span {
  color: var(--text-muted);
}

.project-preview,
.detail-preview {
  border-color: rgba(94, 234, 212, 0.18);
  background: #0b1220;
  transition: transform 180ms ease, border-color 180ms ease, filter 180ms ease;
}

.project-card:hover .project-preview {
  transform: scale(1.015);
  border-color: rgba(94, 234, 212, 0.34);
  filter: saturate(1.12);
}

.project-value,
.key-idea,
.review-node,
.evidence-block,
.workflow-value {
  color: var(--text-main);
  background: rgba(45, 212, 191, 0.08);
  border-color: rgba(94, 234, 212, 0.26);
}

.workflow-section,
.workflow-grid,
.workflow-card,
.workflow-board,
.workflow-list {
  max-width: 1120px !important;
  margin-inline: auto !important;
}

.workflow-section {
  width: min(1120px, calc(100% - 48px)) !important;
  padding-inline: 0 !important;
}

.workflow-grid {
  width: 100%;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

.workflow-card {
  min-width: 0;
}

.workflow-step,
.workflow-map span {
  background: rgba(15, 23, 42, 0.72);
  border-color: rgba(148, 163, 184, 0.2);
  color: var(--text-body);
}

.contact-section {
  text-align: center;
}

.contact-section h2,
.contact-section .section-lede {
  margin-inline: auto;
}

.contact-links {
  justify-content: center;
}

.footer {
  color: var(--text-muted);
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.back-to-top {
  color: var(--accent);
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(94, 234, 212, 0.38);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(16px);
}

.back-to-top:hover {
  color: #031312;
  background: linear-gradient(135deg, var(--accent), #38bdf8);
  transform: translateY(-4px);
}

@keyframes heroFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@media (max-width: 900px) {
  .container,
  .section-inner,
  .hero-inner,
  .detail-inner,
  .review-inner,
  .navbar,
  .section,
  .workflow-section,
  .review-checklist-page,
  .detail-main,
  .essay-detail,
  .hero,
  .profile-hero,
  .footer {
    width: min(100% - 28px, 1120px) !important;
  }

  .profile-hero {
    min-height: auto;
    padding-block: 64px;
  }

  .hero-visual,
  .profile-visual {
    min-height: 420px;
  }

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

  .back-to-top {
    right: 1rem;
    bottom: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html,
  body {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  :root,
  :root[data-theme="light"],
  html,
  body {
    color-scheme: light;
    background: #ffffff !important;
    color: #111827 !important;
  }

  body::before,
  body::after,
  .background-layer,
  .back-to-top {
    display: none !important;
  }

  .glass-card,
  .project-card,
  .essay-card,
  .workflow-card,
  .review-section,
  .detail-card,
  .resume-grid article {
    color: #111827 !important;
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    box-shadow: none !important;
  }

  .glass-card p,
  .project-card p,
  .workflow-card p,
  .essay-card p,
  .section-lede,
  .hero-subtitle {
    color: #1f2937 !important;
  }
}

/* Step 13 final cascade: keep the unified design system last. */
:root {
  color-scheme: light;
  color: #0f172a;
  background: #eef2f6;
  --page-bg: #eef2f6;
  --page-bg-soft: #f6f8fb;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --surface-strong: #f1f5f9;
  --text-main: #0f172a;
  --text-body: #1e293b;
  --text-muted: #475569;
  --text-subtle: #64748b;
  --accent: #0f766e;
  --accent-strong: #0f5f59;
  --accent-soft: #ccfbf1;
  --border-soft: #d7dee8;
  --border-strong: #b8c2d0;
  --shadow-soft: 0 18px 50px rgba(15, 23, 42, 0.08);
  --shadow-card: 0 10px 30px rgba(15, 23, 42, 0.1);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 12px;
  --container: 1120px;
  --section-gap: 96px;
  --bg: var(--page-bg);
  --panel: var(--surface);
  --panel-strong: var(--surface-strong);
  --line: var(--border-soft);
  --muted: var(--text-muted);
  --text: var(--text-main);
  --shadow: var(--shadow-card);
}

body {
  color: var(--text-body);
  background:
    radial-gradient(circle at 10% 0%, rgba(15, 118, 110, 0.12), transparent 34rem),
    radial-gradient(circle at 88% 8%, rgba(29, 78, 216, 0.1), transparent 32rem),
    linear-gradient(180deg, #f8fafc 0%, var(--page-bg) 38%, #f6f8fb 100%);
}

.navbar,
.section,
.workflow-section,
.review-checklist-page,
.detail-main,
.essay-detail,
.hero,
.profile-hero,
.footer {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-gap);
}

.hero,
.profile-hero {
  min-height: auto;
  padding-block: 72px 88px;
  gap: 2.5rem;
}

.profile-hero::before {
  inset: 38px -28px 28px;
  border: 1px solid rgba(184, 194, 208, 0.5);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.72)),
    radial-gradient(circle at 14% 22%, rgba(204, 251, 241, 0.72), transparent 24rem),
    radial-gradient(circle at 90% 4%, rgba(219, 234, 254, 0.9), transparent 28rem);
  box-shadow: var(--shadow-soft);
}

.section-heading,
.profile-summary .section-heading {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: 2rem;
}

.hero h1,
.section h2,
.review-hero h1 {
  color: var(--text-main);
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(3rem, 5.8vw, 5.7rem);
  line-height: 1;
}

.section h2 {
  max-width: 760px;
  font-size: clamp(2rem, 3.4vw, 3.6rem);
  line-height: 1.08;
}

.hero-cn,
.profile-hero .hero-cn,
.hero-subtitle,
.section-lede,
.profile-hero .hero-subtitle {
  color: var(--text-body);
}

.eyebrow,
.section-kicker {
  color: var(--accent-strong);
}

.glass-card,
.project-card,
.resume-grid article,
.proof-card,
.workflow-card,
.review-section,
.todo-card,
.detail-card,
.contact-links a,
.contact-placeholder,
.education-card,
.profile-summary-card,
.profile-fact-grid > *,
.experience-card,
.role-fit-card,
.career-card,
.essay-card {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  color: var(--text-body);
  background: linear-gradient(180deg, var(--surface), var(--surface-soft));
  box-shadow: var(--shadow-card);
  backdrop-filter: none;
}

.glass-card h3,
.project-card h3,
.workflow-card h3,
.essay-card h3,
.resume-grid h3,
.proof-card h3,
.career-card h3,
.detail-card h3,
.glass-card p,
.project-card p,
.workflow-card p,
.essay-card p,
.proof-card p,
.career-card p,
.career-card li,
.resume-grid p,
.detail-card p,
.review-node p,
.workflow-bottom p {
  color: var(--text-body);
}

.glass-card h3,
.project-card h3,
.workflow-card h3,
.essay-card h3,
.resume-grid h3,
.proof-card h3,
.career-card h3 {
  color: var(--text-main);
}

.tag,
.pill,
.resume-pills .pill,
.project-status {
  border: 1px solid var(--border-strong);
  color: var(--text-main);
  background: #f8fafc;
  font-weight: 720;
}

.section-kicker,
.project-status {
  background: var(--accent-soft);
  border-color: rgba(15, 118, 110, 0.24);
}

.button,
.small-link {
  border-radius: var(--radius-sm);
  color: var(--text-main);
  background: #ffffff;
}

.button.primary,
.small-link.primary-link {
  border-color: var(--accent-strong);
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
}

.button.secondary,
.button.ghost,
.small-link.disabled,
.disabled-button {
  border-color: var(--border-strong);
  color: var(--text-body);
  background: #ffffff;
  opacity: 1;
}

.hero-visual {
  min-height: 500px;
  border-radius: var(--radius-lg);
  border-color: rgba(15, 23, 42, 0.16);
  background:
    radial-gradient(circle at 24% 20%, rgba(125, 211, 252, 0.22), transparent 18rem),
    linear-gradient(145deg, #0f172a, #111827 58%, #143634);
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.22);
}

.profile-summary-grid,
.capability-grid,
.experience-grid,
.role-fit-grid,
.career-grid,
.project-grid,
.workflow-grid,
.proof-grid,
.essay-grid,
.resume-grid,
.status-grid,
.todo-grid,
.checklist-grid {
  gap: 1.1rem;
}

.project-card {
  grid-template-rows: auto auto auto 1fr auto auto auto;
  padding: 1.2rem;
}

.project-preview,
.detail-preview {
  border-color: var(--border-soft);
  border-radius: var(--radius-md);
  background: #0f172a;
}

.project-value,
.key-idea,
.review-node,
.evidence-block,
.workflow-value,
.evidence-chain span,
.architecture-line span {
  border-color: rgba(15, 118, 110, 0.22);
  color: var(--text-main);
  background: #ecfdf5;
}

.workflow-section {
  padding-inline: 0;
}

.contact-section {
  text-align: left;
}

.contact-section h2 {
  margin-inline: 0;
}

.contact-links {
  justify-content: flex-start;
}

@media (max-width: 900px) {
  .navbar,
  .section,
  .workflow-section,
  .review-checklist-page,
  .detail-main,
  .essay-detail,
  .hero,
  .profile-hero,
  .footer {
    width: min(100% - 28px, var(--container));
  }

  .section,
  .hero,
  .profile-hero {
    padding-block: 64px;
  }

  .section-heading,
  .profile-summary .section-heading {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
}

/* Step 15 EOF override: this block intentionally sits after all previous theme steps. */
:root,
:root[data-theme="light"],
:root[data-theme="dark"] {
  color-scheme: dark !important;
  --page-bg: #070b12;
  --page-bg-2: #0b1220;
  --surface: rgba(15, 23, 42, 0.92);
  --surface-soft: rgba(20, 31, 52, 0.78);
  --surface-strong: rgba(30, 41, 59, 0.94);
  --text-main: #f8fafc;
  --text-body: #e5edf7;
  --text-muted: #b8c4d4;
  --text-subtle: #93a4b8;
  --accent: #5eead4;
  --accent-strong: #2dd4bf;
  --accent-soft: rgba(45, 212, 191, 0.14);
  --border-soft: rgba(148, 163, 184, 0.22);
  --border-strong: rgba(148, 163, 184, 0.38);
  --container: 1120px;
  --shadow-card: 0 24px 80px rgba(0, 0, 0, 0.32);
  --shadow-soft: 0 16px 50px rgba(0, 0, 0, 0.22);
}

html,
body,
:root[data-theme="light"] body,
:root[data-theme="dark"] body {
  color-scheme: dark !important;
  color: var(--text-body) !important;
  background: #070b12 !important;
  scroll-behavior: smooth;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 10%, rgba(45, 212, 191, 0.18), transparent 28%),
    radial-gradient(circle at 85% 18%, rgba(99, 102, 241, 0.16), transparent 30%),
    linear-gradient(180deg, #070b12 0%, #0b1220 48%, #070b12 100%) !important;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.055) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.82), transparent 78%);
}

.navbar,
.section,
.workflow-section,
.review-checklist-page,
.detail-main,
.essay-detail,
.hero,
.profile-hero,
.footer {
  width: min(1120px, calc(100% - 48px)) !important;
  max-width: 1120px !important;
  margin-inline: auto !important;
}

.profile-fact-grid > *,
.glass-card,
.project-card,
.essay-card,
.capability-card,
.proof-card,
.workflow-card,
.experience-card,
.role-fit-card,
.career-card,
.resume-grid article,
.review-section,
.todo-card,
.detail-card,
.contact-links a,
.contact-placeholder,
.education-card,
.profile-summary-card {
  color: var(--text-body) !important;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.93), rgba(15, 23, 42, 0.75)),
    radial-gradient(circle at 20% 0%, rgba(45, 212, 191, 0.08), transparent 16rem) !important;
  border: 1px solid rgba(148, 163, 184, 0.22) !important;
  box-shadow: var(--shadow-soft) !important;
}

.hero h1,
.profile-hero h1,
.section h2,
.review-hero h1,
.glass-card h3,
.project-card h3,
.workflow-card h3,
.essay-card h3 {
  color: var(--text-main) !important;
}

.hero-subtitle,
.section-lede,
.profile-hero .hero-subtitle,
.glass-card p,
.project-card p,
.workflow-card p,
.essay-card p,
.career-card li {
  color: var(--text-body) !important;
}

.tag,
.pill,
.project-status,
.detail-meta-row span,
.architecture-line span,
.evidence-chain span,
.project-value,
.key-idea,
.review-node,
.evidence-block,
.workflow-value {
  color: #dffcf8 !important;
  background: rgba(45, 212, 191, 0.08) !important;
  border-color: rgba(94, 234, 212, 0.28) !important;
}

.button,
.small-link {
  color: var(--text-main) !important;
  background: rgba(15, 23, 42, 0.74) !important;
  border-color: rgba(148, 163, 184, 0.28) !important;
}

.button.primary,
.small-link.primary-link {
  color: #031312 !important;
  background: linear-gradient(135deg, #5eead4, #38bdf8) !important;
  border-color: rgba(94, 234, 212, 0.58) !important;
}

.hero-visual,
.profile-visual {
  border-color: rgba(94, 234, 212, 0.2) !important;
  background:
    radial-gradient(circle at 50% 44%, rgba(94, 234, 212, 0.18), transparent 11rem),
    radial-gradient(circle at 82% 18%, rgba(96, 165, 250, 0.18), transparent 18rem),
    linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(7, 11, 18, 0.96) 58%, rgba(13, 48, 54, 0.88)) !important;
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.42) !important;
}

.workflow-section,
.workflow-grid,
.workflow-card,
.workflow-board,
.workflow-list {
  max-width: 1120px !important;
  margin-inline: auto !important;
}

.workflow-section {
  width: min(1120px, calc(100% - 48px)) !important;
  padding-inline: 0 !important;
}

.workflow-grid {
  width: 100% !important;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)) !important;
}

.back-to-top {
  color: var(--accent) !important;
  background: rgba(15, 23, 42, 0.78) !important;
  border: 1px solid rgba(94, 234, 212, 0.38) !important;
}

@media print {
  :root,
  :root[data-theme="light"],
  :root[data-theme="dark"],
  html,
  body {
    color-scheme: light !important;
    color: #111827 !important;
    background: #ffffff !important;
  }

  body::before,
  body::after,
  .background-layer,
  .back-to-top {
    display: none !important;
  }
}

/* Step 15 final cascade lock: dark theme must win over earlier light-theme steps. */
:root,
:root[data-theme="light"],
:root[data-theme="dark"] {
  color-scheme: dark;
  --page-bg: #070b12;
  --page-bg-2: #0b1220;
  --surface: rgba(15, 23, 42, 0.92);
  --surface-soft: rgba(20, 31, 52, 0.78);
  --surface-strong: rgba(30, 41, 59, 0.94);
  --text-main: #f8fafc;
  --text-body: #e5edf7;
  --text-muted: #b8c4d4;
  --text-subtle: #93a4b8;
  --accent: #5eead4;
  --accent-strong: #2dd4bf;
  --accent-deep: #0f766e;
  --accent-soft: rgba(45, 212, 191, 0.14);
  --border-soft: rgba(148, 163, 184, 0.22);
  --border-strong: rgba(148, 163, 184, 0.38);
  --container: 1120px;
  --container-wide: 1180px;
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow-card: 0 24px 80px rgba(0, 0, 0, 0.32);
  --shadow-soft: 0 16px 50px rgba(0, 0, 0, 0.22);
}

html,
body,
:root[data-theme="light"] body {
  color-scheme: dark;
  color: var(--text-body);
  background: #070b12 !important;
  scroll-behavior: smooth;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 10%, rgba(45, 212, 191, 0.18), transparent 28%),
    radial-gradient(circle at 85% 18%, rgba(99, 102, 241, 0.16), transparent 30%),
    radial-gradient(circle at 50% 100%, rgba(14, 165, 233, 0.12), transparent 34%),
    linear-gradient(180deg, #070b12 0%, #0b1220 48%, #070b12 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.055) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.82), transparent 78%);
}

.navbar,
.section,
.workflow-section,
.review-checklist-page,
.detail-main,
.essay-detail,
.hero,
.profile-hero,
.footer {
  width: min(1120px, calc(100% - 48px)) !important;
  max-width: 1120px;
  margin-inline: auto !important;
}

.site-shell,
.background-layer {
  background: transparent !important;
}

.navbar {
  color: var(--text-body);
  background: rgba(7, 11, 18, 0.76);
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links a,
.language-switch,
.icon-button {
  color: var(--text-body);
}

.brand-mark {
  color: #04111b;
  background: linear-gradient(135deg, var(--accent), #93c5fd);
  box-shadow: 0 10px 30px rgba(45, 212, 191, 0.22);
}

.nav-links a:hover,
.language-switch:hover,
.icon-button:hover {
  color: var(--text-main);
  border-color: rgba(94, 234, 212, 0.42);
  background: rgba(45, 212, 191, 0.09);
}

.profile-hero {
  position: relative;
  min-height: min(820px, calc(100vh - 24px));
  padding-block: 92px 104px;
  align-items: center;
}

.profile-hero::before {
  inset: 34px -32px 26px;
  border: 1px solid rgba(94, 234, 212, 0.2);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.78), rgba(7, 11, 18, 0.34)),
    radial-gradient(circle at 15% 20%, rgba(45, 212, 191, 0.16), transparent 26rem),
    radial-gradient(circle at 88% 7%, rgba(96, 165, 250, 0.12), transparent 30rem);
  box-shadow: 0 32px 120px rgba(0, 0, 0, 0.34);
}

.hero h1,
.profile-hero h1,
.section h2,
.review-hero h1 {
  color: var(--text-main);
  text-shadow: 0 12px 48px rgba(45, 212, 191, 0.14);
}

.hero-cn,
.profile-hero .hero-cn {
  color: #dffcf8;
}

.hero-subtitle,
.section-lede,
.profile-hero .hero-subtitle {
  color: var(--text-body);
}

.eyebrow,
.section-kicker {
  color: var(--accent);
  background: rgba(45, 212, 191, 0.08);
  border: 1px solid rgba(45, 212, 191, 0.22);
  box-shadow: inset 0 0 18px rgba(45, 212, 191, 0.04);
}

.profile-fact-grid > *,
.glass-card,
.card,
.profile-card,
.project-card,
.essay-card,
.capability-card,
.proof-card,
.workflow-card,
.experience-card,
.role-fit-card,
.career-card,
.resume-grid article,
.review-section,
.todo-card,
.detail-card,
.contact-links a,
.contact-placeholder,
.education-card,
.profile-summary-card {
  color: var(--text-body);
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.93), rgba(15, 23, 42, 0.75)),
    radial-gradient(circle at 20% 0%, rgba(45, 212, 191, 0.08), transparent 16rem);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.glass-card:hover,
.project-card:hover,
.essay-card:hover,
.capability-card:hover,
.proof-card:hover,
.workflow-card:hover,
.experience-card:hover,
.role-fit-card:hover,
.career-card:hover,
.review-section:hover {
  transform: translateY(-4px);
  border-color: rgba(94, 234, 212, 0.42);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
}

.glass-card h3,
.project-card h3,
.workflow-card h3,
.essay-card h3,
.resume-grid h3,
.proof-card h3,
.career-card h3,
.role-fit-card h3,
.capability-card h3,
.review-section h2 {
  color: var(--text-main);
}

.glass-card p,
.project-card p,
.workflow-card p,
.essay-card p,
.proof-card p,
.career-card p,
.career-card li,
.resume-grid p,
.detail-card p,
.review-node p,
.workflow-bottom p,
.contact-placeholder strong,
.contact-links strong {
  color: var(--text-body);
}

.card-topline,
.visual-label,
.profile-summary-card span,
.contact-links span,
.contact-placeholder span {
  color: var(--text-subtle);
}

.tag,
.pill,
.resume-pills .pill,
.project-status,
.detail-meta-row span,
.architecture-line span,
.evidence-chain span {
  color: #dffcf8;
  background: rgba(45, 212, 191, 0.08);
  border: 1px solid rgba(94, 234, 212, 0.28);
  box-shadow: inset 0 0 18px rgba(45, 212, 191, 0.04);
}

.button,
.small-link {
  border-radius: var(--radius-sm);
  border-color: rgba(148, 163, 184, 0.28);
  color: var(--text-main);
  background: rgba(15, 23, 42, 0.74);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.button:hover,
.small-link:hover {
  transform: translateY(-2px);
  border-color: rgba(94, 234, 212, 0.5);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
}

.button.primary,
.small-link.primary-link {
  color: #031312;
  border-color: rgba(94, 234, 212, 0.58);
  background: linear-gradient(135deg, #5eead4, #38bdf8);
  box-shadow: 0 18px 52px rgba(45, 212, 191, 0.2);
}

.button.secondary,
.button.ghost,
.small-link.disabled,
.disabled-button {
  color: var(--text-body);
  background: rgba(15, 23, 42, 0.62);
  border-color: rgba(148, 163, 184, 0.3);
  opacity: 1;
}

.disabled-button,
.small-link.disabled,
.contact-placeholder {
  border-style: dashed;
  color: var(--text-muted);
}

.hero-visual,
.profile-visual {
  min-height: 520px;
  overflow: hidden;
  border: 1px solid rgba(94, 234, 212, 0.2);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 50% 44%, rgba(94, 234, 212, 0.18), transparent 11rem),
    radial-gradient(circle at 82% 18%, rgba(96, 165, 250, 0.18), transparent 18rem),
    linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(7, 11, 18, 0.96) 58%, rgba(13, 48, 54, 0.88));
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.42);
  animation: heroFloat 8s ease-in-out infinite;
}

.hero-visual::before,
.profile-visual::before {
  content: "";
  position: absolute;
  inset: 28px;
  border: 1px solid rgba(94, 234, 212, 0.18);
  border-radius: 50%;
  box-shadow:
    0 0 0 42px rgba(94, 234, 212, 0.035),
    0 0 0 86px rgba(59, 130, 246, 0.025);
}

.hero-visual::after,
.profile-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.055) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.8), transparent 72%);
  pointer-events: none;
}

.system-core,
.radar-core {
  color: var(--text-main);
  background: linear-gradient(180deg, rgba(8, 47, 73, 0.94), rgba(13, 148, 136, 0.24));
  border: 1px solid rgba(94, 234, 212, 0.42);
  box-shadow: 0 0 48px rgba(45, 212, 191, 0.16);
}

.system-ring,
.radar-node,
.visual-node {
  border-color: rgba(94, 234, 212, 0.34);
  color: var(--text-main);
  background: rgba(15, 23, 42, 0.82);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.26);
}

.metric-panel,
.bridge-strip {
  color: var(--text-body);
  background: rgba(7, 11, 18, 0.64);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.project-preview,
.detail-preview {
  border-color: rgba(94, 234, 212, 0.18);
  background: #0b1220;
  transition: transform 180ms ease, border-color 180ms ease, filter 180ms ease;
}

.project-card:hover .project-preview {
  transform: scale(1.015);
  border-color: rgba(94, 234, 212, 0.34);
  filter: saturate(1.12);
}

.project-value,
.key-idea,
.review-node,
.evidence-block,
.workflow-value {
  color: var(--text-main);
  background: rgba(45, 212, 191, 0.08);
  border-color: rgba(94, 234, 212, 0.26);
}

.workflow-section,
.workflow-grid,
.workflow-card,
.workflow-board,
.workflow-list {
  max-width: 1120px !important;
  margin-inline: auto !important;
}

.workflow-section {
  width: min(1120px, calc(100% - 48px)) !important;
  padding-inline: 0 !important;
}

.workflow-grid {
  width: 100%;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

.workflow-card {
  min-width: 0;
}

.workflow-step,
.workflow-map span {
  color: var(--text-body);
  background: rgba(15, 23, 42, 0.72);
  border-color: rgba(148, 163, 184, 0.2);
}

.contact-section {
  text-align: center;
}

.contact-section h2,
.contact-section .section-lede {
  margin-inline: auto;
}

.contact-links {
  justify-content: center;
}

.footer {
  color: var(--text-muted);
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.back-to-top {
  color: var(--accent);
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(94, 234, 212, 0.38);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(16px);
}

.back-to-top:hover {
  color: #031312;
  background: linear-gradient(135deg, var(--accent), #38bdf8);
  transform: translateY(-4px);
}

@media (max-width: 900px) {
  .navbar,
  .section,
  .workflow-section,
  .review-checklist-page,
  .detail-main,
  .essay-detail,
  .hero,
  .profile-hero,
  .footer {
    width: min(100% - 28px, 1120px) !important;
  }

  .profile-hero {
    min-height: auto;
    padding-block: 64px;
  }

  .hero-visual,
  .profile-visual {
    min-height: 420px;
  }

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

@media (prefers-reduced-motion: reduce) {
  html,
  body {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  :root,
  :root[data-theme="light"],
  :root[data-theme="dark"],
  html,
  body {
    color-scheme: light;
    color: #111827 !important;
    background: #ffffff !important;
  }

  body::before,
  body::after,
  .background-layer,
  .back-to-top {
    display: none !important;
  }

  .glass-card,
  .project-card,
  .essay-card,
  .workflow-card,
  .review-section,
  .detail-card,
  .resume-grid article {
    color: #111827 !important;
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    box-shadow: none !important;
  }

  .glass-card p,
  .project-card p,
  .workflow-card p,
  .essay-card p,
  .section-lede,
  .hero-subtitle {
    color: #1f2937 !important;
  }
}

/* Step 14: lock browser theme, width, interaction, and back-to-top behavior. */
html {
  color-scheme: light;
  background: #eef2f6;
  scroll-behavior: smooth;
}

body {
  color-scheme: light;
  min-width: 320px;
  color: var(--text-main);
  background:
    radial-gradient(circle at 7% 2%, rgba(15, 118, 110, 0.14), transparent 34rem),
    radial-gradient(circle at 88% 6%, rgba(37, 99, 235, 0.11), transparent 30rem),
    linear-gradient(180deg, #f7f9fc 0%, #eef2f6 44%, #f6f8fb 100%) !important;
}

* {
  forced-color-adjust: auto;
}

.site-shell,
.zh-page,
.detail-shell,
main {
  color: var(--text-body);
  background: transparent;
}

.section,
.workflow-section,
.workflow-grid,
.workflow-card,
.workflow-board,
.status-band,
.contact-section,
.resume-band,
.review-checklist-page,
.detail-main,
.essay-detail,
.footer,
.navbar {
  max-width: var(--container);
}

.workflow-section {
  width: min(var(--container), calc(100% - 48px)) !important;
  margin-inline: auto !important;
  padding-inline: 0 !important;
}

.workflow-grid {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
}

.workflow-card {
  max-width: 100%;
  overflow: hidden;
}

.architecture-line {
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(184, 194, 208, 0.72);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
}

.language-switch,
.icon-button,
.brand-mark {
  border-color: var(--border-strong);
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.86);
}

.nav-links a {
  color: var(--text-muted);
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.nav-links a:hover {
  color: var(--accent-strong);
  transform: translateY(-1px);
}

.hero-visual {
  animation: heroFloat 7s ease-in-out infinite;
}

@keyframes heroFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.glass-card,
.project-card,
.workflow-card,
.proof-card,
.essay-card,
.career-card,
.experience-card,
.role-fit-card,
.contact-links a,
.button,
.small-link {
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.timeline-item,
.evidence-chain span,
.architecture-line span {
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.timeline-item:hover,
.evidence-chain span:hover,
.architecture-line span:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 118, 110, 0.42);
  background: #dffcf3;
}

.back-to-top {
  position: fixed;
  right: max(18px, calc((100vw - var(--container)) / 2 - 64px));
  bottom: 24px;
  z-index: 80;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(15, 118, 110, 0.36);
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 16px 36px rgba(15, 95, 89, 0.24);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  box-shadow: 0 20px 44px rgba(15, 95, 89, 0.3);
  transform: translateY(-2px);
}

@media (max-width: 900px) {
  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 42px;
    height: 42px;
  }

  .workflow-section {
    width: min(100% - 28px, var(--container)) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

@media print {
  .back-to-top {
    display: none !important;
  }
}

/* Step 13: unified light design system and layout polish */
:root {
  color-scheme: light;
  color: #0f172a;
  background: #eef2f6;
  --page-bg: #eef2f6;
  --page-bg-soft: #f6f8fb;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --surface-strong: #f1f5f9;
  --text-main: #0f172a;
  --text-body: #1e293b;
  --text-muted: #475569;
  --text-subtle: #64748b;
  --accent: #0f766e;
  --accent-strong: #0f5f59;
  --accent-soft: #ccfbf1;
  --border-soft: #d7dee8;
  --border-strong: #b8c2d0;
  --shadow-soft: 0 18px 50px rgba(15, 23, 42, 0.08);
  --shadow-card: 0 10px 30px rgba(15, 23, 42, 0.1);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 12px;
  --container: 1120px;
  --section-gap: 96px;
  --bg: var(--page-bg);
  --panel: var(--surface);
  --panel-strong: var(--surface-strong);
  --line: var(--border-soft);
  --muted: var(--text-muted);
  --text: var(--text-main);
  --shadow: var(--shadow-card);
}

body {
  color: var(--text-body);
  background:
    radial-gradient(circle at 10% 0%, rgba(15, 118, 110, 0.12), transparent 34rem),
    radial-gradient(circle at 88% 8%, rgba(29, 78, 216, 0.1), transparent 32rem),
    linear-gradient(180deg, #f8fafc 0%, var(--page-bg) 38%, #f6f8fb 100%);
}

.background-layer {
  opacity: 0.38;
}

.glow {
  opacity: 0.16;
}

.site-shell,
.detail-shell {
  color: var(--text-body);
}

.navbar {
  width: min(var(--container), calc(100% - 48px));
  min-height: 68px;
  margin: 0 auto;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(184, 194, 208, 0.65);
}

.section,
.workflow-section,
.review-checklist-page,
.detail-main,
.essay-detail {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-gap);
}

.hero,
.profile-hero {
  width: min(var(--container), calc(100% - 48px));
  min-height: auto;
  margin-inline: auto;
  padding-block: 72px 88px;
  gap: 2.5rem;
}

.profile-hero {
  position: relative;
  padding-inline: 0;
}

.profile-hero::before {
  inset: 38px -28px 28px;
  border: 1px solid rgba(184, 194, 208, 0.5);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.72)),
    radial-gradient(circle at 14% 22%, rgba(204, 251, 241, 0.72), transparent 24rem),
    radial-gradient(circle at 90% 4%, rgba(219, 234, 254, 0.9), transparent 28rem);
  box-shadow: var(--shadow-soft);
}

.section-heading,
.profile-summary .section-heading {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: 2rem;
}

.section h2,
.review-hero h1 {
  color: var(--text-main);
}

.section h2 {
  max-width: 760px;
  font-size: clamp(2rem, 3.4vw, 3.6rem);
  line-height: 1.08;
}

.hero h1 {
  max-width: 760px;
  color: var(--text-main);
  font-size: clamp(3rem, 5.8vw, 5.7rem);
  line-height: 1;
}

.hero-cn,
.profile-hero .hero-cn {
  color: var(--text-main);
}

.hero-subtitle,
.section-lede,
.profile-hero .hero-subtitle {
  max-width: 700px;
  color: var(--text-body);
  font-size: 1.02rem;
  line-height: 1.78;
}

.eyebrow,
.section-kicker {
  color: var(--accent-strong);
  letter-spacing: 0.08em;
}

.glass-card,
.project-card,
.resume-grid article,
.proof-card,
.workflow-card,
.review-section,
.todo-card,
.detail-card,
.contact-links a,
.contact-placeholder,
.education-card,
.profile-summary-card,
.profile-fact-grid > *,
.experience-card,
.role-fit-card,
.career-card,
.essay-card {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  color: var(--text-body);
  background: linear-gradient(180deg, var(--surface), var(--surface-soft));
  box-shadow: var(--shadow-card);
  backdrop-filter: none;
}

.glass-card:hover,
.project-card:hover,
.workflow-card:hover,
.contact-links a:hover,
.button:hover,
.small-link:hover {
  border-color: var(--border-strong);
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.12);
}

.glass-card h3,
.project-card h3,
.workflow-card h3,
.essay-card h3,
.resume-grid h3,
.proof-card h3,
.career-card h3,
.detail-card h3 {
  color: var(--text-main);
}

.glass-card p,
.project-card p,
.workflow-card p,
.essay-card p,
.proof-card p,
.career-card p,
.career-card li,
.resume-grid p,
.detail-card p,
.review-node p,
.workflow-bottom p {
  color: var(--text-body);
}

.card-topline,
.project-category,
.timeline-item span,
.todo-card em,
.visual-label,
.footer {
  color: var(--text-muted);
}

.tag,
.pill,
.resume-pills .pill,
.project-status {
  border: 1px solid #b8c2d0;
  color: var(--text-main);
  background: #f8fafc;
  font-weight: 720;
}

.section-kicker,
.project-status {
  background: var(--accent-soft);
  border-color: rgba(15, 118, 110, 0.24);
}

.button,
.small-link {
  border-radius: var(--radius-sm);
  color: var(--text-main);
  background: #ffffff;
}

.button.primary,
.small-link.primary-link {
  border-color: var(--accent-strong);
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
}

.button.secondary,
.button.ghost,
.small-link.disabled,
.disabled-button {
  border-color: var(--border-strong);
  color: var(--text-body);
  background: #ffffff;
  opacity: 1;
}

.hero-actions,
.project-actions,
.detail-footer-actions {
  gap: 0.75rem;
}

.hero-visual {
  min-height: 500px;
  border-radius: var(--radius-lg);
  border-color: rgba(15, 23, 42, 0.16);
  background:
    radial-gradient(circle at 24% 20%, rgba(125, 211, 252, 0.22), transparent 18rem),
    linear-gradient(145deg, #0f172a, #111827 58%, #143634);
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.22);
}

.visual-label,
.metric-panel,
.system-core,
.radar-node,
.radar-core {
  color: #f8fafc;
}

.profile-fact-grid > *,
.profile-summary-card {
  min-height: 6.2rem;
  padding: 1rem;
}

.profile-summary-grid,
.capability-grid,
.experience-grid,
.role-fit-grid,
.career-grid,
.project-grid,
.workflow-grid,
.proof-grid,
.essay-grid,
.resume-grid,
.status-grid,
.todo-grid,
.checklist-grid {
  gap: 1.1rem;
}

.project-card {
  grid-template-rows: auto auto auto 1fr auto auto auto;
  min-height: 100%;
  padding: 1.2rem;
}

.project-preview {
  border-radius: var(--radius-md);
  background: #0f172a;
}

.project-preview img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.project-value,
.key-idea,
.review-node,
.evidence-block,
.workflow-value {
  border-color: rgba(15, 118, 110, 0.22);
  color: var(--text-body);
  background: #f0fdfa;
}

.project-value p,
.key-idea,
.evidence-block strong,
.workflow-value {
  color: var(--text-main);
}

.evidence-chain span,
.architecture-line span {
  border-color: rgba(15, 118, 110, 0.24);
  color: var(--text-main);
  background: #ecfdf5;
}

.workflow-section {
  padding-inline: 0;
  background:
    linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.7), transparent);
}

.workflow-card,
.resume-band,
.status-band {
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.contact-section {
  text-align: left;
}

.contact-section h2 {
  margin-inline: 0;
}

.contact-links {
  justify-content: flex-start;
}

.footer {
  width: min(var(--container), calc(100% - 48px));
  padding-block: 1.5rem 2rem;
}

.detail-preview,
.project-preview {
  border-color: var(--border-soft);
}

@media (max-width: 900px) {
  .section,
  .workflow-section,
  .review-checklist-page,
  .detail-main,
  .essay-detail,
  .hero,
  .profile-hero,
  .navbar,
  .footer {
    width: min(100% - 28px, var(--container));
  }

  .section,
  .hero,
  .profile-hero {
    padding-block: 64px;
  }

  .section-heading,
  .profile-summary .section-heading {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
}

@media print {
  :root {
    --page-bg: #ffffff;
    --surface: #ffffff;
    --surface-soft: #ffffff;
    --surface-strong: #f8fafc;
    --text-main: #0f172a;
    --text-body: #1e293b;
    --text-muted: #334155;
    --border-soft: #aeb9c9;
    --border-strong: #94a3b8;
    --shadow-card: none;
    --shadow-soft: none;
  }

  body {
    background: #ffffff !important;
  }

  .section,
  .hero,
  .profile-hero {
    padding-block: 40px !important;
    break-inside: avoid;
  }

  .project-card,
  .glass-card,
  .workflow-card,
  .proof-card,
  .essay-card,
  .resume-grid article {
    break-inside: avoid;
  }
}

@media print {
  :root {
    color-scheme: light;
    --bg: #f6f7f9;
    --panel: #ffffff;
    --panel-strong: #f8fafc;
    --line: #b7c0ce;
    --muted: #475569;
    --text: #0f172a;
    --text-body: #1f2937;
    --accent: #0f766e;
    --accent-2: #1d4ed8;
    --accent-3: #92400e;
    --shadow: none;
  }

  body,
  .site-shell,
  .zh-page {
    color: var(--text-body);
    background: var(--bg) !important;
  }

  .background-layer,
  .glow,
  .grid-noise {
    display: none !important;
  }

  .glass-card,
  .project-card,
  .resume-grid article,
  .proof-card,
  .workflow-card,
  .detail-card,
  .review-section,
  .contact-links a,
  .contact-placeholder {
    color: var(--text-body) !important;
    background: #ffffff !important;
    border-color: var(--line) !important;
    box-shadow: none !important;
  }

  h1,
  h2,
  h3,
  strong,
  .hero-cn,
  .tag,
  .pill,
  .project-status,
  .project-category,
  .small-link,
  .small-link.disabled,
  .section-kicker,
  .card-topline,
  .resume-note,
  .footer,
  .section-lede,
  .hero-subtitle {
    color: var(--text) !important;
    opacity: 1 !important;
  }

  p,
  li,
  .project-card p,
  .essay-card p,
  .proof-card p,
  .workflow-bottom p,
  .review-node p,
  .career-card ul,
  .detail-card p {
    color: var(--text-body) !important;
  }
}

:root[data-theme="light"] {
  color-scheme: light;
  color: #0f172a;
  background: #f6f7f9;
  --bg: #f6f7f9;
  --panel: #ffffff;
  --panel-strong: #f8fafc;
  --line: #d7dde7;
  --muted: #475569;
  --text: #0f172a;
  --text-body: #1f2937;
  --accent: #0f766e;
  --accent-2: #1d4ed8;
  --accent-3: #92400e;
  --shadow: 0 24px 80px rgba(30, 42, 66, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--text-body);
  background:
    radial-gradient(circle at 15% 0%, rgba(123, 215, 201, 0.11), transparent 34rem),
    radial-gradient(circle at 86% 18%, rgba(157, 183, 255, 0.13), transparent 34rem),
    var(--bg);
}

:root[data-theme="light"] body {
  background:
    radial-gradient(circle at 15% 0%, rgba(8, 124, 114, 0.11), transparent 34rem),
    radial-gradient(circle at 86% 18%, rgba(66, 101, 217, 0.13), transparent 34rem),
    var(--bg);
}

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

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

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

.site-shell {
  position: relative;
  overflow: hidden;
}

.background-layer {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: -1;
}

.grid-noise {
  position: absolute;
  inset: 0;
  opacity: 0.36;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.glow {
  position: absolute;
  width: 34rem;
  height: 34rem;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.16;
  animation: drift 12s ease-in-out infinite alternate;
}

.glow-a {
  top: 16%;
  left: -14rem;
  background: #7bd7c9;
}

.glow-b {
  right: -14rem;
  bottom: 6%;
  background: #9db7ff;
  animation-delay: -4s;
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(4rem, -3rem, 0) scale(1.08);
  }
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.25rem;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0.9rem 0;
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.nav-actions,
.button,
.icon-button,
.small-link,
.contact-links a {
  display: inline-flex;
  align-items: center;
}

.brand {
  gap: 0.6rem;
  font-weight: 760;
}

.brand-mark {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(123, 215, 201, 0.22), rgba(157, 183, 255, 0.18));
}

.nav-links {
  justify-content: center;
  gap: 1.2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

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

.nav-actions {
  gap: 0.5rem;
}

.icon-button {
  justify-content: center;
  width: 2.3rem;
  height: 2.3rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  cursor: pointer;
}

.text-icon {
  font-size: 0.74rem;
  font-weight: 850;
}

.language-switch {
  display: inline-flex;
  min-height: 2.3rem;
  align-items: center;
  justify-content: center;
  padding: 0 0.72rem;
  border: 1px solid rgba(123, 215, 201, 0.24);
  border-radius: 8px;
  color: #dce7ff;
  background: rgba(123, 215, 201, 0.06);
  font-size: 0.8rem;
  font-weight: 800;
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 5.5rem 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.8fr);
  align-items: center;
  min-height: calc(100vh - 72px);
  padding-top: 3rem;
}

.hero h1,
.section h2 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.02;
}

.hero h1 {
  max-width: 820px;
  font-size: clamp(3rem, 7.4vw, 6.9rem);
}

.hero-subtitle,
.section-lede {
  color: var(--text-body);
  line-height: 1.75;
}

.hero-subtitle {
  max-width: 670px;
  margin: 1.4rem 0 0;
  font-size: 1.12rem;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 1.1rem;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.4rem;
}

.tag-row.compact {
  margin-top: 1rem;
  gap: 0.4rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 1.9rem;
  padding: 0.36rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.048);
  font-size: 0.82rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.status-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.1rem;
}

.status-strip span {
  display: inline-flex;
  min-height: 1.9rem;
  align-items: center;
  padding: 0.32rem 0.58rem;
  border: 1px solid rgba(123, 215, 201, 0.18);
  border-radius: 999px;
  color: #dce7ff;
  background: rgba(123, 215, 201, 0.055);
  font-size: 0.78rem;
}

.button {
  gap: 0.55rem;
  min-height: 2.85rem;
  padding: 0 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 720;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.button:hover,
.icon-button:hover,
.contact-links a:hover,
.small-link:hover {
  transform: translateY(-2px);
  border-color: rgba(123, 215, 201, 0.34);
}

.button.primary {
  color: #06100f;
  background: linear-gradient(135deg, var(--accent), #dce7ff);
}

.button.secondary,
.button.ghost {
  background: rgba(255, 255, 255, 0.06);
}

.button.ghost {
  color: var(--text-body);
}

.hero-visual {
  position: relative;
  min-height: 540px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent),
    rgba(9, 12, 19, 0.7);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.profile-hero {
  grid-template-columns: minmax(0, 0.96fr) minmax(340px, 0.84fr);
}

.zh-page {
  font-family:
    Inter, "Microsoft YaHei", "PingFang SC", "Noto Sans SC", ui-sans-serif, system-ui, sans-serif;
}

.zh-page .hero h1 {
  font-size: clamp(3rem, 6.2vw, 6rem);
}

.profile-fact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 1.35rem;
}

.profile-fact-grid > * {
  display: grid;
  gap: 0.24rem;
  min-height: 4.6rem;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
}

.profile-fact-grid span,
.profile-summary-card span {
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
}

.profile-fact-grid strong,
.profile-summary-card strong {
  color: #eef4ff;
  font-size: 0.95rem;
  line-height: 1.55;
}

.profile-visual {
  display: grid;
  align-items: center;
}

.profile-radar {
  position: relative;
  width: min(100%, 31rem);
  aspect-ratio: 1;
  margin: 2rem auto 0;
  border: 1px solid rgba(123, 215, 201, 0.18);
  border-radius: 999px;
  background:
    radial-gradient(circle at center, rgba(123, 215, 201, 0.13), transparent 31%),
    repeating-radial-gradient(circle at center, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 4.8rem);
}

.radar-core,
.radar-node {
  position: absolute;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(8, 12, 18, 0.78);
  color: #eaf7ff;
  text-align: center;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.22);
}

.radar-core {
  inset: 38% 32%;
  color: var(--accent);
  font-weight: 850;
}

.radar-node {
  width: 6.8rem;
  min-height: 3rem;
  padding: 0.5rem;
  font-size: 0.86rem;
  font-weight: 760;
}

.node-ai {
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
}

.node-business {
  top: 35%;
  left: 4%;
}

.node-data {
  top: 35%;
  right: 4%;
}

.node-content {
  bottom: 10%;
  left: 16%;
}

.node-product {
  right: 16%;
  bottom: 10%;
}

.bridge-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
  margin: 1.5rem;
}

.bridge-strip span {
  display: grid;
  min-height: 3.1rem;
  place-items: center;
  border: 1px solid rgba(157, 183, 255, 0.18);
  border-radius: 10px;
  background: rgba(157, 183, 255, 0.055);
  color: #dce7ff;
  font-size: 0.8rem;
  text-align: center;
}

.profile-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.profile-summary-card {
  display: grid;
  gap: 0.38rem;
  min-height: 6.4rem;
  padding: 1rem;
}

.hero-cn {
  max-width: 720px;
  margin: 1.2rem 0 0;
  color: #dfe8f7;
  font-size: 1.38rem;
  line-height: 1.55;
}

:root[data-theme="light"] .hero-cn {
  color: #243248;
}

.orbit-card,
.metric-panel,
.glass-card,
.project-card,
.resume-grid article {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.visual-label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 4;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text-body);
  background: rgba(255, 255, 255, 0.055);
  font-size: 0.78rem;
  font-weight: 760;
}

.system-core {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 4;
  display: grid;
  width: 13rem;
  height: 7.2rem;
  place-items: center;
  border: 1px solid rgba(123, 215, 201, 0.35);
  border-radius: 16px;
  color: #f4fbff;
  background:
    linear-gradient(135deg, rgba(123, 215, 201, 0.24), rgba(157, 183, 255, 0.16)),
    rgba(11, 15, 23, 0.78);
  box-shadow: 0 20px 70px rgba(123, 215, 201, 0.12);
  font-size: 1.05rem;
  font-weight: 850;
  line-height: 1.35;
  text-align: center;
  transform: translate(-50%, -50%);
}

.system-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  transform: translate(-50%, -50%);
}

.ring-a {
  width: 21rem;
  height: 21rem;
}

.ring-b {
  width: 30rem;
  height: 30rem;
  border-style: dashed;
  opacity: 0.65;
}

.system-node {
  position: absolute;
  z-index: 3;
  display: grid;
  min-width: 7rem;
  min-height: 3rem;
  place-items: center;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #dce7ff;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.22);
  font-size: 0.86rem;
  font-weight: 760;
  animation: float 4.8s ease-in-out infinite;
}

.node-1 {
  top: 18%;
  left: 13%;
}

.node-2 {
  top: 15%;
  right: 11%;
  animation-delay: -0.8s;
}

.node-3 {
  bottom: 27%;
  left: 8%;
  animation-delay: -1.6s;
}

.node-4 {
  right: 9%;
  bottom: 29%;
  animation-delay: -2.4s;
}

.node-5 {
  left: 50%;
  bottom: 12%;
  transform: translateX(-50%);
  animation-delay: -3.2s;
}

.orbit-card {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #eaf7ff;
  font-weight: 780;
}

.main-node {
  inset: 39% 22%;
  min-height: 5.5rem;
  background: linear-gradient(135deg, rgba(123, 215, 201, 0.22), rgba(157, 183, 255, 0.16));
}

.node-a,
.node-b,
.node-c,
.node-d {
  width: 7rem;
  height: 3.8rem;
  animation: float 4s ease-in-out infinite;
}

.node-a {
  top: 12%;
  left: 12%;
}

.node-b {
  top: 16%;
  right: 13%;
  animation-delay: -1s;
}

.node-c {
  bottom: 18%;
  left: 9%;
  animation-delay: -2s;
}

.node-d {
  right: 12%;
  bottom: 16%;
  animation-delay: -3s;
}

@keyframes float {
  50% {
    transform: translateY(-10px);
  }
}

.signal-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(123, 215, 201, 0.7), transparent);
}

.line-one {
  top: 43%;
  left: 9%;
  width: 82%;
}

.line-two {
  top: 55%;
  left: 18%;
  width: 65%;
  transform: rotate(90deg);
}

.metric-panel {
  position: absolute;
  right: 1.2rem;
  bottom: 1.2rem;
  left: 1.2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  padding: 1rem;
  border-radius: 12px;
}

.metric-panel span,
.card-topline,
.project-status,
.timeline-item span {
  color: var(--muted);
  font-size: 0.78rem;
}

.metric-panel strong {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.92rem;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) 1fr;
  gap: 3rem;
  align-items: start;
}

.section h2 {
  max-width: 780px;
  font-size: clamp(2.1rem, 4vw, 4.3rem);
}

.section-lede {
  max-width: 620px;
  margin: 1rem 0 0;
}

.narrative-grid,
.capability-grid,
.project-grid,
.essay-grid,
.resume-grid {
  display: grid;
  gap: 1rem;
}

.narrative-grid {
  grid-template-columns: repeat(3, 1fr);
}

.glass-card,
.project-card,
.resume-grid article {
  border-radius: 12px;
}

.narrative-card,
.capability-card,
.essay-card,
.resume-grid article {
  padding: 1.2rem;
}

.card-index {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 850;
}

.narrative-card h3,
.capability-card h3,
.essay-card h3,
.project-card h3,
.workflow-step h3,
.timeline-item h3,
.resume-grid h3 {
  margin: 0.75rem 0 0.45rem;
  font-size: 1.05rem;
}

.narrative-card p,
.capability-card p,
.essay-card p,
.project-card p,
.workflow-step p,
.timeline-item p,
.resume-grid p {
  margin: 0;
  color: var(--text-body);
  line-height: 1.65;
}

.principle-card {
  grid-column: 1 / -1;
  padding: 1.3rem;
  border-left: 2px solid var(--accent);
  color: #dce7ff;
  background: rgba(123, 215, 201, 0.07);
}

.principle-card p {
  margin: 0.5rem 0;
}

.section-heading {
  margin-bottom: 2rem;
}

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

.experience-grid,
.role-fit-grid,
.career-grid {
  display: grid;
  gap: 1rem;
}

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

.role-fit-section,
.education-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.62fr) 1fr;
  gap: 2rem;
  align-items: start;
}

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

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

.experience-card,
.role-fit-card,
.career-card,
.education-card {
  padding: 1.2rem;
}

.experience-card h3,
.role-fit-card h3,
.career-card h3 {
  margin: 0.75rem 0 0.45rem;
  font-size: 1.08rem;
}

.experience-card p,
.role-fit-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.career-card ul {
  margin: 0.85rem 0 1rem;
  padding-left: 1.1rem;
  color: var(--text-body);
  line-height: 1.65;
}

.education-card {
  display: grid;
  gap: 0.45rem;
}

.education-card span {
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.education-card strong {
  color: var(--text);
  font-size: 1.2rem;
}

.capability-card {
  position: relative;
  display: grid;
  gap: 0.9rem;
  min-height: 310px;
  overflow: hidden;
}

.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.evidence,
.evidence-block {
  margin-top: 1rem;
  color: #dce7ff;
  font-size: 0.86rem;
}

.evidence-block {
  margin-top: 0;
  padding: 0.95rem;
  border: 1px solid rgba(123, 215, 201, 0.18);
  border-radius: 10px;
  background: rgba(123, 215, 201, 0.06);
}

.evidence-block span,
.related-line span,
.project-value span,
.review-node span,
.key-idea span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.evidence-block strong {
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.55;
}

.related-line {
  display: grid;
  gap: 0.45rem;
}

.pill,
.resume-pills .pill {
  display: inline-flex;
  align-items: center;
  min-height: 1.9rem;
  margin: 0.18rem 0.25rem 0.18rem 0;
  padding: 0.32rem 0.58rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #dce7ff;
  background: rgba(255, 255, 255, 0.045);
  font-size: 0.78rem;
}

.score-ring {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  display: grid;
  width: 3.4rem;
  height: 3.4rem;
  place-items: center;
  border-radius: 999px;
  background:
    radial-gradient(circle at center, #111722 58%, transparent 60%),
    conic-gradient(var(--accent) var(--score), rgba(255, 255, 255, 0.1) 0);
  font-size: 0.78rem;
  font-weight: 800;
}

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

.project-card {
  position: relative;
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
  background:
    linear-gradient(135deg, rgba(157, 183, 255, 0.08), transparent 40%),
    var(--panel);
}

.project-card:hover,
.glass-card:hover,
.workflow-card:hover {
  border-color: rgba(123, 215, 201, 0.32);
  transform: translateY(-4px);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.project-visual {
  display: grid;
  min-height: 7rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(123, 215, 201, 0.14), rgba(157, 183, 255, 0.09)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 28px);
  color: #ecf7ff;
  font-weight: 850;
  text-align: center;
}

.project-preview,
.detail-preview {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.project-preview img,
.detail-preview img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 220ms ease;
}

.project-preview:hover img {
  transform: scale(1.02);
}

.project-status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.project-category {
  color: var(--text-body);
  font-size: 0.82rem;
}

.project-status {
  display: inline-flex;
  padding: 0.28rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.project-card h3 {
  margin-top: 0;
  font-size: 1.45rem;
}

.project-tagline {
  color: #dce7ff !important;
  font-weight: 760;
}

.project-detail-grid,
.case-study-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.project-detail-grid h4,
.case-study-grid h4,
.workflow-bottom h4 {
  margin: 0 0 0.55rem;
  color: var(--text);
  font-size: 0.86rem;
}

.project-detail-grid ul,
.case-study-grid ul {
  margin: 0;
  padding-left: 1.05rem;
  color: var(--text-body);
  line-height: 1.65;
}

.project-value {
  padding: 1rem;
  border: 1px solid rgba(243, 201, 136, 0.18);
  border-radius: 10px;
  background: rgba(243, 201, 136, 0.06);
}

.evidence-chain {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
  align-items: stretch;
}

.evidence-chain span {
  position: relative;
  display: grid;
  min-height: 3rem;
  place-items: center;
  padding: 0.62rem 0.5rem;
  border: 1px solid rgba(123, 215, 201, 0.22);
  border-radius: 8px;
  color: var(--text);
  background: rgba(123, 215, 201, 0.085);
  font-size: 0.78rem;
  font-weight: 760;
  line-height: 1.35;
  text-align: center;
}

.evidence-chain span:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -0.38rem;
  top: 50%;
  width: 0.32rem;
  height: 0.32rem;
  border-top: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  transform: translateY(-50%) rotate(45deg);
}

.project-value p {
  color: #eaf0fb;
}

.project-outcome {
  margin-top: 1rem;
  padding: 0.85rem;
  border: 1px solid rgba(123, 215, 201, 0.16);
  border-radius: 8px;
  color: #dce7ff;
  background: rgba(123, 215, 201, 0.055);
}

.case-study {
  margin-top: 1rem;
  color: var(--text-body);
}

.case-study summary {
  cursor: pointer;
  color: var(--text);
  font-weight: 750;
}

.case-study dl {
  display: grid;
  gap: 0.65rem;
  margin: 0.9rem 0 0;
}

.case-study ul {
  margin: 0;
}

.case-study dt {
  color: var(--accent);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.case-study dd {
  margin: 0.2rem 0 0;
  line-height: 1.55;
}

.project-actions {
  display: flex;
  gap: 0.9rem;
  margin-top: 1.1rem;
}

.small-link {
  gap: 0.38rem;
  color: #dce7ff;
  font-size: 0.9rem;
}

.small-link.disabled {
  cursor: not-allowed;
  color: var(--text-body);
  opacity: 1;
}

.disabled-button {
  justify-content: center;
  width: fit-content;
  color: var(--text-body);
  background: rgba(255, 255, 255, 0.075);
  cursor: not-allowed;
}

.primary-link {
  color: var(--accent);
  font-weight: 800;
}

.workflow-section {
  width: 100%;
  padding-right: max(16px, calc((100% - 1180px) / 2));
  padding-left: max(16px, calc((100% - 1180px) / 2));
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.035), transparent);
}

.workflow-grid {
  display: grid;
  gap: 1.1rem;
}

.workflow-card {
  position: relative;
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(123, 215, 201, 0.08), transparent 42%),
    rgba(255, 255, 255, 0.045);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.workflow-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-body);
}

.workflow-header strong {
  color: var(--text);
}

.workflow-card h3 {
  margin: 0;
  font-size: 1.45rem;
}

.architecture-line {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.55rem;
}

.architecture-line span {
  position: relative;
  display: grid;
  min-height: 3.7rem;
  place-items: center;
  padding: 0.55rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.2);
  font-size: 0.82rem;
  text-align: center;
}

.architecture-line span:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -0.55rem;
  width: 0.55rem;
  height: 1px;
  background: var(--accent);
}

.review-node {
  padding: 1rem;
  border: 1px solid rgba(123, 215, 201, 0.22);
  border-radius: 10px;
  background: rgba(123, 215, 201, 0.07);
}

.workflow-bottom {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.workflow-bottom > div,
.workflow-value {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.workflow-bottom p,
.review-node p {
  margin: 0;
  color: var(--text-body);
  line-height: 1.6;
}

.workflow-value {
  color: #eaf0fb;
}

.workflow-step {
  position: relative;
  min-height: 190px;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
}

.step-arrow {
  position: absolute;
  top: 1.2rem;
  right: -1rem;
  color: var(--accent);
  z-index: 2;
}

.workflow-examples {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.workflow-examples p {
  margin: 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #dce7ff;
  background: rgba(0, 0, 0, 0.22);
}

.timeline {
  position: relative;
  display: grid;
  gap: 1rem;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  bottom: 0.5rem;
  left: 0.45rem;
  width: 1px;
  background: linear-gradient(var(--accent), transparent);
}

.timeline-item {
  position: relative;
  padding-left: 2rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 0.45rem;
  left: 0;
  width: 0.9rem;
  height: 0.9rem;
  border: 2px solid var(--accent);
  border-radius: 999px;
  background: var(--bg);
}

.timeline-proof {
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.timeline-proof strong {
  margin-right: 0.45rem;
  color: var(--accent);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.essay-grid {
  grid-template-columns: repeat(3, 1fr);
}

.essay-card {
  display: grid;
  gap: 0.75rem;
}

.essay-subtitle {
  color: #dce7ff !important;
  font-weight: 740;
}

.key-idea {
  padding: 0.9rem;
  border: 1px solid rgba(157, 183, 255, 0.18);
  border-radius: 10px;
  color: #eaf0fb;
  background: rgba(157, 183, 255, 0.06);
  line-height: 1.55;
}

.resume-band {
  display: grid;
  gap: 1.5rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.resume-pills {
  line-height: 2.2;
}

.resume-note {
  max-width: 680px;
  margin: 0;
  color: var(--text-body);
  line-height: 1.7;
}

.contact-section {
  text-align: center;
}

.contact-section h2 {
  margin: 0 auto;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 2rem;
}

.contact-links a {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  min-height: 4.4rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  text-align: left;
}

.contact-placeholder {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  min-height: 4.4rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  text-align: left;
}

.contact-links a span,
.contact-placeholder span {
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.contact-links a strong,
.contact-placeholder strong {
  color: var(--text);
  font-size: 0.9rem;
}

.contact-placeholder em {
  color: var(--text-body);
  font-size: 0.78rem;
  font-style: normal;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.proof-card {
  display: grid;
  gap: 0.8rem;
  padding: 1.2rem;
}

.proof-card h3 {
  margin: 0;
  font-size: 1.2rem;
}

.proof-card p {
  margin: 0;
  color: var(--text-body);
  line-height: 1.65;
}

.status-band {
  display: grid;
  grid-template-columns: minmax(280px, 0.55fr) 1fr;
  gap: 2rem;
  align-items: start;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}

.status-grid div {
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.status-grid span {
  display: block;
  margin-bottom: 0.32rem;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
}

.status-grid strong {
  color: #dce7ff;
  font-size: 0.9rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  color: var(--text-body);
  font-size: 0.9rem;
}

.not-found-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.not-found-card {
  width: min(760px, 100%);
  padding: clamp(1.5rem, 5vw, 4rem);
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(123, 215, 201, 0.1), transparent 45%),
    var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.not-found-card h1 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(2.4rem, 7vw, 5.4rem);
  line-height: 1.02;
}

.not-found-card p:not(.section-kicker) {
  max-width: 560px;
  margin: 1.1rem 0 1.6rem;
  color: var(--muted);
  line-height: 1.7;
}

.detail-shell {
  min-height: 100vh;
}

.detail-main,
.essay-detail {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 4.5rem 0 6rem;
}

.detail-navbar {
  position: sticky;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 2rem;
  align-items: center;
  padding: 2rem 0 4rem;
}

.detail-hero h1,
.essay-detail h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 5.8rem);
  line-height: 1.02;
}

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

.detail-grid.wide {
  grid-template-columns: repeat(3, 1fr);
}

.detail-card {
  padding: 1.2rem;
}

.detail-card span,
.detail-section h2,
.essay-body-section h2 {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

.detail-card p {
  margin: 0.6rem 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.detail-section {
  margin: 2rem 0;
}

.detail-line {
  margin-top: 1rem;
}

.detail-actions {
  margin-top: 1.4rem;
}

.detail-meta-row,
.inline-anchor-nav,
.detail-footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.detail-meta-row {
  margin: 1.1rem 0 0;
}

.detail-meta-row span,
.inline-anchor-nav a {
  display: inline-flex;
  min-height: 2rem;
  align-items: center;
  padding: 0.36rem 0.68rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #dce7ff;
  font-size: 0.8rem;
  font-weight: 760;
}

.inline-anchor-nav {
  margin-top: 1.25rem;
}

.inline-anchor-nav a:hover {
  border-color: rgba(123, 215, 201, 0.36);
  color: var(--accent);
}

.detail-step-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: detail-step;
}

.detail-step-list li {
  position: relative;
  min-height: 6.4rem;
  padding: 1.05rem 1rem 1rem 3.3rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
  color: #dce7ff;
  line-height: 1.62;
  counter-increment: detail-step;
}

.detail-step-list li::before {
  content: counter(detail-step, decimal-leading-zero);
  position: absolute;
  top: 1rem;
  left: 1rem;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 850;
}

.detail-footer-actions {
  margin-top: 2rem;
}

.essay-detail {
  max-width: 900px;
}

.detail-key {
  margin: 1.5rem 0;
}

.essay-body {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.essay-body-section {
  margin: 2rem 0;
}

.essay-body-section p {
  color: #dce7ff;
  font-size: 1.05rem;
  line-height: 1.85;
}

.review-checklist-page {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 4.5rem 0 6rem;
}

.review-hero {
  margin-bottom: 2rem;
}

.review-hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 5.6rem);
  line-height: 1.02;
}

.review-checklist {
  display: grid;
  gap: 1rem;
}

.review-section {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(123, 215, 201, 0.07), transparent 42%),
    var(--panel);
  box-shadow: var(--shadow);
}

.review-section h2 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
}

.checklist-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.checklist-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
  min-height: 4rem;
  padding: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.checklist-item span {
  width: 1rem;
  height: 1rem;
  margin-top: 0.2rem;
  border: 1px solid rgba(123, 215, 201, 0.5);
  border-radius: 4px;
  background: rgba(123, 215, 201, 0.08);
}

.checklist-item p {
  margin: 0;
  color: #dce7ff;
  line-height: 1.55;
}

.todo-section {
  margin-top: 1rem;
}

.todo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.todo-card {
  display: grid;
  gap: 0.7rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.todo-card div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.todo-card span {
  display: inline-flex;
  align-items: center;
  min-height: 1.65rem;
  padding: 0.22rem 0.5rem;
  border: 1px solid rgba(123, 215, 201, 0.22);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
}

.todo-card strong {
  color: var(--text);
}

.todo-card p {
  margin: 0;
  color: #dce7ff;
  line-height: 1.6;
}

.todo-card em {
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
  text-transform: uppercase;
}

.priority-high {
  border-color: rgba(243, 201, 136, 0.34);
}

.priority-medium {
  border-color: rgba(157, 183, 255, 0.28);
}

/* Step 10 final polish layer */
.zh-page .section {
  padding: 5rem 0;
}

.profile-hero {
  min-height: calc(100vh - 64px);
  gap: clamp(2rem, 4vw, 4rem);
}

.profile-hero::before {
  content: "";
  position: absolute;
  inset: 6rem max(16px, calc((100% - 1180px) / 2)) auto auto;
  width: min(42vw, 34rem);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(123, 215, 201, 0.42), transparent);
}

.profile-hero .hero-copy {
  max-width: 760px;
}

.profile-hero .hero-cn {
  max-width: 760px;
  color: #f1f7ff;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  font-weight: 740;
}

.profile-hero .hero-subtitle {
  max-width: 720px;
  font-size: 1.02rem;
}

.profile-hero .tag-row {
  max-width: 720px;
  gap: 0.42rem;
}

.profile-hero .tag {
  min-height: 1.75rem;
  padding: 0.28rem 0.52rem;
  font-size: 0.76rem;
}

.profile-fact-grid {
  grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 0.82fr));
  gap: 0.55rem;
}

.profile-fact-grid > * {
  min-height: 4rem;
  padding: 0.72rem 0.78rem;
  background:
    linear-gradient(135deg, rgba(123, 215, 201, 0.07), transparent),
    rgba(255, 255, 255, 0.038);
}

.profile-fact-grid strong {
  font-size: 0.88rem;
}

.profile-visual {
  min-height: 500px;
  background:
    linear-gradient(150deg, rgba(123, 215, 201, 0.1), transparent 35%),
    linear-gradient(330deg, rgba(157, 183, 255, 0.1), transparent 44%),
    rgba(10, 14, 22, 0.72);
}

.profile-radar {
  width: min(100%, 28rem);
  margin-top: 2.5rem;
}

.radar-core {
  inset: 39% 33%;
  border-color: rgba(123, 215, 201, 0.35);
  background: rgba(7, 12, 18, 0.92);
}

.radar-node {
  border-radius: 10px;
  background: rgba(12, 18, 28, 0.82);
}

.bridge-strip {
  margin: 1.15rem;
}

.profile-summary {
  padding-top: 3.5rem;
}

.profile-summary .section-heading {
  display: grid;
  grid-template-columns: minmax(260px, 0.5fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: end;
}

.profile-summary .section-lede {
  margin-top: 0;
}

.profile-summary-grid {
  grid-template-columns: 1.2fr 1.35fr 1fr;
  align-items: stretch;
}

.profile-summary-card {
  min-height: 5.5rem;
  padding: 0.9rem;
  border-radius: 10px;
}

.profile-summary-card strong {
  font-size: 0.92rem;
}

.zh-page .section-kicker {
  letter-spacing: 0.04em;
}

.zh-page .section h2 {
  max-width: 860px;
  line-height: 1.12;
}

.zh-page p,
.zh-page li,
.zh-page strong {
  word-break: normal;
}

.project-card {
  gap: 0.9rem;
  padding: 1.05rem;
}

.project-preview {
  aspect-ratio: 16 / 9;
}

.project-preview img {
  height: 100%;
  object-fit: cover;
}

.project-card h3 {
  font-size: 1.24rem;
  line-height: 1.24;
}

.project-card .project-value {
  padding: 0.82rem;
}

.project-actions {
  align-items: center;
}

.small-link.disabled {
  font-size: 0.82rem;
  transform: none;
}

.detail-hero {
  padding-top: 1rem;
  border-bottom: 1px solid var(--line);
}

.detail-preview {
  aspect-ratio: 16 / 10;
}

.detail-preview img {
  height: 100%;
  object-fit: cover;
}

.detail-card,
.detail-step-list li,
.essay-body {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.045), transparent),
    rgba(255, 255, 255, 0.032);
}

.essay-detail {
  width: min(900px, calc(100% - 32px));
}

.essay-detail h1 {
  max-width: 820px;
}

.essay-body-section p {
  line-height: 1.9;
}

@media (max-width: 1080px) {
  .capability-grid,
  .essay-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .workflow-map,
  .workflow-examples,
  .workflow-bottom,
  .architecture-line,
  .detail-step-list,
  .proof-grid,
  .status-band,
  .status-grid,
  .experience-grid,
  .role-fit-section,
  .role-fit-grid,
  .career-grid,
  .education-section,
  .profile-summary-grid {
    grid-template-columns: 1fr;
  }

  .workflow-step {
    min-height: auto;
  }

  .step-arrow {
    display: none;
  }

  .architecture-line span:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 860px) {
  .navbar {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .hero,
  .profile-hero,
  .two-column,
  .project-grid,
  .resume-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 2.5rem;
    min-height: auto;
    padding-top: 4rem;
  }

  .hero-visual {
    min-height: 430px;
  }

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

  .metric-panel {
    grid-template-columns: 1fr;
  }

  .profile-fact-grid,
  .bridge-strip {
    grid-template-columns: 1fr;
  }

  .profile-summary .section-heading,
  .profile-summary-grid {
    grid-template-columns: 1fr;
  }

  .profile-hero::before {
    display: none;
  }

  .profile-visual {
    min-height: 430px;
  }

  .profile-radar {
    width: min(100%, 24rem);
  }

  .radar-node {
    width: 5.8rem;
    font-size: 0.76rem;
  }

  .project-detail-grid,
  .case-study-grid,
  .resume-grid,
  .detail-hero,
  .detail-grid,
  .detail-grid.wide,
  .checklist-grid,
  .todo-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .section {
    padding: 4rem 0;
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  .zh-page .hero h1 {
    font-size: 2.55rem;
  }

  .profile-hero .hero-cn {
    font-size: 1.16rem;
  }

  .hero-actions,
  .contact-links,
  .detail-footer-actions {
    flex-direction: column;
  }

  .button,
  .contact-links a,
  .detail-footer-actions a {
    justify-content: center;
    width: 100%;
  }

  .capability-grid,
  .essay-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 380px;
  }

  .main-node {
    inset: 40% 10%;
  }

  .node-a,
  .node-b,
  .node-c,
  .node-d {
    width: 6rem;
  }

  .system-core {
    width: 11rem;
  }

  .system-node {
    min-width: 5.6rem;
    font-size: 0.76rem;
  }

  .profile-radar {
    width: 100%;
  }

  .radar-core {
    inset: 39% 29%;
    font-size: 0.8rem;
  }

  .radar-node {
    width: 5rem;
    min-height: 2.6rem;
    padding: 0.35rem;
    font-size: 0.7rem;
  }

  .profile-summary-card,
  .profile-fact-grid > * {
    min-height: auto;
  }

  .language-switch {
    padding: 0 0.55rem;
    font-size: 0.74rem;
  }

  .footer {
    flex-direction: column;
  }
}

/* Step 13 final cascade at EOF: unified light system, layout, cards, controls. */
:root {
  color-scheme: light;
  color: #0f172a;
  background: #eef2f6;
  --page-bg: #eef2f6;
  --page-bg-soft: #f6f8fb;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --surface-strong: #f1f5f9;
  --text-main: #0f172a;
  --text-body: #1e293b;
  --text-muted: #475569;
  --text-subtle: #64748b;
  --accent: #0f766e;
  --accent-strong: #0f5f59;
  --accent-soft: #ccfbf1;
  --border-soft: #d7dee8;
  --border-strong: #b8c2d0;
  --shadow-soft: 0 18px 50px rgba(15, 23, 42, 0.08);
  --shadow-card: 0 10px 30px rgba(15, 23, 42, 0.1);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 12px;
  --container: 1120px;
  --section-gap: 96px;
  --bg: var(--page-bg);
  --panel: var(--surface);
  --panel-strong: var(--surface-strong);
  --line: var(--border-soft);
  --muted: var(--text-muted);
  --text: var(--text-main);
  --shadow: var(--shadow-card);
}

body {
  color: var(--text-body);
  background:
    radial-gradient(circle at 10% 0%, rgba(15, 118, 110, 0.12), transparent 34rem),
    radial-gradient(circle at 88% 8%, rgba(29, 78, 216, 0.1), transparent 32rem),
    linear-gradient(180deg, #f8fafc 0%, var(--page-bg) 38%, #f6f8fb 100%);
}

.navbar,
.section,
.workflow-section,
.review-checklist-page,
.detail-main,
.essay-detail,
.hero,
.profile-hero,
.footer {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-gap);
}

.hero,
.profile-hero {
  min-height: auto;
  padding-block: 72px 88px;
  gap: 2.5rem;
}

.profile-hero::before {
  inset: 38px -28px 28px;
  border: 1px solid rgba(184, 194, 208, 0.5);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.72)),
    radial-gradient(circle at 14% 22%, rgba(204, 251, 241, 0.72), transparent 24rem),
    radial-gradient(circle at 90% 4%, rgba(219, 234, 254, 0.9), transparent 28rem);
  box-shadow: var(--shadow-soft);
}

.section-heading,
.profile-summary .section-heading {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: 2rem;
}

.hero h1,
.section h2,
.review-hero h1 {
  color: var(--text-main);
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(3rem, 5.8vw, 5.7rem);
  line-height: 1;
}

.section h2 {
  max-width: 760px;
  font-size: clamp(2rem, 3.4vw, 3.6rem);
  line-height: 1.08;
}

.hero-cn,
.profile-hero .hero-cn,
.hero-subtitle,
.section-lede,
.profile-hero .hero-subtitle {
  color: var(--text-body);
}

.eyebrow,
.section-kicker {
  color: var(--accent-strong);
}

.glass-card,
.project-card,
.resume-grid article,
.proof-card,
.workflow-card,
.review-section,
.todo-card,
.detail-card,
.contact-links a,
.contact-placeholder,
.education-card,
.profile-summary-card,
.profile-fact-grid > *,
.experience-card,
.role-fit-card,
.career-card,
.essay-card {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  color: var(--text-body);
  background: linear-gradient(180deg, var(--surface), var(--surface-soft));
  box-shadow: var(--shadow-card);
  backdrop-filter: none;
}

.glass-card h3,
.project-card h3,
.workflow-card h3,
.essay-card h3,
.resume-grid h3,
.proof-card h3,
.career-card h3 {
  color: var(--text-main);
}

.glass-card p,
.project-card p,
.workflow-card p,
.essay-card p,
.proof-card p,
.career-card p,
.career-card li,
.resume-grid p,
.detail-card p,
.review-node p,
.workflow-bottom p {
  color: var(--text-body);
}

.tag,
.pill,
.resume-pills .pill,
.project-status {
  border: 1px solid var(--border-strong);
  color: var(--text-main);
  background: #f8fafc;
  font-weight: 720;
}

.section-kicker,
.project-status {
  background: var(--accent-soft);
  border-color: rgba(15, 118, 110, 0.24);
}

.button,
.small-link {
  border-radius: var(--radius-sm);
  color: var(--text-main);
  background: #ffffff;
}

.button.primary,
.small-link.primary-link {
  border-color: var(--accent-strong);
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
}

.button.secondary,
.button.ghost,
.small-link.disabled,
.disabled-button {
  border-color: var(--border-strong);
  color: var(--text-body);
  background: #ffffff;
  opacity: 1;
}

.hero-visual {
  min-height: 500px;
  border-radius: var(--radius-lg);
  border-color: rgba(15, 23, 42, 0.16);
  background:
    radial-gradient(circle at 24% 20%, rgba(125, 211, 252, 0.22), transparent 18rem),
    linear-gradient(145deg, #0f172a, #111827 58%, #143634);
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.22);
}

.profile-summary-grid,
.capability-grid,
.experience-grid,
.role-fit-grid,
.career-grid,
.project-grid,
.workflow-grid,
.proof-grid,
.essay-grid,
.resume-grid,
.status-grid,
.todo-grid,
.checklist-grid {
  gap: 1.1rem;
}

.project-card {
  grid-template-rows: auto auto auto 1fr auto auto auto;
  padding: 1.2rem;
}

.project-preview,
.detail-preview {
  border-color: var(--border-soft);
  border-radius: var(--radius-md);
  background: #0f172a;
}

.project-value,
.key-idea,
.review-node,
.evidence-block,
.workflow-value,
.evidence-chain span,
.architecture-line span {
  border-color: rgba(15, 118, 110, 0.22);
  color: var(--text-main);
  background: #ecfdf5;
}

.workflow-section {
  padding-inline: 0;
}

.contact-section {
  text-align: left;
}

.contact-section h2 {
  margin-inline: 0;
}

.contact-links {
  justify-content: flex-start;
}

@media (max-width: 900px) {
  .navbar,
  .section,
  .workflow-section,
  .review-checklist-page,
  .detail-main,
  .essay-detail,
  .hero,
  .profile-hero,
  .footer {
    width: min(100% - 28px, var(--container));
  }

  .section,
  .hero,
  .profile-hero {
    padding-block: 64px;
  }

  .section-heading,
  .profile-summary .section-heading {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
}
/* Step 15 EOF override marker. */
/* Step 15 EOF override: dark theme wins over all previous theme steps. */
:root,
:root[data-theme="light"],
:root[data-theme="dark"] {
  color-scheme: dark !important;
  --page-bg: #070b12;
  --page-bg-2: #0b1220;
  --surface: rgba(15, 23, 42, 0.92);
  --surface-soft: rgba(20, 31, 52, 0.78);
  --surface-strong: rgba(30, 41, 59, 0.94);
  --text-main: #f8fafc;
  --text-body: #e5edf7;
  --text-muted: #b8c4d4;
  --text-subtle: #93a4b8;
  --accent: #5eead4;
  --accent-strong: #2dd4bf;
  --accent-soft: rgba(45, 212, 191, 0.14);
  --border-soft: rgba(148, 163, 184, 0.22);
  --border-strong: rgba(148, 163, 184, 0.38);
  --container: 1120px;
  --shadow-card: 0 24px 80px rgba(0, 0, 0, 0.32);
  --shadow-soft: 0 16px 50px rgba(0, 0, 0, 0.22);
}

html,
body,
:root[data-theme="light"] body,
:root[data-theme="dark"] body {
  color-scheme: dark !important;
  color: var(--text-body) !important;
  background: #070b12 !important;
  scroll-behavior: smooth;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 10%, rgba(45, 212, 191, 0.18), transparent 28%),
    radial-gradient(circle at 85% 18%, rgba(99, 102, 241, 0.16), transparent 30%),
    linear-gradient(180deg, #070b12 0%, #0b1220 48%, #070b12 100%) !important;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.055) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.82), transparent 78%);
}

.navbar,
.section,
.workflow-section,
.review-checklist-page,
.detail-main,
.essay-detail,
.hero,
.profile-hero,
.footer {
  width: min(1120px, calc(100% - 48px)) !important;
  max-width: 1120px !important;
  margin-inline: auto !important;
}

.profile-fact-grid > *,
.glass-card,
.project-card,
.essay-card,
.capability-card,
.proof-card,
.workflow-card,
.experience-card,
.role-fit-card,
.career-card,
.resume-grid article,
.review-section,
.todo-card,
.detail-card,
.contact-links a,
.contact-placeholder,
.education-card,
.profile-summary-card {
  color: var(--text-body) !important;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.93), rgba(15, 23, 42, 0.75)),
    radial-gradient(circle at 20% 0%, rgba(45, 212, 191, 0.08), transparent 16rem) !important;
  border: 1px solid rgba(148, 163, 184, 0.22) !important;
  box-shadow: var(--shadow-soft) !important;
}

.hero h1,
.profile-hero h1,
.section h2,
.review-hero h1,
.glass-card h3,
.project-card h3,
.workflow-card h3,
.essay-card h3 {
  color: var(--text-main) !important;
}

.hero-subtitle,
.section-lede,
.profile-hero .hero-subtitle,
.glass-card p,
.project-card p,
.workflow-card p,
.essay-card p,
.career-card li {
  color: var(--text-body) !important;
}

.tag,
.pill,
.project-status,
.detail-meta-row span,
.architecture-line span,
.evidence-chain span,
.project-value,
.key-idea,
.review-node,
.evidence-block,
.workflow-value {
  color: #dffcf8 !important;
  background: rgba(45, 212, 191, 0.08) !important;
  border-color: rgba(94, 234, 212, 0.28) !important;
}

.button,
.small-link {
  color: var(--text-main) !important;
  background: rgba(15, 23, 42, 0.74) !important;
  border-color: rgba(148, 163, 184, 0.28) !important;
}

.button.primary,
.small-link.primary-link {
  color: #031312 !important;
  background: linear-gradient(135deg, #5eead4, #38bdf8) !important;
  border-color: rgba(94, 234, 212, 0.58) !important;
}

.hero-visual,
.profile-visual {
  border-color: rgba(94, 234, 212, 0.2) !important;
  background:
    radial-gradient(circle at 50% 44%, rgba(94, 234, 212, 0.18), transparent 11rem),
    radial-gradient(circle at 82% 18%, rgba(96, 165, 250, 0.18), transparent 18rem),
    linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(7, 11, 18, 0.96) 58%, rgba(13, 48, 54, 0.88)) !important;
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.42) !important;
}

.workflow-section,
.workflow-grid,
.workflow-card,
.workflow-board,
.workflow-list {
  max-width: 1120px !important;
  margin-inline: auto !important;
}

.workflow-section {
  width: min(1120px, calc(100% - 48px)) !important;
  padding-inline: 0 !important;
}

.workflow-grid {
  width: 100% !important;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)) !important;
}

.back-to-top {
  color: var(--accent) !important;
  background: rgba(15, 23, 42, 0.78) !important;
  border: 1px solid rgba(94, 234, 212, 0.38) !important;
}

@media print {
  :root,
  :root[data-theme="light"],
  :root[data-theme="dark"],
  html,
  body {
    color-scheme: light !important;
    color: #111827 !important;
    background: #ffffff !important;
  }

  body::before,
  body::after,
  .background-layer,
  .back-to-top {
    display: none !important;
  }
}
/* Step 16 EOF override: dark readability, card hierarchy, and floating control polish. */
:root,
:root[data-theme="light"],
:root[data-theme="dark"] {
  --page-bg: #060a11;
  --page-bg-2: #0a111c;
  --surface: rgba(16, 27, 42, 0.96);
  --surface-soft: rgba(20, 34, 52, 0.94);
  --surface-strong: rgba(25, 40, 60, 0.98);
  --text-main: #f8fafc;
  --text-body: #e6edf5;
  --text-muted: #c5d0df;
  --text-subtle: #a8b6c8;
  --accent: #5eead4;
  --accent-strong: #2dd4bf;
  --accent-dim: #14b8a6;
  --accent-soft: rgba(45, 212, 191, 0.16);
  --line: rgba(180, 195, 215, 0.24);
  --line-strong: rgba(180, 195, 215, 0.42);
  --card-border: rgba(148, 163, 184, 0.28);
  --card-border-hover: rgba(94, 234, 212, 0.48);
  --border-soft: var(--card-border);
  --border-strong: var(--line-strong);
  --shadow-card: 0 24px 80px rgba(0, 0, 0, 0.42);
  --shadow-soft: 0 16px 48px rgba(0, 0, 0, 0.32);
}

body,
:root[data-theme="light"] body,
:root[data-theme="dark"] body {
  color: var(--text-body) !important;
  background: #060a11 !important;
}

body::before {
  background:
    radial-gradient(circle at 15% 10%, rgba(45, 212, 191, 0.12), transparent 28%),
    radial-gradient(circle at 85% 18%, rgba(99, 102, 241, 0.10), transparent 30%),
    linear-gradient(180deg, #060a11 0%, #0a111c 52%, #060a11 100%) !important;
}

body::after {
  background-image:
    linear-gradient(rgba(180, 195, 215, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(180, 195, 215, 0.035) 1px, transparent 1px);
}

p,
li,
small,
span,
.card p,
.glass-card p,
.project-card p,
.essay-card p,
.workflow-card p,
.experience-card p,
.capability-card p,
.proof-card p,
.career-card p,
.role-fit-card p,
.resume-grid p,
.detail-card p,
.review-section p,
.todo-card p,
.contact-links strong,
.contact-placeholder strong,
.workflow-bottom p,
.workflow-step p,
.workflow-map span,
.detail-step-list li {
  color: var(--text-body) !important;
}

.muted,
.card-meta,
.project-meta,
.section-description,
.section-lede,
.helper-text,
.card-topline,
.visual-label,
.profile-summary-card span,
.contact-links span,
.contact-placeholder span,
.metric-panel span,
.bridge-strip span,
.resume-note,
.footer {
  color: var(--text-muted) !important;
}

.subtle,
.placeholder,
.disabled,
.small-link.disabled,
.disabled-button,
.contact-placeholder em,
.todo-card em {
  color: var(--text-subtle) !important;
}

.profile-fact-grid > *,
.glass-card,
.card,
.profile-card,
.project-card,
.essay-card,
.capability-card,
.proof-card,
.workflow-card,
.experience-card,
.role-fit-card,
.career-card,
.resume-grid article,
.review-section,
.todo-card,
.detail-card,
.contact-links a,
.contact-placeholder,
.education-card,
.profile-summary-card,
.status-card {
  background:
    linear-gradient(180deg, rgba(20, 34, 52, 0.98), rgba(13, 23, 38, 0.96)) !important;
  border: 1px solid var(--card-border) !important;
  box-shadow: var(--shadow-soft) !important;
}

.glass-card:hover,
.project-card:hover,
.essay-card:hover,
.workflow-card:hover,
.capability-card:hover,
.proof-card:hover,
.experience-card:hover,
.role-fit-card:hover,
.career-card:hover,
.contact-links a:hover {
  border-color: var(--card-border-hover) !important;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.48) !important;
  transform: translateY(-3px);
}

.tag,
.pill,
.project-tag,
.skill-tag,
.status-pill,
.project-status,
.resume-pills .pill,
.detail-meta-row span,
.architecture-line span,
.evidence-chain span {
  color: #dffdf8 !important;
  background: rgba(20, 184, 166, 0.14) !important;
  border: 1px solid rgba(94, 234, 212, 0.32) !important;
}

.placeholder,
.placeholder-pill,
.disabled-link,
.small-link.disabled,
.disabled-button,
.contact-placeholder {
  color: #cbd5e1 !important;
  background: rgba(148, 163, 184, 0.10) !important;
  border: 1px dashed rgba(203, 213, 225, 0.28) !important;
}

.button.primary,
.small-link.primary-link {
  color: #04111a !important;
  font-weight: 800;
  background: linear-gradient(135deg, #5eead4, #2dd4bf) !important;
  border: 1px solid rgba(94, 234, 212, 0.65) !important;
}

.button.secondary,
.button.ghost,
.small-link {
  color: var(--text-body) !important;
  background: rgba(15, 23, 42, 0.72) !important;
  border: 1px solid rgba(148, 163, 184, 0.34) !important;
}

.section-eyebrow,
.section-kicker,
.eyebrow {
  color: var(--accent) !important;
  font-weight: 800;
}

.section-title,
section h2,
.hero h1,
.project-card h3,
.workflow-card h3,
.capability-card h3,
.experience-card h3,
.essay-card h3,
.review-section h2 {
  color: var(--text-main) !important;
}

.project-value,
.key-idea,
.review-node,
.evidence-block,
.workflow-value {
  color: var(--text-main) !important;
  background: rgba(20, 184, 166, 0.13) !important;
  border: 1px solid rgba(94, 234, 212, 0.34) !important;
}

.workflow-card,
.workflow-step,
.workflow-bottom > div,
.workflow-value {
  background-color: rgba(20, 34, 52, 0.94) !important;
}

.workflow-header span,
.workflow-header strong,
.workflow-bottom h4,
.review-node span,
.evidence-block span,
.project-value span {
  color: var(--text-muted) !important;
}

.workflow-map span,
.workflow-step,
.detail-step-list li {
  border-color: rgba(180, 195, 215, 0.28) !important;
}

.project-card h3,
.project-card p,
.project-value,
.project-links,
.small-link {
  opacity: 1 !important;
}

.project-preview,
.detail-preview {
  border-color: var(--card-border) !important;
  box-shadow: inset 0 0 0 1px rgba(180, 195, 215, 0.08);
}

.back-to-top,
.floating-action,
.translate-floating,
.side-floating {
  color: var(--accent) !important;
  background: rgba(15, 23, 42, 0.86) !important;
  border: 1px solid rgba(94, 234, 212, 0.38) !important;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.34) !important;
}

.back-to-top:hover,
.floating-action:hover,
.translate-floating:hover,
.side-floating:hover {
  color: #04111a !important;
  background: linear-gradient(135deg, #5eead4, #2dd4bf) !important;
}
/* Step 16.1: navbar readability fix for dark theme. */
.navbar,
.detail-navbar {
  color: #f8fafc !important;
  background:
    linear-gradient(180deg, rgba(10, 17, 28, 0.96), rgba(8, 13, 22, 0.92)) !important;
  border: 1px solid rgba(180, 195, 215, 0.26) !important;
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.44) !important;
  backdrop-filter: blur(18px) saturate(1.1) !important;
}

.navbar .brand,
.navbar .brand span,
.navbar .nav-links,
.navbar .nav-links a,
.navbar .language-switch,
.navbar .icon-button,
.navbar .text-icon {
  color: #f8fafc !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

.navbar .brand {
  font-weight: 800;
}

.navbar .brand-mark {
  color: #04111a !important;
  background: linear-gradient(135deg, #5eead4, #38bdf8) !important;
  border: 1px solid rgba(94, 234, 212, 0.58) !important;
  box-shadow: 0 10px 28px rgba(45, 212, 191, 0.24) !important;
}

.navbar .language-switch,
.navbar .icon-button,
.navbar .text-icon {
  background: rgba(15, 23, 42, 0.78) !important;
  border: 1px solid rgba(180, 195, 215, 0.28) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025) !important;
}

.navbar .nav-links a:hover,
.navbar .language-switch:hover,
.navbar .icon-button:hover,
.navbar .text-icon:hover {
  color: #04111a !important;
  background: linear-gradient(135deg, #5eead4, #2dd4bf) !important;
  border-color: rgba(94, 234, 212, 0.62) !important;
}
/* Step 17 EOF override: desktop scale, portfolio modules, and long-page rhythm. */
:root,
:root[data-theme="light"],
:root[data-theme="dark"] {
  --container: 1240px;
  --container-wide: 1320px;
  --container-reading: 860px;
}

body {
  font-size: 16px;
  line-height: 1.72;
}

.navbar,
.section,
.workflow-section,
.review-checklist-page,
.detail-main,
.footer {
  width: min(var(--container), calc(100% - 64px)) !important;
  max-width: var(--container) !important;
}

.hero,
.profile-hero {
  width: min(var(--container-wide), calc(100% - 64px)) !important;
  max-width: var(--container-wide) !important;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  gap: clamp(48px, 6vw, 90px);
  align-items: center;
  min-height: calc(100vh - 96px);
  padding-block: clamp(84px, 8vw, 124px);
}

.essay-detail,
.detail-section > p,
.detail-section > ul,
.detail-section > ol {
  max-width: var(--container-reading) !important;
}

.hero h1,
.profile-hero h1 {
  font-size: clamp(3.8rem, 7vw, 6.8rem) !important;
  line-height: 0.92 !important;
}

.section h2,
.section-title,
section h2,
.review-hero h1 {
  font-size: clamp(2.4rem, 4vw, 4.2rem) !important;
  line-height: 1.02 !important;
  max-width: 920px;
}

.card h3,
.glass-card h3,
.project-card h3,
.essay-card h3,
.workflow-card h3,
.capability-card h3,
.experience-card h3,
.role-fit-card h3 {
  font-size: 1.25rem !important;
  line-height: 1.3 !important;
}

.card p,
.glass-card p,
.project-card p,
.essay-card p,
.workflow-card p,
.capability-card p,
.experience-card p,
.role-fit-card p,
.career-card p {
  font-size: 0.98rem !important;
  line-height: 1.7 !important;
}

.tag,
.pill,
.project-status,
.status-pill,
.detail-meta-row span {
  font-size: 0.82rem !important;
}

.section {
  position: relative;
  padding-block: clamp(72px, 9vw, 120px) !important;
}

.section::before {
  content: "";
  position: absolute;
  left: 0;
  top: clamp(70px, 8vw, 112px);
  width: 2px;
  height: 72px;
  background: linear-gradient(180deg, rgba(94, 234, 212, 0.8), rgba(94, 234, 212, 0));
  border-radius: 999px;
}

.section-heading,
.profile-summary .section-heading {
  gap: clamp(28px, 4vw, 56px) !important;
  margin-bottom: 36px !important;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(180, 195, 215, 0.16);
}

.hero-visual,
.profile-visual {
  min-height: clamp(540px, 44vw, 660px) !important;
}

.profile-fact-grid {
  gap: 14px !important;
}

.profile-fact-grid > * {
  padding: 18px 20px !important;
}

.project-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 32px !important;
}

.project-card {
  padding: 24px !important;
  min-height: 100%;
}

.project-preview {
  min-height: 260px !important;
}

.project-card h3 {
  font-size: 1.45rem !important;
}

.project-tagline,
.project-card > p {
  font-size: 1rem !important;
}

.project-value {
  padding: 18px !important;
}

.project-links {
  gap: 12px !important;
}

.workflow-section {
  max-width: var(--container) !important;
  background:
    linear-gradient(180deg, rgba(16, 27, 42, 0.34), rgba(8, 13, 22, 0.08));
  border-radius: 32px;
}

.workflow-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 28px !important;
}

.workflow-card {
  padding: 28px !important;
}

.workflow-map,
.workflow-steps {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
}

.workflow-map span,
.workflow-step {
  padding: 12px 14px !important;
  font-size: 0.94rem !important;
}

.workflow-bottom {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 16px !important;
}

.capability-grid,
.role-fit-grid,
.experience-grid {
  gap: 28px !important;
}

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

.role-fit-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.capability-card,
.role-fit-card,
.experience-card {
  padding: 26px !important;
}

.essay-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 28px !important;
}

.essay-card {
  padding: 24px !important;
}

.essay-card h3 {
  font-size: 1.28rem !important;
}

.key-idea {
  padding: 16px !important;
}

#projects,
#workflows,
#essays,
#proof {
  border-radius: 32px;
}

#projects::after,
#workflows::after,
#essays::after {
  content: "";
  position: absolute;
  inset: 32px -24px auto auto;
  width: 180px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(94, 234, 212, 0.38));
}

@media (max-width: 980px) {
  .navbar,
  .section,
  .workflow-section,
  .review-checklist-page,
  .detail-main,
  .footer,
  .hero,
  .profile-hero {
    width: min(100% - 28px, var(--container)) !important;
    max-width: var(--container) !important;
  }

  .hero,
  .profile-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 36px;
    padding-block: 64px;
  }

  .hero h1,
  .profile-hero h1 {
    font-size: clamp(3rem, 16vw, 4.8rem) !important;
  }

  .section h2,
  section h2 {
    font-size: clamp(2rem, 10vw, 3rem) !important;
  }

  .project-grid,
  .capability-grid,
  .role-fit-grid,
  .essay-grid,
  .workflow-bottom {
    grid-template-columns: 1fr !important;
  }

  .project-preview {
    min-height: 220px !important;
  }

  .section::before,
  #projects::after,
  #workflows::after,
  #essays::after {
    display: none;
  }
}
/* Step 18 EOF override: real DOM desktop layout fix. */
:root,
:root[data-theme="light"],
:root[data-theme="dark"] {
  --container: 1280px;
  --container-wide: 1360px;
  --container-reading: 860px;
}

@media (min-width: 1024px) {
  .site-shell,
  .site-shell > main,
  .zh-page,
  .zh-page > main {
    width: 100% !important;
    max-width: none !important;
  }

  .navbar,
  .site-shell > main > .section,
  .zh-page > main > .section,
  .review-checklist-page,
  .footer {
    width: min(var(--container), calc(100vw - 96px)) !important;
    max-width: var(--container) !important;
    margin-inline: auto !important;
  }

  .site-shell > main > .hero.section,
  .zh-page > main > .hero.section,
  .hero.profile-hero.section {
    width: min(var(--container-wide), calc(100vw - 96px)) !important;
    max-width: var(--container-wide) !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1.08fr) minmax(460px, 0.92fr) !important;
    gap: clamp(56px, 7vw, 100px) !important;
    align-items: center !important;
    min-height: calc(100vh - 96px) !important;
  }

  .hero-copy {
    max-width: 780px !important;
  }

  .hero h1,
  .profile-hero h1,
  .zh-page .hero h1 {
    font-size: clamp(4.4rem, 7vw, 7.4rem) !important;
    line-height: 0.9 !important;
  }

  .hero-visual,
  .profile-visual,
  .profile-radar {
    min-height: 560px !important;
  }

  .profile-fact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .profile-summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 18px !important;
  }

  .experience-grid,
  .career-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 32px !important;
  }

  .capability-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 32px !important;
  }

  .role-fit-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 28px !important;
  }

  .project-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 36px !important;
    width: 100% !important;
  }

  .project-card {
    padding: 28px !important;
    min-height: 100% !important;
  }

  .project-preview,
  .project-card img,
  .project-visual {
    min-height: 280px !important;
  }

  .project-card h3 {
    font-size: 1.52rem !important;
    line-height: 1.24 !important;
  }

  .project-card p,
  .project-tagline,
  .project-value p {
    font-size: 1rem !important;
    line-height: 1.75 !important;
  }

  .project-detail-grid,
  .evidence-chain,
  .project-actions {
    gap: 14px !important;
  }

  .workflow-section {
    width: min(var(--container), calc(100vw - 96px)) !important;
    max-width: var(--container) !important;
    margin-inline: auto !important;
    padding-inline: clamp(24px, 3vw, 40px) !important;
  }

  .workflow-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 32px !important;
    width: 100% !important;
    max-width: none !important;
  }

  .workflow-card {
    width: 100% !important;
    max-width: none !important;
    padding: 32px !important;
  }

  .architecture-line,
  .workflow-map,
  .workflow-steps,
  .workflow-flow,
  .workflow-stage-list {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 14px !important;
  }

  .architecture-line span,
  .workflow-step,
  .workflow-map span {
    flex: 1 1 150px !important;
    min-width: 140px !important;
    padding: 13px 15px !important;
  }

  .review-node,
  .workflow-value {
    padding: 18px !important;
  }

  .proof-grid,
  .status-grid,
  .resume-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 24px !important;
  }

  .essay-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 32px !important;
  }

  .essay-card {
    min-height: 260px !important;
  }

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

  .detail-main,
  .essay-detail {
    width: min(var(--container-reading), calc(100vw - 96px)) !important;
    max-width: var(--container-reading) !important;
  }
}

@media (max-width: 768px) {
  .site-shell > main > .section,
  .zh-page > main > .section,
  .hero,
  .profile-hero,
  .navbar,
  .workflow-section,
  .project-grid,
  .workflow-grid,
  .essay-grid {
    width: min(100% - 28px, 100%) !important;
    max-width: none !important;
  }

  .hero,
  .profile-hero,
  .project-grid,
  .workflow-grid,
  .essay-grid,
  .capability-grid,
  .role-fit-grid,
  .experience-grid,
  .career-grid,
  .contact-links {
    grid-template-columns: 1fr !important;
  }
}
/* Step 19 EOF override: Edge-safe text rendering and readability. */
:root,
:root[data-theme="dark"],
:root[data-theme="light"] {
  --edge-text-main: #ffffff;
  --edge-text-body: #eef5ff;
  --edge-text-muted: #d4deeb;
  --edge-text-subtle: #bdcad9;
  --edge-card-bg: #101b2a;
  --edge-card-bg-strong: #142236;
  --edge-card-border: rgba(196, 211, 232, 0.34);
  --text-main: var(--edge-text-main);
  --text-body: var(--edge-text-body);
  --text-muted: var(--edge-text-muted);
  --text-subtle: var(--edge-text-subtle);
  --surface: var(--edge-card-bg);
  --surface-soft: var(--edge-card-bg-strong);
}

html,
body {
  color: var(--edge-text-body) !important;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body,
p,
li,
small,
span,
strong,
em,
.section-lede,
.hero-subtitle,
.card p,
.glass-card p,
.project-card p,
.workflow-card p,
.essay-card p,
.experience-card p,
.proof-card p,
.contact-card p,
.capability-card p,
.role-fit-card p,
.career-card p,
.profile-summary-card p,
.resume-grid p,
.status-grid p,
.review-section p,
.todo-card p,
.workflow-card li,
.project-value p,
.evidence-block strong,
.contact-links strong,
.contact-placeholder strong {
  color: var(--edge-text-body) !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

h1,
h2,
h3,
h4,
.hero h1,
.section h2,
.project-card h3,
.workflow-card h3,
.essay-card h3,
.experience-card h3,
.capability-card h3,
.role-fit-card h3,
.career-card h3,
.review-section h2,
.todo-card h3 {
  color: var(--edge-text-main) !important;
  font-weight: 800 !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

.muted,
.text-muted,
.card-meta,
.project-meta,
.helper-text,
.card-topline,
.visual-label,
.profile-summary-card span,
.contact-links span,
.contact-placeholder span,
.workflow-header span,
.workflow-bottom h4,
.review-node span,
.evidence-block span,
.project-value span,
.metric-label,
.timeline-meta,
.essay-meta,
small {
  color: var(--edge-text-muted) !important;
  font-weight: 600 !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

.subtle,
.text-subtle,
.placeholder,
.disabled,
.small-link.disabled,
.disabled-button,
.btn-muted,
.btn-disabled,
.contact-placeholder em,
.todo-card em {
  color: var(--edge-text-subtle) !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

.glass-card,
.profile-fact-grid > *,
.profile-summary-card,
.project-card,
.workflow-card,
.workflow-step,
.workflow-node,
.architecture-line,
.essay-card,
.experience-card,
.proof-card,
.contact-card,
.capability-card,
.role-fit-card,
.career-card,
.resume-grid > *,
.status-grid > *,
.review-section,
.todo-card,
.contact-placeholder,
.project-value,
.evidence-block {
  background: linear-gradient(180deg, var(--edge-card-bg-strong), var(--edge-card-bg)) !important;
  border-color: var(--edge-card-border) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  filter: none !important;
  opacity: 1 !important;
}

.navbar,
.detail-navbar {
  background: rgba(6, 10, 17, 0.96) !important;
  border-bottom: 1px solid rgba(203, 213, 225, 0.18) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.34) !important;
}

.navbar a,
.navbar button,
.detail-navbar a,
.detail-navbar button,
.nav-links a,
.brand,
.language-switch,
.small-link,
.button,
.button.primary,
.button.secondary,
.button.ghost {
  color: #ffffff !important;
  font-weight: 700 !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

.brand-mark,
.navbar .brand-mark,
.detail-navbar .brand-mark {
  color: #04111a !important;
  background: #dffcff !important;
  font-weight: 800 !important;
}

.tag,
.pill,
.eyebrow,
.project-tag,
.status-pill,
.skill-pill,
.metric-pill,
.tech-pill,
.nav-chip {
  color: #eafffb !important;
  font-weight: 700 !important;
  opacity: 1 !important;
  background: rgba(20, 184, 166, 0.16) !important;
  border-color: rgba(94, 234, 212, 0.38) !important;
  text-shadow: none !important;
}

.small-link.disabled,
.disabled-button,
.placeholder-link,
button:disabled,
[aria-disabled="true"] {
  color: var(--edge-text-subtle) !important;
  background: rgba(148, 163, 184, 0.12) !important;
  border: 1px dashed rgba(203, 213, 225, 0.32) !important;
  opacity: 1 !important;
}

.project-card h3,
.workflow-card h3 {
  color: #ffffff !important;
  font-weight: 800 !important;
}

.project-card p,
.project-card .project-summary,
.project-card .business-value,
.project-card .evidence-chain,
.project-card .project-value,
.project-value,
.evidence-chain,
.evidence-chain span,
.workflow-card p,
.workflow-card li,
.workflow-step,
.workflow-node,
.architecture-line,
.architecture-line span {
  color: var(--edge-text-body) !important;
  font-weight: 500 !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

.back-to-top,
.floating-action,
.side-floating {
  color: #5eead4 !important;
  background: #101b2a !important;
  border: 1px solid rgba(94, 234, 212, 0.45) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  filter: none !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

input::placeholder,
textarea::placeholder {
  color: var(--edge-text-subtle) !important;
  opacity: 1 !important;
}

/* Step 20 EOF override: refined section decoration and header rhythm. */
.section::before,
.section::after,
.section-heading::before,
.section-heading::after,
.section-header::before,
.section-header::after,
.section-kicker::before,
.section-kicker::after,
.section-eyebrow::before,
.section-eyebrow::after,
.eyebrow::before,
.eyebrow::after {
  display: none !important;
  content: none !important;
}

.section,
.zh-page .section,
.site-shell > main > .section {
  position: relative;
  border-left: 0 !important;
}

.section-heading,
.section-header,
.profile-summary .section-heading {
  display: block !important;
  width: 100% !important;
  max-width: 860px !important;
  margin: 0 0 clamp(28px, 4vw, 44px) !important;
  padding: 0 0 clamp(16px, 2.4vw, 22px) !important;
  border-left: 0 !important;
  border-top: 0 !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14) !important;
  text-align: left !important;
}

.section-heading.center,
.section-heading.is-centered,
.section-header.center,
.section-header.is-centered {
  margin-inline: 0 !important;
  text-align: left !important;
}

.section-kicker,
.section-eyebrow,
.eyebrow {
  display: inline-flex !important;
  align-items: center !important;
  width: fit-content !important;
  max-width: 100% !important;
  margin: 0 0 14px !important;
  padding: 6px 11px !important;
  border: 1px solid rgba(94, 234, 212, 0.22) !important;
  border-radius: 999px !important;
  color: #7dd3fc !important;
  background: rgba(45, 212, 191, 0.10) !important;
  font-size: 0.78rem !important;
  font-weight: 750 !important;
  line-height: 1.2 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

.section-heading h2,
.section-header h2,
.section-title,
.section > h2,
.status-band h2,
.contact-section h2 {
  margin-top: 0 !important;
  margin-bottom: 12px !important;
  color: var(--text-main) !important;
}

.section-heading p:not(.section-kicker),
.section-header p:not(.section-kicker),
.section-lede,
.section-description {
  margin-top: 12px !important;
  color: var(--text-muted) !important;
}

.hero .eyebrow {
  margin-bottom: 18px !important;
  color: #99f6e4 !important;
  background: rgba(20, 184, 166, 0.13) !important;
  border-color: rgba(94, 234, 212, 0.28) !important;
}

#projects,
#workflows,
.workflow-section,
.status-band {
  position: relative;
  overflow: hidden;
}

#projects::after,
#workflows::after,
.workflow-section::after {
  content: "" !important;
  display: block !important;
  position: absolute;
  inset: 24px 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(94, 234, 212, 0.18), transparent);
  pointer-events: none;
}

#projects,
.workflow-section {
  background:
    radial-gradient(circle at 12% 18%, rgba(45, 212, 191, 0.055), transparent 30rem),
    radial-gradient(circle at 88% 8%, rgba(96, 165, 250, 0.045), transparent 26rem);
}

.principle-card {
  border-left: 1px solid rgba(94, 234, 212, 0.18) !important;
  border-color: rgba(94, 234, 212, 0.18) !important;
}

.status-band {
  border-left: 0 !important;
}

.status-band > div,
.contact-section,
.footer {
  border-left: 0 !important;
}

@media (max-width: 768px) {
  .section-heading,
  .section-header,
  .profile-summary .section-heading {
    margin-bottom: 28px !important;
    padding-bottom: 16px !important;
  }

  .section-kicker,
  .section-eyebrow,
  .eyebrow {
    font-size: 0.72rem !important;
    white-space: normal !important;
  }
}

/* Step 22 EOF override: blueprint homepage restructure. */
.blueprint-layout {
  width: min(1540px, calc(100vw - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr) 236px;
  gap: clamp(22px, 2.5vw, 36px);
  align-items: start;
}

.blueprint-main {
  min-width: 0;
}

.blueprint-side-nav,
.blueprint-value-rail {
  position: sticky;
  top: 96px;
  z-index: 5;
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 18px;
  background: rgba(7, 11, 18, 0.82);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  backdrop-filter: none;
}

.side-nav-label,
.value-rail-label {
  color: var(--text-subtle);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.blueprint-side-nav a {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 9px 8px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--text-body);
}

.blueprint-side-nav a:hover {
  border-color: rgba(94, 234, 212, 0.34);
  background: rgba(20, 184, 166, 0.10);
}

.blueprint-side-nav a span {
  color: #5eead4 !important;
  font-weight: 850;
  font-size: 0.76rem;
}

.blueprint-side-nav a strong {
  color: var(--text-body);
  font-size: 0.86rem;
}

.blueprint-value-rail article {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  padding: 11px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.13);
}

.blueprint-value-rail article > span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(94, 234, 212, 0.34);
  border-radius: 999px;
  color: #7dd3fc !important;
  font-weight: 850;
  font-size: 0.72rem;
  background: rgba(20, 184, 166, 0.12);
}

.blueprint-value-rail h3 {
  margin: 0 0 4px;
  color: var(--text-main);
  font-size: 0.94rem;
}

.blueprint-value-rail p {
  margin: 0;
  color: var(--text-muted) !important;
  font-size: 0.82rem;
  line-height: 1.55;
}

.blueprint-main > .section {
  width: 100% !important;
}

.blueprint-hero.section {
  width: 100% !important;
  min-height: min(760px, calc(100vh - 72px));
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.88fr) !important;
  gap: clamp(34px, 5vw, 68px);
  align-items: center;
  padding-top: clamp(72px, 9vw, 120px) !important;
}

.blueprint-hero h1 {
  display: grid;
  gap: 10px;
  max-width: 860px;
}

.blueprint-hero h1 span {
  color: #bdf8f3 !important;
  font-size: clamp(2rem, 4vw, 4.2rem);
}

.hero-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 24px 0 18px;
}

.hero-info-grid span {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid rgba(196, 211, 232, 0.22);
  border-radius: 14px;
  color: var(--text-body) !important;
  background: rgba(16, 27, 42, 0.92);
  font-size: 0.92rem;
  font-weight: 650;
}

.blueprint-visual {
  padding: clamp(24px, 3vw, 34px) !important;
  min-height: 520px !important;
}

.profile-photo-panel {
  display: grid;
  align-content: center;
  gap: 18px;
}

.photo-card {
  min-height: 390px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 28px;
  border: 1px solid rgba(94, 234, 212, 0.28);
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 20%, rgba(96, 165, 250, 0.20), transparent 18rem),
    linear-gradient(180deg, rgba(20, 34, 52, 0.96), rgba(7, 11, 18, 0.94));
  text-align: center;
}

.photo-placeholder {
  position: relative;
  width: 156px;
  height: 156px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(94, 234, 212, 0.34);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 38%, rgba(94, 234, 212, 0.20), transparent 34%),
    rgba(15, 23, 42, 0.92);
  box-shadow: 0 0 70px rgba(45, 212, 191, 0.14);
}

.photo-placeholder span {
  width: 58px;
  height: 58px;
  border: 2px solid rgba(224, 242, 254, 0.74);
  border-radius: 50%;
}

.photo-placeholder i {
  position: absolute;
  width: 104px;
  height: 52px;
  margin-top: 112px;
  border: 2px solid rgba(224, 242, 254, 0.66);
  border-radius: 999px 999px 30px 30px;
}

.photo-card strong {
  color: var(--text-main) !important;
  font-size: 1.45rem;
}

.photo-card small {
  color: var(--text-subtle) !important;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.photo-card p {
  max-width: 260px;
  color: var(--text-muted) !important;
  line-height: 1.7;
}

.real-photo-card {
  margin: 0;
  padding: 12px;
  justify-items: stretch;
  align-content: start;
  gap: 14px;
  overflow: hidden;
}

.profile-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: 18px;
  border: 1px solid rgba(148, 210, 255, 0.24);
  background: rgba(15, 23, 42, 0.72);
  box-shadow:
    0 24px 72px rgba(0, 0, 0, 0.34),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.real-photo-card figcaption {
  display: grid;
  gap: 8px;
  justify-items: center;
  padding: 2px 10px 8px;
}

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

.photo-keywords span {
  padding: 12px 10px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 14px;
  color: #eafffb !important;
  background: rgba(20, 184, 166, 0.10);
  font-weight: 750;
  text-align: center;
}

.visual-topline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.blueprint-orbit {
  position: relative;
  min-height: 320px;
  display: grid;
  place-items: center;
}

.orbit-core {
  display: grid;
  place-items: center;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(94, 234, 212, 0.38);
  border-radius: 50%;
  text-align: center;
  background:
    radial-gradient(circle, rgba(94, 234, 212, 0.20), rgba(15, 23, 42, 0.92) 62%),
    #101b2a;
  box-shadow: 0 0 80px rgba(45, 212, 191, 0.18);
}

.orbit-core strong {
  color: #ffffff !important;
  font-size: 1.05rem;
}

.orbit-core span {
  max-width: 140px;
  color: var(--text-muted) !important;
  font-size: 0.78rem;
}

.orbit-node {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 84px;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid rgba(94, 234, 212, 0.28);
  border-radius: 999px;
  color: #eafffb !important;
  background: rgba(20, 34, 52, 0.96);
  font-size: 0.82rem;
  font-weight: 800;
}

.orbit-node-1 { top: 26px; left: 50%; transform: translateX(-50%); }
.orbit-node-2 { top: 44%; right: 0; }
.orbit-node-3 { bottom: 24px; left: 50%; transform: translateX(-50%); }
.orbit-node-4 { top: 44%; left: 0; }

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

.blueprint-value-card,
.research-group-card {
  padding: clamp(22px, 2.5vw, 30px);
  border: 1px solid rgba(196, 211, 232, 0.26);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(20, 34, 52, 0.98), rgba(12, 21, 34, 0.96));
}

.blueprint-value-card h3,
.research-group-card h3 {
  margin: 12px 0 10px;
  color: var(--text-main);
  font-size: 1.2rem;
}

.blueprint-value-card p,
.research-group-card p,
.research-group-card li {
  color: var(--text-body) !important;
  line-height: 1.72;
}

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

.blueprint-project-card.is-featured {
  grid-column: span 2;
}

.blueprint-project-card.is-compact {
  grid-column: span 3;
}

.blueprint-project-card .project-preview {
  min-height: 260px !important;
}

.prompt-method-section,
.growth-section {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(94, 234, 212, 0.18);
  border-radius: 24px;
  padding-inline: clamp(24px, 4vw, 44px) !important;
  background:
    radial-gradient(circle at 18% 10%, rgba(45, 212, 191, 0.10), transparent 28rem),
    linear-gradient(180deg, rgba(14, 26, 42, 0.96), rgba(7, 11, 18, 0.94));
}

.prompt-flow,
.ai-flow-diagram,
.growth-timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.ai-flow-diagram {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-bottom: 28px;
}

.prompt-flow article,
.ai-flow-diagram article,
.growth-timeline article {
  position: relative;
  min-height: 170px;
  padding: 20px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 18px;
  background: rgba(16, 27, 42, 0.94);
}

.prompt-flow article:not(:last-child)::after,
.ai-flow-diagram article:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -14px;
  width: 12px;
  height: 1px;
  background: rgba(94, 234, 212, 0.40);
}

.prompt-flow span,
.ai-flow-diagram span,
.growth-timeline span {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(94, 234, 212, 0.34);
  border-radius: 50%;
  color: #7dd3fc !important;
  font-weight: 850;
  background: rgba(20, 184, 166, 0.12);
}

.prompt-flow h3,
.ai-flow-diagram h3,
.growth-timeline h3 {
  margin: 18px 0 8px;
  color: var(--text-main);
}

.prompt-flow p,
.ai-flow-diagram p,
.growth-timeline p {
  margin: 0;
  color: var(--text-body) !important;
  line-height: 1.65;
}

.compact-essay-grid {
  margin-top: 22px;
}

.footer-note {
  margin-top: 22px;
  color: var(--text-muted) !important;
  font-weight: 650;
}

@media (max-width: 1280px) {
  .blueprint-layout {
    grid-template-columns: minmax(0, 1fr);
    width: min(1180px, calc(100vw - 48px));
  }

  .blueprint-side-nav,
  .blueprint-value-rail {
    display: none;
  }

  .blueprint-hero.section {
    grid-template-columns: 1fr !important;
  }

  .ai-flow-diagram {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .blueprint-layout {
    width: calc(100vw - 28px);
  }

  .blueprint-value-grid,
  .research-group-grid,
  .prompt-flow,
  .ai-flow-diagram,
  .growth-timeline,
  .blueprint-project-grid {
    grid-template-columns: 1fr;
  }

  .blueprint-project-card.is-featured,
  .blueprint-project-card.is-compact {
    grid-column: auto;
  }

  .blueprint-visual {
    min-height: 430px !important;
  }

  .hero-info-grid,
  .photo-keywords {
    grid-template-columns: 1fr;
  }

  .prompt-flow article:not(:last-child)::after,
  .ai-flow-diagram article:not(:last-child)::after {
    display: none;
  }
}

/* Step 24 EOF override: remove right rail and polish project previews. */
.blueprint-layout {
  width: min(1360px, calc(100vw - 48px)) !important;
  grid-template-columns: 180px minmax(0, 1fr) !important;
  justify-content: center;
}

.blueprint-main {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
}

.blueprint-value-rail,
.right-anchors,
.side-value-anchors,
.value-anchor-rail,
.blueprint-right-rail {
  display: none !important;
}

.blueprint-project-grid,
.project-grid {
  align-items: stretch;
}

.blueprint-project-card,
.project-card {
  display: flex !important;
  flex-direction: column;
  min-height: 100%;
}

.blueprint-project-card .project-preview,
.project-preview,
.project-visual,
.project-card-preview {
  position: relative;
  height: 220px !important;
  min-height: 220px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 18px !important;
  background:
    radial-gradient(circle at 50% 35%, rgba(94, 234, 212, 0.16), transparent 42%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(8, 13, 23, 0.98)) !important;
  border: 1px solid rgba(148, 163, 184, 0.24) !important;
  box-shadow: inset 0 0 0 1px rgba(94, 234, 212, 0.06);
}

.blueprint-project-card .project-preview img,
.project-preview img,
.project-visual img,
.project-card-preview img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  padding: 12px !important;
}

.blueprint-project-card h3,
.project-card h3 {
  margin-top: 18px !important;
}

.blueprint-project-card p,
.project-card p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blueprint-project-card .tag-row,
.project-card .tag-row {
  margin-top: 14px;
}

.blueprint-project-card .project-value,
.project-card .project-value {
  margin-top: 14px;
}

.blueprint-project-card .project-actions,
.project-card .project-actions {
  margin-top: auto !important;
  padding-top: 18px;
}

.blueprint-project-card.is-featured {
  grid-column: span 2;
}

.blueprint-project-card.is-compact {
  grid-column: span 3;
}

@media (max-width: 1280px) {
  .blueprint-layout {
    grid-template-columns: minmax(0, 1fr) !important;
    width: min(1180px, calc(100vw - 48px)) !important;
  }
}

@media (max-width: 820px) {
  .blueprint-layout {
    width: calc(100vw - 28px) !important;
  }

  .blueprint-project-card .project-preview,
  .project-preview,
  .project-visual,
  .project-card-preview {
    height: 200px !important;
    min-height: 200px !important;
  }
}

/* Step 25 EOF override: final blueprint polish before temporary freeze. */
.blueprint-layout {
  grid-template-columns: 156px minmax(0, 1fr) !important;
  gap: clamp(24px, 3vw, 42px) !important;
}

.blueprint-side-nav {
  width: 156px;
  padding: 14px 12px !important;
  opacity: 0.72;
  background: rgba(7, 11, 18, 0.68) !important;
  border-color: rgba(148, 163, 184, 0.16) !important;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18) !important;
  transition: opacity 180ms ease, border-color 180ms ease, background 180ms ease;
}

.blueprint-side-nav:hover,
.blueprint-side-nav:focus-within {
  opacity: 1;
  background: rgba(7, 11, 18, 0.82) !important;
  border-color: rgba(94, 234, 212, 0.24) !important;
}

.side-nav-label {
  font-size: 0.66rem !important;
  color: var(--text-subtle) !important;
}

.blueprint-side-nav a {
  grid-template-columns: 28px minmax(0, 1fr) !important;
  gap: 8px !important;
  padding: 8px 6px !important;
  color: var(--text-subtle) !important;
}

.blueprint-side-nav a span {
  color: rgba(125, 211, 252, 0.78) !important;
  font-size: 0.7rem !important;
}

.blueprint-side-nav a strong {
  color: var(--text-subtle) !important;
  font-size: 0.78rem !important;
  font-weight: 700;
}

.blueprint-side-nav a:hover,
.blueprint-side-nav a:focus-visible {
  background: rgba(20, 184, 166, 0.10) !important;
  border-color: rgba(94, 234, 212, 0.28) !important;
}

.blueprint-side-nav a:hover span,
.blueprint-side-nav a:focus-visible span,
.blueprint-side-nav a:hover strong,
.blueprint-side-nav a:focus-visible strong {
  color: #5eead4 !important;
}

.blueprint-hero.section {
  gap: clamp(44px, 5.8vw, 82px) !important;
  padding-top: clamp(84px, 9vw, 126px) !important;
  padding-bottom: clamp(76px, 8vw, 116px) !important;
}

.blueprint-hero h1 {
  gap: 14px !important;
  line-height: 1.08 !important;
}

.blueprint-hero h1 span {
  line-height: 1.16 !important;
}

.hero-intro {
  max-width: 760px;
  line-height: 1.86 !important;
}

.hero-info-grid {
  gap: 12px !important;
  margin: 28px 0 20px !important;
}

.hero-info-grid span {
  min-height: 50px !important;
  background: rgba(16, 27, 42, 0.82) !important;
}

.profile-photo-panel {
  min-height: 520px !important;
}

.photo-card {
  min-height: 360px !important;
  background:
    radial-gradient(circle at 50% 22%, rgba(96, 165, 250, 0.14), transparent 17rem),
    linear-gradient(180deg, rgba(17, 30, 48, 0.92), rgba(7, 11, 18, 0.94)) !important;
  box-shadow: inset 0 0 0 1px rgba(94, 234, 212, 0.06);
}

.photo-placeholder {
  width: 142px;
  height: 142px;
  box-shadow: 0 0 46px rgba(45, 212, 191, 0.10) !important;
}

.photo-card strong {
  font-size: 1.32rem !important;
}

.photo-card p {
  color: var(--text-subtle) !important;
}

.photo-keywords {
  gap: 12px !important;
}

.blueprint-project-card h3 {
  color: #ffffff !important;
  font-size: clamp(1.24rem, 1.8vw, 1.52rem) !important;
  line-height: 1.32 !important;
  letter-spacing: 0 !important;
}

.blueprint-project-card .project-category,
.blueprint-project-card .project-status {
  font-size: 0.78rem !important;
  color: var(--text-muted) !important;
  font-weight: 700 !important;
}

.blueprint-project-card .tag {
  font-size: 0.76rem !important;
}

@media (max-width: 1280px) {
  .blueprint-layout {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* Step 26 EOF override: secondary detail page structure. */
.detail-shell {
  min-height: 100vh;
}

.detail-navbar {
  width: min(1120px, calc(100% - 48px)) !important;
  min-height: 64px;
  margin: 0 auto !important;
  border-radius: 0 0 18px 18px !important;
  background: rgba(6, 10, 17, 0.96) !important;
  border: 1px solid rgba(196, 211, 232, 0.16) !important;
  border-top: 0 !important;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.28) !important;
}

.detail-main,
.essay-detail {
  width: 100% !important;
  padding-bottom: clamp(72px, 8vw, 120px);
}

.detail-hero,
.essay-detail .detail-hero,
.project-detail .detail-hero {
  width: min(1120px, calc(100% - 48px)) !important;
  margin: 72px auto 48px !important;
  padding: clamp(32px, 5vw, 56px) !important;
  border: 1px solid rgba(196, 211, 232, 0.22) !important;
  border-radius: 32px !important;
  background:
    radial-gradient(circle at 80% 20%, rgba(94, 234, 212, 0.12), transparent 34%),
    linear-gradient(180deg, #101b2a, #0b1320) !important;
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.28);
}

.detail-title,
.detail-hero h1,
.essay-detail .detail-title,
.essay-page .detail-title,
.article-detail .detail-title {
  max-width: 980px;
  color: var(--text-main) !important;
  font-size: clamp(2.4rem, 5vw, 4.8rem) !important;
  line-height: 1.08 !important;
  letter-spacing: 0 !important;
  overflow-wrap: anywhere;
}

.essay-detail .detail-title,
.article-detail .detail-title {
  font-size: clamp(2.4rem, 5.4vw, 4.6rem) !important;
  line-height: 1.08 !important;
}

.detail-hero .hero-cn,
.detail-hero .hero-subtitle {
  max-width: 860px;
}

.detail-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.detail-meta-row span {
  padding: 8px 12px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 999px;
  color: var(--text-muted) !important;
  background: rgba(16, 27, 42, 0.82);
  font-size: 0.86rem;
  font-weight: 700;
}

.detail-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 35%, rgba(94, 234, 212, 0.12), transparent 42%),
    rgba(8, 13, 23, 0.96);
}

.detail-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.project-case-body {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

.case-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.case-summary-card,
.case-section {
  background: linear-gradient(180deg, #101b2a, #0d1726);
  border: 1px solid rgba(196, 211, 232, 0.22);
  border-radius: 24px;
  padding: 28px;
}

.case-summary-card span,
.case-section > span,
.case-section .section-kicker {
  display: inline-flex;
  margin-bottom: 12px;
  color: #7dd3fc !important;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.case-summary-card p,
.case-section p,
.case-section li {
  color: var(--text-body) !important;
  line-height: 1.78;
}

.project-case-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 0.35fr);
  gap: 32px;
  align-items: start;
}

.case-main-column,
.case-side-column {
  display: grid;
  gap: 22px;
}

.case-section h2 {
  margin: 0 0 14px;
  color: var(--text-main);
  font-size: clamp(1.55rem, 2.5vw, 2.2rem);
  line-height: 1.18;
}

.detail-step-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 1.2rem;
}

.essay-body,
.essay-content,
.article-body {
  width: min(860px, calc(100% - 48px));
  margin: 34px auto 0;
}

.detail-key {
  width: min(860px, calc(100% - 48px));
  margin: 0 auto 28px !important;
  padding: 24px !important;
  border-radius: 22px !important;
}

.essay-content p,
.article-body p,
.essay-body-section p {
  color: var(--text-body) !important;
  font-size: 1.05rem;
  line-height: 1.9;
}

.essay-content h2,
.article-body h2,
.essay-body-section h2 {
  margin-top: 56px;
  margin-bottom: 18px;
  color: var(--text-main);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.2;
}

.detail-footer-actions {
  width: min(1120px, calc(100% - 48px));
  margin: 54px auto 0 !important;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  padding-top: 24px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.essay-detail .detail-footer-actions {
  width: min(860px, calc(100% - 48px));
}

@media (max-width: 900px) {
  .detail-navbar,
  .detail-hero,
  .essay-detail .detail-hero,
  .project-case-body,
  .essay-body,
  .essay-content,
  .article-body,
  .detail-key,
  .detail-footer-actions,
  .essay-detail .detail-footer-actions {
    width: calc(100% - 28px) !important;
  }

  .detail-hero {
    margin-top: 34px !important;
    border-radius: 24px !important;
  }

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

  .detail-title,
  .detail-hero h1,
  .essay-detail .detail-title,
  .article-detail .detail-title {
    font-size: clamp(2.1rem, 12vw, 3.2rem) !important;
  }
}

/* Step 27 EOF override: deeper secondary page reading and case-study structure. */
.project-case-page .detail-hero {
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.72fr) !important;
  margin-top: 56px !important;
  margin-bottom: 36px !important;
  padding: clamp(28px, 4vw, 46px) !important;
}

.project-case-page .detail-title {
  max-width: 900px !important;
  font-size: clamp(2.55rem, 4.8vw, 4.65rem) !important;
  line-height: 1.04 !important;
}

.project-case-page .project-case-body {
  width: min(1120px, calc(100% - 48px)) !important;
}

.project-case-page .case-overview-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.project-case-page .case-summary-card {
  min-height: 168px;
  padding: 22px;
}

.project-case-page .project-case-grid {
  grid-template-columns: minmax(0, 760px) minmax(260px, 320px);
  justify-content: center;
  gap: 28px;
}

.project-case-page .case-section {
  border-radius: 18px;
  padding: clamp(22px, 3vw, 30px);
}

.project-case-page .case-section h2 {
  max-width: 760px;
  font-size: clamp(1.45rem, 2.2vw, 2.05rem) !important;
}

.project-case-page .case-narrative-section p,
.project-case-page .case-section p,
.project-case-page .case-section li {
  font-size: 1rem;
  line-height: 1.82;
}

.case-bullet-list,
.case-compact-list,
.article-takeaway-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding-left: 1.2rem;
}

.case-bullet-list li,
.case-compact-list li,
.article-takeaway-list li {
  color: var(--text-body) !important;
  line-height: 1.78;
}

.case-side-column .case-section {
  padding: 22px;
}

.article-page .detail-hero {
  width: min(900px, calc(100% - 48px)) !important;
  margin-top: 52px !important;
  margin-bottom: 28px !important;
  padding: clamp(28px, 4vw, 44px) !important;
  display: block !important;
}

.article-page .detail-title {
  max-width: 860px !important;
  font-size: clamp(2.25rem, 4.4vw, 4.2rem) !important;
  line-height: 1.08 !important;
}

.article-page .article-body,
.article-page .detail-footer-actions {
  width: min(820px, calc(100% - 40px)) !important;
}

.article-page .article-body {
  margin-top: 28px;
}

.article-page .detail-key {
  width: 100% !important;
  margin: 26px 0 34px !important;
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.14), rgba(37, 99, 235, 0.12)) !important;
}

.article-page .article-lead-section,
.article-page .essay-body-section {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.article-page .article-label {
  margin: 0 0 10px;
  color: #7dd3fc !important;
  font-size: 0.82rem;
  font-weight: 800;
}

.article-page .article-body h2 {
  margin-top: 48px;
  margin-bottom: 16px;
  font-size: clamp(1.55rem, 2.7vw, 2.15rem) !important;
  line-height: 1.24 !important;
}

.article-page .article-body p,
.article-page .article-body li {
  font-size: 1.055rem;
  line-height: 1.92;
}

.article-page .article-takeaways {
  margin-top: 52px;
  padding-top: 26px !important;
  border-top: 1px solid rgba(148, 163, 184, 0.2) !important;
}

@media (max-width: 980px) {
  .project-case-page .detail-hero,
  .project-case-page .project-case-grid,
  .project-case-page .case-overview-grid {
    grid-template-columns: 1fr !important;
  }

  .project-case-page .detail-preview {
    min-height: 240px;
  }
}

@media (max-width: 700px) {
  .project-case-page .detail-hero,
  .project-case-page .project-case-body,
  .article-page .detail-hero,
  .article-page .article-body,
  .article-page .detail-footer-actions {
    width: calc(100% - 28px) !important;
  }

  .project-case-page .detail-title,
  .article-page .detail-title {
    font-size: clamp(2rem, 11vw, 3.1rem) !important;
  }

  .project-case-page .case-section,
  .project-case-page .case-summary-card {
    padding: 20px;
  }
}

/* Step 30 EOF override: health-report project document cards and deep-dive modules. */
.project-case-page .project-deep-dive-section {
  scroll-margin-top: 112px;
}

.project-case-page .deep-dive-list li {
  line-height: 1.75;
}

.project-case-page .project-doc-links-section {
  border-color: rgba(90, 180, 255, 0.32) !important;
  background:
    linear-gradient(135deg, rgba(18, 47, 80, 0.78), rgba(6, 12, 25, 0.92)),
    rgba(8, 16, 32, 0.92) !important;
}

.project-case-page .project-doc-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.project-case-page .project-doc-link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 14px 16px;
  color: #f7fbff;
  text-decoration: none;
  border: 1px solid rgba(109, 194, 255, 0.32);
  border-radius: 8px;
  background: rgba(7, 18, 34, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.project-case-page .project-doc-link-card span {
  font-size: 0.95rem;
  font-weight: 700;
}

.project-case-page .project-doc-link-card strong {
  flex: 0 0 auto;
  color: #85f4ff;
  font-size: 0.78rem;
  letter-spacing: 0;
}

.project-case-page .project-doc-link-card:hover {
  border-color: rgba(133, 244, 255, 0.74);
  transform: translateY(-1px);
}

@media (max-width: 720px) {
  .project-case-page .project-doc-link-grid {
    grid-template-columns: 1fr;
  }
}

/* Step 35 EOF override: move the back-to-top control away from content cards. */
.back-to-top {
  right: clamp(24px, 4vw, 72px) !important;
  bottom: 32px !important;
  width: 40px !important;
  height: 40px !important;
  color: #8df7ee !important;
  background: rgba(10, 17, 28, 0.72) !important;
  border: 1px solid rgba(94, 234, 212, 0.30) !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24) !important;
  opacity: 0 !important;
}

.back-to-top.is-visible {
  opacity: 0.72 !important;
}

.back-to-top.is-visible:hover,
.back-to-top.is-visible:focus-visible {
  opacity: 1 !important;
  color: #04111a !important;
  background: linear-gradient(135deg, #5eead4, #38bdf8) !important;
  border-color: rgba(94, 234, 212, 0.58) !important;
  box-shadow: 0 14px 34px rgba(45, 212, 191, 0.20) !important;
}

@media (min-width: 1440px) {
  .back-to-top {
    right: max(32px, calc((100vw - 1280px) / 2 - 72px)) !important;
  }
}

@media (max-width: 768px) {
  .back-to-top {
    right: 16px !important;
    bottom: 18px !important;
    width: 36px !important;
    height: 36px !important;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22) !important;
  }
}

/* Step 36 EOF override: portfolio split and product-analysis detail polish. */
.portfolio-split-section {
  scroll-margin-top: 110px;
}

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

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

.portfolio-thinking-grid .project-card {
  min-height: 0;
  padding: 18px;
  border-color: rgba(148, 210, 255, 0.20) !important;
  background: rgba(9, 18, 30, 0.72) !important;
}

.portfolio-thinking-grid .project-card h3 {
  font-size: 1.04rem !important;
}

.portfolio-thinking-grid .project-card p {
  font-size: 0.9rem;
}

.analysis-detail-page .analysis-hero {
  align-items: center;
}

.analysis-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin-top: 18px;
  border: 1px solid rgba(94, 234, 212, 0.18);
  border-radius: 8px;
}

.analysis-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  background: rgba(6, 14, 24, 0.72);
}

.analysis-table th,
.analysis-table td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(148, 210, 255, 0.14);
}

.analysis-table th {
  color: #8df7ee;
  font-size: 0.88rem;
  letter-spacing: 0;
  background: rgba(18, 39, 62, 0.82);
}

.analysis-table td {
  color: var(--text-body);
  line-height: 1.65;
}

@media (max-width: 1120px) {
  .portfolio-thinking-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .portfolio-analysis-section .blueprint-project-grid,
  .portfolio-thinking-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-thinking-grid .project-card {
    padding: 18px;
  }
}

/* Step 37 EOF override: homepage portfolio order and card layout polish. */
.portfolio-analysis-section .blueprint-project-grid {
  grid-template-columns: repeat(2, minmax(320px, 1fr)) !important;
  gap: 22px !important;
  align-items: stretch !important;
}

.portfolio-project-section .blueprint-project-grid {
  grid-template-columns: repeat(3, minmax(260px, 1fr)) !important;
  gap: 20px !important;
  align-items: stretch !important;
}

.portfolio-analysis-card,
.portfolio-project-card {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  min-width: 0 !important;
}

.portfolio-analysis-card {
  min-height: 560px !important;
}

.portfolio-project-card {
  min-height: 520px !important;
}

.portfolio-analysis-card .project-preview,
.portfolio-project-card .project-preview {
  display: block !important;
  width: 100% !important;
  aspect-ratio: 16 / 9 !important;
  min-height: 178px !important;
  max-height: 230px !important;
  overflow: hidden !important;
}

.portfolio-analysis-card .project-preview img,
.portfolio-project-card .project-preview img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.portfolio-analysis-card h3,
.portfolio-project-card h3 {
  line-height: 1.35 !important;
}

.portfolio-analysis-card h3 {
  min-height: 3.6em !important;
}

.portfolio-analysis-card > p,
.portfolio-project-card > p {
  display: -webkit-box !important;
  overflow: hidden !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 3 !important;
}

.portfolio-analysis-card > p {
  min-height: 5.1em !important;
}

.portfolio-analysis-card .tag-row {
  min-height: 68px !important;
  align-content: flex-start !important;
}

.portfolio-analysis-card .project-value,
.portfolio-project-card .project-value {
  flex: 1 1 auto !important;
}

.portfolio-analysis-card .project-actions,
.portfolio-project-card .project-actions {
  margin-top: auto !important;
}

@media (max-width: 1080px) {
  .portfolio-project-section .blueprint-project-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
  }
}

@media (max-width: 860px) {
  .portfolio-analysis-section .blueprint-project-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 768px) {
  .portfolio-project-section .blueprint-project-grid,
  .portfolio-analysis-section .blueprint-project-grid {
    grid-template-columns: 1fr !important;
  }

  .portfolio-analysis-card,
  .portfolio-project-card {
    min-height: 0 !important;
  }

  .portfolio-analysis-card h3,
  .portfolio-analysis-card > p,
  .portfolio-analysis-card .tag-row {
    min-height: 0 !important;
  }
}

/* Step 38 EOF override: keep project previews complete and research cards lightweight. */
.portfolio-project-card .project-preview {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  aspect-ratio: 16 / 9 !important;
  min-height: 150px !important;
  max-height: 220px !important;
  padding: 10px !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  background: rgba(5, 13, 24, 0.68) !important;
}

.portfolio-project-card .project-preview img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
}

.portfolio-thinking-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
  gap: 16px !important;
  align-items: stretch !important;
}

.portfolio-thinking-card {
  display: flex !important;
  flex-direction: column !important;
  min-height: 300px !important;
  padding: 20px !important;
}

.portfolio-thinking-card .project-preview {
  display: none !important;
}

.portfolio-thinking-card h3 {
  min-height: 2.8em !important;
  line-height: 1.35 !important;
}

.portfolio-thinking-card > p {
  display: -webkit-box !important;
  overflow: hidden !important;
  min-height: 4.8em !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 3 !important;
}

.portfolio-thinking-card .tag-row {
  min-height: 64px !important;
  align-content: flex-start !important;
}

.portfolio-thinking-card .project-value {
  flex: 1 1 auto !important;
}

.portfolio-thinking-card .project-actions {
  margin-top: auto !important;
}

@media (max-width: 768px) {
  .portfolio-project-card .project-preview {
    min-height: 140px !important;
    max-height: none !important;
  }

  .portfolio-thinking-card {
    min-height: 0 !important;
  }

  .portfolio-thinking-card h3,
  .portfolio-thinking-card > p,
  .portfolio-thinking-card .tag-row {
    min-height: 0 !important;
  }
}

/* Step 39 EOF override: four product projects use a comfortable 2x2 grid. */
.portfolio-project-section .blueprint-project-grid {
  grid-template-columns: repeat(2, minmax(320px, 1fr)) !important;
  gap: 22px !important;
}

.portfolio-project-card {
  min-height: 540px !important;
}

.portfolio-project-card .secondary-actions {
  margin-top: 0 !important;
}

@media (max-width: 860px) {
  .portfolio-project-section .blueprint-project-grid {
    grid-template-columns: 1fr !important;
  }

  .portfolio-project-card {
    min-height: 0 !important;
  }
}

/* Step 40 EOF override: balance ability cards and research thinking cards. */
.blueprint-value-grid {
  grid-template-columns: repeat(2, minmax(280px, 1fr)) !important;
  gap: 18px !important;
  align-items: stretch !important;
}

.blueprint-value-card {
  height: 100% !important;
  min-height: 230px !important;
}

.portfolio-thinking-grid {
  grid-template-columns: repeat(3, minmax(220px, 1fr)) !important;
  gap: 16px !important;
  align-items: stretch !important;
}

.portfolio-thinking-card {
  min-height: 300px !important;
}

.portfolio-thinking-card .project-preview {
  display: none !important;
}

@media (min-width: 961px) {
  .portfolio-thinking-grid .portfolio-thinking-card:nth-last-child(2) {
    grid-column: 1 / 2;
  }

  .portfolio-thinking-grid .portfolio-thinking-card:last-child {
    grid-column: 2 / 3;
  }
}

@media (max-width: 960px) {
  .portfolio-thinking-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr)) !important;
  }
}

@media (max-width: 768px) {
  .blueprint-value-grid,
  .portfolio-thinking-grid {
    grid-template-columns: 1fr !important;
  }

  .blueprint-value-card,
  .portfolio-thinking-card {
    min-height: 0 !important;
  }
}


/* Step 16 RetailOps Agent integration */
.case-screenshot {
  margin: 18px 0 20px;
  overflow: hidden;
  border: 1px solid rgba(94, 234, 212, 0.22);
  border-radius: 14px;
  background: rgba(7, 18, 34, 0.72);
}

.case-screenshot img {
  display: block;
  width: 100%;
  height: auto;
}

.case-screenshot figcaption {
  padding: 10px 14px;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}


/* Step 17.1 mobile overflow guard */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.site-shell,
.detail-shell,
main,
.section,
.hero,
.detail-hero,
.project-case-body {
  max-width: 100%;
}

.hero,
.detail-hero,
.blueprint-hero,
.profile-hero,
.case-section,
.project-card,
.portfolio-card {
  overflow: hidden;
}

.detail-title,
.hero h1,
.blueprint-hero h1,
.profile-hero h1,
.hero-cn,
.hero-subtitle,
.section-heading h2,
.case-section h2,
.project-card h3,
.portfolio-card h3 {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.tag-row,
.hero-actions,
.project-actions,
.detail-actions,
.nav-links,
.detail-meta-row,
.contact-links {
  max-width: 100%;
  flex-wrap: wrap;
}

.button,
.small-link,
.tag,
.pill,
.contact-links a,
.contact-placeholder {
  max-width: 100%;
  white-space: normal;
}

.case-screenshot,
.detail-preview,
.detail-preview img,
.case-screenshot img {
  max-width: 100%;
}

@media (max-width: 520px) {
  .site-shell,
  .detail-shell {
    width: 100%;
    padding-left: 14px;
    padding-right: 14px;
  }

  .navbar,
  .detail-navbar {
    gap: 10px;
    align-items: flex-start;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero,
  .detail-hero,
  .blueprint-hero,
  .profile-hero {
    padding-left: 0;
    padding-right: 0;
  }

  .hero h1,
  .blueprint-hero h1,
  .profile-hero h1,
  .detail-title {
    font-size: clamp(2.45rem, 13vw, 4rem);
    line-height: 1.06;
  }

  .hero-cn {
    font-size: clamp(1.55rem, 7vw, 2.25rem);
    line-height: 1.12;
  }

  .detail-preview {
    min-width: 0;
  }
}


/* Step 17.1 narrow viewport hardening */
*,
*::before,
*::after {
  box-sizing: border-box;
}

@media (max-width: 520px) {
  .navbar,
  .detail-navbar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
  }

  .navbar .brand,
  .detail-navbar .brand {
    width: fit-content;
    max-width: 100%;
  }

  .nav-links,
  .navbar .nav-links {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
    overflow: visible;
  }

  .nav-links a,
  .navbar .nav-links a,
  .language-switch,
  .icon-button,
  .text-icon {
    min-width: 0;
    max-width: 100%;
    padding: 8px 10px;
    font-size: 0.78rem;
  }

  .detail-main,
  .project-detail,
  .project-case-page,
  .project-case-body,
  .project-case-grid,
  .case-main-column,
  .case-side-column,
  .case-section,
  .detail-hero,
  .project-case-page .detail-hero {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .detail-hero,
  .project-case-page .detail-hero,
  .blueprint-hero.section {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    margin-left: 0;
    margin-right: 0;
    padding-left: 18px;
    padding-right: 18px;
  }

  .detail-title,
  .detail-hero h1,
  .project-case-page .detail-title {
    font-size: clamp(2.1rem, 10.5vw, 3rem);
    line-height: 1.08;
    letter-spacing: 0;
  }

  .hero-cn,
  .detail-hero .hero-cn,
  .profile-hero .hero-cn {
    font-size: clamp(1.25rem, 6.2vw, 1.7rem);
    line-height: 1.22;
  }

  .hero-subtitle,
  .hero-intro,
  .detail-hero .hero-subtitle,
  .section-lede,
  p,
  li {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .detail-meta-row span,
  .tag-row .tag,
  .pill,
  .small-link,
  .button {
    min-width: 0;
    max-width: 100%;
  }

  .detail-preview,
  .case-screenshot {
    width: 100%;
    min-width: 0;
    margin-left: 0;
    margin-right: 0;
  }
}


/* Step 17.1 viewport clamp */
@media (max-width: 520px) {
  body,
  .site-shell,
  .detail-shell {
    width: 100vw !important;
    max-width: 100vw !important;
  }

  .hero-copy,
  .blueprint-hero .hero-copy,
  .profile-hero .hero-copy,
  .detail-hero > div,
  .detail-hero > div:first-child,
  .project-case-page .detail-hero > div:first-child {
    width: 100% !important;
    max-width: calc(100vw - 56px) !important;
    min-width: 0 !important;
  }

  .hero,
  .blueprint-hero.section,
  .profile-hero,
  .detail-hero,
  .project-case-page .detail-hero,
  .project-case-body,
  .project-case-grid,
  .case-section {
    width: 100% !important;
    max-width: calc(100vw - 28px) !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
  }

  .hero h1,
  .blueprint-hero h1,
  .profile-hero h1,
  .detail-title,
  .detail-hero h1,
  .hero-cn,
  .hero-subtitle,
  .hero-intro,
  .detail-hero .hero-cn,
  .detail-hero .hero-subtitle,
  .case-section h2,
  .case-section p,
  .case-section li {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }

  .detail-title,
  .detail-hero h1 {
    font-size: clamp(1.85rem, 9vw, 2.55rem) !important;
  }

  .hero-cn,
  .detail-hero .hero-cn {
    font-size: clamp(1.15rem, 5.6vw, 1.55rem) !important;
  }

  .tag-row,
  .detail-meta-row,
  .project-actions,
  .detail-actions,
  .inline-nav,
  .detail-inline-nav {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }

  .tag-row > *,
  .detail-meta-row > *,
  .project-actions > *,
  .detail-actions > *,
  .inline-nav > *,
  .detail-inline-nav > * {
    max-width: 100% !important;
    min-width: 0 !important;
    white-space: normal !important;
  }
}


/* Step 17.1 mobile text emergency wrap */
@media (max-width: 520px) {
  .hero-copy,
  .blueprint-hero .hero-copy,
  .profile-hero .hero-copy,
  .detail-hero > div:first-child {
    max-width: calc(100vw - 72px) !important;
  }

  .hero-cn,
  .profile-hero .hero-cn,
  .blueprint-hero .hero-cn,
  .detail-hero .hero-cn {
    display: block !important;
    font-size: 1.08rem !important;
    line-height: 1.35 !important;
    word-break: break-all !important;
    overflow-wrap: anywhere !important;
  }

  .hero-subtitle,
  .hero-intro,
  .detail-hero .hero-subtitle,
  .case-section p,
  .case-section li {
    font-size: 0.98rem !important;
    line-height: 1.75 !important;
    word-break: break-all !important;
    overflow-wrap: anywhere !important;
  }

  .detail-title,
  .detail-hero h1 {
    font-size: 1.95rem !important;
    line-height: 1.16 !important;
    word-break: break-all !important;
  }
}


/* Step 17.1 blueprint h1 span wrap */
@media (max-width: 520px) {
  .blueprint-hero h1 span,
  .profile-hero h1 span,
  .hero h1 span {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-top: 10px !important;
    font-size: 1.18rem !important;
    line-height: 1.32 !important;
    white-space: normal !important;
    word-break: break-all !important;
    overflow-wrap: anywhere !important;
  }

  .blueprint-hero h1,
  .profile-hero h1,
  .hero h1 {
    max-width: calc(100vw - 72px) !important;
    white-space: normal !important;
    word-break: break-all !important;
  }
}


/* Step 17.1 mobile safe hero scale */
@media (max-width: 520px) {
  .blueprint-hero h1,
  .profile-hero h1,
  .hero h1 {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    font-size: 2.18rem !important;
    line-height: 1.14 !important;
    white-space: normal !important;
    overflow: visible !important;
    word-break: break-all !important;
    overflow-wrap: anywhere !important;
  }

  .blueprint-hero h1 span,
  .profile-hero h1 span,
  .hero h1 span {
    font-size: 1.02rem !important;
    line-height: 1.35 !important;
  }

  .hero-copy,
  .blueprint-hero .hero-copy,
  .profile-hero .hero-copy {
    max-width: calc(100vw - 72px) !important;
    overflow: visible !important;
  }
}


/* Step 17.1 final mobile text fit */
@media (max-width: 520px) {
  .hero-subtitle,
  .hero-intro,
  .detail-hero .hero-subtitle {
    max-width: calc(100vw - 84px) !important;
    font-size: 0.88rem !important;
    line-height: 1.8 !important;
    word-break: break-all !important;
  }

  .detail-title,
  .detail-hero h1,
  .project-case-page .detail-title {
    max-width: calc(100vw - 84px) !important;
    font-size: 1.46rem !important;
    line-height: 1.24 !important;
    word-break: break-all !important;
    overflow: visible !important;
  }
}


/* Step 17.1 final narrow column */
@media (max-width: 520px) {
  .hero-copy,
  .blueprint-hero .hero-copy,
  .profile-hero .hero-copy,
  .detail-hero > div:first-child,
  .project-case-page .detail-hero > div:first-child {
    width: calc(100vw - 104px) !important;
    max-width: calc(100vw - 104px) !important;
  }

  .hero h1,
  .hero h1 span,
  .hero-subtitle,
  .hero-intro,
  .detail-title,
  .detail-hero h1,
  .detail-hero .hero-cn,
  .detail-hero .hero-subtitle,
  .tag-row,
  .detail-meta-row,
  .project-actions,
  .detail-actions {
    width: calc(100vw - 104px) !important;
    max-width: calc(100vw - 104px) !important;
  }

  .tag-row,
  .detail-meta-row,
  .project-actions,
  .detail-actions {
    overflow: visible !important;
  }
}

/* Step 17.1 exact blueprint text wrap */
@media (max-width: 520px) {
  section.blueprint-hero .hero-copy p.hero-subtitle,
  section.blueprint-hero .hero-copy p.hero-intro,
  section.blueprint-hero .hero-copy h1,
  section.blueprint-hero .hero-copy h1 span {
    display: block !important;
    width: 280px !important;
    max-width: 280px !important;
    min-width: 0 !important;
    white-space: normal !important;
    word-break: break-all !important;
    overflow-wrap: anywhere !important;
    overflow: visible !important;
  }

  section.blueprint-hero .hero-copy p.hero-subtitle,
  section.blueprint-hero .hero-copy p.hero-intro {
    font-size: 0.82rem !important;
    line-height: 1.8 !important;
  }
}

/* Step 41 EOF override: card explanation blocks and document actions. */
.blueprint-value-card {
  display: flex;
  flex-direction: column;
}

.blueprint-value-card > p,
.portfolio-project-card .project-value,
.portfolio-analysis-card .project-value,
.portfolio-thinking-card .project-value {
  border: 1px solid rgba(73, 227, 209, 0.22);
  background: rgba(92, 179, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.blueprint-value-card > p {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  color: rgba(230, 244, 255, 0.9);
  line-height: 1.75;
}

.portfolio-project-card .project-value,
.portfolio-analysis-card .project-value,
.portfolio-thinking-card .project-value {
  margin-top: 14px;
  border-radius: 12px;
}

.portfolio-thinking-card,
.portfolio-project-card,
.portfolio-analysis-card {
  display: flex;
  flex-direction: column;
}

.portfolio-thinking-card .project-actions,
.portfolio-project-card .project-actions,
.portfolio-analysis-card .project-actions {
  margin-top: auto;
}

.portfolio-analysis-card .project-actions a[href$="#documents"],
.portfolio-analysis-card .project-actions a[href*="#documents"] {
  border-color: rgba(73, 227, 209, 0.34);
  background: rgba(73, 227, 209, 0.08);
}

@media (max-width: 640px) {
  .blueprint-value-card > p,
  .portfolio-project-card .project-value,
  .portfolio-analysis-card .project-value,
  .portfolio-thinking-card .project-value {
    border-radius: 10px;
  }
}

/* Step 42 EOF override: prompt review modules and 6-card research grid. */
.prompt-review-section {
  border-color: rgba(73, 227, 209, 0.24) !important;
  background: rgba(9, 22, 36, 0.76) !important;
}

.prompt-review-section .tag-row {
  margin-top: 14px;
}

.prompt-review-methodology {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(73, 227, 209, 0.22);
  border-radius: 12px;
  background: rgba(92, 179, 255, 0.07);
  color: rgba(230, 244, 255, 0.9);
  line-height: 1.75;
}

.portfolio-thinking-grid {
  grid-template-columns: repeat(3, minmax(220px, 1fr)) !important;
}

.portfolio-thinking-grid .portfolio-thinking-card:nth-last-child(2),
.portfolio-thinking-grid .portfolio-thinking-card:last-child {
  grid-column: auto !important;
}

@media (max-width: 960px) {
  .portfolio-thinking-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr)) !important;
  }
}

@media (max-width: 768px) {
  .portfolio-thinking-grid {
    grid-template-columns: 1fr !important;
  }
}
