/* =========================================================================
   Problem tri-grid
   ========================================================================= */
.tri-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.tri-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  transition:
    transform 0.5s var(--spring),
    box-shadow 0.5s,
    border-color 0.4s;
}
.tri-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-md);
}

/* Status chip (top-right) — states the verdict at a glance */
.tri-status {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.tri-status .material-symbols-outlined {
  font-size: 1.05rem;
}
.tri-status.bad {
  background: var(--ink-100);
  color: var(--ink-500);
  border: 1px solid var(--ink-300);
}
.tri-status.good {
  background: var(--green-500);
  color: #fff;
  box-shadow: 0 6px 14px -4px rgba(20, 117, 60, 0.5);
}

/* Icon tile */
.tri-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--ink-100);
  color: var(--ink-500);
  margin-bottom: 18px;
  transition: transform 0.4s var(--spring);
}
.tri-icon.good {
  background: var(--green-50);
  color: var(--green-600);
}
.tri-card:hover .tri-icon {
  transform: scale(1.08) rotate(-2deg);
}

/* Tag */
.tri-tag {
  align-self: flex-start;
  font-family: var(--f-mono);
  font-size: 0.66rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-mut);
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 99px;
  margin-bottom: 16px;
}
.tri-tag.good {
  color: #fff !important;
  background: var(--green-600);
  border-color: var(--green-600) !important;
  box-shadow: 0 4px 10px rgba(20, 117, 60, 0.25);
}
.tri-card h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}
.tri-card p {
  font-size: 0.96rem;
  line-height: 1.6;
  color: var(--text-body);
  flex: 1;
}

/* Good (solution) card — the hero of the trio */
.tri-card.good {
  border-color: var(--green-200);
  background: linear-gradient(170deg, #fff 0%, var(--green-50) 120%);
  box-shadow: 0 20px 44px -18px rgba(20, 117, 60, 0.3);
}
.tri-card.good:hover {
  border-color: var(--green-300);
  box-shadow: 0 26px 54px -18px rgba(20, 117, 60, 0.36);
}

/* Meter — value shown; colour carries the verdict */
.tri-meter {
  margin-top: 24px;
}
.tri-meter span {
  display: block;
  height: 6px;
  border-radius: 99px;
  background: var(--ink-200);
  position: relative;
  overflow: hidden;
}
.tri-meter span::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--v);
  border-radius: 99px;
  background: var(--ink-400);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.1s var(--spring);
}
.tri-card.in .tri-meter span::after {
  transform: scaleX(1);
}
.tri-meter.warn-red span::after {
  background: linear-gradient(90deg, var(--brand-400), var(--brand));
}
.tri-meter.warn-amber span::after {
  background: linear-gradient(90deg, #e6b25a, #d98a2b);
}
.tri-meter.good span::after {
  background: linear-gradient(90deg, var(--green-300), var(--green-600));
}
.tri-meter-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 8px;
}
.tri-meter-foot small {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-mut);
}
.tri-meter-foot b {
  font-size: 0.82rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text-mut);
}
.tri-meter.warn-red .tri-meter-foot b {
  color: var(--brand);
}
.tri-meter.warn-amber .tri-meter-foot b {
  color: #c07d1f;
}
.tri-meter.good .tri-meter-foot b {
  color: var(--green-600);
}


/* =========================================================================
   Belief / vision
   ========================================================================= */
.belief {
  background: var(--bg-soft);
  text-align: left;
  position: relative;
  overflow: hidden;
}
.belief::before {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(166, 2, 18, 0.05), transparent 68%);
  pointer-events: none;
}
.belief-inner {
  max-width: 1080px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.belief-lead {
  position: relative;
}
.belief-mark {
  position: absolute;
  top: -46px;
  left: -10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 8rem;
  line-height: 1;
  color: var(--brand);
  opacity: 0.08;
  pointer-events: none;
  z-index: -1;
}
.belief-statement {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  line-height: 1.18;
  margin: 6px 0 0;
  letter-spacing: -0.02em;
}
.belief-statement em {
  color: var(--brand);
  font-style: normal;
}
.belief-detail {
  border-left: 3px solid var(--brand-200);
  padding-left: 28px;
}
.belief-body {
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  color: var(--text-body);
  margin: 0 0 22px;
}
.belief-punch {
  font-family: var(--f-sans);
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  color: var(--text);
  font-weight: 500;
  line-height: 1.3;
}
.belief-punch strong {
  background: linear-gradient(120deg, var(--brand), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
}
@media (max-width: 900px) {
  .belief-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .belief-detail {
    padding-left: 20px;
  }
}
/* Philosophy as a dark navy band (red-on-navy ambient from .section.dark) */
.belief.dark .belief-mark {
  color: var(--gold-200);
  opacity: 0.22;
}
.belief.dark .belief-detail {
  border-left-color: rgba(235, 211, 171, 0.5);
}
.belief.dark .belief-body {
  color: var(--dk-body);
}
.belief.dark .belief-punch {
  color: var(--dk-text);
}
.belief.dark .belief-punch strong {
  background: linear-gradient(120deg, var(--brand-400), var(--gold-200));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}


/* =========================================================================
   Values
   ========================================================================= */
.val-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.val-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px 24px;
  transition:
    transform 0.5s var(--spring),
    box-shadow 0.5s,
    border-color 0.4s;
  position: relative;
  overflow: hidden;
}
.val-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-md);
  border-color: var(--accent-200);
}
.val-ic {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  margin-bottom: 18px;
  color: var(--ink-800);
  transition:
    transform 0.4s var(--spring),
    box-shadow 0.4s;
}
.val-card:hover .val-ic {
  transform: scale(1.1) rotate(-3deg);
  box-shadow: 0 8px 16px -4px rgba(15, 23, 42, 0.1);
}
.tint-navy {
  background: linear-gradient(135deg, var(--accent-50), #fff);
  color: var(--accent-600);
  border: 1px solid var(--accent-100);
}
.tint-green {
  background: linear-gradient(135deg, var(--green-50), #fff);
  color: var(--green-600);
  border: 1px solid var(--green-100);
}
.val-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  font-weight: 700;
}
.val-card p {
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.55;
}


/* =========================================================================
   Dark sections
   ========================================================================= */
.section.dark {
  background: var(--dk-bg);
  color: var(--dk-body);
  overflow: hidden;
}
.section.dark::before {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  top: -250px;
  right: -180px;
  background: radial-gradient(circle, rgba(166, 2, 18, 0.14), transparent 66%);
  filter: blur(30px);
  pointer-events: none;
}
.section.dark h2 {
  color: var(--dk-text);
}
.section.dark .kicker {
  color: var(--dk-mut);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.14);
}
.section.dark .lead {
  color: var(--dk-body);
}
.section.dark strong {
  color: var(--dk-text);
}
.section.dark .fine {
  color: #cbd5e1;
}

/* Paradigm */
.paradigm-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.paradigm-copy h2 {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
}
.paradigm-copy .ul::after {
  background: var(--green);
  opacity: 0.5;
}
.path {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 24px 0 18px;
}
.path-node {
  font-family: var(--f-sans);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--dk-text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 6px 14px;
  border-radius: 99px;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.path-node:hover {
  background: rgba(166, 2, 18, 0.25);
  border-color: rgba(166, 2, 18, 0.5);
  color: #fff;
}
.path-node--highlight {
  background: linear-gradient(
    135deg,
    rgba(27, 147, 76, 0.45),
    rgba(27, 147, 76, 0.18)
  );
  border-color: rgba(27, 147, 76, 0.65);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 0 16px rgba(27, 147, 76, 0.4);
}
.path-arrow {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.88rem;
  font-weight: 600;
}
.ledger {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--dk-line);
  border-radius: var(--r-lg);
  padding: 20px;
  box-shadow: var(--sh-lg);
  backdrop-filter: blur(8px);
}
.ledger-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--dk-line);
  font-family: var(--f-mono);
  font-size: 0.78rem;
  color: var(--dk-text);
}
.ledger-tag {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dk-mut);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 3px 9px;
  border-radius: 99px;
}
.ledger-rows {
  display: flex;
  flex-direction: column;
}
.ledger-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 4px;
  border-bottom: 1px dashed var(--dk-line);
  font-family: var(--f-mono);
  font-size: 0.7rem;
  font-variant-numeric: tabular-nums;
}
.ledger-row:last-child {
  border-bottom: none;
}
.ledger-row .seq {
  color: var(--dk-mut);
}
.ledger-row .evt {
  color: var(--dk-text);
}
.ledger-row .amt {
  color: var(--brand-300);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.ledger-row.new {
  animation: ledgerIn 0.5s var(--spring);
}
@keyframes ledgerIn {
  from {
    opacity: 0;
    transform: translateX(-12px);
    background: rgba(166, 2, 18, 0.12);
  }
}
