/* Career Guidance — Moinee blue theme (aligned with STEM / ILC v2) */

.cg-page {
  --cg-deep: #003D4D;
  --cg-teal: #0077B6;
  --cg-teal-dark: #005A8C;
  --cg-indigo: #4338CA;
  --cg-surface: #F6F8FA;
  --cg-stone: #EEF2F6;
  --cg-grid: rgba(0, 119, 182, 0.08);
  --cg-shadow: 0 4px 28px rgba(0, 45, 69, 0.07);
  --cg-shadow-lg: 0 24px 56px rgba(0, 45, 69, 0.12);
  background: var(--cg-surface);
}

@keyframes cg-path-flow {
  to { stroke-dashoffset: -32; }
}

@keyframes cg-node-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 12px rgba(125, 211, 252, 0.55);
  }
  50% {
    transform: scale(1.3);
    box-shadow: 0 0 20px rgba(165, 180, 252, 0.85);
  }
}

@keyframes cg-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes cg-card-in {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes cg-slide-in {
  from { opacity: 0; transform: translateX(-18px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes cg-slide-in-right {
  from { opacity: 0; transform: translateX(18px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes cg-mesh-glow {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 0.85; }
}

@keyframes cg-mark-in {
  0% { opacity: 0; transform: scale(0.6); }
  70% { transform: scale(1.08); }
  100% { opacity: 1; transform: scale(1); }
}

/* ── Hero ── */
.cg-page .v2-hero {
  min-height: auto;
  padding: 120px 0 80px;
}

.cg-page .v2-hero__mesh {
  background:
    radial-gradient(ellipse 58% 48% at 78% 18%, rgba(67, 56, 202, 0.18) 0%, transparent 58%),
    radial-gradient(ellipse 42% 42% at 12% 88%, rgba(0, 61, 77, 0.35) 0%, transparent 52%),
    linear-gradient(112deg, #001F2E 0%, var(--cg-teal-dark) 42%, var(--cg-teal) 100%);
}

.cg-page .v2-hero__mesh::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--cg-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--cg-grid) 1px, transparent 1px);
  background-size: 32px 32px;
  animation: cg-mesh-glow 8s ease-in-out infinite;
  pointer-events: none;
}

.cg-page .v2-hero h1 {
  font-size: clamp(1.85rem, 4.2vw, 3.2rem);
  line-height: 1.12;
}

.cg-page .v2-hero h1 em {
  color: #A5B4FC;
}

.cg-page .v2-hero__tagline {
  margin: 0 0 16px;
  max-width: 38rem;
  font-family: var(--font-display);
  font-size: clamp(1.02rem, 2vw, 1.2rem);
  font-weight: 600;
  line-height: 1.48;
  color: rgba(255, 255, 255, 0.95);
}

.cg-page .v2-hero__lead {
  max-width: 38rem;
  font-size: 1rem;
  line-height: 1.72;
  margin-bottom: 14px;
}

.cg-page .v2-hero__lead + .v2-hero__lead {
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.96rem;
}

.cg-hero-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
}

.cg-hero-breadcrumb a {
  color: rgba(255, 255, 255, 0.88);
  transition: color 0.2s;
}

.cg-hero-breadcrumb a:hover { color: #fff; }
.cg-hero-breadcrumb span { opacity: 0.45; }

/* Hero photo collage */
.cg-hero-collage {
  position: relative;
  width: min(500px, 100%);
  max-width: 500px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 12px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 24px 56px rgba(0, 35, 55, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.cg-hero-collage::before {
  content: "";
  position: absolute;
  inset: -20px -12px auto auto;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(165, 180, 252, 0.35) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.cg-hero-collage__item {
  position: relative;
  z-index: 1;
  margin: 0;
  aspect-ratio: 3 / 4;
  min-height: 155px;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 10px 28px rgba(0, 35, 55, 0.22);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.cg-hero-collage__item:nth-child(1) { transform: rotate(-1deg); }
.cg-hero-collage__item:nth-child(2) { transform: rotate(1.2deg); }
.cg-hero-collage__item:nth-child(3) { transform: rotate(-0.8deg); }

.cg-hero-collage__item:hover {
  transform: translateY(-4px) rotate(0deg);
  box-shadow: 0 18px 36px rgba(0, 35, 55, 0.3);
  z-index: 2;
}

.cg-hero-collage__item img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.cg-hero-collage__item:hover img {
  transform: scale(1.05);
}

.cg-hero-collage__badge {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 3;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(67, 56, 202, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 8px 20px rgba(0, 35, 55, 0.28);
}

/* Photo rows & feature images */
.cg-photo-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
  width: 100%;
  align-items: stretch;
}

.cg-photo-row--impact {
  margin-top: 0;
  margin-bottom: 24px;
}

.cg-photo-row__item {
  margin: 0;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--cg-shadow);
  aspect-ratio: 4 / 3;
}

.cg-photo-row--impact .cg-photo-row__item {
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}

.cg-photo-row__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.cg-photo-row__item:hover img {
  transform: scale(1.04);
}

.cg-feature-photo {
  margin: 24px auto 0;
  width: min(100%, 960px);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--cg-shadow-lg);
  aspect-ratio: 21 / 9;
}

.cg-feature-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* Pathway visual (legacy) */
.cg-hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 340px;
}

.cg-hero-visual__frame {
  position: relative;
  width: min(400px, 100%);
  aspect-ratio: 1;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(rgba(125, 211, 252, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 211, 252, 0.06) 1px, transparent 1px),
    rgba(0, 35, 55, 0.35);
  background-size: 24px 24px;
  box-shadow: 0 32px 72px rgba(0, 20, 40, 0.35);
  overflow: hidden;
}

.cg-hero-visual__frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 62%, rgba(0, 119, 182, 0.16), transparent 68%);
  pointer-events: none;
}

.cg-hero-visual__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.cg-hero-visual__path {
  fill: none;
  stroke: rgba(165, 180, 252, 0.45);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 8 8;
  animation: cg-path-flow 4s linear infinite;
}

.cg-hero-visual__path:nth-child(2) { animation-delay: 0.6s; }
.cg-hero-visual__path:nth-child(3) { animation-delay: 1.2s; }
.cg-hero-visual__path:nth-child(4) { animation-delay: 1.8s; }
.cg-hero-visual__path:nth-child(5) { animation-delay: 2.4s; }

.cg-hero-visual__nodes {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.cg-hero-visual__core {
  position: relative;
  z-index: 2;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
  box-shadow: 0 16px 48px rgba(0, 35, 55, 0.28);
  animation: cg-float 5s ease-in-out infinite;
}

.cg-hero-visual__core strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--cg-deep);
  line-height: 1.15;
}

.cg-hero-visual__core small {
  margin-top: 4px;
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cg-teal);
  line-height: 1.3;
}

.cg-hero-visual__node {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #A5B4FC;
  z-index: 1;
  animation: cg-node-pulse 2.8s ease-in-out infinite;
}

.cg-hero-visual__node--1 { top: 14%; left: 50%; transform: translateX(-50%); animation-delay: 0s; }
.cg-hero-visual__node--2 { top: 28%; right: 14%; animation-delay: 0.4s; }
.cg-hero-visual__node--3 { top: 28%; left: 14%; animation-delay: 0.8s; }
.cg-hero-visual__node--4 { bottom: 18%; right: 22%; animation-delay: 1.2s; }
.cg-hero-visual__node--5 { bottom: 18%; left: 22%; animation-delay: 1.6s; }

.cg-hero-visual__label {
  position: absolute;
  z-index: 3;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(0, 119, 182, 0.92);
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 55, 90, 0.3);
  animation: cg-float 4.5s ease-in-out infinite;
}

.cg-hero-visual__label--1 { top: 8%; left: 50%; transform: translateX(-50%); animation-delay: 0s; }
.cg-hero-visual__label--2 { top: 22%; right: 4%; animation-delay: 0.5s; }
.cg-hero-visual__label--3 { top: 22%; left: 4%; animation-delay: 1s; }
.cg-hero-visual__label--4 { bottom: 10%; right: 10%; animation-delay: 1.5s; }
.cg-hero-visual__label--5 { bottom: 10%; left: 10%; animation-delay: 2s; }

/* ── Jump links ── */
.cg-jumplinks {
  position: sticky;
  top: 64px;
  z-index: 40;
  background: rgba(246, 248, 250, 0.94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
}

.cg-jumplinks__inner {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 10px 0;
  scrollbar-width: none;
}

.cg-jumplinks__inner::-webkit-scrollbar { display: none; }

.cg-jumplinks a {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-bright);
  border: 1px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.cg-jumplinks a:hover {
  background: #fff;
  color: var(--cg-teal);
  border-color: rgba(0, 119, 182, 0.15);
  transform: translateY(-1px);
}

/* ── Sections ── */
.cg-page .cg-section {
  padding: 72px 0;
}

.cg-section-head {
  max-width: none;
  margin-bottom: 24px;
}

.cg-section-head .v2-section__intro {
  margin-bottom: 0;
  max-width: none;
  font-size: 1.02rem;
  line-height: 1.72;
}

.cg-split {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.cg-split__col {
  padding: 32px 28px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--cg-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cg-split__col:hover {
  transform: translateY(-3px);
  box-shadow: var(--cg-shadow-lg);
}

.cg-split__col--challenge { border-top: 3px solid #94A3B8; }
.cg-split__col--approach { border-top: 3px solid var(--cg-teal); }

.cg-split.v2-reveal.is-in .cg-split__col--challenge {
  animation: cg-slide-in 0.65s ease 0.1s both;
}

.cg-split.v2-reveal.is-in .cg-split__col--approach {
  animation: cg-slide-in-right 0.65s ease 0.25s both;
}

.cg-split__label {
  display: block;
  margin-bottom: 12px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748B;
}

.cg-split__col--approach .cg-split__label { color: var(--cg-teal); }

.cg-split__col h3 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--heading);
}

.cg-split__col p {
  margin: 0;
  font-size: 0.96rem;
  color: var(--text-bright);
  line-height: 1.72;
}

.cg-split__col p + p { margin-top: 12px; }

/* Scale counters */
.cg-scale-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.cg-scale-card {
  padding: 28px 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--cg-shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.cg-scale-grid.v2-reveal.is-in .cg-scale-card {
  animation: cg-card-in 0.55s ease both;
}

.cg-scale-grid.v2-reveal.is-in .cg-scale-card:nth-child(1) { animation-delay: 0.05s; }
.cg-scale-grid.v2-reveal.is-in .cg-scale-card:nth-child(2) { animation-delay: 0.15s; }
.cg-scale-grid.v2-reveal.is-in .cg-scale-card:nth-child(3) { animation-delay: 0.25s; }
.cg-scale-grid.v2-reveal.is-in .cg-scale-card:nth-child(4) { animation-delay: 0.35s; }

.cg-scale-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--cg-shadow-lg);
  border-color: rgba(0, 119, 182, 0.2);
}

.cg-scale-card__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.8vw, 2.2rem);
  font-weight: 800;
  color: var(--cg-teal);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.cg-scale-card:nth-child(2) .cg-scale-card__num { color: var(--cg-deep); }
.cg-scale-card:nth-child(4) .cg-scale-card__num { color: #0369A1; }

.cg-scale-card__lbl {
  display: block;
  margin-top: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--heading);
  line-height: 1.38;
}

.cg-scale-card__sub {
  display: block;
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--text);
  line-height: 1.5;
}

/* Intervention orbit cards */
.cg-orbit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 28px;
  padding-top: 16px;
  max-width: 920px;
  margin: 0 auto;
}

.cg-orbit-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 52px 22px 22px;
  background: linear-gradient(180deg, #fff 0%, #f8fbfd 100%);
  border: 1px solid var(--border);
  border-radius: 999px 999px 32px 32px;
  box-shadow: var(--cg-shadow);
  transition: transform 0.32s ease, box-shadow 0.32s ease, border-color 0.32s ease;
}

.cg-orbit-card::after {
  content: "";
  position: absolute;
  inset: 10px 10px auto;
  height: 120px;
  border-radius: 999px 999px 50% 50%;
  background: radial-gradient(ellipse at 50% 0%, rgba(67, 56, 202, 0.06) 0%, transparent 72%);
  pointer-events: none;
}

.cg-orbit-grid.v2-reveal.is-in .cg-orbit-card {
  animation: cg-card-in 0.55s ease both;
}

.cg-orbit-grid.v2-reveal.is-in .cg-orbit-card:nth-child(1) { animation-delay: 0.08s; }
.cg-orbit-grid.v2-reveal.is-in .cg-orbit-card:nth-child(2) { animation-delay: 0.2s; }

.cg-orbit-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--cg-shadow-lg);
  border-color: rgba(0, 119, 182, 0.22);
}

.cg-orbit-card__circle {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  width: 76px;
  height: 76px;
  z-index: 2;
}

.cg-orbit-card__ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px dashed rgba(0, 119, 182, 0.28);
  transition: transform 0.75s linear;
}

.cg-orbit-card:hover .cg-orbit-card__ring {
  transform: rotate(24deg);
}

.cg-orbit-card__circle > i {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.35rem;
  color: #fff;
  background: var(--cg-accent, var(--cg-teal));
  border: 4px solid #fff;
  box-shadow: 0 10px 24px rgba(0, 45, 69, 0.18);
}

.cg-orbit-card__index {
  position: absolute;
  right: -4px;
  bottom: -2px;
  z-index: 3;
  min-width: 28px;
  height: 28px;
  padding: 0 6px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--cg-accent, var(--cg-teal));
  background: #fff;
  border: 2px solid currentColor;
  box-shadow: 0 4px 12px rgba(0, 45, 69, 0.12);
}

.cg-orbit-card[data-cat="counseling"] { --cg-accent: #0077B6; }
.cg-orbit-card[data-cat="readiness"] { --cg-accent: #4338CA; }

.cg-orbit-card[data-cat="counseling"] .cg-orbit-card__ring { border-color: rgba(0, 119, 182, 0.32); }
.cg-orbit-card[data-cat="readiness"] .cg-orbit-card__ring { border-color: rgba(67, 56, 202, 0.32); }

.cg-orbit-card__tag {
  position: relative;
  z-index: 1;
  display: inline-block;
  margin-bottom: 10px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cg-accent, var(--cg-teal));
  background: rgba(0, 119, 182, 0.08);
}

.cg-orbit-card[data-cat="readiness"] .cg-orbit-card__tag { background: rgba(67, 56, 202, 0.1); }

.cg-orbit-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  font-weight: 700;
  color: var(--heading);
  line-height: 1.35;
}

.cg-orbit-card > p {
  position: relative;
  z-index: 1;
  margin: 0 0 14px;
  font-size: 0.86rem;
  color: var(--text-bright);
  line-height: 1.58;
}

.cg-orbit-card__meta {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-top: auto;
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px dashed var(--border);
  text-align: left;
}

.cg-orbit-card__meta p {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.5;
  color: var(--text);
}

.cg-orbit-card__meta p + p { margin-top: 8px; }

.cg-orbit-card__meta strong {
  display: inline-flex;
  align-items: center;
  margin-right: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cg-accent, var(--cg-teal));
  background: rgba(0, 119, 182, 0.08);
}

.cg-orbit-card[data-cat="readiness"] .cg-orbit-card__meta strong { background: rgba(67, 56, 202, 0.1); }

/* Legacy intervention cards */
.cg-interventions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.cg-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--cg-shadow);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.cg-interventions.v2-reveal.is-in .cg-card {
  animation: cg-card-in 0.55s ease both;
}

.cg-interventions.v2-reveal.is-in .cg-card:nth-child(1) { animation-delay: 0.08s; }
.cg-interventions.v2-reveal.is-in .cg-card:nth-child(2) { animation-delay: 0.2s; }

.cg-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--cg-shadow-lg);
  border-color: rgba(0, 119, 182, 0.18);
}

.cg-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 18px;
  background: var(--cg-stone);
  border-bottom: 1px solid var(--border);
}

.cg-card[data-cat="counseling"] .cg-card__head { background: #EBF5FB; }
.cg-card[data-cat="readiness"] .cg-card__head { background: #EEF2FF; }

.cg-card__index {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--cg-teal);
  letter-spacing: 0.06em;
}

.cg-card__tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
  text-align: right;
}

.cg-card__body {
  padding: 18px 18px 0;
  flex: 1;
}

.cg-card h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--heading);
  line-height: 1.38;
}

.cg-card__body > p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-bright);
  line-height: 1.65;
}

.cg-card__foot {
  margin-top: auto;
  padding: 16px 18px 18px;
  border-top: 1px dashed var(--border);
}

.cg-card__foot p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--text);
}

.cg-card__foot p + p { margin-top: 6px; }

.cg-card__foot strong {
  font-weight: 700;
  color: var(--heading);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Ground-level impact — title-led outcomes */
.cg-page .cg-section--impact {
  background: linear-gradient(165deg, var(--cg-deep) 0%, #004D6B 55%, var(--cg-teal-dark) 100%);
  color: #fff;
}

.cg-page .cg-section--impact .v2-section__eyebrow { color: #A5B4FC; }
.cg-page .cg-section--impact .v2-section__title { color: #fff; }
.cg-page .cg-section--impact .v2-section__intro { color: rgba(255, 255, 255, 0.82); }

.cg-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.cg-kpi {
  padding: 28px 22px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(8px);
  transition: background 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.cg-kpi-grid.v2-reveal.is-in .cg-kpi {
  animation: cg-card-in 0.55s ease both;
}

.cg-kpi-grid.v2-reveal.is-in .cg-kpi:nth-child(1) { animation-delay: 0.05s; }
.cg-kpi-grid.v2-reveal.is-in .cg-kpi:nth-child(2) { animation-delay: 0.15s; }
.cg-kpi-grid.v2-reveal.is-in .cg-kpi:nth-child(3) { animation-delay: 0.25s; }
.cg-kpi-grid.v2-reveal.is-in .cg-kpi:nth-child(4) { animation-delay: 0.35s; }

.cg-kpi-grid.v2-reveal.is-in .cg-kpi__mark {
  animation: cg-mark-in 0.65s cubic-bezier(0.34, 1.4, 0.64, 1) both;
}

.cg-kpi-grid.v2-reveal.is-in .cg-kpi:nth-child(1) .cg-kpi__mark { animation-delay: 0.15s; }
.cg-kpi-grid.v2-reveal.is-in .cg-kpi:nth-child(2) .cg-kpi__mark { animation-delay: 0.3s; }
.cg-kpi-grid.v2-reveal.is-in .cg-kpi:nth-child(3) .cg-kpi__mark { animation-delay: 0.45s; }
.cg-kpi-grid.v2-reveal.is-in .cg-kpi:nth-child(4) .cg-kpi__mark { animation-delay: 0.6s; }

.cg-kpi:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-3px);
}

.cg-kpi__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--cg-deep);
  background: #A5B4FC;
  line-height: 1;
}

.cg-kpi:nth-child(2) .cg-kpi__mark { background: #7DD3FC; }
.cg-kpi:nth-child(3) .cg-kpi__mark { background: #BAE6FD; color: #003D4D; }
.cg-kpi:nth-child(4) .cg-kpi__mark { background: #E0E7FF; color: #3730A3; }

.cg-kpi h4 {
  margin: 14px 0 8px;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
}

.cg-kpi p {
  margin: 0;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.58;
}

/* CTA */
.cg-section--cta { padding-bottom: 88px !important; }

.cg-cta {
  position: relative;
  text-align: center;
  padding: 52px 40px;
  border-radius: calc(var(--radius) + 4px);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--cg-shadow-lg);
  overflow: hidden;
}

.cg-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--cg-deep), var(--cg-teal));
}

.cg-cta h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--heading);
}

.cg-cta p {
  margin: 0 auto 28px;
  max-width: 580px;
  font-size: 1.02rem;
  color: var(--text-bright);
  line-height: 1.68;
}

.cg-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.cg-cta .v2-btn--primary {
  background: var(--cg-teal);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 119, 182, 0.3);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.cg-cta .v2-btn--primary:hover {
  background: var(--cg-deep);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 61, 77, 0.35);
}

.cg-cta .v2-btn--outline {
  background: #fff;
  color: var(--heading);
  border: 1px solid var(--border);
  transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.2s;
}

.cg-cta .v2-btn--outline:hover {
  border-color: var(--cg-teal);
  color: var(--cg-teal);
  background: #EBF5FB;
  transform: translateY(-2px);
}

.cg-page .v2-section--alt {
  background: var(--cg-stone);
}

.cg-page .v2-section__eyebrow {
  color: var(--cg-teal);
}

@media (max-width: 1024px) {
  .cg-scale-grid { grid-template-columns: repeat(2, 1fr); }
  .cg-kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .cg-split { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .cg-page .v2-hero { padding: 108px 0 56px; }
  .cg-page .v2-hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .cg-hero-collage {
    max-width: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .cg-hero-collage__item {
    min-height: 110px;
    aspect-ratio: 4 / 5;
  }
  .cg-hero-collage__item:nth-child(n) { transform: none; }
  .cg-photo-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .cg-photo-row__item { aspect-ratio: 16 / 10; }
  .cg-feature-photo { aspect-ratio: 16 / 10; }
  .cg-page .cg-section { padding: 56px 0; }
  .cg-scale-grid,
  .cg-orbit-grid,
  .cg-interventions,
  .cg-kpi-grid { grid-template-columns: 1fr; }
  .cg-cta { padding: 36px 22px; }
  .cg-jumplinks { top: 56px; }
  .cg-cta__actions .v2-btn { width: 100%; justify-content: center; }
  .cg-hero-visual__label { font-size: 0.5rem; padding: 4px 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .cg-hero-visual__path,
  .cg-hero-visual__node,
  .cg-hero-visual__core,
  .cg-hero-visual__label,
  .cg-page .v2-hero__mesh::after,
  .cg-split.v2-reveal.is-in .cg-split__col,
  .cg-scale-grid.v2-reveal.is-in .cg-scale-card,
  .cg-interventions.v2-reveal.is-in .cg-card,
  .cg-orbit-grid.v2-reveal.is-in .cg-orbit-card,
  .cg-kpi-grid.v2-reveal.is-in .cg-kpi,
  .cg-kpi-grid.v2-reveal.is-in .cg-kpi__mark {
    animation: none !important;
  }

  .cg-scale-card:hover,
  .cg-card:hover,
  .cg-orbit-card:hover,
  .cg-kpi:hover,
  .cg-split__col:hover,
  .cg-cta .v2-btn--primary:hover,
  .cg-cta .v2-btn--outline:hover,
  .cg-hero-collage__item:hover,
  .cg-photo-row__item:hover img {
    transform: none;
  }

  .cg-hero-collage__item:hover img {
    transform: none;
  }

  .cg-orbit-card:hover .cg-orbit-card__ring {
    transform: none;
  }
}
