/* ───────────────────────────────────────────────────────────────────────────
   OSPREXON — HackLab / "Our Roots" section
   Premium community showcase matching the site's editorial design language.
   Centered layout with prominent founder spotlights, stats bar, and
   the same orange/gold palette used throughout the brand.
   ─────────────────────────────────────────────────────────────────────── */

/* ---------- Section shell ---------- */
.hacklab {
  --hl-ink: #14151a;
  --hl-muted: #4d5058;
  --hl-eyebrow: #b87a12;
  --hl-accent: #e89422;
  --hl-accent-soft: rgba(232, 148, 34, 0.12);
  --hl-card-bg: #ffffff;
  --hl-card-border: rgba(20, 21, 26, 0.06);
  --hl-card-shadow:
    0 1px 0 rgba(20, 21, 26, 0.02),
    0 12px 28px -16px rgba(20, 21, 26, 0.12),
    0 30px 60px -40px rgba(184, 122, 18, 0.14);
  --hl-card-shadow-hover:
    0 1px 0 rgba(20, 21, 26, 0.02),
    0 18px 38px -18px rgba(20, 21, 26, 0.18),
    0 40px 80px -38px rgba(184, 122, 18, 0.22);

  position: relative;
  isolation: isolate;
  padding-block: clamp(5rem, 10vw, 8rem);
  padding-inline: var(--container-pad-x, clamp(1.1rem, 4vw, 2rem));
  font-family: var(--font-sans, "Inter", system-ui, sans-serif);
  color: var(--hl-ink);
  background:
    radial-gradient(
      ellipse 70% 50% at 85% 10%,
      rgba(245, 232, 208, 0.45) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 60% 45% at 10% 90%,
      rgba(232, 148, 34, 0.06) 0%,
      transparent 55%
    ),
    linear-gradient(180deg, #ffffff 0%, #fdfaf3 45%, #f8f0de 100%);
  border-top: 1px solid rgba(184, 122, 18, 0.12);
  border-bottom: 1px solid rgba(184, 122, 18, 0.12);
  overflow: hidden;
}

/* Subtle dotted pattern matching the hero frame */
.hacklab::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.28;
  background-image: radial-gradient(circle, #c9c0af 0.8px, transparent 0.8px);
  background-size: 28px 28px;
  z-index: 0;
}

/* Warm glow orb — ambient decoration */
.hacklab::after {
  content: "";
  position: absolute;
  top: -15%;
  right: -8%;
  width: clamp(320px, 40vw, 600px);
  height: clamp(320px, 40vw, 600px);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(242, 153, 0, 0.08) 0%,
    transparent 70%
  );
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

/* ---------- Inner container ---------- */
.hacklab__inner {
  position: relative;
  z-index: 1;
  max-width: var(--container-w, 1240px);
  margin: 0 auto;
}

/* ---------- Centered header ---------- */
.hacklab__header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(2.5rem, 4vw, 3.5rem);
}

/* ---------- Eyebrow badge ---------- */
.hacklab__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 clamp(16px, 2.5vw, 24px);
  padding: 6px 16px 6px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--hl-eyebrow);
  background: var(--hl-accent-soft);
  border: 1px solid rgba(184, 122, 18, 0.18);
  border-radius: 999px;
  line-height: 1;
}
.hacklab__eyebrow::before {
  content: "";
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--hl-accent);
  box-shadow: 0 0 0 3px rgba(232, 148, 34, 0.22);
}

/* ---------- Heading ---------- */
.hacklab__title {
  margin: 0 0 clamp(14px, 2vw, 20px);
  font-family: var(--font-sans, "Inter", system-ui, sans-serif);
  font-size: clamp(1.85rem, 4.2vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--hl-ink);
}
.hacklab__title em {
  font-family: var(--font-display, "Instrument Serif", serif);
  font-style: italic;
  font-weight: 400;
  color: var(--hl-accent);
}

/* ---------- Lead paragraph ---------- */
.hacklab__lede {
  margin: 0;
  font-size: clamp(0.95rem, 1.25vw, 1.08rem);
  line-height: 1.75;
  color: var(--hl-muted);
}

/* ---------- Key points — 3 compact feature cards ---------- */
.hacklab__points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 1.8vw, 20px);
  margin: 0 0 clamp(3rem, 5vw, 4rem);
  list-style: none;
  padding: 0;
}

.hacklab__point {
  padding: clamp(22px, 2.8vw, 32px) clamp(18px, 2.2vw, 26px);
  background: var(--hl-card-bg);
  border: 1px solid var(--hl-card-border);
  border-radius: clamp(16px, 2vw, 22px);
  box-shadow: var(--hl-card-shadow);
  transition: box-shadow 0.35s ease, transform 0.35s ease;
  will-change: transform;
  text-align: center;
}
.hacklab__point:hover {
  box-shadow: var(--hl-card-shadow-hover);
  transform: translateY(-4px);
}

.hacklab__point-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(242, 153, 0, 0.14), rgba(232, 148, 34, 0.06));
  color: var(--hl-accent);
}
.hacklab__point-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hacklab__point-title {
  margin: 0 0 6px;
  font-size: clamp(0.88rem, 1.05vw, 0.98rem);
  font-weight: 650;
  color: var(--hl-ink);
  letter-spacing: -0.01em;
}

.hacklab__point-sub {
  font-size: clamp(0.76rem, 0.88vw, 0.84rem);
  line-height: 1.55;
  color: var(--hl-muted);
}

/* ---------- Founders section ---------- */
.hacklab__founders-section {
  margin: 0 0 clamp(2.5rem, 4vw, 3.5rem);
}

.hacklab__founders-label {
  text-align: center;
  margin: 0 0 clamp(20px, 3vw, 30px);
  font-size: clamp(0.82rem, 1vw, 0.92rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hl-muted);
}

.hacklab__founders {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 24px);
}

.hacklab__founder--featured {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(28px, 3.5vw, 40px) clamp(18px, 2.5vw, 28px);
  background: var(--hl-card-bg);
  border: 1px solid var(--hl-card-border);
  border-radius: clamp(18px, 2.2vw, 24px);
  box-shadow: var(--hl-card-shadow);
  transition: box-shadow 0.4s ease, transform 0.4s ease;
  will-change: transform;
}
.hacklab__founder--featured:hover {
  box-shadow: var(--hl-card-shadow-hover);
  transform: translateY(-5px);
}

.hacklab__founder-avatar {
  width: clamp(72px, 8vw, 96px);
  height: clamp(72px, 8vw, 96px);
  border-radius: 50%;
  overflow: hidden;
  margin: 0 0 18px;
  border: 3px solid rgba(232, 148, 34, 0.2);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.06),
    0 0 0 6px rgba(232, 148, 34, 0.06);
}
.hacklab__founder-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hacklab__founder-name {
  margin: 0 0 4px;
  font-size: clamp(0.95rem, 1.15vw, 1.08rem);
  font-weight: 650;
  color: var(--hl-ink);
  letter-spacing: -0.01em;
}

.hacklab__founder-role {
  margin: 0 0 12px;
  font-size: clamp(0.72rem, 0.85vw, 0.8rem);
  font-weight: 600;
  color: var(--hl-accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hacklab__founder-bio {
  font-size: clamp(0.78rem, 0.9vw, 0.86rem);
  line-height: 1.6;
  color: var(--hl-muted);
  max-width: 280px;
  margin: 0 auto;
}

/* ---------- Stats bar ---------- */
.hacklab__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 1.5vw, 18px);
  margin: 0 0 clamp(2.5rem, 4vw, 3.5rem);
  padding: clamp(28px, 3.5vw, 40px) clamp(20px, 3vw, 36px);
  background: var(--hl-card-bg);
  border: 1px solid var(--hl-card-border);
  border-radius: clamp(18px, 2.2vw, 24px);
  box-shadow: var(--hl-card-shadow);
}

.hacklab__stat {
  text-align: center;
  position: relative;
}
.hacklab__stat:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: rgba(20, 21, 26, 0.08);
}

.hacklab__stat-num {
  margin: 0 0 6px;
  font-family: var(--font-sans, "Inter", system-ui, sans-serif);
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--hl-ink);
}
.hacklab__stat-num em {
  font-family: var(--font-display, "Instrument Serif", serif);
  font-style: italic;
  font-weight: 400;
  color: var(--hl-accent);
}

.hacklab__stat-label {
  font-size: clamp(0.72rem, 0.85vw, 0.8rem);
  line-height: 1.4;
  color: var(--hl-muted);
  font-weight: 500;
}

/* ---------- CTA button (matches site hero CTA) ---------- */
.hacklab__cta-wrap {
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.hacklab__cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 36px 16px 32px;
  font-family: var(--font-sans, "Inter", system-ui, sans-serif);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
  background: var(--color-cta, #f29900);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  box-shadow:
    0 2px 8px rgba(242, 153, 0, 0.25),
    0 0 0 0 var(--color-cta-shadow, #fff288);
  transition: transform 0.3s var(--ease-soft, ease),
    box-shadow 0.3s var(--ease-soft, ease),
    background-color 0.3s ease;
}
.hacklab__cta:hover {
  transform: translateY(-2px);
  box-shadow:
    0 6px 20px rgba(242, 153, 0, 0.35),
    0 0 0 4px rgba(255, 242, 136, 0.18);
  background: #e08d00;
}
.hacklab__cta:active {
  transform: translateY(0);
}
.hacklab__cta svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Ghost variant — transparent with border */
.hacklab__cta--ghost {
  color: var(--hl-ink);
  background: transparent;
  border: 1.5px solid rgba(20, 21, 26, 0.15);
  box-shadow: none;
}
.hacklab__cta--ghost:hover {
  background: rgba(20, 21, 26, 0.04);
  border-color: rgba(20, 21, 26, 0.28);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}
.hacklab__cta--ghost:active {
  transform: translateY(0);
}

/* ---------- Scroll reveal animation ---------- */
.hacklab [data-hl-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--hl-delay, 0ms);
}
.hacklab [data-hl-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hacklab__points {
    grid-template-columns: repeat(3, 1fr);
  }
  .hacklab__founders {
    grid-template-columns: repeat(3, 1fr);
  }
  .hacklab__stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .hacklab {
    padding-block: clamp(3.5rem, 8vw, 5rem);
  }
  .hacklab__title {
    font-size: clamp(1.55rem, 6.5vw, 2.2rem);
  }
  .hacklab__points {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .hacklab__point {
    display: flex;
    align-items: center;
    gap: 18px;
    text-align: left;
    padding: 18px 20px;
  }
  .hacklab__point-icon {
    margin: 0;
    flex-shrink: 0;
  }
  .hacklab__founders {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .hacklab__founder--featured {
    flex-direction: row;
    text-align: left;
    gap: 18px;
    padding: 22px 24px;
  }
  .hacklab__founder-avatar {
    margin: 0;
    width: 64px;
    height: 64px;
    flex-shrink: 0;
  }
  .hacklab__founder-name {
    font-size: 0.95rem;
  }
  .hacklab__founder-role {
    margin-bottom: 6px;
  }
  .hacklab__founder-bio {
    max-width: 100%;
  }
  .hacklab__stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .hacklab__stat:nth-child(2)::after {
    display: none;
  }
  .hacklab__stat:nth-child(3)::after,
  .hacklab__stat:nth-child(4)::after {
    display: none;
  }
}

@media (max-width: 480px) {
  .hacklab__stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .hacklab__stat::after {
    display: none !important;
  }
}
