:root {
  color-scheme: light;
  --paper: #f7f8f6;
  --surface: #ffffff;
  --ink: #1d2328;
  --muted: #606a73;
  --line: #d9dfdf;
  --teal: #1f766e;
  --coral: #b8564b;
  --plum: #5d4a66;
  --green: #3d6f49;
  --shadow: 0 18px 50px rgba(29, 35, 40, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(31, 118, 110, 0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(184, 86, 75, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
}

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

:focus-visible {
  outline: 3px solid #ef9f55;
  outline-offset: 4px;
}

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

p,
h1,
h2,
h3 {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 248, 246, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav-wrap {
  width: min(1120px, calc(100% - 32px));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--teal);
  border-radius: 8px;
  font-size: 14px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.nav-menu a {
  padding: 10px 2px;
}

.nav-menu a:hover {
  color: var(--ink);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.section {
  padding: 88px 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.58);
  border-top: 1px solid rgba(217, 223, 223, 0.72);
  border-bottom: 1px solid rgba(217, 223, 223, 0.72);
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  min-height: min(720px, calc(100vh - 128px));
  display: grid;
  align-items: center;
  padding: 56px 0 48px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: center;
  gap: 56px;
}

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

.eyebrow {
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  margin-top: 18px;
  font-size: clamp(44px, 7vw, 84px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero h2 {
  margin-top: 18px;
  color: var(--plum);
  font-size: clamp(21px, 3vw, 32px);
  line-height: 1.22;
  font-weight: 750;
  letter-spacing: 0;
}

.hero-summary {
  max-width: 700px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 750;
  box-shadow: 0 8px 24px rgba(29, 35, 40, 0.06);
}

.button-primary {
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
}

.button:hover {
  transform: translateY(-1px);
}

.external-hint {
  font-size: 0.9em;
  font-weight: 800;
}

.hero-visual {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}

.portrait-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.portrait-panel img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #eef2f1;
}

.quick-facts {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.quick-facts span {
  color: var(--muted);
  font-size: 13px;
}

.quick-facts strong {
  font-size: 18px;
}

.section-head {
  max-width: 760px;
  margin-bottom: 32px;
}

.section-head h2,
.detail-hero h1 {
  margin-top: 10px;
  font-size: clamp(30px, 4.5vw, 52px);
  line-height: 1.08;
  letter-spacing: 0;
}

.section-head p,
.detail-hero p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 17px;
}

.track-proof {
  color: var(--ink) !important;
}

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

.project-card {
  min-height: 280px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(29, 35, 40, 0.05);
}

.project-card-featured {
  display: grid;
  grid-column: span 2;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
  min-height: 430px;
}

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

.project-media,
.project-flow {
  margin: 0;
  min-height: 100%;
  border-right: 1px solid var(--line);
  background: #edf3f1;
}

.project-media {
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-media img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.project-flow {
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  align-items: center;
  justify-content: center;
  gap: 12px 8px;
  padding: 36px 24px;
  background:
    radial-gradient(circle at 20% 10%, rgba(31, 118, 110, 0.16), transparent 32%),
    linear-gradient(145deg, #eff6f4, #f5f0f5);
}

.project-flow-node {
  max-width: 132px;
  padding: 10px 12px;
  border: 1px solid rgba(31, 118, 110, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 8px 24px rgba(29, 35, 40, 0.06);
}

.project-flow-arrow {
  color: var(--teal);
  font-weight: 900;
}

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

.project-grid-compact .project-card {
  min-height: 340px;
}

.project-card-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  margin-bottom: 14px;
}

.project-card-head span {
  padding: 4px 10px;
  border-radius: 999px;
  background: #f1f4f3;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
}

.project-card-head p {
  color: var(--muted);
  font-size: 13px;
}

.project-card h3 {
  font-size: 24px;
  line-height: 1.22;
}

.project-card h3,
.hero h2,
.contact-list {
  overflow-wrap: anywhere;
}

.project-card-body > p {
  margin-top: 12px;
  color: var(--muted);
}

.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  color: var(--teal);
  font-weight: 800;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 18px;
}

.text-link:hover {
  color: var(--coral);
}

.text-link-primary {
  padding: 9px 14px;
  border-radius: 8px;
  background: var(--teal);
  color: #ffffff;
}

.text-link-primary:hover {
  background: var(--coral);
  color: #ffffff;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  list-style: none;
}

.tag-list li {
  padding: 6px 10px;
  border: 1px solid rgba(217, 223, 223, 0.86);
  border-radius: 999px;
  background: rgba(247, 248, 246, 0.8);
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.check-list {
  display: grid;
  gap: 10px;
  margin-top: 4px;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 22px;
  color: var(--ink);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

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

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

.experience-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(29, 35, 40, 0.05);
}

.experience-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  color: var(--muted);
  font-size: 13px;
}

.experience-org {
  margin-top: 18px;
  color: var(--teal);
  font-weight: 800;
}

.experience-card h3 {
  margin-top: 6px;
  font-size: 23px;
  line-height: 1.25;
}

.experience-summary {
  margin-top: 14px;
  color: var(--muted);
}

.experience-summary + .check-list {
  margin-top: 16px;
}

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

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

.note-card {
  min-height: 270px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(29, 35, 40, 0.05);
}

.note-card-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  margin-bottom: 14px;
}

.note-card-head span {
  padding: 4px 10px;
  border-radius: 999px;
  background: #f1f4f3;
  color: var(--coral);
  font-size: 12px;
  font-weight: 800;
}

.note-card-head p {
  color: var(--muted);
  font-size: 13px;
}

.note-card h3 {
  font-size: 21px;
  line-height: 1.24;
}

.note-card > p {
  margin-top: 12px;
  color: var(--muted);
}

.honor-card {
  min-height: 150px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(29, 35, 40, 0.05);
}

.honor-card h3 {
  font-size: 22px;
}

.honor-card p {
  margin-top: 10px;
  color: var(--muted);
}

.education-item {
  min-height: 210px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.education-item h3 {
  font-size: 22px;
}

.education-program {
  margin-top: 10px;
  color: var(--teal);
  font-weight: 750;
}

.education-item p:last-child {
  margin-top: 12px;
  color: var(--muted);
}

.contact-band {
  padding: 72px 0;
  background: var(--ink);
  color: #ffffff;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 32px;
  align-items: start;
}

.contact-grid h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
}

.contact-grid p {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.72);
}

.contact-list {
  display: grid;
  gap: 10px;
  list-style: none;
}

.contact-list a,
.contact-list span {
  display: block;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.86);
}

.contact-list .contact-note {
  color: rgba(255, 255, 255, 0.72);
}

.contact-list a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.detail-hero {
  padding: 72px 0 48px;
}

.detail-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
  align-items: start;
}

.detail-sections {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.detail-section {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.detail-section h2 {
  font-size: 25px;
}

.detail-section p {
  margin-top: 12px;
  color: var(--muted);
}

.detail-aside {
  position: sticky;
  top: 92px;
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.detail-aside h2 {
  font-size: 20px;
}

.case-preview {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.case-preview img {
  display: block;
  width: 100%;
  height: auto;
}

.case-facts,
.progress-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.case-facts article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.case-facts span {
  display: block;
  color: var(--coral);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.case-facts strong {
  display: block;
  margin-top: 8px;
  font-size: 20px;
}

.case-facts p {
  margin-top: 9px;
  color: var(--muted);
}

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

.case-cta {
  width: 100%;
  margin-top: 22px;
  text-align: center;
}

.comparison-table-wrap {
  margin-top: 18px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.comparison-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  background: var(--surface);
}

.comparison-table th,
.comparison-table td {
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.comparison-table th {
  background: #edf6f4;
  color: var(--teal);
  font-size: 13px;
}

.comparison-table tr:last-child td {
  border-bottom: 0;
}

.section-mini-head {
  margin-bottom: 16px;
}

.section-mini-head h3 {
  margin-top: 8px;
  font-size: 28px;
  line-height: 1.16;
}

.workflow-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.workflow-step,
.agent-role-card,
.artifact-card,
.resume-callout,
.why-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(29, 35, 40, 0.05);
}

.workflow-step {
  min-height: 250px;
  padding: 18px;
}

.knowledge-facts {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 34px;
}

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

.source-card,
.output-card,
.output-example-grid article,
.implementation-grid article,
.evaluation-summary article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.source-card {
  padding: 24px;
}

.source-type,
.output-card > span,
.implementation-grid span,
.evaluation-summary span {
  color: var(--coral);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.source-card h3 {
  margin-top: 8px;
  font-size: 22px;
}

.source-link-list {
  display: grid;
  gap: 11px;
  margin-top: 18px;
  padding: 0;
  list-style: none;
}

.source-link-list li {
  display: grid;
  grid-template-columns: minmax(120px, 0.7fr) minmax(0, 1.3fr);
  gap: 12px;
  align-items: baseline;
  padding-top: 11px;
  border-top: 1px solid var(--line);
}

.source-link-list a {
  color: var(--teal);
  font-weight: 800;
}

.source-link-list span {
  color: var(--muted);
  font-size: 14px;
}

.source-rule,
.evaluation-note {
  margin-top: 18px;
  padding: 18px 20px;
  border-left: 4px solid var(--teal);
  background: #edf6f4;
  color: var(--muted);
}

.knowledge-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: 32px;
  align-items: start;
}

.topic-panel h3,
.vault-panel h3 {
  font-size: 24px;
}

.topic-list {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.topic-row {
  display: grid;
  grid-template-columns: minmax(210px, 1fr) minmax(120px, 0.85fr) 42px;
  gap: 14px;
  align-items: center;
}

.topic-row strong,
.topic-row span {
  display: block;
}

.topic-row span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.topic-row b {
  color: var(--teal);
  text-align: right;
}

.topic-meter {
  height: 8px;
  overflow: hidden;
  background: #e4e8e7;
}

.topic-meter i {
  display: block;
  height: 100%;
  min-width: 14px;
  background: var(--teal);
}

.topic-row:nth-child(even) .topic-meter i {
  background: var(--coral);
}

.vault-map {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.vault-map article {
  padding: 16px 0;
  border-top: 2px solid var(--line);
}

.vault-map span {
  color: var(--coral);
  font-size: 12px;
  font-weight: 850;
}

.vault-map strong {
  display: block;
  margin-top: 4px;
}

.vault-map p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 14px;
}

.implementation-grid,
.output-grid,
.output-example-grid,
.evaluation-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.implementation-grid article,
.output-card,
.output-example-grid article {
  padding: 22px;
}

.implementation-grid strong,
.output-card h3,
.output-example-grid strong {
  display: block;
  margin-top: 8px;
  font-size: 18px;
}

.implementation-grid p,
.output-card p,
.output-example-grid p {
  margin-top: 8px;
  color: var(--muted);
}

.output-examples-head {
  margin-top: 42px;
}

.output-example-grid article > span {
  display: block;
  margin-top: 18px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
}

.evaluation-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.evaluation-summary article {
  padding: 20px;
}

.evaluation-summary strong {
  display: block;
  margin-top: 7px;
  font-size: 24px;
}

.evaluation-summary p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 14px;
}

.evaluation-table {
  margin-top: 22px;
}

@media (max-width: 1100px) {
  .detail-shell {
    grid-template-columns: 1fr;
  }

  .detail-aside {
    position: static;
  }

  .knowledge-facts,
  .evaluation-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .knowledge-layout {
    grid-template-columns: 1fr;
  }
}

.workflow-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 32px;
  border: 1px solid rgba(31, 118, 110, 0.24);
  border-radius: 8px;
  background: #edf6f4;
  color: var(--teal);
  font-weight: 850;
}

.workflow-step h3 {
  margin-top: 16px;
  font-size: 18px;
  line-height: 1.18;
}

.workflow-step p,
.agent-role-card p,
.artifact-card p,
.resume-callout p,
.why-panel p {
  margin-top: 10px;
  color: var(--muted);
}

.agent-system-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  align-items: start;
  margin-top: 36px;
}

.agent-role-grid,
.artifact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.agent-role-card,
.artifact-card,
.resume-callout {
  padding: 20px;
}

.agent-role-card h4,
.artifact-card h4 {
  font-size: 19px;
  line-height: 1.2;
}

.resume-callout {
  position: sticky;
  top: 92px;
  background: #edf6f4;
}

.resume-callout p:last-child {
  color: var(--ink);
  font-weight: 750;
}

.artifact-block {
  margin-top: 38px;
}

.why-panel {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  margin-top: 38px;
  padding: 24px;
}

.why-panel h3 {
  margin-top: 8px;
  font-size: 28px;
  line-height: 1.16;
}

.why-panel .check-list {
  margin-top: 0;
}

.site-footer {
  padding: 28px 0;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
}

@media (max-width: 900px) {
  .hero-grid,
  .contact-grid,
  .detail-shell,
  .agent-system-layout,
  .why-panel,
  .case-facts,
  .progress-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
    padding-bottom: 36px;
  }

  .hero-visual {
    max-width: 220px;
  }

  .project-grid,
  .project-card-featured,
  .project-grid-compact,
  .experience-grid,
  .education-grid,
  .honors-grid,
  .note-grid,
  .workflow-strip,
  .source-grid,
  .implementation-grid,
  .output-grid,
  .output-example-grid,
  .agent-role-grid,
  .artifact-grid {
    grid-template-columns: 1fr;
  }

  .project-card-featured {
    grid-column: span 1;
  }

  .project-media,
  .project-flow {
    min-height: 280px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .project-media img {
    min-height: 0;
    max-height: 360px;
  }

  .detail-aside,
  .resume-callout {
    position: static;
  }

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

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 68px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .nav-menu[data-open="true"] {
    display: flex;
  }

  .knowledge-facts,
  .evaluation-summary,
  .vault-map {
    grid-template-columns: 1fr;
  }

  .source-link-list li {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .topic-row {
    grid-template-columns: minmax(0, 1fr) 42px;
  }

  .topic-row > div:first-child {
    grid-column: 1;
    grid-row: 1;
  }

  .topic-row .topic-meter {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .topic-row b {
    grid-column: 2;
    grid-row: 1;
  }

  .nav-menu a {
    padding: 12px 10px;
  }

  .section {
    padding: 64px 0;
  }

  .hero {
    padding-top: 28px;
  }

  .hero h1 {
    font-size: 42px;
  }

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

  .button {
    width: 100%;
  }

  .quick-facts {
    display: none;
  }

  .project-card-body,
  .detail-section {
    padding: 22px;
  }

  .project-flow {
    padding: 24px 16px;
  }

  .project-flow-node {
    flex: 1 1 120px;
  }
}

@media (max-width: 420px) {
  .container,
  .nav-wrap {
    width: min(100% - 24px, 1120px);
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero-summary {
    font-size: 16px;
  }
}

/* A+B homepage: editorial warmth with a precise evidence grid. */
.home-page {
  --home-paper: #f4f5f1;
  --home-surface: #fbfcf9;
  --home-ink: #17201d;
  --home-muted: #606964;
  --home-green: #1f5a4d;
  --home-coral: #d05e4d;
  --home-cobalt: #244f83;
  --home-line: #cfd6d1;
  background: var(--home-paper);
  color: var(--home-ink);
}

.home-page::before {
  display: none;
}

.home-page .site-header {
  background: rgba(244, 245, 241, 0.94);
  border-color: var(--home-line);
  backdrop-filter: blur(12px);
}

.home-page .nav-wrap,
.home-page .container {
  width: min(1180px, calc(100% - 48px));
}

.home-page .brand {
  font-family: Georgia, "Songti SC", "STSong", serif;
  font-size: 18px;
}

.home-page .brand-mark {
  border-color: var(--home-green);
  background: transparent;
  color: var(--home-green);
}

.home-page .nav-menu {
  color: var(--home-muted);
}

.home-page .nav-menu a {
  position: relative;
}

.home-page .nav-menu a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 2px;
  background: var(--home-coral);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

.home-page .nav-menu a:hover::after {
  transform: scaleX(1);
}

.home-page .hero {
  min-height: clamp(560px, calc(100svh - 190px), 650px);
  padding: 50px 0 44px;
  overflow: hidden;
}

.home-page .hero-grid {
  grid-template-columns: minmax(0, 1.28fr) minmax(300px, 0.72fr);
  gap: 76px;
}

.home-page .hero-copy {
  max-width: 770px;
}

.home-page .eyebrow {
  color: var(--home-green);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.home-page .hero h1 {
  margin-top: 20px;
  color: var(--home-coral);
  font-family: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 780;
}

.home-page .hero-statement {
  max-width: 760px;
  margin-top: 18px;
  font-family: Georgia, "Songti SC", "STSong", serif;
  font-size: 58px;
  line-height: 1.08;
  font-weight: 700;
}

.home-page .hero h2 {
  margin-top: 22px;
  color: var(--home-cobalt);
  font-size: 20px;
  line-height: 1.35;
  font-weight: 780;
}

.home-page .hero-summary {
  max-width: 700px;
  margin-top: 18px;
  color: var(--home-muted);
  font-size: 17px;
}

.home-page .hero-actions {
  margin-top: 26px;
}

.home-page .button {
  min-height: 44px;
  border-color: var(--home-line);
  border-radius: 4px;
  background: transparent;
  box-shadow: none;
}

.home-page .button-primary {
  border-color: var(--home-green);
  background: var(--home-green);
  color: #ffffff;
}

.home-page .button:hover {
  border-color: var(--home-coral);
  color: var(--home-coral);
}

.home-page .button-primary:hover {
  background: var(--home-coral);
  color: #ffffff;
}

.home-page .hero-visual {
  position: relative;
  align-self: center;
  display: block;
  margin: 0;
}

.home-page .portrait-panel {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border: 1px solid var(--home-ink);
  border-radius: 0;
  background: #e5e9e4;
  box-shadow: 16px 16px 0 var(--home-cobalt);
}

.home-page .portrait-panel img {
  aspect-ratio: 4 / 5;
  object-position: center 18%;
}

.home-page .hero-visual figcaption {
  position: relative;
  z-index: 2;
  width: calc(100% - 34px);
  margin: -38px 0 0 -24px;
  padding: 14px 18px;
  border-left: 5px solid var(--home-coral);
  background: var(--home-surface);
  box-shadow: 0 10px 28px rgba(23, 32, 29, 0.1);
}

.home-page .hero-visual figcaption span,
.home-page .hero-visual figcaption strong {
  display: block;
}

.home-page .hero-visual figcaption span {
  color: var(--home-coral);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.home-page .hero-visual figcaption strong {
  margin-top: 3px;
  font-size: 15px;
}

.home-page .proof-band {
  background: var(--home-cobalt);
  color: #ffffff;
}

.home-page .proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-page .proof-grid article {
  min-height: 150px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-content: center;
  padding: 28px 32px;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
}

.home-page .proof-grid article:last-child {
  border-right: 1px solid rgba(255, 255, 255, 0.22);
}

.home-page .proof-grid span {
  grid-row: 1 / span 2;
  color: #9fc0e8;
  font-family: Georgia, serif;
  font-size: 18px;
}

.home-page .proof-grid strong {
  font-size: 18px;
}

.home-page .proof-grid p {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.55;
}

.home-page .section {
  padding: 92px 0;
}

.home-page .section-projects,
.home-page .background-section {
  background: var(--home-surface);
}

.home-page .section-head {
  max-width: none;
  margin-bottom: 38px;
}

.home-page .section-head-split {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: end;
}

.home-page .section-head h2 {
  margin-top: 8px;
  font-family: Georgia, "Songti SC", "STSong", serif;
  font-size: 45px;
}

.home-page .section-head > p,
.home-page .section-head-split > p {
  max-width: 640px;
  margin-top: 0;
  color: var(--home-muted);
  font-size: 16px;
}

.home-page .project-grid {
  gap: 22px;
  align-items: start;
}

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

.home-page .project-card {
  min-height: 0;
  overflow: hidden;
  border-color: var(--home-line);
  border-radius: 6px;
  background: var(--home-surface);
  box-shadow: none;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.home-page .project-card:hover {
  border-color: var(--home-cobalt);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(23, 32, 29, 0.08);
}

.home-page .project-card-lead,
.home-page .project-card-system {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(340px, 0.92fr) minmax(0, 1.08fr);
}

.home-page .project-card-standard {
  display: grid;
  grid-template-rows: 250px auto;
}

.home-page .project-media,
.home-page .project-flow {
  min-height: 0;
  border-right: 1px solid var(--home-line);
  background: #e8eeeb;
}

.home-page .project-card-standard .project-media,
.home-page .project-card-standard .project-flow {
  border-right: 0;
  border-bottom: 1px solid var(--home-line);
}

.home-page .project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-page .project-card[data-project-id="pixeltravelmap"] .project-media img {
  object-fit: cover;
  object-position: 50% 12%;
  padding: 0;
  background: #eef3f1;
}

.home-page .project-flow {
  padding: 34px 24px;
  background: #e9eef4;
}

.home-page .project-flow-node {
  border-color: rgba(36, 79, 131, 0.24);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: none;
}

.home-page .project-flow-arrow {
  color: var(--home-coral);
}

.home-page .project-card-body {
  padding: 30px;
}

.home-page .project-card-head {
  margin-bottom: 16px;
}

.home-page .project-card-head span {
  padding: 0;
  background: transparent;
  color: var(--home-coral);
  font-size: 11px;
  text-transform: uppercase;
}

.home-page .project-card h3 {
  font-family: Georgia, "Songti SC", "STSong", serif;
  font-size: 27px;
}

.home-page .project-card-body > p {
  color: var(--home-muted);
}

.home-page .project-card:not(.is-expanded) .project-card-body > p,
.home-page .experience-card:not(.is-expanded) .experience-summary {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.home-page .text-link {
  color: var(--home-cobalt);
}

.home-page .text-link-primary {
  border-radius: 4px;
  background: var(--home-green);
  color: #ffffff;
}

.home-page .text-link-primary:hover {
  background: var(--home-coral);
}

.home-page .tag-list li {
  border-color: var(--home-line);
  border-radius: 4px;
  background: transparent;
}

.home-page .check-list li::before {
  width: 7px;
  height: 7px;
  border-radius: 0;
  background: var(--home-green);
}

.home-page .system-section {
  background: var(--home-green);
  color: #ffffff;
}

.home-page .system-section .eyebrow {
  color: #b7dfd2;
}

.home-page .system-section .section-head-split > p {
  color: rgba(255, 255, 255, 0.72);
}

.home-page .project-grid-system {
  grid-template-columns: 1fr;
}

.home-page .project-card-system {
  border-color: rgba(255, 255, 255, 0.36);
  background: var(--home-surface);
  color: var(--home-ink);
}

.home-page .section-experience {
  background: var(--home-paper);
}

.home-page .experience-grid {
  gap: 0;
  align-items: start;
  border-top: 1px solid var(--home-ink);
}

.home-page .experience-card {
  padding: 30px 32px 30px 0;
  border: 0;
  border-bottom: 1px solid var(--home-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.home-page .experience-card:nth-child(even) {
  padding-right: 0;
  padding-left: 32px;
  border-left: 1px solid var(--home-line);
}

.home-page .experience-org {
  color: var(--home-coral);
}

.home-page .experience-card h3 {
  font-family: Georgia, "Songti SC", "STSong", serif;
}

.expand-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  padding: 13px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  color: var(--teal);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.expand-toggle-icon {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
}

.expand-toggle:hover {
  color: var(--coral);
}

.expandable-details {
  padding-top: 17px;
}

.expandable-details[hidden] {
  display: none;
}

.expandable-details .tag-list:last-child {
  margin-bottom: 0;
}

.home-page .expand-toggle {
  border-color: var(--home-line);
  color: var(--home-cobalt);
}

.home-page .expand-toggle:hover,
.home-page .expand-toggle[aria-expanded="true"] {
  color: var(--home-coral);
}

.home-page .background-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
  gap: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--home-ink);
}

.home-page .background-label {
  margin-bottom: 18px;
  color: var(--home-coral);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.home-page .education-grid,
.home-page .honors-grid {
  grid-template-columns: 1fr;
  gap: 0;
}

.home-page .education-item,
.home-page .honor-card {
  min-height: 0;
  padding: 20px 0;
  border: 0;
  border-bottom: 1px solid var(--home-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.home-page .education-item h3,
.home-page .honor-card h3 {
  font-family: Georgia, "Songti SC", "STSong", serif;
  font-size: 21px;
}

.home-page .education-program {
  color: var(--home-cobalt);
}

.home-page .contact-band {
  background: var(--home-ink);
}

.home-page .contact-grid h2 {
  font-family: Georgia, "Songti SC", "STSong", serif;
}

.home-page .contact-list a,
.home-page .contact-list span {
  border-radius: 4px;
}

.home-page .site-footer {
  background: var(--home-ink);
  color: rgba(255, 255, 255, 0.62);
  border-color: rgba(255, 255, 255, 0.12);
}

@media (max-width: 980px) {
  .home-page .hero-grid {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 42px;
  }

  .home-page .hero-statement {
    font-size: 50px;
  }

  .home-page .proof-grid article {
    grid-template-columns: 34px minmax(0, 1fr);
    padding: 24px 20px;
  }

  .home-page .project-card-lead,
  .home-page .project-card-system {
    grid-template-columns: 1fr;
  }

  .home-page .project-card-lead .project-media,
  .home-page .project-card-system .project-flow {
    min-height: 320px;
    border-right: 0;
    border-bottom: 1px solid var(--home-line);
  }

  .home-page .background-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (max-width: 760px) {
  .home-page .nav-wrap,
  .home-page .container {
    width: min(100% - 28px, 1180px);
  }

  .home-page .nav-menu {
    background: var(--home-surface);
  }

  .home-page .hero {
    position: relative;
    min-height: 0;
    padding: 38px 0 42px;
  }

  .home-page .hero-grid {
    position: relative;
    display: block;
  }

  .home-page .hero-statement {
    max-width: 235px;
    font-size: 43px;
  }

  .home-page .hero-visual {
    position: absolute;
    top: 52px;
    right: 0;
    width: 118px;
    margin: 0;
  }

  .home-page .portrait-panel {
    box-shadow: 7px 7px 0 var(--home-cobalt);
  }

  .home-page .hero-visual figcaption {
    display: none;
  }

  .home-page .hero-summary {
    margin-top: 15px;
  }

  .home-page .proof-grid {
    grid-template-columns: 1fr;
  }

  .home-page .proof-grid article,
  .home-page .proof-grid article:last-child {
    min-height: 0;
    padding: 22px 0;
    border-right: 0;
    border-left: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  .home-page .section {
    padding: 68px 0;
  }

  .home-page .section-head-split {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .home-page .section-head h2 {
    font-size: 36px;
  }

  .home-page .project-grid-featured {
    grid-template-columns: 1fr;
  }

  .home-page .project-card-standard {
    grid-template-rows: auto;
  }

  .home-page .project-card-standard .project-media,
  .home-page .project-card-standard .project-flow {
    min-height: 260px;
  }

  .home-page .experience-card,
  .home-page .experience-card:nth-child(even) {
    padding: 26px 0;
    border-left: 0;
  }
}

@media (max-width: 430px) {
  .home-page .hero-statement {
    font-size: 37px;
  }

  .home-page .hero h2 {
    font-size: 18px;
  }

  .home-page .project-card-body {
    padding: 22px;
  }

  .home-page .project-card h3 {
    font-size: 24px;
  }
}

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

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

  .button:hover {
    transform: none;
  }
}
