/* ==========================================================================
   Programme pages (/mentorship/academic, hackathon, entrepreneurship, drone)
   Built on home.css (shared tokens, buttons, headings, mentor cards, CTA).
   Each page sets --brand / --brand-2 / --brand-ink / --soft on .pg.
   Source: src/partials/program.html + src/content/program-*.json
   ========================================================================== */

/* ---------- hero ---------- */
.pg-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--paper); padding: 118px 0 56px; }
.pg-hero__glow {
  position: absolute; width: 720px; height: 720px; border-radius: 50%; right: -160px; top: -120px;
  background: radial-gradient(circle, color-mix(in srgb, var(--brand) 22%, transparent) 0%, transparent 65%);
}
.pg-hero__inner { display: grid; gap: 44px; align-items: center; }
@media (min-width: 1024px) { .pg-hero__inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; } }

.pg-crumbs { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); margin-bottom: 18px; flex-wrap: wrap; }
.pg-crumbs a { color: var(--muted); text-decoration: none; }
.pg-crumbs a:hover { color: var(--brand-ink); }
.pg-crumbs b { color: var(--ink); font-weight: 600; }

.pg-eyebrow {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px 7px 10px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); box-shadow: 0 6px 20px -14px rgba(20, 17, 13, .35);
  font-size: 12.5px; font-weight: 600; color: var(--ink-2);
}
.pg-eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 60%, transparent); animation: pg-ping 1.8s infinite; }
@keyframes pg-ping { 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

.pg-hero__title { margin: 20px 0 0; font-weight: 700; line-height: 1.02; letter-spacing: -.035em; font-size: clamp(36px, 4.4vw, 60px); color: var(--ink); }
.pg-hero__title .hm-serif { color: var(--brand-ink); font-weight: 700; }
.pg-hero__lede { margin: 18px 0 0; font-size: clamp(15px, 1.2vw, 16.5px); line-height: 1.7; color: var(--muted); max-width: 54ch; }
.pg-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 24px 0 0; padding: 0; }
.pg-trust li { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.pg-trust svg { width: 16px; height: 16px; color: var(--brand); }

.pg-hero__art { position: relative; max-width: 500px; width: 100%; justify-self: center; padding: 18px 18px 30px 0; }
@media (min-width: 1024px) { .pg-hero__art { justify-self: end; } }
.pg-hero__art::before {
  content: ""; position: absolute; inset: 0 0 12px 18px; border-radius: 28px;
  background: linear-gradient(140deg, var(--brand), var(--brand-2)); transform: rotate(3deg); opacity: .9;
}
.pg-hero__frame { position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 5 / 4.4; box-shadow: 0 30px 60px -30px rgba(20, 17, 13, .55); background: var(--ink); }
.pg-hero__frame img { width: 100%; height: 115%; object-fit: cover; object-position: 50% 75%; display: block; transform: translateY(var(--py, 0px)); will-change: transform; }

.pg-chip {
  position: absolute; display: grid; gap: 1px; padding: 12px 16px; border-radius: 16px;
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: 0 18px 40px -18px rgba(20, 17, 13, .45); animation: pg-float 6s ease-in-out infinite;
}
.pg-chip b { font-size: 20px; font-weight: 900; letter-spacing: -.04em; color: var(--brand-ink); line-height: 1.1; }
.pg-chip span { font-size: 11.5px; font-weight: 600; color: var(--muted); }
.pg-chip--0 { left: -22px; top: 42px; }
.pg-chip--1 { right: -6px; top: 46%; animation-delay: -3s; }
@keyframes pg-float { 50% { transform: translateY(-10px); } }
.pg-faces {
  position: absolute; left: 22px; bottom: 6px; display: flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 7px; border-radius: 999px; background: var(--ink); color: #fff; box-shadow: 0 16px 36px -16px rgba(0, 0, 0, .6);
}
.pg-faces > div { display: flex; }
.pg-faces img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; border: 2px solid var(--ink); margin-left: -8px; background: var(--tone, #eee); }
.pg-faces img:first-child { margin-left: 0; }
.pg-faces span { font-size: 12px; color: rgba(255, 255, 255, .75); }
.pg-faces b { color: #fff; }
@media (max-width: 599px) {
  .pg-hero { padding-top: 110px; }
  .pg-chip { padding: 9px 12px; }
  .pg-chip b { font-size: 16px; }
  .pg-chip--0 { left: -6px; top: 24px; }
  .pg-chip--1 { right: -4px; }
}

/* ---------- feature strip ---------- */
.pg-strip { background: var(--ink); color: #fff; overflow: hidden; padding: 14px 0; }
.pg-strip__track { display: flex; width: max-content; animation: hm-marquee 36s linear infinite; }
.pg-strip:hover .pg-strip__track { animation-play-state: paused; }
.pg-strip__track > span, .pg-strip__dup > span { display: inline-flex; align-items: center; gap: 9px; padding: 0 26px; font-size: 14px; font-weight: 600; white-space: nowrap; border-right: 1px solid rgba(255, 255, 255, .14); }
.pg-strip__dup { display: flex; }
.pg-strip svg { width: 16px; height: 16px; color: var(--brand-2); }

/* ---------- framework phases ---------- */
.pg-phases { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; position: relative; counter-reset: ph; }
@media (min-width: 640px) { .pg-phases { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .pg-phases { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .pg-phases::before {
    content: ""; position: absolute; left: 24px; right: 24px; top: 33px; height: 2px;
    background: linear-gradient(90deg, var(--brand), var(--brand-2)); opacity: .25;
  }
}
.pg-phase {
  position: relative; padding: 22px 22px 24px; border-radius: 20px; background: #fff; border: 1px solid var(--line);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s;
}
.pg-phase::after { content: ""; position: absolute; left: 22px; right: 22px; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.pg-phase:hover { transform: translateY(-5px); box-shadow: 0 26px 50px -30px rgba(20, 17, 13, .4); border-color: transparent; }
.pg-phase:hover::after { transform: scaleX(1); }
.pg-phase__no {
  position: relative; z-index: 1; display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px;
  background: var(--soft); color: var(--brand-ink); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
}
.pg-phase h3 { margin: 16px 0 6px; font-size: 18px; font-weight: 800; letter-spacing: -.025em; }
.pg-phase p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); }

/* ---------- metrics (dark band) ---------- */
.pg-metrics__title { margin: 0 0 26px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.pg-metrics::before { background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 30%, transparent), transparent) !important; }
@media (min-width: 900px) { .pg-metrics__grid { grid-template-columns: repeat(var(--n), 1fr); } }
.pg-metrics .hm-num b { background: linear-gradient(180deg, #fff 30%, color-mix(in srgb, var(--brand-2) 70%, #fff)); -webkit-background-clip: text; background-clip: text; }
.pg-metrics .hm-num small { font-size: 13px; color: rgba(255, 255, 255, .55); line-height: 1.5; max-width: 26ch; }

/* ---------- learn list ---------- */
.pg-learn { background: var(--soft); }
.pg-learn__grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .pg-learn__grid { grid-template-columns: .8fr 1.2fr; gap: 56px; } }
.pg-learn__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
@media (min-width: 600px) { .pg-learn__list { grid-template-columns: 1fr 1fr; } }
.pg-learn__list li {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: #fff;
  font-size: 14.5px; font-weight: 600; border: 1px solid color-mix(in srgb, var(--brand) 14%, transparent);
  transition: transform .4s var(--ease), box-shadow .4s;
}
.pg-learn__list li:hover { transform: translateX(4px); box-shadow: 0 14px 30px -20px rgba(20, 17, 13, .4); }
.pg-learn__list svg { width: 20px; height: 20px; flex: none; color: var(--brand); }

/* ---------- journey ---------- */
.pg-journey { display: grid; gap: 36px; }
@media (min-width: 960px) {
  .pg-journey { grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
  .pg-journey__side { position: sticky; top: calc(var(--shell-offset, 120px) + 24px); }
}
.pg-journey__side .hm-sub { margin-top: 16px; }
.pg-journey__card {
  margin-top: 28px; padding: 22px; border-radius: 20px; background: var(--ink); color: #fff; display: grid; gap: 4px;
  background-image: radial-gradient(90% 80% at 100% 0%, color-mix(in srgb, var(--brand) 40%, transparent), transparent 60%);
}
.pg-journey__card b { font-size: 18px; letter-spacing: -.02em; }
.pg-journey__card > span { font-size: 13.5px; color: rgba(255, 255, 255, .65); margin-bottom: 14px; }
.pg-journey__card .hm-btn { justify-self: start; }

.pg-steps { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 12px; }
.pg-steps::before { content: ""; position: absolute; left: 23px; top: 24px; bottom: 24px; width: 2px; background: var(--line); }
.pg-steps::after {
  content: ""; position: absolute; left: 23px; top: 24px; width: 2px; height: calc((100% - 48px) * var(--prog, 0));
  background: linear-gradient(180deg, var(--brand), var(--brand-2)); border-radius: 2px;
}
.pg-step { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 18px; align-items: start; }
.pg-step__dot {
  position: relative; z-index: 1; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; border: 2px solid var(--line); font-size: 13px; font-weight: 800; color: var(--muted);
  transition: background .4s, border-color .4s, color .4s, transform .4s var(--ease);
}
.pg-step.is-done .pg-step__dot { background: var(--brand); border-color: var(--brand); color: #fff; transform: scale(1.05); }
.pg-step > div { padding: 18px 20px; border-radius: 18px; background: #fff; border: 1px solid var(--line); transition: box-shadow .4s, border-color .4s; }
.pg-step.is-done > div { border-color: color-mix(in srgb, var(--brand) 30%, var(--line)); box-shadow: 0 18px 40px -30px rgba(20, 17, 13, .45); }
.pg-step h3 { margin: 0 0 6px; font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.pg-step p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); }

/* ---------- mentors (reuses .hm-mentors) ---------- */
@media (min-width: 900px) { .hm .pg-mentors { grid-template-columns: repeat(auto-fit, minmax(170px, 210px)); justify-content: center; } }

/* ---------- testimonials ---------- */
.pg-quotes { padding: clamp(56px, 7vw, 96px) 0; overflow: hidden; }
.pg-quotes__row { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.pg-quotes__track { display: flex; width: max-content; animation: hm-marquee 60s linear infinite; padding: 6px 0 18px; }
.pg-quotes__row:hover .pg-quotes__track { animation-play-state: paused; }
.pg-quotes__dup { display: flex; }
.pg-quote {
  flex: none; width: min(340px, 82vw); margin: 0 14px 0 0; padding: 22px; border-radius: 20px; background: #fff; border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 14px; box-shadow: 0 16px 36px -30px rgba(20, 17, 13, .5);
}
.pg-quote__result { align-self: flex-start; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: var(--soft); color: var(--brand-ink); }
.pg-quote blockquote { margin: 0; font-size: 14.5px; line-height: 1.65; color: var(--ink-2); flex: 1; }
.pg-quote blockquote::before { content: "“"; font-family: var(--serif); font-size: 34px; line-height: 0; vertical-align: -14px; margin-right: 4px; color: var(--brand); }
.pg-quote figcaption { display: grid; grid-template-columns: 36px 1fr; column-gap: 10px; align-items: center; padding-top: 14px; border-top: 1px solid var(--line); }
.pg-quote__av { grid-row: span 2; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 800; }
.pg-quote figcaption b { font-size: 14px; }
.pg-quote figcaption small { font-size: 12px; color: var(--muted); }

/* ---------- other programmes ---------- */
.pg-others { display: grid; gap: 14px; }
@media (min-width: 800px) { .pg-others { grid-template-columns: repeat(3, 1fr); } }
.pg-other {
  position: relative; display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: #fff; border: 1px solid var(--line);
  text-decoration: none; color: var(--ink) !important; transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.pg-other:hover { transform: translateY(-5px); box-shadow: 0 28px 56px -32px rgba(20, 17, 13, .5); }
.pg-other__img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink); }
.pg-other__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1s var(--ease); }
.pg-other:hover .pg-other__img img { transform: scale(1.06); }
.pg-other__body { display: grid; gap: 4px; padding: 16px 18px 20px; }
.pg-other__body small { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.pg-other__body b { font-size: 17px; letter-spacing: -.02em; }
.pg-other__body > span { font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.pg-other__go {
  position: absolute; right: 14px; top: 14px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: var(--ink); transition: background .3s, color .3s, transform .5s var(--ease);
}
.pg-other__go svg { width: 16px; height: 16px; }
.pg-other:hover .pg-other__go { background: var(--accent); color: #fff; transform: rotate(-45deg); }

/* ---------- final CTA tinted per programme ---------- */
.pg-final { background: linear-gradient(135deg, var(--brand) 0%, color-mix(in srgb, var(--brand) 70%, var(--brand-2)) 60%, var(--brand-2) 100%); }
.pg .hm-final__orbs i:nth-child(1) { background: #fff; opacity: .18; }
.pg .hm-final__orbs i:nth-child(2) { background: var(--brand-ink); }
.pg .hm-final__orbs i:nth-child(3) { background: var(--brand-2); }

@media (prefers-reduced-motion: reduce) {
  .pg-strip__track, .pg-quotes__track, .pg-chip { animation: none !important; }
  .pg-strip, .pg-quotes__row { overflow-x: auto; }
}
