/* =========================================================
   Emerald Stream Capital — Platform (inner page)
   Same standards as the homepage: a 1920px Figma
   artboard driven by one UNITLESS scale unit so the whole
   layout + typography scale with the viewport and never
   disrupt at 1670 / 1440 / 1366. Below 992px it switches
   to a stacked flow with clamp() typography.

     --u  = viewport / 1920, unitless.
   ========================================================= */

:root {
  --u: 1; /* fallback for browsers without CSS trig functions */
  --u: tan(atan2(100vw, 1920px));
}

/* WordPress integration only: use the global header and footer without altering the supplied page design. */
.platform-page-body .landing-page { min-height: 0; }
.platform-page-body .site-header { position: absolute; top: 0; z-index: 50; }
.platform-page-body .hero-section,
.platform-page-body .footprint-section { transform: none; }


html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100vh;
  box-sizing: border-box;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  font-family: "Stack Sans Text", sans-serif;
  background-color: #ffffff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* ===== Page shell ===== */
.inner-page {
  width: 100%;
  overflow-x: hidden;
  background-color: #ffffff;
}

.page-canvas {
  position: relative;
  width: 100%;
  margin: 0 auto;
  min-height: calc(4262px * var(--u));
  background-color: rgba(255, 255, 255, 1);
  overflow-x: hidden;
}

/* ===== Hero Section ===== */
.hero-section {
  position: absolute;
  top: 0;
  left: 0;
  width: calc(1920px * var(--u));
  height: calc(900px * var(--u));
}

.hero-bg {
  position: absolute;
  left: 0px;
  top: 0.3vw;
  width: 100%;
  height: calc(881px * var(--u));
  max-width: none;
  object-fit: cover;
  object-position: right center;
  clip-path: polygon(0 0, 100% 14%, 100% 100%, 0 82.5%);
  -webkit-clip-path: polygon(0 0, 100% 14%, 100% 100%, 0 82.5%);
}

.hero-overlay {
  width: calc(1140px * var(--u));
  height: calc(830px * var(--u));
  position: absolute;
  left: 0;
  top: 0;
}

.hero-content {
  width: calc(646px * var(--u));
  height: calc(479px * var(--u));
  gap: calc(80px * var(--u));
  position: absolute;
  left: calc(260px * var(--u));
  top: calc(179px * var(--u));
}

.hero-text-block {
  gap: calc(20px * var(--u));
  align-self: stretch;
}

.hero-title {
  margin: 0;
  color: rgba(126, 148, 220, 1);
  font-size: calc(62px * var(--u));
  font-family: "Stack Sans Text", sans-serif;
  font-weight: 600;
  line-height: calc(72px * var(--u));
}

.hero-text {
  margin: 0;
  color: rgba(255, 255, 255, 1);
  font-size: calc(20px * var(--u));
  font-family: "Stack Sans Text", sans-serif;
  font-weight: 400;
  line-height: calc(30px * var(--u));
}

.hero-stats {
  align-self: stretch;
}

.hero-stat {
  flex: 1;
}

.hero-stat-val {
  color: rgba(126, 148, 220, 1);
  font-size: calc(40px * var(--u));
  font-family: "Stack Sans Text", sans-serif;
  font-weight: 600;
  line-height: calc(52px * var(--u));
}

.hero-stat-label {
  color: rgba(255, 255, 255, 1);
  font-size: calc(16px * var(--u));
  font-family: "Stack Sans Text", sans-serif;
  font-weight: 400;
  line-height: calc(20.8px * var(--u));
}

/* ===== Ecosystem Section ===== */
.ecosystem-section {
  position: absolute;
  top: calc(1020px * var(--u));
  left: calc(260px * var(--u));
  width: calc(1400px * var(--u));
  height: calc(160px * var(--u));
  gap: calc(20px * var(--u));
}

.ecosystem-left {
  gap: calc(20px * var(--u));
  flex: 1;
}

.ecosystem-icon {
  width: calc(80px * var(--u));
  height: calc(80px * var(--u));
  flex-shrink: 0;
}

.ecosystem-heading {
  margin: 0;
  color: rgba(33, 43, 78, 1);
  font-size: calc(56px * var(--u));
  font-family: "Stack Sans Text", sans-serif;
  font-weight: 600;
  line-height: calc(66px * var(--u));
}

.ecosystem-right {
  flex: 1;
}

.ecosystem-text {
  margin: 0;
  color: rgba(37, 37, 37, 1);
  font-size: calc(22px * var(--u));
  font-family: "Stack Sans Text", sans-serif;
  font-weight: 500;
  line-height: calc(32px * var(--u));
}

/* ===== Services Grid ===== */
.services-grid {
  position: absolute;
  top: calc(1240px * var(--u));
  left: 0;
  width: calc(1920px * var(--u));
  height: calc(894px * var(--u));
}

.svc-card {
  --cu: var(--u); /* card scale unit — overridden on mobile */
  position: absolute;
  width: calc(453px * var(--cu));
  height: calc(422px * var(--cu));
}

.svc-card--1 { left: calc(260px * var(--u));  top: 0; }
.svc-card--2 { left: calc(733px * var(--u));  top: 0; }
.svc-card--3 { left: calc(1207px * var(--u)); top: 0; }
.svc-card--4 { left: calc(260px * var(--u));  top: calc(472px * var(--u)); }
.svc-card--5 { left: calc(733px * var(--u));  top: calc(472px * var(--u)); }
.svc-card--6 { left: calc(1207px * var(--u)); top: calc(472px * var(--u)); }

.svc-card-inner {
  position: absolute;
  top: 0;
  left: 0;
  width: 453px;
  height: 422px;
  transform: scale(var(--cu));
  transform-origin: top left;
}

/* card internals stay native px — the wrapper scales them */
.svc-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.svc-card-line {
  position: absolute;
  left: 0;
  top: 407px;
  height: 15px;
}

.svc-card-hex {
  position: absolute;
  left: 56px;
  top: 0;
  width: 96px;
  height: 79px;
}

.svc-card-num {
  position: absolute;
  left: 89px;
  top: 24px;
  color: rgba(19, 22, 33, 1);
  font-size: 24px;
  font-family: "Stack Sans Text", sans-serif;
  font-weight: 600;
}

.svc-card-icon {
  position: absolute;
  left: 90px;
  top: 20px;
  width: 29px;
  height: 40px;
}

.svc-card-title {
  position: absolute;
  left: 157px;
  top: 26px;
  width: 280px;
  color: rgba(255, 255, 255, 1);
  font-size: 22px;
  font-family: "Stack Sans Text", sans-serif;
  font-weight: 600;
  line-height: 26px;
}

.svc-card-body {
  position: absolute;
  left: 74px;
  top: 151px;
  width: 304px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.svc-card-desc {
  color: rgba(255, 255, 255, 1);
  font-size: 18px;
  font-family: "Stack Sans Text", sans-serif;
  font-weight: 400;
  line-height: 28px;
}

.svc-card-sub {
  color: rgba(255, 255, 255, 1);
  font-size: 22px;
  font-family: "Stack Sans Text", sans-serif;
  font-weight: 500;
}

/* ===== Compounding Section ===== */
.compounding-section {
  position: absolute;
  top: calc(2254px * var(--u));
  left: 0;
  width: calc(1920px * var(--u));
  height: calc(856px * var(--u));
  overflow: hidden;
  isolation: isolate;
}

.compounding-bg {
  position: absolute;
  left: 0;
  top: 0;
  width: calc(1920px * var(--u));
  height: calc(856px * var(--u));
}

.platform-section-video {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  pointer-events: none;
}

.compounding-video {
  z-index: -1;
  clip-path: polygon(0 12.73%, 100% 0, 100% 83.35%, 0 100%);
  -webkit-clip-path: polygon(0 12.73%, 100% 0, 100% 83.35%, 0 100%);
}

.footprint-video {
  clip-path: polygon(0 18.55%, 100% 0, 100% 100%, 0 84.5%);
  -webkit-clip-path: polygon(0 18.55%, 100% 0, 100% 100%, 0 84.5%);
}

.compounding-section.platform-video-ready .compounding-video,
.footprint-section.platform-video-ready .footprint-video {
  opacity: 1;
}

.compounding-section.platform-video-ready .compounding-bg,
.footprint-section.platform-video-ready .footprint-map {
  opacity: 0;
}

.compounding-intro,
.compounding-diagram-wrap {
  z-index: 2;
}

.compounding-intro {
  position: absolute;
  top: calc(220px * var(--u));
  left: calc(260px * var(--u));
  width: calc(1400px * var(--u));
  gap: calc(20px * var(--u));
}

.compounding-left {
  gap: calc(20px * var(--u));
  flex: 1;
}

.compounding-icon {
  width: calc(80px * var(--u));
  height: calc(80px * var(--u));
  flex-shrink: 0;
}

.compounding-heading {
  margin: 0;
  color: rgba(255, 255, 255, 1);
  font-size: calc(56px * var(--u));
  font-family: "Stack Sans Text", sans-serif;
  font-weight: 600;
  line-height: calc(66px * var(--u));
}

.compounding-text {
  margin: 0;
  flex: 1;
  color: rgba(255, 255, 255, 1);
  font-size: calc(22px * var(--u));
  font-family: "Stack Sans Text", sans-serif;
  font-weight: 500;
  line-height: calc(32px * var(--u));
}

.compounding-diagram-wrap {
  position: absolute;
  top: calc(498px * var(--u));
  left: calc(260px * var(--u));
  width: calc(1400px * var(--u));
  text-align: center;
}

.compounding-core-title {
  margin: 0 0 calc(30px * var(--u));
  color: rgba(255, 255, 255, 1);
  font-size: calc(35px * var(--u));
  font-family: "Stack Sans Text", sans-serif;
  font-weight: 600;
}

.compounding-diagram {
  width: 100%;
  margin-bottom: calc(15px * var(--u));
}

.compounding-diagram-labels {
  padding: 0 calc(98px * var(--u));
}

.comp-diagram-label {
  flex: 1;
  color: rgba(255, 255, 255, 1);
  font-size: calc(20px * var(--u));
  font-family: "Stack Sans Text", sans-serif;
  font-weight: 600;
}

/* ===== Global Footprint Section ===== */
.footprint-section {
  position: absolute;
  top: calc(2968px * var(--u));
  left: 0;
  width: calc(1920px * var(--u));
  height: calc(768px * var(--u));
  overflow: hidden;
  isolation: isolate;
}

.footprint-map {
  width: calc(1920px * var(--u));
  height: calc(768px * var(--u));
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
}

.footprint-content {
  position: absolute;
  top: calc(319px * var(--u));
  left: calc(378px * var(--u));
  width: calc(1164px * var(--u));
  gap: calc(30px * var(--u));
  z-index: 2;
}

.footprint-heading {
  margin: 0;
  color: rgba(255, 255, 255, 1);
  font-size: calc(56px * var(--u));
  font-family: "Stack Sans Text", sans-serif;
  font-weight: 600;
}

.footprint-list {
  gap: calc(100px * var(--u));
}

.footprint-item {
  gap: calc(15px * var(--u));
}

.footprint-icon {
  width: calc(19px * var(--u));
  height: calc(20px * var(--u));
}

.footprint-label {
  color: rgba(255, 255, 255, 1);
  font-size: calc(25px * var(--u));
  font-family: "Stack Sans Text", sans-serif;
  font-weight: 500;
}

/* ===== CTA Section ===== */
.cta-section {
  position: absolute;
  top: calc(3856px * var(--u));
  left: calc(260px * var(--u));
  width: calc(1400px * var(--u));
  gap: calc(20px * var(--u));
}

.cta-left {
  gap: calc(20px * var(--u));
  flex: 1;
}

.cta-icon {
  width: calc(80px * var(--u));
  height: calc(80px * var(--u));
  flex-shrink: 0;
}

.cta-heading {
  margin: 0;
  color: rgba(33, 43, 78, 1);
  font-size: calc(56px * var(--u));
  font-family: "Stack Sans Text", sans-serif;
  font-weight: 600;
}

.cta-right {
  width: calc(690px * var(--u));
  gap: calc(30px * var(--u));
}

.cta-text {
  margin: 0;
  color: rgba(37, 37, 37, 1);
  font-size: calc(25px * var(--u));
  font-family: "Stack Sans Text", sans-serif;
  font-weight: 600;
  line-height: calc(35px * var(--u));
}

.cta-button {
  width: fit-content;
  padding: calc(15px * var(--u)) calc(20px * var(--u));
  background-color: rgba(19, 22, 33, 1);
  color: rgba(255, 255, 255, 1);
  font-size: calc(20px * var(--u));
  font-family: "Stack Sans Text", sans-serif;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.cta-button:hover,
.cta-button:focus,
.cta-button:active,
.cta-button:visited {
  color: rgba(255, 255, 255, 1);
  text-decoration: none;
}

.cta-button:hover {
  background-color: rgba(33, 43, 78, 1);
}

/* =========================================================
   RESPONSIVE — stacked flow below 992px
   ========================================================= */
@media (max-width: 991.98px) {
  html,
  body,
  .inner-page,
  .page-canvas {
    width: 100%;
    max-width: 100%;
  }

  .page-canvas {
    min-height: auto;
  }

  .hero-section,
  .ecosystem-section,
  .services-grid,
  .compounding-section,
  .footprint-section,
  .cta-section {
    position: static;
    left: auto;
    top: auto;
    transform: none;
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  /* Keep the background video contained by this section in responsive flow. */
  .compounding-section {
    position: relative;
  }

  .platform-section-video {
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
    clip-path: none;
    -webkit-clip-path: none;
    transform: none;
  }

  /* ---------- Hero (dark band) ---------- */
  .hero-section {
    display: flex;
    flex-direction: column;
    padding: 64px 24px;
    background: linear-gradient(180deg, #232d56 0%, #19223f 100%);
  }
  .hero-bg {
    display: block;
    order: 2;
    position: static;
    width: calc(100% + 48px);
    height: auto;
    max-width: none;
    margin: 44px -24px -64px;
    translate: none;
    transform: none;
    rotate: 0deg;
    clip-path: none;
    -webkit-clip-path: none;
    object-fit: contain;
    object-position: center;
  }
  .hero-overlay { display: none; }
  .hero-content {
    display: flex;
    flex-direction: column;
    order: 1;
    position: static;
    width: 100%;
    height: auto;
    gap: 40px;
  }
  .hero-text-block { gap: 16px; }
  .hero-title { font-size: clamp(30px, 4.8vw, 62px); line-height: 1.16; }
  .hero-text { font-size: clamp(16px, 2vw, 20px); line-height: 1.5; }
  .hero-stats { display: flex; gap: 24px; flex-wrap: wrap; }
  .hero-stat { flex: 1 1 120px; }
  .hero-stat-val { font-size: clamp(30px, 4vw, 40px); line-height: 1.2; }
  .hero-stat-label { font-size: clamp(14px, 1.8vw, 16px); line-height: 1.3; }

  /* ---------- Ecosystem (light) ---------- */
  .ecosystem-section { display: flex; flex-direction: column; padding: 56px 24px; gap: 24px; }
  .ecosystem-left { display: flex; flex-direction: column; gap: 20px; }
  .ecosystem-icon { width: clamp(56px, 8vw, 80px); height: auto; }
  .ecosystem-heading { font-size: clamp(26px, 4vw, 56px); line-height: 1.2; }
  .ecosystem-text { font-size: clamp(17px, 2.2vw, 22px); line-height: 1.45; }

  /* ---------- Services grid (stack) ---------- */
  .services-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 56px;
    padding: 48px 24px;
  }
  .services-grid .svc-card {
    position: relative;
    left: auto;
    top: auto;
    flex: 0 0 auto;
    --cu: 1;
    --cu: tan(atan2(min(100vw - 48px, 453px), 453px));
  }

  /* ---------- Compounding (dark band) ---------- */
  .compounding-section {
    padding: 56px 24px;
    background: linear-gradient(180deg, #232d56 0%, #19223f 100%);
  }
  .compounding-bg {
    display: block;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .compounding-intro {
    display: flex;
    flex-direction: column;
    position: static;
    width: 100%;
    gap: 24px;
    margin-bottom: 40px;
  }
  .compounding-left { display: flex; flex-direction: column; gap: 20px; }
  .compounding-icon { width: clamp(56px, 8vw, 80px); height: auto; }
  .compounding-heading { font-size: clamp(26px, 4vw, 56px); line-height: 1.2; }
  .compounding-text { font-size: clamp(17px, 2.2vw, 22px); line-height: 1.45; }
  .compounding-diagram-wrap { position: static; width: 100%; }
  .compounding-core-title { font-size: clamp(24px, 3.2vw, 35px); margin-bottom: 20px; }
  .compounding-diagram { margin-bottom: 12px; }
  .compounding-diagram-labels { display: flex; padding: 0; gap: 8px; flex-wrap: wrap; }
  .comp-diagram-label { font-size: clamp(11px, 1.6vw, 20px); flex: 1 1 auto; text-align: center; }

  /* ---------- Global Footprint (map as cover) ---------- */
  .footprint-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 64px 24px;
    min-height: 320px;
    overflow: hidden;
  }
  .footprint-map {
    position: absolute;
    left: 50%;
    top: 50%;
    width: calc(100% + 120px);
    height: calc(100% + 120px);
    max-width: none;
    object-fit: cover;
    object-position: center;
    translate: none;
    transform: translate(-50%, -50%);
    rotate: 0deg;
    clip-path: none;
  }
  .footprint-section::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(13, 20, 40, 0.18);
    pointer-events: none;
  }
  .footprint-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: static;
    z-index: 2;
    width: 100%;
    gap: 28px;
  }
  .footprint-heading { font-size: clamp(28px, 4.4vw, 56px); text-align: center; }
  .footprint-list { display: flex; gap: clamp(20px, 5vw, 100px); }
  .footprint-icon { width: 19px; height: 20px; }
  .footprint-label { font-size: clamp(18px, 2.4vw, 25px); }

  /* ---------- CTA (light) ---------- */
  .cta-section { display: flex; flex-direction: column; padding: 56px 24px; gap: 28px; }
  .cta-left { display: flex; flex-direction: column; gap: 20px; }
  .cta-icon { width: clamp(56px, 8vw, 80px); height: auto; }
  .cta-heading { font-size: clamp(26px, 4vw, 56px); line-height: 1.2; }
  .cta-right { display: flex; flex-direction: column; width: 100%; gap: 24px; }
  .cta-text { font-size: clamp(17px, 2.4vw, 25px); line-height: 1.45; }
  .cta-button { font-size: clamp(16px, 2vw, 20px); padding: 14px 20px; }

}

/* ===================== Small phones ===================== */
@media (max-width: 575.98px) {
  .hero-section,
  .compounding-section,
  .footprint-section { padding-left: 20px; padding-right: 20px; }
  .hero-section { padding-top: 48px; padding-bottom: 48px; }
  .hero-bg {
    width: calc(100% + 40px);
    margin: 36px -20px -48px;
  }
  .hero-title { font-size: clamp(30px, 4.8vw, 48px); }
  .hero-text { font-size: 16px; }
  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 12px;
  }
  .hero-stat { min-width: 0; }
  .hero-stat-val { font-size: 28px; }
  .hero-stat-label { font-size: 12px; overflow-wrap: anywhere; }
  .ecosystem-section,
  .cta-section { padding: 44px 20px; }
  .services-grid { padding: 40px 20px; gap: 44px; }
  .svc-card {
    --cu: 1;
    --cu: tan(atan2(calc(100vw - 40px), 453px));
  }
  .compounding-section { padding-top: 48px; padding-bottom: 48px; }
  .compounding-bg { display: none; }
  .compounding-diagram-wrap {
    padding: 22px 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
  }
  .compounding-diagram-labels {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .comp-diagram-label {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 12px;
  }
  .footprint-section {
    align-items: center;
    padding-top: 60px;
    padding-bottom: 60px;
    isolation: isolate;
  }
  .footprint-map {
    display: none;
    inset: 0;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    translate: none;
    transform: none;
  }
  .footprint-list {
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    width: 100%;
    gap: 24px;
  }
  .footprint-item {
    width: auto;
    min-width: 0;
    justify-content: center;
  }
  .footprint-label {
    min-width: 0;
    font-size: 18px;
    line-height: 1.25;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .cta-button { width: 100%; min-height: 50px; }
}
