/* ============================================================
   KAPNOX — "Foundation & Orbit" design language
   Pyramids (triangles) + concentric circles/orbits, from the logo.
   Loaded after site.css; reuses its :root tokens.
   ============================================================ */

.geo { position: relative; overflow: hidden; }
/* faint concentric-ring watermark behind sections */
.geo > .rings-wm {
  position: absolute;
  width: 620px; height: 620px;
  border-radius: 50%;
  pointer-events: none;
  opacity: .5;
  z-index: 0;
  background:
    radial-gradient(circle, transparent 0 68px, rgba(6,0,94,.06) 68px 70px, transparent 70px 128px,
    rgba(6,0,94,.05) 128px 130px, transparent 130px 200px, rgba(6,0,94,.04) 200px 202px,
    transparent 202px 280px, rgba(184,134,11,.10) 280px 282px, transparent 282px);
}
.geo > .rings-wm.tr { top: -220px; right: -180px; }
.geo > .rings-wm.bl { bottom: -240px; left: -200px; }
.geo .container { position: relative; z-index: 1; }

/* triangular bullet */
.tri-list { list-style: none; padding: 0; margin: 18px 0 0; }
.tri-list li { position: relative; padding-left: 22px; margin-bottom: 12px; color: var(--muted); }
.tri-list li::before {
  content: ""; position: absolute; left: 0; top: .5em;
  border-left: 6px solid transparent; border-right: 6px solid transparent;
  border-bottom: 10px solid var(--gold-deep);
}

/* ============================================================
   ABOUT — the Legacy Pyramid
   ============================================================ */
.legacy-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.legacy-visual { display: grid; place-items: center; }
.legacy-pyramid { width: min(100%, 420px); }
.legacy-pyramid .lp-ring { transform-origin: 200px 232px; animation: spin 60s linear infinite; }
.legacy-pyramid .lp-ring.rev { animation-duration: 90s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.legacy-kicker { font-size: clamp(1.6rem, 3.4vw, 2.5rem); font-weight: 800; color: var(--navy); line-height: 1.1; margin-bottom: 8px; }
.legacy-kicker .k { color: var(--red); }
.legacy-sub { font-size: 1.05rem; color: var(--gold-deep); font-weight: 700; letter-spacing: .01em; margin-bottom: 22px; }

/* ============================================================
   VENTURES — the Galaxy (solar-system orbit)
   ============================================================ */
.space { background: radial-gradient(120% 100% at 50% 28%, #201873 0%, #0a0430 48%, #05021b 100%); color: #fff; }
.space .section-title { color: #fff; }
.space .lead { color: rgba(255,255,255,.72); }
.space .eyebrow { background: rgba(255,255,255,.12); color: var(--gold); }

.orbit-wrap { display: grid; place-items: center; margin: 6px auto 56px; }
.orbit { width: min(100%, 640px); overflow: visible; }
.orbit .stars circle { animation: twinkle 3.5s ease-in-out infinite; }
.orbit .stars circle:nth-child(3n) { animation-duration: 5s; }
.orbit .stars circle:nth-child(4n+1) { animation-duration: 6.5s; }
@keyframes twinkle { 0%, 100% { opacity: .2; } 50% { opacity: .95; } }
.gx-ring { fill: none; stroke: rgba(255,255,255,.14); }
.gx-ring.gx-rot { stroke: rgba(255,215,0,.4); stroke-dasharray: 4 11; transform-origin: 230px 230px; animation: spin 90s linear infinite; }
.gx-glow { fill: #ffd700; opacity: .3; filter: blur(15px); }
.gx-planet { fill: #150c42; stroke: var(--gold); stroke-width: 2; filter: drop-shadow(0 0 7px rgba(255,215,0,.55)); transition: transform .25s var(--ease), fill .25s; transform-box: fill-box; transform-origin: center; }
.gx-name { fill: #fff; font: 800 12px var(--font); }
.gx-rev { fill: var(--gold-soft); font: 700 8px var(--font); letter-spacing: .4px; text-transform: uppercase; }
.revolve { animation: spin 24s linear infinite; }
.revolve.rv2 { animation-duration: 30s; animation-direction: reverse; }
.revolve.rv3 { animation-duration: 26s; }
.revolve.rv4 { animation-duration: 32s; animation-direction: reverse; }
.planet { cursor: pointer; }
.planet:hover .gx-planet { fill: var(--red); transform: scale(1.14); }

/* venture cards on the dark galaxy background */
.space .venture { background: rgba(255,255,255,.055); border-color: rgba(255,255,255,.14); box-shadow: 0 14px 34px rgba(0,0,0,.4); }
.space .venture h3 { color: #fff; }
.space .venture p { color: rgba(255,255,255,.72); }
.space .venture p em { color: rgba(255,255,255,.55); }
.space .venture .v-badge { background: rgba(255,255,255,.08); border-color: var(--gold); color: #fff; }
.space .venture .v-tag { color: var(--gold-soft); }
.space .venture .v-link { color: #fff; }
.space .venture .v-soon { color: var(--gold-soft); }

.ventures-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
.venture {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 30px 26px 26px; box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
/* triangular top-corner accent */
.venture::after {
  content: ""; position: absolute; top: 0; right: 0;
  border-top: 46px solid var(--accent, var(--navy));
  border-left: 46px solid transparent;
  opacity: .9;
}
.venture:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.venture .v-badge {
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; margin-bottom: 18px;
  background: var(--accent-soft, #eceaf6); color: var(--accent, var(--navy));
  border: 2px solid var(--accent, var(--navy));
}
.venture .v-badge svg { width: 27px; height: 27px; }
.venture .v-tag { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent, var(--navy)); }
.venture h3 { font-size: 1.25rem; margin: 3px 0 8px; }
.venture p { color: var(--muted); font-size: .94rem; margin: 0 0 14px; }
.venture .v-link { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; color: var(--navy); font-size: .9rem; }
.venture .v-link svg { width: 15px; height: 15px; transition: transform .25s; }
.venture:hover .v-link svg { transform: translateX(4px); }
.venture .v-soon { font-size: .8rem; font-weight: 700; color: var(--gold-deep); }

/* ============================================================
   BRANDS — the Check-board Wall (logos scattered on a wall)
   ============================================================ */
.brand-wall {
  position: relative;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 30px 40px;
  padding: 54px 34px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background-color: #faf5e6;
  /* faint checker-board wall */
  background-image:
    linear-gradient(45deg, rgba(6,0,94,.035) 25%, transparent 25%, transparent 75%, rgba(6,0,94,.035) 75%),
    linear-gradient(45deg, rgba(6,0,94,.035) 25%, transparent 25%, transparent 75%, rgba(6,0,94,.035) 75%);
  background-size: 46px 46px;
  background-position: 0 0, 23px 23px;
  box-shadow: inset 0 2px 20px rgba(6,0,94,.05);
}
.btile {
  display: grid; place-items: center;
  width: 190px; height: 118px; padding: 20px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 8px 22px rgba(6,0,94,.10);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.btile img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.btile:hover { transform: translateY(-8px) rotate(0deg) scale(1.04) !important; box-shadow: var(--shadow); z-index: 3; }
/* scattered "pinned to the wall" placement */
.btile.r1 { transform: rotate(-4deg); }
.btile.r2 { transform: rotate(3deg) translateY(18px); }
.btile.r3 { transform: rotate(-2.5deg) translateY(-14px); width: 214px; }
.btile.r4 { transform: rotate(5deg) translateY(10px); }
.btile.r5 { transform: rotate(-3.5deg) translateY(-8px); }
@media (max-width: 560px) {
  .brand-wall { padding: 34px 18px; gap: 20px; }
  .btile { transform: none !important; width: 44%; min-width: 130px; height: 96px; padding: 14px; }
}

/* ============================================================
   INVESTORS — pyramid tiers + circular gauges
   ============================================================ */
.inv-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: center; }
.gauges { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 20px; }
.gauge {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px 18px; text-align: center;
  position: relative;
}
.gauge .ring { width: 92px; height: 92px; margin: 0 auto 12px; display: grid; place-items: center; border-radius: 50%;
  background: conic-gradient(var(--gold) var(--p, 75%), var(--line) 0); }
.gauge .ring i { width: 74px; height: 74px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-style: normal; font-weight: 800; color: var(--navy); font-size: 1.15rem; }
.gauge b { display: block; color: var(--navy); font-weight: 800; font-size: 1.05rem; }
.gauge span { color: var(--muted); font-size: .84rem; }

/* ============================================================
   CAREERS
   ============================================================ */
.why-join { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 22px; margin-bottom: 40px; }
.wj { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px; text-align: center; }
.wj .circ { width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--gold-deep); color: var(--navy); display: grid; place-items: center; margin: 0 auto 14px; }
.wj .circ svg { width: 26px; height: 26px; }
.wj h4 { font-size: 1.08rem; }
.wj p { color: var(--muted); font-size: .92rem; margin: 0; }
.openings { background: var(--cream); border: 1px solid var(--line); border-radius: 18px; padding: 30px; text-align: center; }
.openings h3 { font-size: 1.3rem; }
.openings p { color: var(--muted); max-width: 52ch; margin-inline: auto; }

/* ============================================================
   PARTNER WITH US
   ============================================================ */
.partner-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 24px; }
.pcard { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px 26px; overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.pcard::after { content: ""; position: absolute; bottom: 0; left: 0; border-bottom: 40px solid var(--gold-soft); border-right: 40px solid transparent; opacity: .9; }
.pcard:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.pcard .circ { width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--navy); color: var(--navy); display: grid; place-items: center; margin-bottom: 16px; position: relative; z-index: 1; }
.pcard .circ svg { width: 25px; height: 25px; }
.pcard h4 { font-size: 1.1rem; position: relative; z-index: 1; }
.pcard p { color: var(--muted); font-size: .92rem; margin: 0; position: relative; z-index: 1; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .legacy-grid, .inv-grid { grid-template-columns: 1fr; gap: 36px; }
  .legacy-visual { order: -1; }
  .legacy-pyramid { width: 300px; }
}
@media (prefers-reduced-motion: reduce) {
  .legacy-pyramid .lp-ring, .gx-ring.gx-rot, .revolve, .orbit .stars circle { animation: none; }
}
