/* ───────────────────────────────────────────────────────────────────────────
   OSPREXON — About / "Who We Are" section
   Editorial 2-column composition with floating papers, glowing orb, dot grid,
   stamp, and tiny ambient particles. Self-contained styles.
   ─────────────────────────────────────────────────────────────────────── */

/* ---------- Section shell (full-bleed, matches finder-section) ---------- */
.about-os {
  --about-ink: #14151a;
  --about-muted: #4d5058;
  --about-eyebrow: #b87a12;
  --about-accent: #e89422;
  --about-card-bg: #ffffff;
  --about-card-border: rgba(20, 21, 26, 0.06);
  --about-card-shadow:
    0 1px 0 rgba(20, 21, 26, 0.02), 0 12px 28px -16px rgba(20, 21, 26, 0.16),
    0 30px 60px -40px rgba(184, 122, 18, 0.18);
  --about-card-shadow-hover:
    0 1px 0 rgba(20, 21, 26, 0.02), 0 18px 38px -18px rgba(20, 21, 26, 0.22),
    0 40px 80px -38px rgba(184, 122, 18, 0.28);

  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  margin: clamp(2rem, 5vw, 4rem) 0 0;
  padding-block: clamp(4rem, 9vw, 6.5rem);
  /* Reserve space for the bottom marquee ticker. */
  padding-bottom: calc(clamp(4rem, 9vw, 6.5rem) + 3.25rem);
  padding-inline: 0;
  width: 100%;
  min-height: clamp(640px, 88vh, 920px);
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro",
    "Segoe UI",
    sans-serif;
  color: var(--about-ink);
  background:
    radial-gradient(
      ellipse 90% 60% at 12% -10%,
      rgba(245, 232, 208, 0.55) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 70% 50% at 100% 100%,
      rgba(232, 148, 34, 0.07) 0%,
      transparent 60%
    ),
    linear-gradient(180deg, #ffffff 0%, #fbf6ea 55%, #f1e6cf 100%);
  /* Hairline divider at the bottom so this section reads as its own
     "page" before the Studio section begins, instead of bleeding into it. */
  border-bottom: 1px solid rgba(184, 122, 18, 0.18);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 24px 48px -32px rgba(184, 122, 18, 0.18);
  overflow: hidden;
}

/* Services ticker — bottom of section, cream theme */
.about-os__marquee {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  padding: clamp(0.75rem, 1.6vh, 0.95rem) 0;
  border-top: 1px solid rgba(184, 122, 18, 0.22);
  background: linear-gradient(
    180deg,
    rgba(251, 246, 234, 0.55) 0%,
    rgba(241, 230, 207, 0.92) 100%
  );
  overflow: hidden;
}

.about-os__marquee-track {
  display: flex;
  width: max-content;
  animation: about-os-marquee 32s linear infinite;
}

.about-os__marquee-track span {
  flex-shrink: 0;
  padding-right: 4.5rem;
  font-family: "Instrument Serif", "Times New Roman", serif;
  font-size: clamp(1.05rem, 1.9vw, 1.6rem);
  letter-spacing: 0.22em;
  word-spacing: 0.35em;
  color: rgba(20, 21, 26, 0.3);
  white-space: nowrap;
}

.about-os__marquee-track em {
  font-style: normal;
  color: var(--about-accent);
  font-weight: 400;
}

@keyframes about-os-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Subtle paper grain — extremely faint, premium, never noisy. */
.about-os::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image:
    radial-gradient(rgba(20, 21, 26, 0.025) 0.5px, transparent 0.5px),
    radial-gradient(rgba(20, 21, 26, 0.018) 0.5px, transparent 0.5px);
  background-size:
    22px 22px,
    14px 14px;
  background-position:
    0 0,
    7px 7px;
}

.about-os__inner {
  position: relative;
  width: min(100%, var(--container-w));
  margin-inline: auto;
  margin-block: auto;
  padding-inline: var(--container-pad-x);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  align-content: center;
}

/* ---------- Left: editorial copy + service grid ---------- */
.about-os__copy {
  max-width: 38rem;
}

.about-os__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--about-eyebrow);
}
.about-os__eyebrow::before {
  content: "";
  width: 24px;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  opacity: 0.7;
}

.about-os__title {
  margin: 0 0 1.15rem;
  font-size: clamp(1.85rem, 3.6vw, 3.05rem);
  line-height: 1.06;
  letter-spacing: -0.032em;
  font-weight: 700;
  color: var(--about-ink);
}
.about-os__title em {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: var(--about-accent);
}

.about-os__lede {
  margin: 0 0 1.25rem;
  font-size: clamp(0.98rem, 1.25vw, 1.08rem);
  line-height: 1.7;
  color: var(--about-muted);
  max-width: 34em;
}

.about-os__founders {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 clamp(1.75rem, 4vw, 2.5rem);
  padding: 0.55rem 1.25rem 0.55rem 0.55rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(20, 21, 26, 0.06);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: 0.92rem;
  color: var(--about-ink);
}
.about-os__founders-avatars {
  display: inline-flex;
}
.about-os__avatar {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2.5px solid #fff;
  margin-left: -14px;
  overflow: hidden;
  /* Gradient fallback so the chip stays beautiful even before the
     photo files are dropped into /assets. */
  background: linear-gradient(135deg, #f1c97f, #e89422);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 6px 14px rgba(184, 122, 18, 0.24);
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    z-index 0s 0.45s;
}
.about-os__avatar:hover {
  transform: translateY(-2px) scale(1.08);
  z-index: 2;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 10px 22px rgba(184, 122, 18, 0.32);
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    z-index 0s;
}
.about-os__avatar:first-child {
  margin-left: 0;
  background: linear-gradient(135deg, #c9d4ff, #6e7fff);
}
.about-os__avatar:nth-child(2) {
  background: linear-gradient(135deg, #ffd6c4, #ff8a5b);
}
.about-os__avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Founder portraits — enforce a single 48px circular size across all
   three sources so any cropping/aspect inconsistencies in the source
   files don't bleed into the layout. */
img[src*="ananye"],
img[src*="tejas"],
img[src*="aviral"] {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 50%;
  display: inline-block;
}
.about-os__founders-label {
  white-space: nowrap;
}
.about-os__founders-label strong {
  font-weight: 600;
}

.about-os__services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.65rem, 1.4vw, 1rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.about-os__service {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: clamp(0.95rem, 1.6vw, 1.15rem) clamp(1rem, 1.6vw, 1.2rem);
  background: var(--about-card-bg);
  border: 1px solid var(--about-card-border);
  border-radius: 16px;
  box-shadow: var(--about-card-shadow);
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  cursor: default;
}
.about-os__service:hover {
  transform: translateY(-4px);
  box-shadow: var(--about-card-shadow-hover);
  border-color: rgba(232, 148, 34, 0.25);
}
.about-os__service-icon {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(
    135deg,
    rgba(232, 148, 34, 0.14),
    rgba(232, 148, 34, 0.04)
  );
  color: var(--about-accent);
}
.about-os__service-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.about-os__service-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.about-os__service-title {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--about-ink);
  line-height: 1.2;
}
.about-os__service-sub {
  /* Sit visually below the service title — 1–2px smaller, lighter weight,
     and lower opacity so the title carries the hierarchy. */
  font-size: 0.85rem;
  font-weight: 400;
  opacity: 0.6;
  color: var(--about-muted);
  line-height: 1.45;
}

/* ---------- Right: artistic visual stage ---------- */
.about-os__stage {
  position: relative;
  aspect-ratio: 1 / 1;
  max-height: 560px;
  min-height: 380px;
  contain: layout paint;
  transform: translateZ(0);
}

/* Soft glowing orb */
.about-os__orb {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 62%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle at 35% 35%,
    rgba(255, 220, 165, 0.85) 0%,
    rgba(232, 148, 34, 0.35) 38%,
    rgba(232, 148, 34, 0.05) 70%,
    transparent 78%
  );
  filter: blur(2px);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

/* Dot grid plate behind everything */
.about-os__grid {
  position: absolute;
  inset: 8% 6% 8% 6%;
  border-radius: 28px;
  background-color: rgba(255, 255, 255, 0.55);
  background-image: radial-gradient(
    rgba(20, 21, 26, 0.16) 1px,
    transparent 1.4px
  );
  background-size: 18px 18px;
  background-position: 9px 9px;
  border: 1px solid rgba(20, 21, 26, 0.05);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.7),
    0 30px 70px -40px rgba(184, 122, 18, 0.22);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 0;
}

/* Floating "paper" labels */
.about-os__paper {
  position: absolute;
  background: var(--about-card-bg);
  border: 1px solid var(--about-card-border);
  border-radius: 14px;
  box-shadow: var(--about-card-shadow);
  padding: 0.7rem 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--about-ink);
  z-index: 3;
}
.about-os__paper-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--about-accent);
  box-shadow: 0 0 0 3px rgba(232, 148, 34, 0.18);
}
.about-os__paper-meta {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--about-eyebrow);
  margin-bottom: 2px;
}

.about-os__paper--ai {
  top: 8%;
  right: 6%;
}
.about-os__paper--creative {
  bottom: 12%;
  left: 4%;
}
.about-os__paper--ship {
  top: 44%;
  right: 0%;
  padding: 0.5rem 0.8rem;
  font-size: 0.74rem;
}

/* Center stamp/logo card */
.about-os__stamp {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-2deg);
  background: linear-gradient(180deg, #ffffff, #fffaf0);
  border: 1px solid rgba(232, 148, 34, 0.18);
  border-radius: 18px;
  padding: 1.1rem 1.4rem;
  box-shadow:
    0 1px 0 rgba(20, 21, 26, 0.02),
    0 24px 50px -20px rgba(184, 122, 18, 0.32);
  text-align: center;
  z-index: 4;
}
.about-os__lottie {
  position: absolute;
  top: -18px;
  right: -18px;
  width: 52px;
  height: 52px;
  pointer-events: none;
  opacity: 0.9;
}
.about-os__stamp-mark {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.95rem;
  line-height: 1;
  color: var(--about-accent);
  letter-spacing: -0.01em;
}
.about-os__stamp-line {
  margin-top: 0.4rem;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--about-ink);
}
/* Three.js particle canvas */
.about-os__particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}
.about-os__particles-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Scroll reveals — animated by GSAP ScrollTrigger (see js/about.js) */
.about-os [data-about-reveal] {
  will-change: transform, opacity;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .about-os__inner {
    /* Slightly tighter gap so the right column doesn't drift away from the
       editorial copy on iPad-class widths. */
    gap: clamp(2rem, 4.5vw, 3.5rem);
  }
  .about-os__copy {
    max-width: none;
  }
  .about-os__lede {
    max-width: 38em;
  }
}
@media (max-width: 960px) {
  .about-os {
    margin-top: clamp(0.5rem, 2vw, 1.5rem);
    min-height: auto;
    padding-block: clamp(3.5rem, 8vw, 5.5rem);
    padding-bottom: calc(clamp(3.5rem, 8vw, 5.5rem) + 3rem);
  }
  .about-os__inner {
    grid-template-columns: 1fr;
    gap: clamp(2.25rem, 5.5vw, 3.25rem);
    text-align: left;
  }
  .about-os__copy {
    max-width: 56rem;
    margin-inline: auto;
  }
  .about-os__lede {
    max-width: none;
  }
  .about-os__stage {
    width: 100%;
    max-width: 520px;
    margin-inline: auto;
  }
  .about-os__founders-label {
    white-space: normal;
  }
}
@media (max-width: 768px) {
  .about-os__services {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }
  .about-os__stage {
    min-height: 320px;
    max-height: 460px;
  }
  .about-os__paper--ship {
    display: none;
  }
  .about-os__founders {
    flex-wrap: wrap;
    border-radius: 14px;
  }
}
@media (max-width: 480px) {
  .about-os {
    padding-block: clamp(3rem, 9vw, 4.5rem) clamp(3rem, 9vw, 4.5rem);
  }
  .about-os__stage {
    min-height: 280px;
    max-height: 380px;
  }
  /* Pull the floating papers in tighter so they can't escape the stage's
     clipping box on very narrow viewports. */
  .about-os__paper--ai {
    top: 6%;
    right: 4%;
  }
  .about-os__paper--creative {
    bottom: 8%;
    left: 4%;
  }
  .about-os__paper {
    font-size: 0.72rem;
    padding: 0.45rem 0.7rem;
  }
  .about-os__stamp {
    padding: 0.7rem 0.9rem;
  }
  .about-os__founders {
    padding: 0.7rem 0.9rem;
    gap: 0.5rem;
  }
  .about-os__avatar {
    width: 40px;
    height: 40px;
  }
}
@media (max-width: 390px) {
  .about-os__service {
    padding: 0.85rem 0.95rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-os [data-about-reveal] {
    opacity: 1;
    transform: none;
  }

  .about-os__marquee-track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: auto;
    margin-inline: auto;
    padding-inline: 1rem;
  }

  .about-os__marquee-track span[aria-hidden="true"] {
    display: none;
  }
}
