/* =========================================================
   AVOLVE Media — ABOUT page: "THE FOUNDERS" section

   Every rule starts with .founders or .founder, so no other section changes.
   Portraits: the original transparent PNGs, unchanged
     assets/about/founder-aum-vaidya.png, assets/about/founder-aman-sharma.png
   The bottom fade, rim light and glow are CSS effects only.
   Planets reuse the site's existing artwork in assets/orbit/.
   ========================================================= */

.founders {
  --fd-night: #000001;
  --fd-warm: #ece4dc;
  --fd-cyan: #00f0ff;
  --fd-w: min(37.6vw, 578px);          /* portrait box width (desktop) */
  position: relative;
  isolation: isolate;
  margin: 0 var(--frame-gap) var(--frame-gap);
  border-radius: var(--radius-frame);
  overflow: hidden;
  overflow: clip;
  color: var(--fd-warm);
  background:
    radial-gradient(40% 30% at 78% 14%, rgba(0, 240, 255, .05), transparent 70%),
    radial-gradient(36% 28% at 14% 36%, rgba(0, 240, 255, .035), transparent 70%),
    url("../outro/stars.svg") 0 0 / 640px 640px repeat,
    var(--fd-night);
}
/* fine grain */
.founders::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: .55;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .93 0 0 0 0 .89 0 0 0 0 .86 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
:where(.founders) :is(h2, h3, p) { margin: 0; }

.founders__inner {
  position: relative;
  max-width: 1536px;
  margin: 0 auto;
  padding: clamp(40px, 3.2vw, 56px) var(--pad-x) clamp(40px, 4vw, 64px);
  text-align: center;
}

/* ---------- Decorative space (behind portraits and text) ---------- */
.founders__space {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}
.founders__layer { position: absolute; inset: 0; will-change: transform; }
.founders__orbit { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.founders__planet { position: absolute; display: block; height: auto; }
.founders__planet--moon   { left: 11.4%; top: 23%;  width: clamp(54px, 5.4vw, 86px); }
.founders__planet--ringed { left: 80.6%; top: 27.5%; width: clamp(160px, 18.6vw, 292px); filter: brightness(.5) saturate(.85); }
.founders__dot {
  position: absolute;
  left: 50.5%; top: 46.4%;
  width: 15px; height: 15px;
  margin: -7.5px 0 0 -7.5px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 32%, #6f7f86, #1e2427 60%, #090b0c);
  box-shadow: 0 0 6px rgba(0, 240, 255, .18);
}

/* ---------- Heading ---------- */
.founders__head { position: relative; z-index: 2; }
.founders__label {
  font-family: "Inter Strip", "Inter Create", var(--sans);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .4em;
  margin-right: -.4em;
  text-transform: uppercase;
  color: var(--fd-cyan);
}
.founders__title {
  margin-top: clamp(10px, 1vw, 16px);
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 5.4vw, 5.6rem);
  line-height: 1;
  letter-spacing: -.015em;
  color: var(--fd-warm);
}
.founders__line { display: block; }
.founders__title em { font-style: italic; }

/* ---------- Profiles ---------- */
.founders__people {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 3%;
  max-width: 1240px;
  margin: clamp(4px, .6vw, 10px) auto 0;
}
.founder { display: flex; flex-direction: column; align-items: center; }

/* Both portraits sit in identical square boxes, so names line up.
   Aman's PNG is shown at 92% and nudged down so both faces read at the same scale
   with level eye lines (measured: eyes at 239 px vs 246 px of 1080; face width ratio 0.92). */
.founder__portrait {
  position: relative;
  width: var(--fd-w);
  aspect-ratio: 1;
}
.founder__portrait::before {          /* soft cyan light behind the shoulders */
  content: "";
  position: absolute;
  left: 8%; right: 8%; top: 30%; bottom: 12%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 240, 255, .17), rgba(0, 240, 255, .05) 60%, transparent);
  filter: blur(18px);
}
.founder__img {
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  height: auto;
  /* gentle fade at the bottom of the suit (the PNG itself is unchanged) */
  -webkit-mask-image: linear-gradient(180deg, #000 66%, rgba(0, 0, 0, .55) 82%, transparent 97%);
          mask-image: linear-gradient(180deg, #000 66%, rgba(0, 0, 0, .55) 82%, transparent 97%);
  /* subtle cyan rim light around the silhouette */
  filter: drop-shadow(0 0 1.5px rgba(0, 240, 255, .35)) drop-shadow(0 0 12px rgba(0, 240, 255, .22));
}
.founder--aman .founder__img { left: 4%; top: 1.17%; width: 92%; }

.founder__name {
  position: relative;
  margin-top: calc(var(--fd-w) * -.075);   /* sits over the faded base of the suit */
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.1rem, 3.9vw, 4rem);
  line-height: 1;
  letter-spacing: -.01em;
  color: var(--fd-warm);
}
.founder__role {
  margin-top: clamp(10px, 1vw, 16px);
  margin-right: -.32em;
  font-family: "Inter Strip", "Inter Create", var(--sans);
  font-weight: 700;
  font-size: clamp(.78rem, .95vw, .95rem);
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--fd-cyan);
}
.founder__bio {
  max-width: 24em;
  margin-top: clamp(10px, 1vw, 16px);
  font-size: clamp(1rem, 1.25vw, 1.2rem);
  line-height: 1.4;
  color: rgba(236, 228, 220, .9);
  text-wrap: balance;
}

/* ---------- Signature ---------- */
.founders__sign {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  margin-top: clamp(40px, 4.2vw, 64px);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.15rem, 1.6vw, 1.55rem);
  letter-spacing: .06em;
  color: rgba(236, 228, 220, .8);
}
.founders__sign::before,
.founders__sign::after {
  content: "";
  width: clamp(40px, 6vw, 90px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(236, 228, 220, .45), transparent);
}

/* ---------- Tablet ---------- */
@media (max-width: 1099px) {
  .founders { --fd-w: min(44vw, 460px); }
  .founders__planet--moon { left: 3%; top: 30%; }
  .founders__layer .founders__planet--ringed { display: none; }
}

/* ---------- Mobile: Aum's profile, then Aman's; fewer, smaller planets ---------- */
@media (max-width: 759px) {
  .founders { --fd-w: min(86vw, 420px); }
  .founders__inner { padding: 48px 20px 52px; }
  .founders__people { grid-template-columns: 1fr; row-gap: 48px; margin-top: 8px; }
  .founders__planet--moon { left: auto; right: 5%; top: 47%; width: 40px; }   /* between the two profiles, away from text */
  .founders__layer .founders__planet--ringed,
  .founders__layer .founders__dot,
  .founders__layer--orbit { display: none; }
  .founder__bio { max-width: 20em; }
  .founders__sign { font-size: 1.08rem; letter-spacing: .03em; gap: 12px; white-space: nowrap; }
  .founders__sign::before, .founders__sign::after { width: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .founders__layer { transform: none !important; will-change: auto; }
}
