/* ── Hero Banner ── */
.eb-hero {
  background: var(--gradient-brand);
  padding: clamp(28px, 4vw, 44px) 0 clamp(36px, 5vw, 52px);
  position: relative;
}
.eb-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse at 80% 50%,
    rgba(215, 170, 66, 0.12) 0%,
    transparent 60%
  );
}
.eb-hero__inner {
  max-width: 1400px;
  margin-inline: auto;
  padding-inline: 40px;
  position: relative;
  z-index: 1;
}
.eb-hero__heading {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 700;
  color: var(--text-on-brand);
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 14px;
}
.eb-hero__desc {
  font-family: var(--font-sans);
  font-size: clamp(14px, 1.5vw, 16px);
  color: var(--text-on-brand-sub);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 22px;
}
.eb-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.eb-badge {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
  padding: 3px 14px;
  border-radius: 20px;
  background: var(--badge-bg);
  color: var(--text-on-brand);
}
.eb-badge_active {
  font-weight: 500;
  color: var(--accent);
}

/* ── Layout ── */
.eb-layout {
  background: var(--surface-tint-dim);
  padding: clamp(32px, 5vw, 52px) 0 clamp(56px, 7vw, 80px);
}
.eb-layout__inner {
  display: grid;
  grid-template-columns: 2fr 0.6fr;
  gap: 28px;
  max-width: 1400px;
  margin-inline: auto;
  padding-inline: 40px;
  align-items: start;
}

/* ── Main column ── */
.eb-main {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* ── Section group ── */
.eb-group__heading {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 16px;
}

/* ═══════════════════════════════════════════
   CARD BASE  — photo-first layout
═══════════════════════════════════════════ */
.eb-card {
  background: var(--surface-primary);
  border: 1px solid var(--accent-low-light);
  border-radius: var(--radius-lg);
  padding: 0;                      /* padding handled inside sections */
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition:
    box-shadow 0.25s ease,
    transform 0.25s ease,
    border-color 0.25s ease;
}
.eb-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.10), 0 2px 8px rgba(0,0,0,0.06);
  transform: translateY(-3px);
  border-color: var(--accent);
}

/* ── Top accent line on hover ── */
.eb-card::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent-light);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.eb-card:hover::after {
  transform: scaleX(1);
}

/* Role badge (top-right corner) */
.eb-card__role-badge {
  position: absolute;
  top: 0;
  right: 0;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-on-accent);
  background: var(--accent-light);
  padding: 4px 14px;
  border-bottom-left-radius: var(--radius-lg);
  z-index: 2;
}
.eb-card__role-badge--patron {
  background: var(--accent-light);
  color: var(--text-on-accent);
}

/* ── Card header: photo + info side-by-side ── */
.eb-card_header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: clamp(18px, 2vw, 24px) clamp(16px, 2vw, 24px) 14px;
}

/* ── PHOTO AVATAR ── */
.eb-card__avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  border: 3px solid var(--accent-low-light);
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.25s ease, transform 0.25s ease;
  position: relative;
}
.eb-card:hover .eb-card__avatar {
  border-color: var(--accent);
  transform: scale(1.04);
}

/* Photo img tag — user will add src */
.eb-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 50%;
  display: block;
}

/* Fallback icon when no image */
.eb-card__avatar svg {
  width: 28px;
  height: 28px;
  color: var(--text-on-brand);
  flex-shrink: 0;
}

/* ── Card info (name, spec) ── */
.eb-card__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.eb-card__name {
  font-family: var(--font-display);
  font-size: clamp(14px, 1.4vw, 17px);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  padding-right: 90px; /* avoid badge overlap */
  transition: color 0.2s;
}
.eb-card:hover .eb-card__name {
  color: var(--accent);
}
.eb-card__spec {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}
.eb-card__spec strong {
  font-weight: 600;
  color: var(--text-mid);
}

/* ── Position line ── */
.eb-card__position {
  font-family: var(--font-sans);
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.6;
  display: flex;
  align-items: flex-start;
  gap: 5px;
  padding: 0 clamp(16px, 2vw, 24px) 12px;
  margin-top: -2px;
}
.eb-card__position svg {
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 3px;
}

/* ── Quote block — matches reference image ── */
.eb-card__quote {
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.55;
  padding: 10px clamp(16px, 2vw, 24px);
  margin: 0 clamp(16px, 2vw, 24px) 12px;
  border-left: 3px solid var(--accent);
  background: var(--surface-tint-dim);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  transition: border-color 0.2s, background 0.2s;
}
.eb-card:hover .eb-card__quote {
  border-left-color: var(--accent);
  background: var(--surface-tint);
}
.eb-card__quote::before {
  content: "\201C";
  font-size: 20px;
  font-style: normal;
  color: var(--accent);
  line-height: 0;
  vertical-align: -6px;
  margin-right: 3px;
  font-weight: 700;
}

/* ── Specialisation tags (replaces old spec paragraph) ── */
.eb-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 clamp(16px, 2vw, 24px) 14px;
}
.eb-card__tag {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--surface-tint);
  color: var(--text-mid);
  border: 1px solid var(--border-brand);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.eb-card:hover .eb-card__tag {
  background: var(--surface-tint-dim);
  border-color: var(--accent);
  color: var(--accent);
}

/* ── Card links / actions ── */
.eb-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px clamp(16px, 2vw, 24px) clamp(16px, 2vw, 18px);
  border-top: 1px solid var(--border-brand);
  margin-top: auto;
}
.eb-card__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius-md);
  background: var(--surface-tint);
  color: var(--text-mid);
  border: 1px solid transparent;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s,
    transform 0.15s;
}
.eb-card__link:hover {
  transform: translateY(-1px);
}
.eb-card__link--email {
  background: var(--surface-tint);
  border-color: var(--border-brand);
}
.eb-card__link--email:hover {
  background: var(--surface-tint-dim);
  color: var(--brand-dark);
  border-color: var(--accent);
}
.eb-card__link--profile {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-brand-mid);
}
.eb-card__link--profile:hover {
  background: var(--accent-light);
  color: var(--text-on-accent);
  border-color: var(--accent);
  opacity: 1;
}

/* ═══════════════════════════════════════════
   CHIEF CARD — wider photo, elevated style
═══════════════════════════════════════════ */
.eb-card--chief .eb-card_header {
  padding-top: clamp(22px, 2.5vw, 28px);
}
.eb-card--chief .eb-card__avatar {
  width: 96px;
  height: 96px;
  border-width: 3px;
}
.eb-card--chief .eb-card__name {
  font-size: clamp(16px, 1.6vw, 20px);
}

/* ═══════════════════════════════════════════
   PATRON CARD
═══════════════════════════════════════════ */
.eb-card--patron .eb-card__avatar {
  width: 80px;
  height: 80px;
}

/* ══════════════════════════════════════════
   MEMBERS GRID (2 columns)
══════════════════════════════════════════ */
.eb-members-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 0;
}

/* Solo card (odd member, full width) */
.eb-card--solo {
  margin-top: 16px;
}

/* ── Sidebar slot ── */
.eb-sidebar-slot {
  /* content injected by include.js */
}

/* ═══════════════════════════════════════════
   SCROLL REVEAL ANIMATION
═══════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* stagger member cards */
.eb-members-grid .eb-card:nth-child(1) { transition-delay: 0.05s; }
.eb-members-grid .eb-card:nth-child(2) { transition-delay: 0.10s; }
.eb-members-grid .eb-card:nth-child(3) { transition-delay: 0.15s; }
.eb-members-grid .eb-card:nth-child(4) { transition-delay: 0.20s; }
.eb-members-grid .eb-card:nth-child(5) { transition-delay: 0.25s; }
.eb-members-grid .eb-card:nth-child(6) { transition-delay: 0.30s; }

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .eb-layout__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .eb-sidebar-slot {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
}
@media (max-width: 768px) {
  .eb-hero__inner,
  .eb-layout__inner {
    padding-inline: 24px;
  }
  .eb-layout__inner {
    gap: 24px;
  }
  .eb-members-grid {
    grid-template-columns: 1fr;
  }
  .eb-card__name {
    padding-right: 0;
    padding-top: 28px;
  }
  .eb-card__role-badge {
    top: 10px;
    right: 12px;
  }
  .eb-sidebar-slot {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 480px) {
  .eb-hero {
    padding: 24px 0 32px;
  }
  .eb-hero__inner,
  .eb-layout__inner {
    padding-inline: 16px;
  }
  .eb-layout {
    padding: 24px 0 48px;
  }
  .eb-layout__inner {
    gap: 20px;
  }
  .eb-main {
    gap: 28px;
  }
  .eb-card__avatar {
    width: 60px;
    height: 60px;
  }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .eb-card,
  .eb-card::after,
  .eb-card__avatar,
  .eb-card__name,
  .eb-card__quote,
  .eb-card__tag,
  .eb-card__link,
  .reveal {
    transition: none !important;
    transform: none !important;
    animation: none !important;
  }
}