:root {
  --ink: #14532d;
  --jade: #0f6b5f;
  --gold: #ca8a04;
  --paper: #fafaf7;
  --paper-deep: #f0f4ec;
  --night: #052e16;
  --text: #27272a;
  --muted: #5f635f;
  --line: #d9ded3;
  --white: #ffffff;
  --shadow: 0 28px 70px rgba(5, 46, 22, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--paper);
  font-family: "HarmonyOS Sans SC", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  line-height: 1.72;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(20, 83, 45, 0.06), transparent 380px),
    repeating-linear-gradient(90deg, rgba(20, 83, 45, 0.035) 0, rgba(20, 83, 45, 0.035) 1px, transparent 1px, transparent 88px);
}

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

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

.shell {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 50;
  transform: translateY(-160%);
  padding: 9px 14px;
  color: var(--white);
  background: var(--night);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 0 max(24px, calc((100vw - 1120px) / 2));
  border-bottom: 1px solid rgba(217, 222, 211, 0.84);
  background: rgba(250, 250, 247, 0.93);
  backdrop-filter: blur(18px);
}

.brand,
.back-link {
  display: inline-flex;
  align-items: center;
}

.brand {
  gap: 11px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--white);
  background: var(--ink);
  border-radius: 7px;
}

.brand-mark svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand strong,
.brand em {
  display: block;
  font-style: normal;
  line-height: 1.2;
}

.brand strong {
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
}

.brand em {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.back-link {
  gap: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.back-link::before {
  content: "\2190";
  font-size: 19px;
}

.case-hero {
  padding: 74px 0 58px;
}

.case-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(390px, 0.72fr);
  gap: 72px;
  align-items: center;
}

.eyebrow {
  margin-bottom: 16px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.case-number {
  display: block;
  margin-bottom: 22px;
  color: var(--gold);
  font-size: 52px;
  font-weight: 900;
  line-height: 1;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  color: var(--ink);
  font-size: clamp(44px, 5.6vw, 76px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.05;
}

h1.case-title-compact {
  font-size: clamp(44px, 4.6vw, 60px);
}

.case-lead {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--text);
  font-size: 20px;
  line-height: 1.8;
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.case-tags span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.66);
  font-size: 13px;
}

.case-poster {
  position: relative;
  min-height: 510px;
  padding: 34px;
  color: var(--white);
  background:
    linear-gradient(145deg, rgba(202, 138, 4, 0.14), transparent 34%),
    linear-gradient(145deg, var(--night), #0b4a31 58%, var(--jade));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.case-poster::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(250, 250, 247, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(250, 250, 247, 0.08) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.2;
}

.poster-inner {
  position: relative;
  z-index: 1;
}

.poster-label {
  display: block;
  margin-bottom: 52px;
  color: rgba(250, 250, 247, 0.62);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.poster-statement {
  display: block;
  margin-bottom: 30px;
  color: #fefce8;
  font-size: 27px;
  line-height: 1.35;
}

.poster-flow {
  display: grid;
  gap: 10px;
}

.poster-flow div {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 14px;
  padding: 13px 14px;
  border: 1px solid rgba(250, 250, 247, 0.16);
  background: rgba(250, 250, 247, 0.06);
}

.poster-flow span {
  color: #facc15;
  font-size: 12px;
  font-weight: 900;
}

.poster-flow strong {
  font-size: 14px;
  line-height: 1.45;
}

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

.poster-flow.four-columns div {
  display: block;
  min-height: 94px;
}

.poster-flow.four-columns span,
.poster-flow.four-columns strong {
  display: block;
}

.poster-flow.four-columns span {
  margin-bottom: 9px;
}

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

.star-map div {
  min-height: 82px;
  padding: 12px;
  border: 1px solid rgba(250, 250, 247, 0.16);
  background: rgba(250, 250, 247, 0.06);
}

.star-map div:first-child {
  grid-column: 1 / -1;
  border-color: rgba(250, 250, 247, 0.34);
  background: rgba(250, 250, 247, 0.13);
}

.star-map span,
.star-map strong {
  display: block;
}

.star-map span {
  margin-bottom: 5px;
  color: #facc15;
  font-size: 12px;
  font-weight: 900;
}

.star-map strong {
  font-size: 14px;
  line-height: 1.35;
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: var(--line);
  gap: 1px;
}

.summary-strip div {
  min-height: 118px;
  padding: 23px;
  background: rgba(255, 255, 255, 0.8);
}

.summary-strip span,
.summary-strip strong {
  display: block;
}

.summary-strip span {
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.summary-strip strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.5;
}

.process-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin-top: 18px;
  border: 1px solid var(--line);
  background: var(--line);
}

.process-strip div {
  min-height: 92px;
  padding: 16px 14px;
  background: rgba(255, 255, 255, 0.78);
}

.process-strip span,
.process-strip strong {
  display: block;
}

.process-strip span {
  margin-bottom: 9px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
}

.process-strip strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
}

.case-section {
  padding: 88px 0;
  border-top: 1px solid var(--line);
}

.case-section.tinted {
  background: rgba(240, 244, 236, 0.6);
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.55fr) minmax(0, 1fr);
  gap: 80px;
}

.section-intro {
  position: sticky;
  top: 104px;
  align-self: start;
}

.section-index {
  display: block;
  margin-bottom: 18px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 900;
}

h2 {
  margin-bottom: 16px;
  color: var(--ink);
  font-size: clamp(30px, 3.4vw, 46px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.16;
}

.section-intro p,
.prose p,
.prose li {
  color: var(--muted);
  font-size: 17px;
}

.prose > :last-child {
  margin-bottom: 0;
}

.prose h3 {
  margin: 34px 0 12px;
  color: var(--ink);
  font-size: 23px;
  line-height: 1.35;
}

.prose h3:first-child {
  margin-top: 0;
}

.prose ul,
.prose ol {
  margin: 0;
  padding-left: 1.25em;
}

.prose li + li {
  margin-top: 8px;
}

.quote {
  margin: 28px 0;
  padding: 24px 26px;
  border-left: 4px solid var(--gold);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  font-size: 23px;
  font-weight: 850;
  line-height: 1.55;
}

.proof-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.proof-metrics div {
  min-height: 124px;
  padding: 22px 18px;
  background: rgba(255, 255, 255, 0.84);
}

.proof-metrics strong,
.proof-metrics span {
  display: block;
}

.proof-metrics strong {
  color: var(--ink);
  font-family: Manrope, Arial, sans-serif;
  font-size: 32px;
  line-height: 1.1;
}

.proof-metrics span {
  margin-top: 11px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.validation-copy {
  margin-top: 28px;
}

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

.comparison article,
.evidence-grid article,
.capability-grid article {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
}

.comparison article {
  padding: 25px;
}

.comparison article:last-child {
  border-color: rgba(20, 83, 45, 0.46);
}

.comparison span {
  display: block;
  margin-bottom: 14px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.comparison h3 {
  margin-top: 0;
  margin-bottom: 12px;
}

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

.evidence-grid article,
.capability-grid article {
  padding: 24px;
}

.evidence-grid span,
.capability-grid span {
  display: block;
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.evidence-grid h3,
.capability-grid h3 {
  margin: 0 0 9px;
  color: var(--ink);
  font-size: 20px;
}

.evidence-grid p,
.capability-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
}

.system-stack {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
  color: var(--white);
  background: rgba(250, 250, 247, 0.18);
  box-shadow: var(--shadow);
}

.system-stack div {
  min-height: 148px;
  padding: 19px 16px;
  background: var(--night);
}

.system-stack span,
.system-stack strong,
.system-stack em {
  display: block;
}

.system-stack span {
  margin-bottom: 18px;
  color: #facc15;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.system-stack strong {
  color: var(--white);
  font-size: 16px;
  line-height: 1.4;
}

.system-stack em {
  margin-top: 8px;
  color: rgba(250, 250, 247, 0.62);
  font-size: 11px;
  font-style: normal;
  line-height: 1.5;
}

.platform-capabilities {
  margin-top: 18px;
}

.boundary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.boundary article {
  padding: 26px;
  background: rgba(255, 255, 255, 0.84);
}

.boundary h3 {
  margin-top: 0;
  color: var(--ink);
}

.case-footer {
  padding: 70px 0 38px;
  color: var(--white);
  background: var(--night);
}

.next-project {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 36px;
  align-items: end;
  padding-bottom: 54px;
  border-bottom: 1px solid rgba(250, 250, 247, 0.18);
}

.next-project span {
  display: block;
  margin-bottom: 9px;
  color: #facc15;
  font-size: 12px;
  font-weight: 900;
}

.next-project strong {
  display: block;
  max-width: 760px;
  font-size: clamp(28px, 4vw, 50px);
  line-height: 1.2;
}

.next-project a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 17px;
  border: 1px solid rgba(250, 250, 247, 0.28);
  font-size: 14px;
  font-weight: 850;
}

.footer-meta {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 28px;
  color: rgba(250, 250, 247, 0.58);
  font-size: 13px;
}

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

@media (max-width: 900px) {
  .case-hero-grid,
  .section-grid {
    grid-template-columns: 1fr;
  }

  .case-hero-grid {
    gap: 42px;
  }

  .section-grid {
    gap: 36px;
  }

  .section-intro {
    position: static;
  }
}

@media (max-width: 640px) {
  .shell {
    width: calc(100% - 30px);
  }

  .site-header {
    min-height: 64px;
    padding: 0 15px;
  }

  .brand em {
    display: none;
  }

  .case-hero {
    padding: 46px 0 38px;
  }

  .case-number {
    font-size: 40px;
  }

  h1 {
    font-size: 40px;
  }

  h1.case-title-compact {
    font-size: 40px;
  }

  .case-lead {
    font-size: 17px;
  }

  .case-poster {
    min-height: auto;
    padding: 24px;
  }

  .poster-label {
    margin-bottom: 34px;
  }

  .poster-statement {
    font-size: 23px;
  }

  .poster-flow.four-columns,
  .star-map,
  .summary-strip,
  .comparison,
  .evidence-grid,
  .capability-grid,
  .process-strip,
  .system-stack,
  .boundary,
  .next-project {
    grid-template-columns: 1fr;
  }

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

  .proof-metrics div {
    min-height: 112px;
  }

  .system-stack div {
    min-height: auto;
  }

  .star-map div:first-child {
    grid-column: auto;
  }

  .summary-strip div {
    min-height: auto;
  }

  .case-section {
    padding: 62px 0;
  }

  h2 {
    font-size: 31px;
  }

  .section-intro p,
  .prose p,
  .prose li {
    font-size: 16px;
  }

  .quote {
    padding: 20px;
    font-size: 20px;
  }

  .footer-meta {
    flex-direction: column;
  }
}
