/* ───────────────────────────────────────────────────────────────────────────
   OSPREXON — HackLab dedicated page styles
   Premium editorial layout for the full HackLab story. Reuses the site's
   design tokens (Inter + Instrument Serif, orange/gold palette, cream canvas).
   ─────────────────────────────────────────────────────────────────────── */

:root {
  --hl-ink: #14151a;
  --hl-muted: #4d5058;
  --hl-light: #7a7d85;
  --hl-eyebrow: #b87a12;
  --hl-accent: #e89422;
  --hl-accent-soft: rgba(232, 148, 34, 0.12);
  --hl-bg-warm: #fdfaf3;
  --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);
}

/* ── Page container ────────────────────────────────────────────────────── */
.hlp {
  max-width: var(--container-w, 1240px);
  margin: 0 auto;
  padding: 0 var(--container-pad-x, clamp(1.1rem, 4vw, 2rem));
  font-family: var(--font-sans, "Inter", system-ui, sans-serif);
  color: var(--hl-ink);
}

/* ── Back link ─────────────────────────────────────────────────────────── */
.hlp__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: clamp(100px, 12vw, 140px) 0 0;
  padding: 8px 16px 8px 10px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--hl-muted);
  text-decoration: none;
  border: 1px solid rgba(20, 21, 26, 0.1);
  border-radius: 999px;
  transition: color 0.25s, border-color 0.25s, transform 0.25s;
}
.hlp__back:hover {
  color: var(--hl-accent);
  border-color: rgba(232, 148, 34, 0.3);
  transform: translateX(-3px);
}
.hlp__back svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ── Hero header ───────────────────────────────────────────────────────── */
.hlp__hero {
  text-align: center;
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(3.5rem, 7vw, 5.5rem);
  max-width: 800px;
  margin: 0 auto;
}

.hlp__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 clamp(18px, 2.5vw, 26px);
  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;
}
.hlp__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);
}

.hlp__title {
  margin: 0 0 clamp(16px, 2.5vw, 22px);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
}
.hlp__title em {
  font-family: var(--font-display, "Instrument Serif", serif);
  font-style: italic;
  font-weight: 400;
  color: var(--hl-accent);
}

.hlp__subtitle {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.75;
  color: var(--hl-muted);
  max-width: 660px;
  margin: 0 auto;
}

/* ── Section label (reusable for each block) ───────────────────────────── */
.hlp__section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 clamp(14px, 2vw, 20px);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--hl-eyebrow);
}
.hlp__section-label::before {
  content: "";
  width: 20px;
  height: 1.5px;
  background: var(--hl-accent);
  border-radius: 1px;
}

/* ── Generic section heading ───────────────────────────────────────────── */
.hlp__heading {
  margin: 0 0 clamp(10px, 1.5vw, 16px);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
}
.hlp__heading em {
  font-family: var(--font-display, "Instrument Serif", serif);
  font-style: italic;
  font-weight: 400;
  color: var(--hl-accent);
}

.hlp__desc {
  font-size: clamp(0.92rem, 1.15vw, 1.04rem);
  line-height: 1.72;
  color: var(--hl-muted);
  max-width: 620px;
}

/* ── About block (two-column story) ────────────────────────────────────── */
.hlp__about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 5vw, 5rem);
  align-items: start;
  padding: clamp(3rem, 5vw, 5rem) 0;
  border-top: 1px solid rgba(20, 21, 26, 0.06);
}

.hlp__about-text p {
  font-size: clamp(0.92rem, 1.1vw, 1.02rem);
  line-height: 1.78;
  color: var(--hl-muted);
  margin: 0 0 18px;
}
.hlp__about-text p:last-child {
  margin: 0;
}

.hlp__about-values {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hlp__value {
  padding: clamp(18px, 2.5vw, 26px);
  background: var(--hl-card-bg);
  border: 1px solid var(--hl-card-border);
  border-radius: 18px;
  box-shadow: var(--hl-card-shadow);
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}
.hlp__value:hover {
  box-shadow: var(--hl-card-shadow-hover);
  transform: translateY(-3px);
}

.hlp__value-title {
  margin: 0 0 6px;
  font-size: 0.92rem;
  font-weight: 650;
  color: var(--hl-ink);
}

.hlp__value-desc {
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--hl-muted);
}

/* ── Features grid ─────────────────────────────────────────────────────── */
.hlp__features-section {
  padding: clamp(3rem, 5vw, 5rem) 0;
  border-top: 1px solid rgba(20, 21, 26, 0.06);
}

.hlp__features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 1.8vw, 20px);
  margin-top: clamp(24px, 3vw, 36px);
}

.hlp__feature {
  padding: clamp(22px, 3vw, 32px) clamp(18px, 2.2vw, 24px);
  background: var(--hl-card-bg);
  border: 1px solid var(--hl-card-border);
  border-radius: 20px;
  box-shadow: var(--hl-card-shadow);
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}
.hlp__feature:hover {
  box-shadow: var(--hl-card-shadow-hover);
  transform: translateY(-4px);
}

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

.hlp__feature-title {
  margin: 0 0 6px;
  font-size: clamp(0.86rem, 1vw, 0.94rem);
  font-weight: 650;
  color: var(--hl-ink);
}

.hlp__feature-desc {
  font-size: clamp(0.76rem, 0.88vw, 0.84rem);
  line-height: 1.6;
  color: var(--hl-muted);
}

/* ── Learning path ─────────────────────────────────────────────────────── */
.hlp__path-section {
  padding: clamp(3rem, 5vw, 5rem) 0;
  border-top: 1px solid rgba(20, 21, 26, 0.06);
}

.hlp__path {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 1.8vw, 20px);
  margin-top: clamp(24px, 3vw, 36px);
  counter-reset: path-step;
}

.hlp__step {
  position: relative;
  padding: clamp(24px, 3vw, 32px) clamp(18px, 2.2vw, 24px);
  background: var(--hl-card-bg);
  border: 1px solid var(--hl-card-border);
  border-radius: 20px;
  box-shadow: var(--hl-card-shadow);
  counter-increment: path-step;
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}
.hlp__step:hover {
  box-shadow: var(--hl-card-shadow-hover);
  transform: translateY(-4px);
}

.hlp__step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0 0 14px;
  border-radius: 50%;
  background: var(--hl-accent-soft);
  border: 1.5px solid rgba(232, 148, 34, 0.25);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--hl-accent);
}

.hlp__step-title {
  margin: 0 0 6px;
  font-size: clamp(0.88rem, 1.05vw, 0.96rem);
  font-weight: 650;
  color: var(--hl-ink);
}

.hlp__step-desc {
  font-size: clamp(0.76rem, 0.88vw, 0.84rem);
  line-height: 1.6;
  color: var(--hl-muted);
}

/* ── Founders section ──────────────────────────────────────────────────── */
.hlp__founders-section {
  padding: clamp(3rem, 5vw, 5rem) 0;
  border-top: 1px solid rgba(20, 21, 26, 0.06);
}

.hlp__founders-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto clamp(28px, 3.5vw, 40px);
}

.hlp__founders {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.2vw, 26px);
}

.hlp__founder {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(32px, 4vw, 44px) clamp(20px, 2.5vw, 30px);
  background: var(--hl-card-bg);
  border: 1px solid var(--hl-card-border);
  border-radius: 22px;
  box-shadow: var(--hl-card-shadow);
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}
.hlp__founder:hover {
  box-shadow: var(--hl-card-shadow-hover);
  transform: translateY(-5px);
}

.hlp__founder-avatar {
  width: clamp(80px, 9vw, 104px);
  height: clamp(80px, 9vw, 104px);
  border-radius: 50%;
  overflow: hidden;
  margin: 0 0 20px;
  border: 3px solid rgba(232, 148, 34, 0.2);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08), 0 0 0 7px rgba(232, 148, 34, 0.06);
}
.hlp__founder-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hlp__founder-name {
  margin: 0 0 4px;
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  font-weight: 650;
  color: var(--hl-ink);
}

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

.hlp__founder-dual {
  margin: 0 0 14px;
  font-size: clamp(0.7rem, 0.8vw, 0.76rem);
  font-weight: 500;
  color: var(--hl-light);
  font-style: italic;
}

.hlp__founder-bio {
  font-size: clamp(0.82rem, 0.95vw, 0.9rem);
  line-height: 1.65;
  color: var(--hl-muted);
  max-width: 300px;
  margin: 0 auto;
}


/* ── Stats strip ───────────────────────────────────────────────────────── */
.hlp__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 0 0 clamp(3rem, 5vw, 5rem);
  padding: clamp(32px, 4vw, 48px) clamp(24px, 3vw, 40px);
  background:
    linear-gradient(135deg, #1a1d22 0%, #14171c 100%);
  border-radius: 22px;
  color: #f4efe2;
  position: relative;
  overflow: hidden;
}
.hlp__stats::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 20% 0%, rgba(232, 148, 34, 0.12), transparent 60%);
  pointer-events: none;
}

.hlp__stat {
  text-align: center;
  position: relative;
  z-index: 1;
}
.hlp__stat:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 10%;
  height: 80%;
  width: 1px;
  background: rgba(244, 239, 226, 0.1);
}

.hlp__stat-num {
  margin: 0 0 6px;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #f4efe2;
}
.hlp__stat-num em {
  font-family: var(--font-display, "Instrument Serif", serif);
  font-style: italic;
  font-weight: 400;
  color: var(--hl-accent);
}

.hlp__stat-label {
  font-size: clamp(0.74rem, 0.88vw, 0.82rem);
  color: rgba(244, 239, 226, 0.6);
  font-weight: 500;
}

/* ── CTA block ─────────────────────────────────────────────────────────── */
.hlp__cta-block {
  text-align: center;
  padding: clamp(3rem, 5vw, 5rem) 0 clamp(4rem, 6vw, 6rem);
  border-top: 1px solid rgba(20, 21, 26, 0.06);
}

.hlp__cta-title {
  margin: 0 0 14px;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.025em;
}
.hlp__cta-title em {
  font-family: var(--font-display, "Instrument Serif", serif);
  font-style: italic;
  font-weight: 400;
  color: var(--hl-accent);
}

.hlp__cta-sub {
  margin: 0 0 clamp(24px, 3vw, 32px);
  font-size: clamp(0.92rem, 1.1vw, 1.02rem);
  line-height: 1.7;
  color: var(--hl-muted);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.hlp__cta-btn {
  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);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}
.hlp__cta-btn: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;
}
.hlp__cta-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ── Reveal animation ──────────────────────────────────────────────────── */
.hlp [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  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(--reveal-d, 0ms);
}
.hlp [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .hlp__about {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .hlp__features,
  .hlp__path {
    grid-template-columns: repeat(2, 1fr);
  }
  .hlp__founders {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .hlp__founders {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .hlp__founder {
    flex-direction: row;
    text-align: left;
    gap: 20px;
    padding: 24px;
  }
  .hlp__founder-avatar {
    margin: 0;
    width: 72px;
    height: 72px;
    flex-shrink: 0;
  }
  .hlp__founder-bio {
    max-width: 100%;
  }
  .hlp__stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .hlp__stat::after {
    display: none !important;
  }
}

@media (max-width: 640px) {
  .hlp__features,
  .hlp__path {
    grid-template-columns: 1fr;
  }
}
