.project-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.82fr);
  gap: 64px;
  align-items: center;
  padding: 86px 0 56px;
}

.project-hero h1 {
  max-width: 780px;
  margin-bottom: 16px;
  font-size: 72px;
  line-height: 1;
}

.back-link {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 820;
}

.project-deck {
  max-width: 620px;
  margin: 0 0 24px;
  color: var(--ink-soft);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.45;
}

.product-preview {
  display: grid;
  grid-template-columns: 138px 1fr;
  overflow: hidden;
  min-height: 410px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.product-preview aside {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 22px;
  background: #101624;
  color: #ffffff;
}

.product-preview aside strong {
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 500;
}

.product-preview aside span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 700;
}

.product-screen {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 28px;
}

.screen-top,
.screen-cards div,
.screen-list {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.screen-top {
  display: grid;
  gap: 8px;
  padding: 22px;
}

.screen-top strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 500;
}

.screen-top span {
  color: var(--muted);
}

.screen-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.screen-cards div {
  min-height: 78px;
  padding: 16px;
  color: var(--ink-soft);
  font-weight: 720;
}

.screen-list {
  display: grid;
  overflow: hidden;
}

.screen-list span {
  padding: 14px 16px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.screen-list span:last-child {
  border-bottom: 0;
}

.project-proof {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  margin-bottom: 72px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.project-proof div {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 200px;
  padding: 24px;
  background: #ffffff;
}

.project-proof svg {
  width: 26px;
  height: 26px;
  color: var(--accent-strong);
}

.project-proof strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 38px;
  font-weight: 500;
  line-height: 1;
}

.project-proof span {
  color: var(--muted);
  font-size: 14px;
}

.project-evidence {
  display: grid;
  gap: 28px;
  margin-bottom: 104px;
}

.evidence-heading .section-intro {
  margin-bottom: 0;
}

.receipt-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.receipt-gallery .receipt {
  display: flex;
  flex-direction: column;
  margin: 0;
}

.receipt-gallery .receipt-body {
  flex: 1;
}

.receipt-lead {
  grid-column: 1 / -1;
}

.project-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 72px;
  padding-bottom: 96px;
}

.project-toc {
  position: sticky;
  top: 104px;
  align-self: start;
  display: grid;
  gap: 8px;
}

.project-toc a {
  padding: 10px 0;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  font-weight: 780;
}

.project-toc a:hover {
  color: var(--accent-strong);
}

.toc-note {
  display: grid;
  gap: 8px;
  margin-top: 20px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.toc-note p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.project-main {
  display: grid;
  gap: 92px;
}

.project-section {
  display: grid;
  gap: 28px;
  scroll-margin-top: 94px;
}

.project-section h2 {
  max-width: 760px;
}

.section-intro {
  max-width: 720px;
  color: var(--muted);
}

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

.body-grid article {
  min-height: 190px;
  padding: 24px;
  background: #ffffff;
}

.body-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.arch-figure {
  display: grid;
  gap: 12px;
  margin: 0;
}

.arch-scroll {
  overflow-x: auto;
}

.arch-svg {
  display: block;
  width: 100%;
  min-width: 680px;
  height: auto;
  stroke: none; /* neutralize the global `svg { stroke: currentColor }` icon rule */
  stroke-width: 0;
}

.arch-svg text {
  stroke: none;
}

.arch-caption {
  color: var(--muted);
  font-size: 13px;
}

.evaluation-grid strong,
.related-grid strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 820;
}

.evaluation-grid span,
.related-grid span {
  color: var(--muted);
  font-size: 14px;
}

.evaluation-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.evaluation-grid article,
.related-grid a {
  display: grid;
  gap: 8px;
  min-height: 150px;
  padding: 22px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.section-row {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 24px;
}

.note-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.note-list article {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: start;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.note-list span {
  color: var(--accent-warm);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
}

.note-list strong {
  display: block;
  margin-bottom: 5px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 500;
}

.note-list strong a {
  color: inherit;
  text-decoration: none;
}

.note-list strong a:hover {
  color: var(--accent-strong);
}

.note-list p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.note-list em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 760;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

@media (max-width: 1020px) {
  .project-hero,
  .project-layout {
    grid-template-columns: 1fr;
  }

  .project-toc {
    position: static;
    grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
    gap: 0;
  }

  .project-toc .small-label,
  .toc-note {
    grid-column: 1 / -1;
  }

  .project-proof,
  .evaluation-grid,
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .project-hero {
    gap: 32px;
    padding: 42px 0 28px;
  }

  .project-hero h1 {
    font-size: 44px;
  }

  .product-preview {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .product-preview aside {
    display: none;
  }

  .project-proof,
  .receipt-gallery,
  .body-grid,
  .evaluation-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .project-proof {
    margin-bottom: 54px;
  }

  .project-evidence {
    margin-bottom: 72px;
  }

  .project-proof div,
  .body-grid article,
  .evaluation-grid article,
  .related-grid a {
    min-height: auto;
  }

  .project-layout {
    gap: 54px;
    padding-bottom: 72px;
  }

  .project-toc {
    grid-template-columns: 1fr 1fr;
  }

  .project-main {
    gap: 72px;
  }

  .section-row {
    display: grid;
  }

  .note-list article {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .note-list em {
    grid-column: 2;
  }

  .note-list strong {
    font-size: 21px;
  }
}

/* ——— DecisionEase case page ——— */

/* Framed live-app visual in the hero column */
.hero-receipt {
  margin: 0;
}

/* Screenshot receipts that show the full capture instead of a 16:10 crop */
.receipt-body.receipt-fit {
  aspect-ratio: auto;
}

.receipt-body.receipt-fit img {
  height: auto;
  object-fit: contain;
}

/* Muted trailing line inside dark code receipts */
.receipt-code .rm {
  color: #7d8b99;
}

/* Bullet lists inside body-grid cards (four-layer memory) */
.body-grid ul {
  display: grid;
  gap: 6px;
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 15px;
}

.body-grid ul li {
  line-height: 1.5;
}
