  /* ===== Page hero — dark with photo background, mirrors the home page hero ===== */
  .page-hero {
    position: relative;
    background: var(--c-dark);
    color: var(--c-ivory);
    overflow: hidden;
    isolation: isolate;
    /* Same fill-the-viewport-below-the-header math as the home hero */
    min-height: calc(100vh - 160px);
    min-height: calc(100dvh - 160px);
    display: flex;
    align-items: flex-start;
    padding: 0;
  }
  .page-hero::before {
    content: ""; position: absolute; inset: 0; z-index: 0;
    background-image: url("../../images/projects/community-1.webp");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    filter: brightness(0.40) saturate(0.95);
  }
  .page-hero::after {
    content: ""; position: absolute; inset: 0; z-index: 0;
    background:
      linear-gradient(180deg, rgba(14,26,43,0.30) 0%, transparent 40%, rgba(14,26,43,0.45) 100%),
      linear-gradient(95deg, rgba(14,26,43,0.92) 0%, rgba(14,26,43,0.78) 55%, rgba(14,26,43,0.62) 100%);
    pointer-events: none;
  }
  @media (prefers-reduced-motion: reduce) {
    .page-hero::before { background-attachment: scroll; }
  }
  .page-hero__inner {
    position: relative; z-index: 1;
    max-width: var(--maxw); margin: 0 auto;
    width: 100%;
    padding: clamp(24px, 3vw, 48px) var(--gut) clamp(48px, 6vw, 88px);
  }
  .page-hero h1 {
    color: #fff;
    font-size: clamp(40px, 6vw, 88px);
    font-weight: 500;
    line-height: 1.4;
    margin: 18px 0 56px;
    text-shadow: 0 2px 32px rgba(14,26,43,0.6);
  }
  .page-hero h1 em { font-style: italic; color: rgba(237,230,218,0.85); font-weight: 400; }
  .page-hero__lede {
    color: #fff;
    margin: 0;
    /* Forced <br>s in the markup handle the line breaks; max-width caps the
       bounding box so the text doesn't run the full container width. */
    max-width: 80ch;
    /* Same sans treatment as the home hero tagline — Inter, no font-weight
       override, slightly smaller than a pull-quote. */
    font-family: var(--f-sans);
    font-size: clamp(19px, 1.7vw, 23px);
    line-height: 2;
    text-shadow: 0 1px 16px rgba(14,26,43,0.55);
  }
  .page-hero__pillars {
    display: grid; grid-template-columns: repeat(3, 1fr);
    margin-top: 44px; border: 1px solid var(--c-line); background: var(--c-surface);
  }
  .pillar { padding: 22px; border-right: 1px solid var(--c-line); display: grid; gap: 8px; }
  .pillar:last-child { border-right: 0; }
  .pillar__num { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.22em; color: var(--c-accent); text-transform: uppercase; }
  .pillar__t { font-family: var(--f-serif); font-size: 18px; }
  .pillar__d { font-size: 13px; color: var(--c-ink-soft); line-height: 1.5; }

  /* ===== Section heading (shared) ===== */
  .efficiency h2 { max-width: 22ch; }
  .section-head { max-width: 64ch; display: grid; gap: 14px; }
  .section-head h2 { margin-top: 4px; }
  .section-head .lede { margin-top: 6px; }
  .lede strong.term {
    font-weight: 600; font-size: 1.08em; color: var(--c-ink);
    letter-spacing: -0.005em;
  }

  /* ===== Duration table (project statistics) ===== */
  .dur-table {
    width: 100%; margin-top: 0;
    border-collapse: collapse; table-layout: fixed;
    font-size: 14px;
    border: 1px solid var(--c-line); background: var(--c-surface);
  }
  .dur-table thead th {
    text-align: left; padding: 16px 22px;
    font-family: var(--f-mono); font-size: 10.5px;
    letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--c-ink-soft); font-weight: 500;
    border-bottom: 1px solid var(--c-line); background: var(--c-bg);
  }
  .dur-table thead th:not(:last-child) { border-right: 1px solid var(--c-line); }
  .dur-table tbody td {
    padding: 18px 22px; border-top: 1px solid var(--c-line);
    color: var(--c-ink); vertical-align: middle;
  }
  .dur-table tbody td:not(:last-child) { border-right: 1px solid var(--c-line); }
  .dur-table tbody tr:hover { background: color-mix(in srgb, var(--c-bg) 60%, transparent); }
  .dur-table tbody tr:hover .dur-bar__fill { filter: brightness(1.05); }
  .dur-table .col-step { width: 80px; }
  .dur-table .col-num  { width: 18%; white-space: nowrap; }
  .dur-table .col-bar  { width: 36%; }
  .dur-table .step {
    font-family: var(--f-mono); font-size: 11px;
    letter-spacing: 0.22em; color: var(--c-accent);
  }
  .dur-table .phase {
    font-family: var(--f-serif); font-size: 19px;
    color: var(--c-ink); line-height: 1.2;
  }
  .dur-table .num {
    font-family: var(--f-mono); font-size: 14px; color: var(--c-ink);
  }
  .dur-bar {
    position: relative; height: 8px;
    background: color-mix(in srgb, var(--c-line) 80%, transparent);
    border-radius: 999px; overflow: hidden;
  }
  .dur-bar__fill {
    position: absolute; top: 0; left: 0; height: 100%;
    width: calc(var(--pct, 0) * 1%);
    background: linear-gradient(90deg,
      color-mix(in srgb, var(--c-accent) 92%, var(--c-dark)),
      var(--c-accent));
    border-radius: 999px;
    transition: filter .25s;
  }

  /* ===== Stats summary band (flush with dur-table) ===== */
  .stats-summary {
    margin-top: 0;
    display: grid; grid-template-columns: 1fr 1fr;
    border: 1px solid var(--c-line); border-top: 0;
    background: var(--c-dark); color: var(--c-ivory);
  }
  .stats-summary__cell {
    padding: 36px 40px; display: grid; gap: 10px;
    border-right: 1px solid rgba(237,230,218,0.18);
  }
  .stats-summary__cell:last-child { border-right: 0; }
  .stats-summary__num {
    font-family: var(--f-serif); font-size: clamp(40px, 4.6vw, 60px);
    font-weight: 500; line-height: 1; color: var(--c-accent);
    display: inline-flex; align-items: baseline; gap: 8px;
  }
  .stats-summary__num small { font-size: 0.42em; color: var(--c-ivory-soft); font-family: var(--f-serif); }
  .stats-summary__lab {
    font-family: var(--f-mono); font-size: 11px;
    letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--c-ivory-soft); line-height: 1.65;
  }
  .stats-summary__lab em { font-style: italic; text-transform: none; letter-spacing: 0.04em; opacity: 0.85; }

  /* ===== Process figures (unified card) ===== */
  .process-figure {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 28px 0 0;
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    overflow: hidden;
    box-sizing: border-box;
  }
  .process-figure + .process-figure { margin-top: 24px; }
  .process-figure__head {
    display: flex; justify-content: space-between; align-items: baseline;
    gap: 16px; padding: 16px 24px;
    border-bottom: 1px solid var(--c-line);
    background: var(--c-bg);
  }
  .process-figure__num {
    font-family: var(--f-mono); font-size: 10.5px;
    letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--c-accent);
  }
  .process-figure__title {
    font-family: var(--f-mono); font-size: 10.5px;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--c-ink-soft); text-align: right;
  }
  .process-figure__img {
    display: block; width: 100%; height: auto; background: #fff;
  }
  .process-figure__cap {
    padding: 16px 24px;
    border-top: 1px solid var(--c-line);
    font-family: var(--f-mono); font-size: 10.5px;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--c-ink-soft);
  }

  @media (max-width: 980px) {
    .page-hero__inner { grid-template-columns: 1fr; }
    .page-hero__pillars { grid-template-columns: 1fr; }
    .pillar { border-right: 0; border-bottom: 1px solid var(--c-line); }
    .pillar:last-child { border-bottom: 0; }
    .dur-table { table-layout: auto; }
    .dur-table .col-step, .dur-table .col-num, .dur-table .col-bar { width: auto; }
  }
  @media (max-width: 720px) {
    .stats-summary { grid-template-columns: 1fr; }
    .stats-summary__cell { border-right: 0; border-bottom: 1px solid rgba(237,230,218,0.18); }
    .stats-summary__cell:last-child { border-bottom: 0; }
    .dur-table thead { display: none; }
    .dur-table, .dur-table tbody, .dur-table tr, .dur-table td { display: block; width: 100%; }
    .dur-table tr { border-top: 1px solid var(--c-line); padding: 12px 0; }
    .dur-table tr:first-child { border-top: 0; }
    .dur-table td { padding: 6px 22px; border: 0; }
    .dur-table td::before {
      content: attr(data-label); display: block;
      font-family: var(--f-mono); font-size: 10px;
      letter-spacing: 0.18em; text-transform: uppercase;
      color: var(--c-ink-soft); margin-bottom: 4px;
    }
    .process-figure__head { flex-direction: column; gap: 4px; padding: 14px 20px; }
    .process-figure__title { text-align: left; }
  }
