/* ── THRIVE METRICS PAGE ── */

:root {
  --tm-live:   #C24D3F;
  --tm-stay:   #2F7D6B;
  --tm-thrive: #C8973D;
  --tm-water:  #4A8FB8;
  --tm-ink:    #15263A;
  --tm-text:   rgba(4,18,46,0.72);
  --tm-muted:  rgba(4,18,46,0.45);
  --tm-line:   rgba(4,18,46,0.10);
  --tm-ease:   cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── HERO ── */
.tm-hero {
  background:
    radial-gradient(ellipse at 78% -10%, rgba(74,143,184,0.14), transparent 52%),
    radial-gradient(ellipse at 0% 100%,  rgba(47,125,107,0.09), transparent 48%),
    var(--mist);
  border-bottom: 1px solid var(--tm-line);
  padding: 152px 48px 96px;
  position: relative;
  overflow: hidden;
}
.tm-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(4,18,46,0.04) 1px, transparent 0);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  pointer-events: none;
}
.tm-hero-inner { max-width: 1200px; margin: 0 auto; position: relative; }

.tm-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--tm-water);
  margin-bottom: 24px;
  display: flex; align-items: center; gap: 12px;
}
.tm-eyebrow::before {
  content: ''; display: block; width: 28px; height: 1px; background: var(--tm-water);
}

.tm-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(38px, 5vw, 68px);
  font-weight: 300; line-height: 1.06; letter-spacing: -0.02em;
  color: var(--tm-ink); margin: 0 0 28px;
}
.tm-hero h1 em { font-style: italic; color: var(--tm-water); }

.tm-hero-lede {
  font-size: clamp(15px, 1.35vw, 18px); font-weight: 300;
  line-height: 1.8; color: var(--tm-text); max-width: 660px;
}

.tm-quote-strip {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin-top: 64px; padding-top: 36px;
  border-top: 1px solid var(--tm-line);
}
.tm-quote-strip .q {
  font-family: var(--font-serif); font-style: italic;
  font-size: clamp(15px, 1.2vw, 17px); color: var(--tm-ink); line-height: 1.5;
}
.tm-quote-strip .q small {
  display: block; font-family: var(--font-mono); font-style: normal;
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--tm-muted); margin-top: 10px;
}

/* ── SHARED SECTION PRIMITIVES ── */
.tm-section {
  padding: 96px 48px;
  max-width: 1200px; margin: 0 auto;
}
.tm-section-full { padding: 96px 0; }
.tm-section-full .tm-section-inner { max-width: 1200px; margin: 0 auto; padding: 0 48px; }
.tm-section-bg { background: var(--white); }
.tm-section-mist { background: var(--mist); }
.tm-section-dark { background: var(--soil); }

.tm-section-head { max-width: 760px; margin-bottom: 56px; }
.tm-section-head h2 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.2vw, 46px); font-weight: 300;
  line-height: 1.1; letter-spacing: -0.02em; color: var(--tm-ink); margin: 0 0 16px;
}
.tm-section-head h2 em { font-style: italic; color: var(--tm-water); }
.tm-section-head p { font-size: 16px; color: var(--tm-text); line-height: 1.75; margin: 0; }

/* ── PROBLEM / SOLUTION ── */
.tm-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px;
}
.tm-card {
  padding: 40px; border: 1px solid var(--tm-line); border-radius: 12px;
  background: var(--white);
}
.tm-card.tm-accent { background: linear-gradient(160deg, rgba(74,143,184,0.05), var(--white)); }
.tm-card h3 {
  font-family: var(--font-serif); font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 400; color: var(--tm-ink); margin: 0 0 16px; line-height: 1.2;
}
.tm-card p { font-size: 15px; color: var(--tm-text); line-height: 1.8; margin: 0 0 14px; }
.tm-card p:last-child { margin-bottom: 0; }

/* ── THREE RIGHTS — pillar cards ── */
.tm-pillars {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 8px;
}
.tm-pillar {
  position: relative; padding: 40px 36px 44px;
  border-radius: 12px; background: var(--white);
  border: 1px solid var(--tm-line); overflow: hidden;
  transition: transform 320ms var(--tm-ease), box-shadow 320ms var(--tm-ease);
}
.tm-pillar:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -24px rgba(4,18,46,0.2); }
.tm-pillar::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--pillar-color);
}
.tm-pillar .p-num {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--pillar-color);
  margin-bottom: 20px; display: block;
}
.tm-pillar h3 {
  font-family: var(--font-serif); font-size: clamp(20px, 1.7vw, 24px);
  font-weight: 400; color: var(--tm-ink); margin: 0 0 12px; line-height: 1.2;
}
.tm-pillar h3 em { color: var(--pillar-color); font-style: italic; }
.tm-pillar .p-desc { font-size: 14px; color: var(--tm-text); line-height: 1.75; margin: 0 0 22px; }
.tm-pillar ul { list-style: none; padding: 0; margin: 0; border-top: 1px dashed var(--tm-line); padding-top: 18px; }
.tm-pillar ul li {
  padding: 5px 0; font-size: 13px; color: var(--tm-text);
  display: flex; align-items: baseline; gap: 10px;
}
.tm-pillar ul li::before { content: "›"; color: var(--pillar-color); font-weight: 700; flex-shrink: 0; }

.tm-pillar-live   { --pillar-color: var(--tm-live); }
.tm-pillar-stay   { --pillar-color: var(--tm-stay); }
.tm-pillar-thrive { --pillar-color: var(--tm-thrive); }

/* ── PYRAMID ── */
.tm-pyramid-wrap {
  max-width: 960px; margin: 0 auto;
  background: var(--white); border: 1px solid var(--tm-line); border-radius: 12px;
  padding: 48px 32px 40px; overflow: hidden;
}
.tm-pyramid-wrap svg { display: block; width: 100%; height: auto; }
.tm-pyramid-caption {
  margin-top: 24px; font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--tm-muted);
  text-align: center;
}

.tm-pyramid-notes {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin-top: 56px;
}
.tm-pyramid-notes .note {
  padding: 24px 26px; border-left: 3px solid var(--tm-line);
  background: var(--white); border-radius: 0 10px 10px 0;
}
.tm-pyramid-notes .note.is-foundation { border-left-color: var(--tm-stay); }
.tm-pyramid-notes .note.is-project    { border-left-color: var(--tm-water); }
.tm-pyramid-notes .note.is-logic      { border-left-color: var(--tm-thrive); }
.tm-pyramid-notes .note h4 {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--tm-ink); margin: 0 0 8px;
}
.tm-pyramid-notes .note p { font-size: 14px; color: var(--tm-text); line-height: 1.7; margin: 0; }

/* ── PROCESS ── */
.tm-process {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  counter-reset: step;
  border-top: 1px solid var(--tm-line); border-bottom: 1px solid var(--tm-line);
}
.tm-process .step {
  padding: 36px 28px; border-right: 1px solid var(--tm-line);
  counter-increment: step;
}
.tm-process .step:last-child { border-right: none; }
.tm-process .step::before {
  content: "0" counter(step);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  color: var(--tm-water); display: block; margin-bottom: 14px;
}
.tm-process .step h3 {
  font-family: var(--font-serif); font-size: clamp(17px, 1.4vw, 20px);
  font-weight: 400; color: var(--tm-ink); margin: 0 0 10px; line-height: 1.3;
}
.tm-process .step p { font-size: 13px; color: var(--tm-muted); line-height: 1.7; margin: 0; }

/* ── AUDIENCE ── */
.tm-audience { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.tm-audience .card {
  padding: 40px; border-radius: 12px; background: var(--white);
  border: 1px solid var(--tm-line);
  transition: border-color 240ms var(--tm-ease);
}
.tm-audience .card:hover { border-color: var(--tm-water); }
.tm-audience .card .role {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--tm-water); display: block; margin-bottom: 12px;
}
.tm-audience .card h3 {
  font-family: var(--font-serif); font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 400; color: var(--tm-ink); margin: 0 0 4px; line-height: 1.2;
}
.tm-audience .card ul { list-style: none; padding: 0; margin: 18px 0 0; }
.tm-audience .card li {
  padding: 10px 0; border-top: 1px solid var(--tm-line); font-size: 14px; color: var(--tm-text);
}
.tm-audience .card li:first-child { border-top: none; }

/* ── ORIGINS / PARTNERS ── */
.tm-origin-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start;
}
.tm-dark-head {
  font-family: var(--font-serif); font-size: clamp(26px, 2.8vw, 40px);
  font-weight: 300; line-height: 1.1; letter-spacing: -0.02em;
  color: var(--white); margin: 0 0 20px;
}
.tm-dark-head em { font-style: italic; color: var(--sand); }
.tm-dark-eyebrow {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(200,222,255,0.4);
  display: block; margin-bottom: 16px;
}
.tm-dark-body { font-size: 15px; color: rgba(200,222,255,0.6); line-height: 1.8; margin: 0 0 14px; }
.tm-dark-body:last-child { margin-bottom: 0; }

.tm-stat-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin-top: 32px; padding-top: 28px;
  border-top: 1px solid rgba(200,222,255,0.12);
}
.tm-stat .num {
  font-family: var(--font-serif); font-size: 38px; color: var(--white);
  font-weight: 300; line-height: 1;
}
.tm-stat .label {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: rgba(200,222,255,0.4); margin-top: 8px; display: block;
}

.tm-partners { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.tm-chip {
  padding: 8px 16px; border-radius: 999px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(200,222,255,0.14);
  font-size: 12px; color: rgba(200,222,255,0.75); letter-spacing: 0.01em;
}

/* ── CTA ── */
.tm-cta {
  padding: 96px 48px; text-align: center;
  background:
    radial-gradient(ellipse at 100% 0%,   rgba(74,143,184,0.12), transparent 50%),
    radial-gradient(ellipse at 0%   100%, rgba(47,125,107,0.10), transparent 50%),
    var(--mist);
}
.tm-cta h2 {
  font-family: var(--font-serif); font-size: clamp(28px, 3vw, 44px);
  font-weight: 300; line-height: 1.1; letter-spacing: -0.02em;
  color: var(--tm-ink); margin: 0 auto 18px; max-width: 700px;
}
.tm-cta h2 em { font-style: italic; color: var(--tm-water); }
.tm-cta p { font-size: 16px; color: var(--tm-text); max-width: 560px; margin: 0 auto 36px; line-height: 1.8; }
.tm-btn-row { display: inline-flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.tm-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 4px;
  font-family: var(--font-sans); font-weight: 600; font-size: 14px;
  transition: all 200ms var(--tm-ease); text-decoration: none; border: 1px solid transparent;
}
.tm-btn-primary { background: var(--soil); color: var(--white); }
.tm-btn-primary:hover { background: var(--blue-deep); color: var(--white); transform: translateY(-1px); }
.tm-btn-ghost { background: transparent; color: var(--soil); border-color: var(--soil); }
.tm-btn-ghost:hover { background: var(--soil); color: var(--white); }

/* ── FOOTER (same as other pages) ── */
footer { background: var(--mist); border-top: 1px solid rgba(4,18,46,0.07); }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding: 64px 48px; max-width: 1400px; margin: 0 auto; }
.footer-brand { margin-bottom: 16px; }
.footer-tagline { font-size: 13px; font-weight: 300; color: rgba(4,18,46,0.5); line-height: 1.6; max-width: 280px; margin-top: 12px; }
.footer-col-title { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(4,18,46,0.4); margin-bottom: 16px; }
.footer-links { list-style: none; }
.footer-links li + li { margin-top: 10px; }
.footer-links a { font-size: 13px; font-weight: 300; color: rgba(4,18,46,0.55); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--soil); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 20px 48px; border-top: 1px solid rgba(4,18,46,0.06); max-width: 1400px; margin: 0 auto; }
.footer-copy { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.05em; color: rgba(4,18,46,0.3); }
.footer-indigenous { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.05em; color: rgba(4,18,46,0.25); }

/* ── REVEAL ON SCROLL ── */
@media (prefers-reduced-motion: no-preference) {
  .tm-reveal { opacity: 0; transform: translateY(18px); transition: opacity 640ms var(--tm-ease), transform 640ms var(--tm-ease); }
  .tm-reveal.visible { opacity: 1; transform: none; }
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .tm-hero, .tm-section, .tm-cta { padding-left: 32px; padding-right: 32px; }
  .tm-section-full .tm-section-inner { padding: 0 32px; }
  .tm-origin-grid { gap: 40px; }
}
@media (max-width: 880px) {
  .tm-hero, .tm-section, .tm-cta { padding-left: 24px; padding-right: 24px; }
  .tm-section-full .tm-section-inner { padding: 0 24px; }
  .tm-split { grid-template-columns: 1fr; }
  .tm-pillars { grid-template-columns: 1fr; }
  .tm-process { grid-template-columns: 1fr 1fr; }
  .tm-audience { grid-template-columns: 1fr; }
  .tm-origin-grid { grid-template-columns: 1fr; gap: 40px; }
  .tm-pyramid-notes { grid-template-columns: 1fr; gap: 14px; }
  .tm-stat-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .tm-hero { padding-top: 110px; padding-bottom: 64px; }
  .tm-section { padding-top: 64px; padding-bottom: 64px; }
  .tm-section-full { padding: 64px 0; }
  .tm-cta { padding-top: 64px; padding-bottom: 64px; }
  .tm-quote-strip { grid-template-columns: 1fr; gap: 24px; }
  .tm-process { grid-template-columns: 1fr; }
  .tm-process .step { border-right: none; border-bottom: 1px solid var(--tm-line); }
  .tm-process .step:last-child { border-bottom: none; }
  .footer-top { grid-template-columns: 1fr; padding: 48px 24px; }
  .footer-bottom { flex-direction: column; gap: 12px; padding: 20px 24px; text-align: center; }
}
