/* ==========================================================================
   IMPACT PAGE — COMPLETE COMPONENT STYLES
   Fixes all missing icon boxes, flow cards, equiv cards, compliance grid,
   pillar cards, CTA section, and adds premium animations
   ========================================================================== */

/* --------------------------------------------------------------------------
   IMPACT CARD ICON BOX (Critical Fix — was rendering SVGs at full size black)
   -------------------------------------------------------------------------- */
.impact-card-icon-box {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 14px;
    background: #dcfce7;
    color: #166534;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.impact-card-icon-box svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.impact-card-icon-box--large {
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: 16px;
}

.impact-card-icon-box--large svg {
    width: 26px;
    height: 26px;
}

/* Color variants */
.impact-card-icon-box--emerald {
    background: rgba(16, 185, 129, 0.14);
    color: #059669;
}

.impact-card-icon-box--lime {
    background: rgba(134, 239, 172, 0.18);
    color: #166534;
}

.impact-card-icon-box--amber {
    background: rgba(245, 158, 11, 0.14);
    color: #b45309;
}

.impact-card-icon-box--cyan {
    background: rgba(6, 182, 212, 0.14);
    color: #0891b2;
}

/* Dark section icon boxes (carbon/equivalency) */
.rebrand-section--ink .impact-card-icon-box {
    background: rgba(134, 239, 172, 0.15);
    color: #86efac;
}

.rebrand-section--ink .impact-card-icon-box--emerald {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.rebrand-section--ink .impact-card-icon-box--lime {
    background: rgba(134, 239, 172, 0.18);
    color: #86efac;
}

.rebrand-section--ink .impact-card-icon-box--amber {
    background: rgba(245, 158, 11, 0.18);
    color: #fbbf24;
}

.rebrand-section--ink .impact-card-icon-box--cyan {
    background: rgba(6, 182, 212, 0.18);
    color: #22d3ee;
}

/* --------------------------------------------------------------------------
   IMPACT FLOW CARDS GRID (Stream distribution cards below the chart)
   -------------------------------------------------------------------------- */
.impact-flow-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 32px;
}

.impact-flow-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.impact-flow-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 20px 20px 0 0;
    background: #166534;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.impact-flow-card--reuse::before { background: #65a30d; }
.impact-flow-card--refine::before { background: #17634e; }
.impact-flow-card--neutralize::before { background: #ea580c; }
.impact-flow-card--residue::before { background: #475569; }

.impact-flow-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(13, 35, 24, 0.06);
    border-color: #bbf7d0;
}

.impact-flow-card:hover::before {
    opacity: 1;
}

.impact-flow-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.impact-flow-card__pct {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
}

.impact-flow-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    display: block;
    line-height: 1.35;
}

.impact-flow-card__desc {
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
}

.impact-flow-card__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
    margin-top: auto;
}

.impact-flow-card__meta .rebrand-mono {
    font-size: 0.72rem;
    color: #166534;
    letter-spacing: 0.04em;
    margin-bottom: 0;
}

.impact-flow-card__badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 9999px;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

/* --------------------------------------------------------------------------
   IMPACT EQUIVALENCY MATRIX (2x2 planetary cards)
   -------------------------------------------------------------------------- */
.impact-equiv-matrix {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.impact-equiv-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 28px 24px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.impact-equiv-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.impact-equiv-card--trees::before { background: radial-gradient(circle at 30% 70%, rgba(16, 185, 129, 0.12) 0%, transparent 70%); }
.impact-equiv-card--power::before { background: radial-gradient(circle at 70% 30%, rgba(134, 239, 172, 0.12) 0%, transparent 70%); }
.impact-equiv-card--ore::before { background: radial-gradient(circle at 50% 80%, rgba(245, 158, 11, 0.12) 0%, transparent 70%); }
.impact-equiv-card--water::before { background: radial-gradient(circle at 30% 30%, rgba(6, 182, 212, 0.12) 0%, transparent 70%); }

.impact-equiv-card:hover {
    transform: translateY(-2px);
    border-color: rgba(134, 239, 172, 0.3);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
}

.impact-equiv-card:hover::before {
    opacity: 1;
}

.impact-equiv-card__top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.equiv-type-tag {
    font-size: 0.68rem;
    font-weight: 700;
    color: #d1d5db;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.impact-equiv-card strong {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
    display: block;
    margin-bottom: 6px;
}

.impact-equiv-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px;
}

.impact-equiv-card p {
    font-size: 0.85rem;
    color: #d1d5db;
    line-height: 1.55;
    margin: 0 0 16px;
    flex-grow: 1;
}

.equiv-micro-bar {
    height: 5px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    margin-top: auto;
}

.equiv-micro-bar__fill {
    height: 100%;
    border-radius: 10px;
    transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   IMPACT COMPLIANCE GRID & PILLAR CARDS
   -------------------------------------------------------------------------- */
.impact-compliance-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 36px;
}

.impact-pillar-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 32px 28px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.impact-pillar-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(22, 101, 52, 0.06);
    border-color: #bbf7d0;
}

.impact-pillar-card__content {
    flex: 1;
}

.impact-pillar-card__standard {
    font-size: 0.68rem;
    font-weight: 700;
    color: #166534;
    background: #dcfce7;
    padding: 3px 10px;
    border-radius: 9999px;
    letter-spacing: 0.05em;
    display: inline-block;
    margin-bottom: 12px;
}

.impact-pillar-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 8px;
    line-height: 1.3;
}

.impact-pillar-card p {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 12px;
}

.rebrand-text-link {
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.2s ease, color 0.2s ease;
}

.rebrand-text-link:hover {
    gap: 8px;
    color: #15803d !important;
}

/* --------------------------------------------------------------------------
   HAZARD CARD COMPONENTS
   -------------------------------------------------------------------------- */
.impact-bento-card--hazard {
    grid-column: span 3;
    background: #fff7ed;
    border-color: #fed7aa;
}

.impact-bento-card__num--orange {
    background: #fed7aa !important;
    color: #c2410c !important;
}

.impact-material-card__badge--orange {
    background: #fff7ed !important;
    color: #9a3412 !important;
}

.hazard-clean-cell-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(234, 88, 12, 0.08);
    border: 1px solid rgba(234, 88, 12, 0.2);
    color: #c2410c;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 600;
}

.hazard-pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ea580c;
    animation: announcementPulse 2s infinite;
}

.impact-bento-card__hazard-meta {
    margin-top: auto;
}

.hazard-cert-checks {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.hazard-cert-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: #9a3412;
    font-weight: 500;
}

.hazard-cert-item svg {
    width: 18px;
    height: 18px;
    stroke: #ea580c;
    stroke-width: 2;
    fill: none;
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   ALLOY ENERGY BAR
   -------------------------------------------------------------------------- */
.alloy-energy-bar-wrap {
    margin-bottom: 16px;
}

.alloy-energy-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: #6b7280;
    margin-bottom: 6px;
}

.alloy-energy-header strong {
    color: #166534;
    font-size: 0.85rem;
}

.alloy-energy-track {
    height: 8px;
    background: #f3f4f6;
    border-radius: 10px;
    overflow: hidden;
}

.alloy-energy-fill {
    height: 100%;
    background: linear-gradient(90deg, #166534, #4ade80);
    border-radius: 10px;
    transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   CARBON COCKPIT COMPONENTS (Remaining)
   -------------------------------------------------------------------------- */
.carbon-cockpit-card__ambient {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 20%, rgba(134, 239, 172, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

.carbon-cockpit-metric-label {
    font-size: 0.86rem;
    color: rgba(255, 255, 255, 0.86);
    font-weight: 600;
    letter-spacing: 0.03em;
    display: block;
    margin-bottom: 4px;
}

.carbon-radar-legend {
    text-align: center;
    margin-top: 8px;
}

.carbon-radar-legend span {
    display: block;
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.84);
}

.carbon-radar-legend strong {
    display: block;
    font-size: 0.92rem;
    color: #86efac;
    font-weight: 700;
}

.carbon-cockpit-creds {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 24px;
}

.carbon-cred-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.86rem;
    color: #f0fdf4;
    font-weight: 500;
}

.carbon-cred-pill svg {
    width: 16px;
    height: 16px;
    stroke: #86efac;
    stroke-width: 2.5;
    fill: none;
    flex-shrink: 0;
}

.carbon-cockpit-quote {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.85);
    font-style: italic;
    line-height: 1.55;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    padding-top: 16px;
}

/* --------------------------------------------------------------------------
   IMPACT FLOW BALANCE HEADER & DISTRIBUTION WRAPPER
   -------------------------------------------------------------------------- */
.impact-flow-balance {
    margin-top: 48px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    padding: 36px 32px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.impact-flow-balance__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.impact-flow-balance__title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.impact-flow-balance__badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.impact-chart-legend-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 0.75rem;
}

.impact-chart-legend-pill strong {
    color: var(--pill-color, #111827);
    font-weight: 600;
}

.impact-distribution-chart-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 16px;
    background: #fafbf8;
    border: 1px solid #e5e7eb;
    padding: 8px;
}

.impact-distribution-svg {
    width: 100%;
    height: auto;
    display: block;
}

/* Distribution tooltip */
.chart-tooltip {
    position: absolute;
    background: #111827;
    color: #ffffff;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.78rem;
    pointer-events: none;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 10;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    min-width: 140px;
}

.chart-tooltip[aria-hidden="false"] {
    opacity: 1;
    transform: translateY(0);
}

.chart-tooltip__year {
    font-weight: 700;
    color: #86efac;
    display: block;
    margin-bottom: 3px;
    font-size: 0.72rem;
    letter-spacing: 0.05em;
}

.chart-tooltip__stream {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 6px;
}

.chart-tooltip__metrics {
    display: flex;
    gap: 12px;
}

.chart-tooltip__val {
    font-weight: 700;
    color: #86efac;
}

.chart-tooltip__aux {
    color: #d1d5db;
}

/* --------------------------------------------------------------------------
   CTA SECTION (rebrand-cta)
   -------------------------------------------------------------------------- */
.rebrand-cta {
    position: relative;
    overflow: hidden;
}

.rebrand-section--lime {
    background: linear-gradient(135deg, #d9f36c 0%, #a4ce1f 100%);
}

.rebrand-cta__inner {
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 80px 0;
}

.rebrand-cta h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: #0d1f18;
    margin: 12px 0 16px;
    line-height: 1.15;
}

.rebrand-cta h2 em {
    font-style: normal;
    color: #166534;
}

.rebrand-cta p {
    font-size: 1.05rem;
    color: #374151;
    max-width: 580px;
    margin: 0 auto 28px;
    line-height: 1.65;
}

.rebrand-cta__mark {
    position: absolute;
    bottom: -36px;
    right: 12px;
    font-size: 13rem;
    font-weight: 900;
    color: rgba(13, 31, 24, 0.04);
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

.rebrand-button--dark {
    background: #0d1f18 !important;
    color: #ffffff !important;
}

.rebrand-button--dark:hover {
    background: #1a3a2a !important;
}

/* --------------------------------------------------------------------------
   HORIZON PIPELINE ENHANCEMENTS
   -------------------------------------------------------------------------- */
.horizon-pipeline-rail {
    position: absolute;
    top: 40px;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
    z-index: 0;
}

.horizon-pipeline-pulse {
    position: absolute;
    top: -3px;
    left: 0;
    width: 60px;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(90deg, transparent, #86efac, transparent);
    animation: pipelineSweep 4s ease-in-out infinite;
}

@keyframes pipelineSweep {
    0% { left: -60px; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

.horizon-node {
    position: relative;
    z-index: 1;
}

.horizon-node__marker {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.horizon-node__bullet {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #86efac;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 12px rgba(134, 239, 172, 0.4);
}

.horizon-node__bullet--apex {
    width: 16px;
    height: 16px;
    animation: pulseGlow 2s infinite;
}

.horizon-node__index {
    font-size: 0.76rem;
    font-weight: 700;
    color: #86efac;
    letter-spacing: 0.04em;
}

.horizon-node__card--featured {
    border-color: rgba(134, 239, 172, 0.4) !important;
    background: rgba(134, 239, 172, 0.08) !important;
}

.horizon-node__year--apex {
    color: #d9f36c !important;
}

.horizon-node__stage--apex {
    color: #86efac !important;
}

.horizon-node__metric-val--apex {
    font-size: 1.1rem;
}

/* --------------------------------------------------------------------------
   IMPACT CHART COMPONENTS (Recovery trajectory)
   -------------------------------------------------------------------------- */
.impact-chart-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 32px;
    margin-top: 36px;
}

.impact-chart-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 16px;
    flex-wrap: wrap;
}

.impact-chart-badge {
    font-size: 0.68rem;
    font-weight: 700;
    color: #86efac;
    background: rgba(134, 239, 172, 0.12);
    padding: 4px 12px;
    border-radius: 9999px;
    letter-spacing: 0.06em;
}

.impact-chart-replay-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #d1d5db;
    padding: 5px 12px;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.impact-chart-replay-btn:hover {
    background: rgba(134, 239, 172, 0.15);
    border-color: rgba(134, 239, 172, 0.4);
    color: #86efac;
}

.impact-chart-replay-btn--light {
    background: #f3f4f6;
    border-color: #e5e7eb;
    color: #6b7280;
}

.impact-chart-replay-btn--light:hover {
    background: #dcfce7;
    border-color: #bbf7d0;
    color: #166534;
}

.impact-chart-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(134, 239, 172, 0.1);
    border: 1px solid rgba(134, 239, 172, 0.25);
    padding: 4px 14px;
    border-radius: 9999px;
}

.impact-chart-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #86efac;
    animation: announcementPulse 2s infinite;
}

.impact-chart-live-text {
    font-size: 0.75rem;
    font-weight: 700;
    color: #86efac;
}

.impact-chart-legends {
    display: flex;
    gap: 18px;
}

.impact-chart-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.65);
}

.impact-chart-legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.impact-chart-legend-dot--lime { background: #86efac; }
.impact-chart-legend-dot--emerald { background: #34d399; }

/* SVG Chart Styles */
.impact-chart-svg-wrap,
.impact-chart-wrapper {
    position: relative;
    margin-top: 8px;
}

.impact-chart-svg {
    width: 100%;
    height: auto;
    display: block;
}

.chart-grid-line {
    stroke: rgba(255, 255, 255, 0.06);
    stroke-width: 0.8;
    stroke-dasharray: 3 3;
}

.chart-axis-text {
    fill: rgba(255, 255, 255, 0.55);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 11px;
}

.chart-area-fill {
    opacity: 0.7;
}

.chart-line-stroke {
    fill: none;
    stroke: #86efac;
    stroke-width: 3;
    stroke-linecap: round;
    filter: drop-shadow(0 2px 6px rgba(134, 239, 172, 0.4));
}

.chart-co2-stroke {
    fill: none;
    stroke: #34d399;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 8 4;
    opacity: 0.6;
}

.chart-tracer-beacon {
    fill: #86efac;
    opacity: 0.8;
    filter: drop-shadow(0 0 8px rgba(134, 239, 172, 0.6));
}

.chart-node .node-glow {
    fill: rgba(134, 239, 172, 0.12);
    transition: fill 0.2s ease;
}

.chart-node .node-point {
    fill: #86efac;
    stroke: #ffffff;
    stroke-width: 2;
    transition: r 0.2s ease;
    cursor: pointer;
}

.chart-node:hover .node-glow,
.chart-node:focus .node-glow {
    fill: rgba(134, 239, 172, 0.3);
}

.chart-node:hover .node-point,
.chart-node:focus .node-point {
    r: 8;
}

/* Tooltip */
.impact-chart-tooltip {
    position: absolute;
    background: #111827;
    color: #ffffff;
    padding: 12px 16px;
    border-radius: 14px;
    pointer-events: none;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 10;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    min-width: 160px;
}

.impact-chart-tooltip__year {
    font-size: 0.72rem;
    font-weight: 700;
    color: #86efac;
    display: block;
    margin-bottom: 4px;
    letter-spacing: 0.06em;
}

.impact-chart-tooltip__waste {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.impact-chart-tooltip__co2 {
    display: block;
    font-size: 0.78rem;
    color: #34d399;
}

.impact-chart-tooltip__cert {
    display: block;
    font-size: 0.72rem;
    color: #9ca3af;
    margin-top: 4px;
}

/* Impact Diagram Stats */
.impact-diagram-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.impact-diagram-stat {
    text-align: center;
}

.impact-diagram-stat strong {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: #86efac;
    margin-bottom: 4px;
}

.impact-diagram-stat span {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 500;
}

/* --------------------------------------------------------------------------
   DISTRIBUTION NODE HOVER
   -------------------------------------------------------------------------- */
.dist-node {
    cursor: pointer;
    transition: r 0.2s ease;
}

.dist-node:hover {
    r: 8;
    filter: drop-shadow(0 0 6px rgba(134, 239, 172, 0.5));
}

/* --------------------------------------------------------------------------
   HERO QUICK CHIPS
   -------------------------------------------------------------------------- */
.hero-quick-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 24px 0;
}

.hero-quick-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.8);
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    backdrop-filter: blur(6px);
}

.hero-quick-chip svg {
    width: 14px;
    height: 14px;
    stroke: #86efac;
    stroke-width: 2;
    fill: none;
}

.hero-quick-chip:hover {
    background: rgba(134, 239, 172, 0.12);
    border-color: rgba(134, 239, 172, 0.4);
    color: #86efac;
    transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   PREMIUM ANIMATIONS & MOTION SYSTEM (Site-wide)
   -------------------------------------------------------------------------- */

/* Scroll reveal with staggered delays */
.rebrand-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.rebrand-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.rebrand-reveal[data-delay="1"] { transition-delay: 0.1s; }
.rebrand-reveal[data-delay="2"] { transition-delay: 0.2s; }
.rebrand-reveal[data-delay="3"] { transition-delay: 0.3s; }
.rebrand-reveal[data-delay="4"] { transition-delay: 0.4s; }

/* Floating particle backgrounds */
@keyframes floatParticle {
    0%, 100% { transform: translateY(0) translateX(0); }
    25% { transform: translateY(-15px) translateX(5px); }
    50% { transform: translateY(-8px) translateX(-5px); }
    75% { transform: translateY(-20px) translateX(8px); }
}

/* Gradient shimmer for premium sections */
@keyframes gradientShimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Hero mesh grid animation */
.rebrand-hero__grid-mesh {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(134, 239, 172, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(134, 239, 172, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: meshDrift 20s linear infinite;
    pointer-events: none;
}

@keyframes meshDrift {
    0% { background-position: 0 0; }
    100% { background-position: 60px 60px; }
}

/* Glow orb */
.rebrand-hero__glow-orb {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(134, 239, 172, 0.12) 0%, transparent 70%);
    top: 20%;
    right: 10%;
    animation: heroGlowPulse 6s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

/* Chart path drawing animation */
@keyframes drawLine {
    to { stroke-dashoffset: 0; }
}

/* Stat counter animation */
@keyframes countUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Card entrance */
@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Subtle shimmer on hero badges */
.hero-heritage-badge {
    position: relative;
    overflow: hidden;
}

.hero-heritage-badge::after {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.05) 50%,
        transparent 70%
    );
    animation: shimmerPass 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes shimmerPass {
    0% { transform: translateX(-100%) translateY(-100%); }
    100% { transform: translateX(100%) translateY(100%); }
}

/* --------------------------------------------------------------------------
   RESPONSIVE OVERRIDES
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .impact-flow-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .impact-compliance-grid {
        grid-template-columns: 1fr;
    }

    .impact-carbon-layout {
        grid-template-columns: 1fr;
    }

    .impact-equiv-matrix {
        grid-template-columns: 1fr 1fr;
    }

    .impact-bento-card--featured,
    .impact-bento-card--hazard {
        grid-column: span 2;
    }

    .impact-diagram-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .impact-chart-legends {
        flex-direction: column;
        gap: 6px;
    }
}

@media (max-width: 768px) {
    .impact-flow-cards-grid {
        grid-template-columns: 1fr;
    }

    .impact-equiv-matrix {
        grid-template-columns: 1fr;
    }

    .impact-bento-grid {
        grid-template-columns: 1fr;
    }

    .impact-bento-card--featured,
    .impact-bento-card--hazard {
        grid-column: span 1;
    }

    .impact-flow-balance__header {
        flex-direction: column;
    }

    .impact-flow-balance__badges {
        flex-direction: column;
    }

    .impact-diagram-stats {
        grid-template-columns: 1fr 1fr;
    }

    .impact-pillar-card {
        flex-direction: column;
    }

    .impact-horizon-track {
        grid-template-columns: 1fr;
    }

    .hero-quick-chips {
        flex-direction: column;
    }

    .impact-chart-card {
        padding: 20px 16px;
    }

    .impact-flow-balance {
        padding: 24px 16px;
    }

    .rebrand-cta__inner {
        padding: 50px 0;
    }
}

@media (max-width: 480px) {
    .impact-flow-card__pct {
        font-size: 1.5rem;
    }

    .impact-equiv-card strong {
        font-size: 1.8rem;
    }

    .impact-diagram-stats {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   ORGANIZED LIGHT THEME FOR IMPACT DASHBOARD SECTIONS
   ========================================================================== */
body.impact-page .rebrand-section--ink .impact-chart-card,
body.impact-page .rebrand-section--ink .carbon-cockpit-card,
body.impact-page .rebrand-section--ink .impact-equiv-card,
body.impact-page .rebrand-section--ink .horizon-node__card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05) !important;
    backdrop-filter: none !important;
    color: #0f172a !important;
}

body.impact-page .rebrand-section--ink .impact-chart-card__header {
    border-bottom-color: #e2e8f0 !important;
}

body.impact-page .rebrand-section--ink .impact-chart-badge {
    background: #f0fdf4 !important;
    border-color: #bbf7d0 !important;
    color: #166534 !important;
}

body.impact-page .rebrand-section--ink .impact-chart-live-pill {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #166534 !important;
}

body.impact-page .rebrand-section--ink .impact-diagram-stat {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px;
    padding: 18px 16px;
}

body.impact-page .rebrand-section--ink .impact-diagram-stat strong {
    color: #166534 !important;
}

body.impact-page .rebrand-section--ink .impact-diagram-stat span {
    color: #475569 !important;
}

body.impact-page .rebrand-section--ink .carbon-cockpit-card__ambient {
    display: none !important;
}

body.impact-page .rebrand-section--ink .carbon-cockpit-badge {
    background: #f0fdf4 !important;
    border: 1px solid #bbf7d0 !important;
    color: #166534 !important;
}

body.impact-page .rebrand-section--ink .carbon-cockpit-metric-label {
    color: #475569 !important;
}

body.impact-page .rebrand-section--ink .carbon-cockpit-stat-hero strong {
    color: #166534 !important;
}

body.impact-page .rebrand-section--ink .carbon-cockpit-stat-hero span {
    color: #0f172a !important;
}

body.impact-page .rebrand-section--ink .carbon-radar-legend {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #0f172a !important;
}

body.impact-page .rebrand-section--ink .carbon-radar-legend span {
    color: #475569 !important;
}

body.impact-page .rebrand-section--ink .carbon-radar-legend strong {
    color: #166534 !important;
}

body.impact-page .rebrand-section--ink .carbon-cred-pill {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #1e293b !important;
}

body.impact-page .rebrand-section--ink .carbon-cred-pill svg {
    stroke: #166534 !important;
}

body.impact-page .rebrand-section--ink .carbon-cockpit-quote {
    background: #f4faf6 !important;
    border: 1px solid #d1e7dd !important;
    border-left: 3px solid #166534 !important;
    border-radius: 10px !important;
    padding: 14px 16px !important;
    color: #334155 !important;
}

body.impact-page .rebrand-section--ink .impact-card-icon-box {
    background: #f0fdf4 !important;
    color: #166534 !important;
}

body.impact-page .rebrand-section--ink .impact-card-icon-box--amber {
    background: #fefce8 !important;
    color: #b45309 !important;
}

body.impact-page .rebrand-section--ink .impact-card-icon-box--cyan {
    background: #ecfeff !important;
    color: #0e7490 !important;
}

body.impact-page .rebrand-section--ink .equiv-type-tag {
    color: #166534 !important;
}

body.impact-page .rebrand-section--ink .impact-equiv-card strong {
    color: #0f172a !important;
}

body.impact-page .rebrand-section--ink .impact-equiv-card h4 {
    color: #0f172a !important;
}

body.impact-page .rebrand-section--ink .impact-equiv-card p {
    color: #475569 !important;
}

body.impact-page .rebrand-section--ink .equiv-micro-bar {
    background: #e2e8f0 !important;
}

body.impact-page .rebrand-section--ink .horizon-pipeline-rail {
    top: 17px !important;
    background: #86efac !important;
    height: 2px;
    z-index: 1;
}

body.impact-page .horizon-node__marker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    padding: 6px 14px;
    border-radius: 9999px;
    background: #ffffff;
    border: 1.5px solid #86efac;
    box-shadow: 0 3px 10px rgba(22, 101, 52, 0.08);
    position: relative;
    z-index: 2;
    margin-bottom: 36px !important;
}

body.impact-page .horizon-node__marker--apex {
    background: #f0fdf4;
    border-color: #22c55e;
}

body.impact-page .rebrand-section--ink .horizon-node__bullet {
    background: #166534 !important;
    border-color: #bbf7d0 !important;
    box-shadow: none !important;
}

body.impact-page .rebrand-section--ink .horizon-node__index {
    color: #166534 !important;
}

@media (max-width: 1120px) {
    body.impact-page .rebrand-section--ink .horizon-pipeline-rail {
        display: none !important;
    }

    body.impact-page .impact-horizon-track {
        row-gap: 28px;
    }

    body.impact-page .horizon-node__marker {
        margin-bottom: 18px !important;
    }
}

body.impact-page .rebrand-section--ink .horizon-node__card--featured {
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%) !important;
    border-color: #86efac !important;
}

body.impact-page .rebrand-section--ink .horizon-node__year,
body.impact-page .rebrand-section--ink .horizon-node__stage {
    background: #f0fdf4 !important;
    border-color: #bbf7d0 !important;
    color: #166534 !important;
}

body.impact-page .rebrand-section--ink .horizon-node__card h3 {
    color: #0f172a !important;
}

body.impact-page .rebrand-section--ink .horizon-node__card p {
    color: #475569 !important;
}

body.impact-page .rebrand-section--ink .horizon-node__metric {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px;
    padding: 10px 14px;
}

body.impact-page .rebrand-section--ink .horizon-node__metric-val {
    color: #166534 !important;
}

body.impact-page .rebrand-section--ink .horizon-node__metric-tag {
    color: #64748b !important;
}

body.impact-page .impact-horizon-track {
    align-items: stretch;
}

body.impact-page .horizon-node {
    display: flex;
    flex-direction: column;
}

body.impact-page .horizon-node__card {
    flex: 1;
    display: flex;
    flex-direction: column;
}

body.impact-page .horizon-node__metric {
    margin-top: auto;
}

.impact-card-icon-box .fi {
    font-size: 1.35rem;
}

.impact-card-icon-box--large .fi {
    font-size: 1.65rem;
}

body.impact-page .rebrand-section--ink .impact-chart-card,
body.impact-page .rebrand-section--ink .carbon-cockpit-card,
body.impact-page .rebrand-section--ink .impact-equiv-card,
body.impact-page .rebrand-section--ink .horizon-node__card,
body.impact-page .impact-flow-card,
body.impact-page .impact-pillar-card {
    border-top: 3px solid #22c55e !important;
    border-color: #bbf7d0 !important;
}

body.impact-page .rebrand-section--ink .impact-diagram-stat,
body.impact-page .rebrand-section--ink .carbon-cred-pill,
body.impact-page .rebrand-section--ink .carbon-radar-legend {
    background: #f0fdf4 !important;
    border-color: #bbf7d0 !important;
}

body.impact-page .rebrand-section--ink .impact-card-icon-box {
    background: #dcfce7 !important;
    border: 1px solid #86efac;
    color: #15803d !important;
}
