/* ============================================================
   SastenaInvest — page styles (prefix .si-*)
   1:1 rebuild of Fairatmos /atmosfund, Sastena green/dark theme.
   Reuses :root tokens + .s-* utilities from styles.css.
   ============================================================ */

/* ---------- Nav brand lockup (mirrors .ss-logo) ---------- */
.si-logo { display: inline-flex; align-items: center; gap: 10px; }
.si-logo-mark { display: grid; place-items: center; width: 34px; height: 34px; color: var(--leaf); }
.si-logo-svg { width: 30px; height: 30px; }
.si-logo-word { font-family: "Sofia Sans", system-ui, sans-serif; font-size: 1.28rem; font-weight: 800; letter-spacing: -0.01em; line-height: 1; }
.si-logo-lead { color: #fff; font-weight: 600; }
.si-logo-suffix { color: var(--leaf); font-weight: 800; }
/* Real Invest artwork — fill-based, mono white on the dark nav pill (matches SastenaMonitor's lockup) */
.si-logo--nav .si-ic-base   { fill: #fff; }
.si-logo--nav .si-ic-accent { fill: #fff; }
.si-sr { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.si-btn-ic { display: inline-grid; place-items: center; }
.si-btn-ic svg { width: 18px; height: 18px; }

/* ============================================================
   2. HERO + animated globe
   ============================================================ */
.si-hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(120% 80% at 50% -8%, #15311f 0%, var(--deep) 55%),
    var(--deep);
}
.si-hero-map {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1.6px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 26%, #000, transparent 78%);
          mask-image: radial-gradient(120% 90% at 50% 26%, #000, transparent 78%);
}
.si-hero-glow {
  position: absolute; left: 50%; bottom: -22%; transform: translateX(-50%);
  width: 760px; height: 760px; z-index: 1; pointer-events: none;
  background: radial-gradient(circle, rgba(93, 204, 93, 0.20), transparent 65%);
  filter: blur(50px);
}
.si-hero-inner {
  position: relative; z-index: 3;
  flex: 0 0 auto;
  text-align: center;
  max-width: 940px;
  padding-top: clamp(120px, 14vh, 176px);
  padding-bottom: clamp(28px, 4vh, 52px);
}
.si-hero-title {
  font-size: clamp(2.4rem, 5.4vw, 4.4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: #fff;
  margin-bottom: 22px;
  text-wrap: balance;
}
.si-hero-lede {
  font-size: clamp(1rem, 1.2vw, 1.18rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
  max-width: 62ch;
  margin: 0 auto 30px;
}
.si-hero-lede strong { color: #fff; font-weight: 700; }
.si-hero-actions { display: flex; justify-content: center; }

/* Globe (pure CSS/SVG) — rising dome that fills the space below the text */
.si-globe {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  min-height: clamp(220px, 30vh, 420px);
  z-index: 2;
  pointer-events: none;
}
.si-globe-svg {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: min(132vw, 1180px);
  height: auto;
  aspect-ratio: 1;
}
.si-globe-fill {
  fill: var(--leaf);
  opacity: 0.12;
  transform-box: fill-box; transform-origin: center;
  animation: si-globe-pulse 5.5s ease-in-out infinite;
}
.si-globe-parallels ellipse { stroke: rgba(93, 204, 93, 0.42); stroke-width: 1.4; fill: none; }
.si-globe-meridians > * { stroke: rgba(93, 204, 93, 0.60); stroke-width: 1.4; fill: none; }
.si-globe-meridians {
  transform-box: fill-box; transform-origin: center;
  animation: si-globe-spin 48s linear infinite;
}
.si-globe-dots circle { fill: var(--leaf); }
.si-d--solid { animation: si-dot-pulse 3.2s ease-in-out infinite; }
.si-d--ring {
  fill: none; stroke: var(--leaf-2); stroke-width: 2.5;
  transform-box: fill-box; transform-origin: center;
  animation: si-dot-ping 3.4s ease-out infinite;
}
.si-globe-dots .si-d:nth-child(1) { animation-delay: 0s; }
.si-globe-dots .si-d:nth-child(2) { animation-delay: 0.6s; }
.si-globe-dots .si-d:nth-child(3) { animation-delay: 1.2s; }
.si-globe-dots .si-d:nth-child(4) { animation-delay: 0.3s; }
.si-globe-dots .si-d:nth-child(5) { animation-delay: 0.9s; }
.si-globe-dots .si-d:nth-child(6) { animation-delay: 1.5s; }

@keyframes si-globe-pulse {
  0%, 100% { opacity: 0.06; transform: scale(0.72); }
  50%      { opacity: 0.34; transform: scale(1); }
}
@keyframes si-globe-spin { to { transform: rotate(360deg); } }
@keyframes si-dot-pulse { 0%, 100% { opacity: 0.45; } 50% { opacity: 1; } }
@keyframes si-dot-ping {
  0%        { transform: scale(0.6); opacity: 0.9; }
  70%, 100% { transform: scale(2.4); opacity: 0; }
}

/* ============================================================
   3. ECOSYSTEMS + project bubble cloud
   ============================================================ */
.si-eco {
  position: relative;
  background: linear-gradient(180deg, var(--deep), var(--deep-3));
  padding: clamp(70px, 9vw, 130px) 0 clamp(50px, 7vw, 90px);
  overflow: hidden;
}
.si-eco-head {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.si-eco-title {
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #fff;
  max-width: 16ch;
}
.si-eco-lede {
  font-size: clamp(1rem, 1.1vw, 1.1rem);
  color: var(--body);
  line-height: 1.75;
  padding-top: 6px;
}
.si-eco-lede strong { color: #fff; font-weight: 700; }

.si-cloud { margin-top: clamp(26px, 4vw, 54px); }
.si-cloud-stage {
  position: relative;
  width: 100%;
  max-width: var(--maxw);
  height: clamp(560px, 58vw, 740px);
  margin: 0 auto;
}
.si-bubble {
  position: absolute;
  left: var(--x); top: var(--y);
  width: var(--s); height: var(--s);
  margin-left: calc(var(--s) / -2);
  margin-top: calc(var(--s) / -2);
  border-radius: 50%;
  display: grid; place-items: center;
  text-align: center;
  container-type: inline-size;
  animation: si-float 8s ease-in-out infinite;
  animation-delay: var(--d, 0s);
  will-change: transform;
}
.si-bubble--img { overflow: hidden; border: 2px solid var(--leaf); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45); }
.si-bubble--img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.si-bubble--img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8, 18, 12, 0.12), rgba(8, 18, 12, 0.74));
}
.si-bubble--ghost { border: 1.5px dashed rgba(255, 255, 255, 0.28); }
.si-bubble-label {
  position: relative; z-index: 1;
  font-size: clamp(0.55rem, 8.4cqi, 0.92rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.2;
  padding: 0;
  max-width: 72%;
  overflow-wrap: break-word;
  hyphens: auto;
  color: rgba(255, 255, 255, 0.86);
}
.si-bubble--ghost .si-bubble-label { color: rgba(255, 255, 255, 0.6); }

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

/* ============================================================
   4. TRUST + big stat rows
   ============================================================ */
.si-trust { background: var(--deep); padding: clamp(70px, 9vw, 130px) 0; }
.si-trust-title {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #fff;
  max-width: 22ch;
}
.si-trust-rule { display: block; height: 1px; background: var(--line); margin: clamp(20px, 3vw, 30px) 0; }
.si-trust-lede { color: var(--body); max-width: 72ch; font-size: clamp(1rem, 1.1vw, 1.08rem); line-height: 1.7; }
.si-trust-cta { margin-top: 26px; }

.si-rows { margin-top: clamp(30px, 5vw, 64px); display: flex; flex-direction: column; }
.si-row {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) clamp(70px, 12vw, 150px) minmax(0, 1.7fr);
  align-items: center;
  gap: clamp(16px, 3vw, 44px);
  padding: clamp(26px, 4vw, 54px) 0;
  border-top: 1px solid var(--line);
}
.si-row:last-child { border-bottom: 1px solid var(--line); }
.si-row-num {
  font-size: clamp(3.4rem, 9vw, 7rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--leaf);
  font-variant-numeric: tabular-nums;
  display: flex; align-items: baseline;
}
.si-row-unit { font-size: 0.4em; font-weight: 700; color: #fff; margin-left: 6px; }
.si-row-line { height: 1px; background: rgba(255, 255, 255, 0.4); width: 100%; }
.si-row-head { display: block; font-size: clamp(1.6rem, 3.4vw, 2.8rem); font-weight: 500; color: #fff; line-height: 1.05; }
.si-row-head sub { font-size: 0.62em; }
.si-row-sub { display: block; margin-top: 10px; color: var(--muted); font-size: 0.98rem; }
.si-row-sub b { color: var(--leaf); font-weight: 700; }

/* ============================================================
   5. RING-ORBIT scroll stats (light, pinned) — ANIMATION #1
   ============================================================ */
.si-orbit { position: relative; height: 260vh; background: var(--cream-2); }
.si-orbit-stage {
  position: sticky; top: 0;
  height: 100vh;
  display: flex; align-items: center;
  overflow: hidden;
}
.si-orbit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 80px);
  align-items: center;
  width: 100%;
}
.si-orbit-ringwrap { display: flex; justify-content: center; }
.si-orbit-svg { width: min(44vw, 512px); height: auto; overflow: visible; }
.si-orbit-ring { stroke: rgba(10, 18, 12, 0.16); stroke-width: 1.4; fill: none; }
.si-orbit-dots { transform-box: view-box; transform-origin: center; transform: rotate(var(--spin, 0deg)); }
.si-dot { fill: #1d2a22; transition: fill 0.35s ease, filter 0.35s ease; }
.si-dot.is-active { fill: var(--leaf); filter: drop-shadow(0 0 6px rgba(93, 204, 93, 0.65)); }

.si-orbit-panels { position: relative; min-height: 380px; display: grid; }
.si-orbit-panel {
  grid-area: 1 / 1;
  opacity: 0; visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s;
}
.si-orbit-panel.is-active { opacity: 1; visibility: visible; transform: none; }
.si-orbit-num {
  display: block;
  font-size: clamp(3rem, 7vw, 5.6rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.si-orbit-stat { font-size: clamp(1.3rem, 2.2vw, 1.9rem); font-weight: 800; color: var(--ink); margin-top: 18px; line-height: 1.15; }
.si-orbit-stat sub { font-size: 0.62em; }
.si-orbit-stat-sub { font-size: clamp(1.05rem, 1.6vw, 1.4rem); font-weight: 500; color: #2c3a31; margin-top: 4px; line-height: 1.3; }
.si-orbit-desc { margin-top: 18px; color: #566b5f; font-size: 1rem; line-height: 1.6; max-width: 46ch; }

/* ============================================================
   6. AREAS crossfade scroll (full-bleed, pinned) — ANIMATION #2
   ============================================================ */
.si-areas { position: relative; height: 200vh; }
.si-areas-stage { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.si-areas-bg { position: absolute; inset: 0; }
.si-area-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.si-area-bg.is-active { opacity: 1; }
.si-areas-veil {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8, 16, 11, 0.80) 0%, rgba(8, 16, 11, 0.34) 44%, rgba(8, 16, 11, 0.56) 100%);
}
.si-areas-inner {
  position: relative; z-index: 1;
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px;
}
.si-area-names { list-style: none; display: flex; flex-direction: column; gap: clamp(28px, 5vh, 56px); }
.si-area-name {
  font-size: clamp(1.6rem, 3.6vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.30);
  position: relative;
  padding-left: 30px;
  transition: color 0.4s ease;
}
.si-area-name span { color: rgba(255, 255, 255, 0.30); transition: color 0.4s ease; }
.si-area-name::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 11px; height: 11px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
.si-area-name.is-active { color: #fff; }
.si-area-name.is-active span { color: var(--leaf); }
.si-area-name.is-active::before { background: var(--leaf); box-shadow: 0 0 0 6px rgba(93, 204, 93, 0.18); }

.si-area-cards { position: relative; width: min(44%, 540px); min-height: 280px; }
.si-area-card {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  background: rgba(12, 20, 15, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-radius: var(--radius);
  padding: clamp(26px, 3vw, 42px);
  opacity: 0; visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease, visibility 0.6s;
}
.si-area-card.is-active { opacity: 1; visibility: visible; transform: none; }
.si-area-card-title { font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 800; color: #fff; line-height: 1.2; }
.si-area-card-text { margin-top: 14px; color: rgba(255, 255, 255, 0.82); line-height: 1.6; }
.si-scroll-cue {
  position: absolute; left: 24px; bottom: clamp(22px, 4vh, 40px); z-index: 2;
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 0.85rem; color: rgba(255, 255, 255, 0.75);
}
.si-mouse { position: relative; width: 20px; height: 32px; border: 2px solid rgba(255, 255, 255, 0.6); border-radius: 12px; flex: none; }
.si-mouse::before {
  content: ""; position: absolute; left: 50%; top: 7px; transform: translateX(-50%);
  width: 3px; height: 6px; border-radius: 2px; background: #fff;
  animation: si-mouse 1.6s ease-in-out infinite;
}
@keyframes si-mouse {
  0% { opacity: 0; transform: translate(-50%, 0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, 8px); }
}

/* ============================================================
   7. CURATED projects + bottom-to-up image strip — ANIMATION #3
   ============================================================ */
.si-curated { background: var(--deep); padding: clamp(40px, 6vw, 90px) 0; }
.si-curated-card {
  background: #fff;
  border-radius: clamp(20px, 3vw, 32px);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
  padding: clamp(36px, 5vw, 72px);
  box-shadow: var(--shadow);
}
.si-curated-title { display: flex; flex-direction: column; line-height: 1.02; margin-bottom: 20px; }
.si-curated-lead { font-size: clamp(2rem, 4.2vw, 3.4rem); font-weight: 800; color: #9aa39c; letter-spacing: -0.02em; }
.si-curated-strong { font-size: clamp(2rem, 4.2vw, 3.4rem); font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.si-curated-text { color: #4a5a50; font-size: clamp(1rem, 1.2vw, 1.12rem); line-height: 1.7; max-width: 46ch; margin-bottom: 30px; }

.si-curated-strip {
  height: clamp(420px, 60vh, 560px);
  overflow: hidden;
  border-radius: 18px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
}
.si-strip-track {
  display: flex; flex-direction: column;
  animation: si-strip-scroll 32s linear infinite;
  will-change: transform;
}
.si-curated-strip:hover .si-strip-track { animation-play-state: paused; }
.si-strip-shot {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 18px; /* periodic spacing → seamless -50% loop */
  background: var(--deep-3);
}
@keyframes si-strip-scroll { to { transform: translateY(-50%); } }

/* ============================================================
   8. FINAL CTA
   ============================================================ */
.si-cta { position: relative; padding: clamp(90px, 14vw, 180px) 0; overflow: hidden; background: var(--deep-2); }
.si-cta-bg { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.4; }
.si-cta::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, rgba(11, 20, 14, 0.6), rgba(11, 20, 14, 0.86)); }
.si-cta-inner { position: relative; z-index: 1; text-align: center; }
.si-cta-title { font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 800; color: #fff; line-height: 1.1; max-width: 18ch; margin: 0 auto 16px; letter-spacing: -0.02em; }
.si-cta-lede { color: rgba(255, 255, 255, 0.85); font-size: 1.1rem; margin: 0 auto 30px; max-width: 52ch; }
.si-cta-actions { display: flex; justify-content: center; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1080px) {
  .si-row { grid-template-columns: minmax(0, 0.9fr) clamp(50px, 8vw, 110px) minmax(0, 1.7fr); }
}

@media (max-width: 900px) {
  .si-eco-head { grid-template-columns: 1fr; }
  .si-eco-title { max-width: none; }

  /* Bubble cloud → wrapped grid */
  .si-cloud-stage { height: auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; padding-top: 26px; }
  .si-bubble {
    position: static; margin: 0;
    width: clamp(120px, 38vw, 180px) !important;
    height: clamp(120px, 38vw, 180px) !important;
    animation: none;
  }
  .si-extra { display: none; }

  /* Un-pin orbit → stacked list */
  .si-orbit { height: auto; }
  .si-orbit-stage { position: static; height: auto; padding: clamp(60px, 10vw, 96px) 0; }
  .si-orbit-grid { grid-template-columns: 1fr; gap: 36px; }
  .si-orbit-ringwrap { display: none; }
  .si-orbit-panels { min-height: 0; display: flex; flex-direction: column; gap: 52px; }
  .si-orbit-panel { position: static; opacity: 1; visibility: visible; transform: none; }

  /* Un-pin areas → stacked over a single backdrop */
  .si-areas { height: auto; }
  .si-areas-stage { position: static; height: auto; }
  .si-area-bg { display: none; }
  .si-area-bg.is-active { display: block; }
  .si-areas-inner { flex-direction: column; align-items: stretch; gap: 22px; padding: clamp(70px, 12vw, 100px) 0; }
  .si-area-names { flex-direction: row; flex-wrap: wrap; gap: 14px 22px; }
  .si-area-name { font-size: clamp(1.2rem, 5vw, 1.6rem); padding-left: 24px; }
  .si-area-cards { width: auto; min-height: 0; }
  .si-area-card { position: static; opacity: 1; visibility: visible; transform: none; margin-bottom: 16px; }
  .si-area-card:last-child { margin-bottom: 0; }
  .si-scroll-cue { display: none; }

  .si-curated-card { grid-template-columns: 1fr; }
  .si-curated-strip { height: 380px; }
}

@media (max-width: 760px) {
  .si-globe { min-height: clamp(160px, 26vh, 320px); }
  .si-globe-svg { width: 168vw; }
  .si-row { grid-template-columns: 1fr; gap: 8px; }
  .si-row-line { display: none; }
  .si-row-num { font-size: clamp(3.2rem, 16vw, 5rem); }
}

/* ============================================================
   Reduced motion — kill ambient motion + un-pin scroll sections
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .si-globe-fill, .si-globe-meridians, .si-d--solid, .si-d--ring,
  .si-bubble, .si-strip-track, .si-mouse::before {
    animation: none !important;
  }
  .si-globe-fill { opacity: 0.18; }

  .si-orbit { height: auto; }
  .si-orbit-stage { position: static; height: auto; padding: 80px 0; }
  .si-orbit-grid { grid-template-columns: 1fr; gap: 36px; }
  .si-orbit-ringwrap { display: none; }
  .si-orbit-panels { min-height: 0; display: flex; flex-direction: column; gap: 52px; }
  .si-orbit-panel { position: static; opacity: 1; visibility: visible; transform: none; }

  .si-areas { height: auto; }
  .si-areas-stage { position: static; height: auto; }
  .si-area-bg { display: none; }
  .si-area-bg.is-active { display: block; }
  .si-areas-inner { flex-direction: column; align-items: stretch; gap: 22px; padding: 90px 0; }
  .si-area-names { flex-direction: row; flex-wrap: wrap; gap: 14px 22px; }
  .si-area-cards { width: auto; min-height: 0; }
  .si-area-card { position: static; opacity: 1; visibility: visible; transform: none; margin-bottom: 16px; }
  .si-scroll-cue { display: none; }
}
