/* =====================================================
   reference.css, references page only
   builds on advant.css + reuses .page-hero / .filter-bar / .featured*
   ===================================================== */

/* ===== HERO STAT ROW (extends .page-hero) ===== */
.ref-hero__stats {
  margin-top: 48px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.ref-hero__stat {
  padding: 28px 24px 28px 20px;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 8px;
}
.ref-hero__stat:first-child { padding-left: 0; }
.ref-hero__stat:last-child { border-right: none; }
.ref-hero__stat .num {
  font-size: 36px; font-weight: 500; letter-spacing: -0.02em;
  color: var(--ink); line-height: 1;
}
.ref-hero__stat .num sup {
  font-family: "DM Mono", monospace;
  font-size: 14px; font-weight: 400;
  color: var(--ink-3); margin-left: 2px;
  vertical-align: top; top: 4px; position: relative;
}
.ref-hero__stat .lbl {
  font-family: "DM Mono", monospace;
  font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-3);
}
@media (max-width: 900px) {
  .ref-hero__stats { grid-template-columns: repeat(2, 1fr); }
  .ref-hero__stat { padding: 20px 16px 20px 16px; }
  .ref-hero__stat:nth-child(2n+1) { padding-left: 0; }
  .ref-hero__stat:nth-child(2) { border-right: none; }
  .ref-hero__stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* ===== PROJECT LIST (client registry) ===== */
.proj-list {
  border-top: 1px solid var(--line);
}
.proj {
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 2fr;
  gap: 48px;
  align-items: start;
  padding: 28px 24px;
  transition: background .25s ease;
  position: relative;
}
.proj:hover { background: rgba(255,255,255,0.015); }
.proj__client {
  display: flex; flex-direction: column; gap: 6px;
}
.proj__client-name {
  font-size: 19px; font-weight: 500;
  letter-spacing: -0.012em;
  line-height: 1.25;
  transition: color .2s ease;
}
.proj:hover .proj__client-name { color: var(--ink); }
.proj__client-loc {
  font-family: "DM Mono", monospace; font-size: 11px;
  color: var(--ink-3); letter-spacing: 0.04em;
}
.proj__summary {
  color: var(--ink-2);
  font-size: 14px; line-height: 1.5;
  padding-top: 4px;
  max-width: 66ch;
}

@media (max-width: 1024px) {
  .proj { grid-template-columns: 1fr; gap: 12px; padding: 24px 16px; }
  .proj__summary { padding-top: 0; }
}
@media (max-width: 720px) {
  .proj { padding: 20px 12px; }
  .proj__client-name { font-size: 17px; }
}
@media (max-width: 480px) {
  .ref-hero__stat .num { font-size: 28px; }
  .ref-hero__stat .num sup { font-size: 11px; }
  .ref-hero__stat { padding: 18px 12px; gap: 6px; }
  .proj { gap: 10px; padding: 18px 10px; }
  .proj__client-name { font-size: 15px; }
  .proj__client-loc { font-size: 10px; }
  .proj__summary { font-size: 13px; }
  .featured__scope-item .v { font-size: 14px; }
  .trust { padding: 56px 0; }
  .trust__cell { padding: 18px 14px; min-height: 96px; gap: 14px; }
  .trust__cell .name { font-size: 13px; }
  .trust__cell .meta { font-size: 9px; }
  .ref-cta { padding: 56px 0 !important; }
  .ref-cta__inner h2 { font-size: 32px; }
}

/* ===== TRUST WALL (clients) ===== */
.trust {
  padding: 100px 0;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, var(--bg) 0%, var(--bg-1) 100%);
}
.trust__head {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  margin-bottom: 64px; align-items: end;
}
.trust__head h2 { max-width: 16ch; }
.trust__head p { color: var(--ink-2); font-size: 16px; line-height: 1.55; max-width: 48ch; }
.trust__wall {
  display: grid; grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.trust__cell {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 32px 24px;
  display: flex; flex-direction: column; justify-content: space-between;
  gap: 24px;
  min-height: 140px;
  transition: background .3s ease;
}
.trust__cell:hover { background: var(--bg-2); }
.trust__cell .name {
  font-size: 16px; font-weight: 500; letter-spacing: -0.005em;
  color: var(--ink);
  line-height: 1.25;
}
.trust__cell .meta {
  font-family: "DM Mono", monospace; font-size: 10px;
  color: var(--ink-3); letter-spacing: 0.06em; text-transform: uppercase;
}
@media (max-width: 1024px) { .trust__wall { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  {
  .trust__head { grid-template-columns: 1fr; gap: 24px; }
  .trust__wall { grid-template-columns: repeat(2, 1fr); }
  .trust__cell { padding: 24px 16px; min-height: 110px; }
}

/* ===== CLOSING CTA ===== */
.ref-cta {
  padding: 120px 0;
  border-bottom: 1px solid var(--line);
}
.ref-cta__inner {
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: 80px; align-items: end;
}
.ref-cta__inner h2 {
  font-size: clamp(40px, 5vw, 76px);
  letter-spacing: -0.022em; line-height: 1;
}
.ref-cta__inner h2 em { font-style: normal; color: var(--ink-3); }
.ref-cta__actions { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.ref-cta .btn { height: 56px; padding: 0 28px; }
@media (max-width: 900px) {
  .ref-cta { padding: 80px 0; }
  .ref-cta__inner { grid-template-columns: 1fr; gap: 40px; align-items: start; }
}

/* ===== sub-filter caption row ===== */
.ref-caption {
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  font-family: "DM Mono", monospace;
  font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-3);
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
}
.ref-caption .right { color: var(--ink-2); }
.ref-caption .right strong { color: var(--ink); font-weight: 500; }
