/* ── Page wrapper ── */
.alumni-page {
  padding: 3rem 3rem;
}

/* ── Alumni page hero image ── */
.alumni-hero {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-image: url('/alumni/exium-alumni-hero.jpg');
  aspect-ratio: 1200 / 630;
  padding: 0;
}

.alumni-hero .hero-inner {
  position: absolute;
  bottom: 2.5rem;
  left: 3rem;
  right: 3rem;
}

@media (max-width: 600px) {
  .alumni-hero {
    background-image: url('/alumni/exium-alumni-hero-mobile.jpg');
    aspect-ratio: unset;
    min-height: 620px;  
    background-position: center 10%;
  }
}

.alumni-hero::before {
  background:
    linear-gradient(to right, rgba(8, 15, 35, 0.72) 40%, rgba(8, 15, 35, 0.35) 100%),
    radial-gradient(ellipse 70% 100% at 80% 50%, rgba(74, 111, 199, 0.07) 0%, transparent 70%);
}

/* ── Stats bar ── */
.alm-stats-bar {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 3rem;
  background: rgba(255, 255, 255, 0.02);
}

.alm-stat-item {
  flex: 1;
  padding: 1.4rem 1.5rem;
  border-right: 1px solid var(--line);
  transition: background 0.25s;
  cursor: default;
}

.alm-stat-item:last-child { border-right: none; }
.alm-stat-item:hover { background: rgba(74, 111, 199, 0.06); }

.alm-stat-number {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1;
  color: var(--blue-light);
  margin-bottom: 0.35rem;
}

.alm-stat-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--muted);
  line-height: 1.5;
  letter-spacing: 0.04em;
}

/* ── Narrative block ── */
.alm-narrative {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 3rem;
  padding: 2.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: 6px;
  animation: fadeUp 0.7s ease both 0.3s;
}

.alm-narrative-divider {
  background: var(--line);
  align-self: stretch;
}

.alm-narrative-pull {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  font-style: italic;
  line-height: 1.5;
  color: var(--white);
}

.alm-narrative-pull strong {
  font-style: normal;
  color: var(--blue-light);
}

.alm-narrative-body {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.85;
}

.alm-narrative-body p + p { margin-top: 0.9rem; }

/* ── Section divider ── */
.alm-divider {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.alm-divider-line {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.alm-divider-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

/* ── Alumni grid ── */
.alm-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.alm-grid--mb { margin-bottom: 2px; }

/* ── Alumni card ── */
.alm-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  padding: 1.75rem 1.6rem 1.5rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s, transform 0.25s, background 0.25s;
  animation: fadeUp 0.6s ease both;
}

.alm-card:hover {
  border-color: rgba(74, 111, 199, 0.4);
  transform: translateY(-2px);
  background: rgba(74, 111, 199, 0.05);
  z-index: 1;
}

/* Left accent bar */
.alm-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 0;
  background: var(--blue-acc);
  transition: height 0.35s ease;
}

.alm-card:hover::before { height: 100%; }

/* Variants */
.alm-card--wide  { grid-column: span 2; }

.alm-card--accent {
  background: rgba(26, 45, 90, 0.45);
  border-color: rgba(74, 111, 199, 0.22);
}

.alm-card--accent:hover {
  background: rgba(26, 45, 90, 0.65);
  border-color: rgba(74, 111, 199, 0.45);
}

.alm-card--accent::before { background: var(--blue-light); }

/* Stagger fade-in for cards */
.alm-grid .alm-card:nth-child(1) { animation-delay: 0.10s; }
.alm-grid .alm-card:nth-child(2) { animation-delay: 0.17s; }
.alm-grid .alm-card:nth-child(3) { animation-delay: 0.24s; }

/* ── Card header ── */
.alm-card-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

/* Avatar */
.alm-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

/* Replace initials with photo: add <img> inside .alm-avatar */
.alm-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Avatar colour palette — 8 variants */
.alm-av--1 { background: #1d4ed8; }
.alm-av--2 { background: #0f766e; }
.alm-av--3 { background: #7c3aed; }
.alm-av--4 { background: #b45309; }
.alm-av--5 { background: #be185d; }
.alm-av--6 { background: #0369a1; }
.alm-av--7 { background: #15803d; }
.alm-av--8 { background: #9f1239; }

.alm-card-id  { flex: 1; min-width: 0; }

.alm-index {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--muted);
  letter-spacing: 0.15em;
  margin-bottom: 0.2rem;
}

.alm-name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.alm-role {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 0.12rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.alm-company {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--blue-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Story text ── */
.alm-story {
  font-size: 0.84rem;
  color: var(--text);
  line-height: 1.78;
  flex: 1;
  margin-bottom: 1.1rem;
}

/* ── Card footer ── */
.alm-card-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.alm-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.alm-tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.04em;
  background: rgba(74, 111, 199, 0.1);
  color: var(--blue-light);
  padding: 2px 8px;
  border-radius: 2px;
  border: 1px solid rgba(74, 111, 199, 0.2);
}

.alm-foot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.alm-location {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.alm-location::before { content: '◦ '; }

/* Verify on LinkedIn link */
.alm-verify {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--blue-light);
  text-decoration: none;
  padding: 4px 10px;
  border: 1px solid rgba(74, 111, 199, 0.28);
  border-radius: 3px;
  background: rgba(74, 111, 199, 0.07);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  white-space: nowrap;
}

.alm-verify svg {
  width: 11px;
  height: 11px;
  fill: currentColor;
  flex-shrink: 0;
}

.alm-verify:hover {
  background: rgba(74, 111, 199, 0.18);
  border-color: rgba(74, 111, 199, 0.5);
  color: var(--white);
}

/* ── Domain clusters ── */
.alm-clusters {
  margin-top: 3rem;
}

.alm-clusters-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}

.alm-cluster {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  padding: 1.6rem 1.4rem;
  transition: background 0.25s, border-color 0.25s;
}

.alm-cluster:hover {
  background: rgba(74, 111, 199, 0.06);
  border-color: rgba(74, 111, 199, 0.25);
}

.alm-cluster-icon {
  font-size: 1.6rem;
  color: var(--blue-light);
  margin-bottom: 0.7rem;
  line-height: 1;
  opacity: 0.75;
}

.alm-cluster-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.9rem;
  letter-spacing: 0.02em;
}

.alm-cluster-names {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--muted);
  line-height: 1.95;
}

.alm-cluster-names span { display: block; }

/* ── Closing block ── */
.alm-closing {
  margin-top: 3rem;
  padding: 3.5rem;
  background: rgba(26, 45, 90, 0.5);
  border: 1px solid rgba(74, 111, 199, 0.2);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  animation: fadeUp 0.7s ease both 0.2s;
}

/* Decorative large quote mark */
.alm-closing::before {
  content: '"';
  font-family: var(--font-serif);
  font-size: 16rem;
  color: rgba(74, 111, 199, 0.06);
  position: absolute;
  top: -2rem; left: 1.5rem;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

/* Radial glow */
.alm-closing::after {
  content: '';
  position: absolute;
  top: -60px; left: -60px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(74, 111, 199, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.alm-closing-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.5vw, 2.2rem);
  font-weight: 700;
  font-style: italic;
  color: var(--white);
  line-height: 1.45;
  max-width: 820px;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.alm-closing-credit {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
  z-index: 1;
  font-style: normal;
}

.alm-closing-cta {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .alm-grid              { grid-template-columns: 1fr 1fr; }
  .alm-card--wide        { grid-column: span 2; }
  .alm-stats-bar         { flex-wrap: wrap; }
  .alm-stat-item         { flex: 1 1 40%; }
  .alm-clusters-grid     { grid-template-columns: 1fr 1fr; }
  .alm-narrative         { grid-template-columns: 1fr; }
  .alm-narrative-divider { display: none; }
  .alm-closing           { padding: 2.5rem 2rem; }
}

@media (max-width: 600px) {
  .alumni-page       { padding: 2rem 1.5rem; }
  .alm-grid          { grid-template-columns: 1fr; }
  .alm-card--wide    { grid-column: span 1; }
  .alm-stats-bar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        border-radius: 6px;
        overflow: hidden;
    }

  .alm-stat-item {
        flex: unset;
        border-right: 1px solid var(--line);
        border-bottom: 1px solid var(--line);
        padding: 1.1rem 1rem;
    }
  
  .alm-stat-item:nth-child(2n) {
        border-right: none;
    }

  /* 5th item spans both columns, centred */
  .alm-stat-item:last-child {
        grid-column: span 2;
        border-right: none;
        border-bottom: none;
        text-align: center;
    }

  /* Tighten number size on mobile */
  .alm-stat-number {
        font-size: 2rem;
    }
  
  .alm-clusters-grid { grid-template-columns: 1fr 1fr; }
  .alm-name          { font-size: 1.05rem; }
  .alm-closing       { padding: 2rem 1.5rem; }
  .alm-closing::before { font-size: 10rem; }
}


/* ── Alumni midpoint break ── */
.alm-midpoint {
  border-top: 0;
  border-bottom: 0;
  margin: 2rem 0;
  padding: 2rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Subtle radial glow behind text */
.alm-midpoint::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 60% 80% at 50% 50%,
    rgba(74, 111, 199, 0.05) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.alm-midpoint-inner {
  position: relative;
  z-index: 1;
  max-width: 42ch;
  margin: 0 auto;
}

/* First three lines — restrained, spaced */
.alm-midpoint-inner > p {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 400;
  font-style: italic;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 0.1rem;
}

/* Bridge paragraph — smaller, muted */
.alm-midpoint-bridge {
  font-family: var(--font-sans) !important;
  font-size: 0.88rem !important;
  font-style: normal !important;
  font-weight: 300 !important;
  color: var(--muted) !important;
  line-height: 1.8 !important;
  margin-top: 2rem !important;
  margin-bottom: 0 !important;
}

/* "But long before..." — transition line */
.alm-midpoint-prelude {
  font-family: var(--font-sans) !important;
  font-size: 0.88rem !important;
  font-style: normal !important;
  font-weight: 300 !important;
  color: var(--muted) !important;
  line-height: 1.8 !important;
  margin-top: 0.4rem !important;
  margin-bottom: 1.75rem !important;
}

/* "They learnt how to think." — the statement */
.alm-midpoint-statement {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 900;
  font-style: normal;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--white);
  margin: 0;
}

@media (max-width: 600px) {
  .alm-midpoint { padding: 3rem 0; }
  .alm-midpoint-inner { max-width: 100%; }
}

/* --ALUMNI PAGE STYLING ENDS --*/
