/* Community Page — Into the Light, people-first editorial experience */

.community-page {
  --community-night: #0f1f3d;
  --community-day: #6fa8d6;
  --community-cloud: #f4f6fa;
  --community-paper: #faf7f0;
  --community-ink: #1a1a1a;
  --community-line: rgba(111, 168, 214, 0.28);
  --community-glow: rgba(111, 168, 214, 0.22);
  --community-mint: #eaf6f0;
  --cursor-x: 50%;
  --cursor-y: 20%;
  position: relative;
  min-height: 100%;
  overflow-x: hidden;
}

/* ── Atmosphere ── */
.community-atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(circle at var(--cursor-x) var(--cursor-y), rgba(111, 168, 214, 0.18), transparent 32%),
    linear-gradient(180deg, var(--community-cloud) 0%, var(--community-paper) 48%, #ffffff 100%);
}

.community-atmosphere__grid {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(15, 31, 61, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 31, 61, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, transparent, black 14%, black 80%, transparent);
}

.community-atmosphere__orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(14px);
  opacity: 0.65;
  animation: community-float 16s ease-in-out infinite alternate;
}

.community-atmosphere__orb--a {
  width: 300px;
  height: 300px;
  top: 8%;
  left: 5%;
  background: rgba(111, 168, 214, 0.2);
}

.community-atmosphere__orb--b {
  width: 360px;
  height: 360px;
  top: 42%;
  right: 2%;
  background: rgba(244, 246, 250, 0.75);
  animation-delay: -5s;
}

.community-atmosphere__orb--c {
  width: 240px;
  height: 240px;
  bottom: 10%;
  left: 32%;
  background: rgba(175, 245, 214, 0.18);
  animation-delay: -9s;
}

@keyframes community-float {
  from {
    transform: translate3d(0, -12px, 0);
  }
  to {
    transform: translate3d(16px, 20px, 0);
  }
}

.community-section {
  position: relative;
  padding: clamp(32px, 4.5vw, 56px) 0;
}

.community-page .eyebrow {
  color: var(--community-day);
}

.community-page .h2 {
  color: var(--community-night);
}

.community-page .lead {
  color: rgba(26, 26, 26, 0.74);
}

/* ── Hero: Network Constellation ── */
.community-hero {
  min-height: 86vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 76px;
  padding-bottom: clamp(24px, 3.5vw, 40px);
  overflow: hidden;
}

.community-hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(32px, 5vw, 48px);
  align-items: center;
}

.community-hero__copy {
  position: relative;
  z-index: 2;
  text-align: center;
}

.community-hero__title {
  margin: clamp(12px, 2vw, 20px) 0 clamp(16px, 2.5vw, 22px);
  font-family: "League Spartan", Inter, system-ui, sans-serif;
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--community-night);
}

.community-hero__body {
  max-width: 52ch;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.7;
  color: rgba(26, 26, 26, 0.74);
}

/* ── Transitional punchline bridge ── */
.community-bridge {
  text-align: center;
}

.community-bridge__punchline {
  margin: 80px 0 40px;
  margin-inline: auto;
  max-width: min(100%, 920px);
  padding-inline: 20px;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: clamp(26px, 4vw, 42px);
  font-style: italic;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.01em;
  text-wrap: balance;
  background: linear-gradient(
    135deg,
    var(--community-night) 0%,
    #1a3358 55%,
    rgba(15, 31, 61, 0.82) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.community-hero__viz {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 260px;
  max-height: 480px;
}

.community-network {
  display: block;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  background: transparent;
}

.community-network__legend {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(111, 168, 214, 0.25);
  font-size: 12px;
  font-weight: 600;
  color: var(--community-night);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(15, 31, 61, 0.06);
  transition: opacity 320ms ease;
  pointer-events: none;
}

.community-network__legend.is-visible {
  opacity: 1;
}

/* ── People: Editorial Composition ── */
.community-people {
  padding-block: clamp(32px, 4.5vw, 56px);
}

.community-people__header {
  max-width: 520px;
  margin-bottom: clamp(40px, 6vw, 72px);
}

.community-people__editorial {
  position: relative;
  display: grid;
  gap: clamp(32px, 5vw, 56px);
}

.community-people__centerpiece {
  margin: 0;
  padding: 0;
  border: none;
  max-width: min(100%, 960px);
}

.community-people__centerpiece p {
  margin: 0;
  font-family: "League Spartan", Inter, system-ui, sans-serif;
  font-size: clamp(32px, 5.5vw, 58px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--community-night);
}

.community-people__centerpiece em {
  font-style: normal;
  background: linear-gradient(135deg, var(--community-day), #aff5d6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.community-people__labels {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 640px;
}

.community-people__label {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(111, 168, 214, 0.3);
  background: rgba(255, 255, 255, 0.72);
  color: rgba(15, 31, 61, 0.78);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 6px 20px rgba(15, 31, 61, 0.04);
}

.community-people__columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 48px);
  padding-left: clamp(0px, 8vw, 120px);
  border-left: 2px solid rgba(111, 168, 214, 0.2);
}

.community-people__col p {
  margin: 0;
  font-size: 17px;
  line-height: 1.75;
  color: rgba(26, 26, 26, 0.74);
}

.community-people__closing {
  margin: 0;
  max-width: 56ch;
  font-size: clamp(18px, 2.4vw, 22px);
  font-weight: 600;
  line-height: 1.6;
  color: var(--community-night);
  padding-top: clamp(16px, 3vw, 32px);
  border-top: 1px solid rgba(111, 168, 214, 0.18);
}

/* Team section — light-page adaptation (same markup as homepage) */
.community-page .section--team {
  padding-top: clamp(40px, 5vw, 64px);
  padding-bottom: 0;
}

.community-page .section--team .h2 {
  color: var(--community-night);
}

.community-page .section--team .lead {
  color: rgba(26, 26, 26, 0.62);
}

.community-page .team-card {
  border-color: rgba(111, 168, 214, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.68)),
    rgba(244, 246, 250, 0.75);
  box-shadow: 0 16px 48px rgba(15, 31, 61, 0.07);
}

.community-page .team-name {
  color: var(--community-night);
}

.community-page .team-role,
.community-page .team-points {
  color: rgba(26, 26, 26, 0.68);
}

.community-page .team-link {
  border-color: rgba(111, 168, 214, 0.3);
  background: rgba(255, 255, 255, 0.72);
  color: rgba(15, 31, 61, 0.86);
}

.community-page .team-link:hover {
  border-color: rgba(111, 168, 214, 0.5);
  background: rgba(111, 168, 214, 0.12);
}

.community-page .team-status-badge {
  border-color: rgba(111, 168, 214, 0.45);
  background: rgba(111, 168, 214, 0.18);
  color: rgba(15, 31, 61, 0.9);
  box-shadow: 0 0 10px rgba(111, 168, 214, 0.2);
}

/* ── Advisory: Asymmetrical Mosaic ── */
.community-advisory {
  padding-block: clamp(40px, 5vw, 72px);
}

.community-advisory__wrap {
  display: grid;
  gap: clamp(40px, 6vw, 72px);
}

.community-advisory__intro {
  max-width: 640px;
}

.community-advisory__lead {
  margin-top: 16px;
}

.community-advisory__mosaic {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(16px, 2.5vw, 24px);
  align-items: stretch;
}

.community-advisory__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 40px;
  border-radius: clamp(18px, 2.5vw, 26px);
  border: 1px solid var(--community-line);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.58)),
    rgba(250, 247, 240, 0.7);
  box-shadow: 0 20px 60px rgba(15, 31, 61, 0.06);
  transition:
    transform 380ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 380ms ease;
}

.community-advisory__panel:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 70px rgba(15, 31, 61, 0.1);
}

.community-advisory__panel p {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(26, 26, 26, 0.72);
}

.community-advisory__panel--feature {
  overflow: hidden;
}

.community-advisory__metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 24px 0;
  padding: 20px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.community-advisory__metric {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.community-advisory__metric-value {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.community-advisory__metric-label {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  color: #64748b;
}

.community-advisory__index {
  display: block;
  margin-bottom: 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--community-day);
}

.community-advisory__tag {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--community-day);
}

.community-advisory__disciplines {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.community-advisory__disciplines li {
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(244, 246, 250, 0.9);
  border: 1px solid rgba(111, 168, 214, 0.2);
  font-size: 12px;
  font-weight: 600;
  color: rgba(15, 31, 61, 0.8);
}

.community-advisory__disciplines--feature {
  margin-top: auto;
  padding-top: 8px;
}

.community-advisory__regions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.community-advisory__regions span {
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(111, 168, 214, 0.12), rgba(175, 245, 214, 0.12));
  border: 1px solid rgba(111, 168, 214, 0.22);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(15, 31, 61, 0.72);
}

.community-advisory__panel--commit {
  background:
    linear-gradient(135deg, rgba(15, 31, 61, 0.04), rgba(111, 168, 214, 0.06)),
    rgba(255, 255, 255, 0.7);
}

.community-advisory__commit-mark {
  font-family: "League Spartan", Georgia, serif;
  font-size: 72px;
  line-height: 0.6;
  color: rgba(111, 168, 214, 0.35);
  margin-bottom: 8px;
}

.community-advisory__commit-text {
  margin: 0;
  font-size: clamp(17px, 2.2vw, 20px);
  font-weight: 500;
  font-style: italic;
  line-height: 1.65;
  color: rgba(15, 31, 61, 0.82);
}

/* ── Advisory Expert Roster (3-lane ticker) ── */
.community-roster__header {
  margin-top: clamp(40px, 6vw, 64px);
  margin-bottom: clamp(24px, 4vw, 36px);
  text-align: center;
}

.community-roster__header .h3 {
  margin: 8px 0 0;
  color: var(--community-night);
}

.community-roster {
  position: relative;
  margin-top: 0;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  overscroll-behavior-x: contain;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 12%,
    #000 88%,
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 12%,
    #000 88%,
    transparent 100%
  );
}

.community-roster.is-dragging {
  cursor: grabbing;
  user-select: none;
  -webkit-user-select: none;
}

.community-roster::before,
.community-roster::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(48px, 10vw, 120px);
  z-index: 2;
  pointer-events: none;
}

.community-roster::before {
  left: 0;
  background: linear-gradient(
    to right,
    var(--community-paper) 0%,
    rgba(250, 247, 240, 0.92) 35%,
    rgba(250, 247, 240, 0) 100%
  );
}

.community-roster::after {
  right: 0;
  background: linear-gradient(
    to left,
    var(--community-paper) 0%,
    rgba(250, 247, 240, 0.92) 35%,
    rgba(250, 247, 240, 0) 100%
  );
}

.community-roster__lanes {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.community-roster__lane {
  overflow: hidden;
}

.community-roster__track {
  --roster-duration: 96s;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px;
  width: max-content;
  will-change: transform;
}

.community-roster__lane--ltr .community-roster__track {
  animation: community-roster-ltr var(--roster-duration) linear infinite;
}

.community-roster__lane--rtl .community-roster__track {
  animation: community-roster-rtl var(--roster-duration) linear infinite;
}

.community-roster.is-paused .community-roster__track,
.community-roster.is-dragging .community-roster__track,
.community-roster.is-manual-hold .community-roster__track,
.community-roster:has(.community-roster__item:hover) .community-roster__track,
.community-roster:has(.community-roster__item:focus-visible) .community-roster__track,
body.advisor-modal-open .community-roster__track {
  animation-play-state: paused;
}

.community-roster__item {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  padding: 8px 16px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 40px;
  box-shadow: 0 4px 16px rgba(15, 31, 61, 0.04);
  cursor: grab;
  font: inherit;
  color: inherit;
  text-align: left;
  appearance: none;
  transition:
    transform 280ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 280ms ease,
    border-color 280ms ease;
  outline: none;
}

.community-roster.is-dragging .community-roster__item {
  cursor: grabbing;
}

.community-roster__item:hover,
.community-roster__item:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(111, 168, 214, 0.35);
  box-shadow: 0 10px 28px rgba(15, 31, 61, 0.1);
}

.community-roster__item:focus-visible {
  outline: 2px solid rgba(111, 168, 214, 0.55);
  outline-offset: 2px;
}

.community-roster__avatar {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.community-roster__avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.community-roster__initials {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(15, 31, 61, 0.88);
  background: linear-gradient(
    135deg,
    hsl(var(--roster-hue, 210) 42% 88%),
    hsl(calc(var(--roster-hue, 210) + 24) 38% 78%)
  );
}

.community-roster__name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: rgba(15, 31, 61, 0.9);
  white-space: nowrap;
}

@keyframes community-roster-ltr {
  from {
    transform: translate3d(-50%, 0, 0);
  }
  to {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes community-roster-rtl {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

/* ── Advisor Profile Modal ── */
.advisor-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.advisor-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.advisor-modal[hidden] {
  display: none;
}

.advisor-modal.is-open[hidden] {
  display: flex;
}

.advisor-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
}

.advisor-modal__card {
  position: relative;
  z-index: 1;
  width: 90vw;
  max-width: 650px;
  max-height: min(88vh, 720px);
  overflow-y: auto;
  padding: 40px;
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid rgba(111, 168, 214, 0.18);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  transform: scale(0.96) translateY(12px);
  opacity: 0;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.advisor-modal.is-open .advisor-modal__card {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.advisor-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(15, 31, 61, 0.1);
  border-radius: 999px;
  background: rgba(244, 246, 250, 0.9);
  color: rgba(15, 31, 61, 0.72);
  cursor: pointer;
  transition:
    background 200ms ease,
    color 200ms ease,
    border-color 200ms ease,
    transform 200ms ease;
}

.advisor-modal__close:hover,
.advisor-modal__close:focus-visible {
  background: #ffffff;
  color: var(--community-night);
  border-color: rgba(111, 168, 214, 0.4);
  transform: scale(1.04);
  outline: none;
}

.advisor-modal__header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-right: 36px;
  margin-bottom: 24px;
}

.advisor-modal__avatar {
  width: 84px;
  height: 84px;
  min-width: 84px;
  border-radius: 50%;
  overflow: hidden;
  background: #e2e8f0;
  box-shadow: 0 10px 28px rgba(15, 31, 61, 0.1);
}

.advisor-modal__avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.advisor-modal__avatar-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(15, 31, 61, 0.88);
  background: linear-gradient(
    135deg,
    hsl(var(--roster-hue, 210) 42% 88%),
    hsl(calc(var(--roster-hue, 210) + 24) 38% 78%)
  );
}

.advisor-modal__identity {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.advisor-modal__name-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 14px;
  width: 100%;
}

.advisor-modal__tag {
  display: inline-block;
  padding: 6px 14px;
  background: #f1f5f9;
  font-size: 13px;
  font-weight: 500;
  border-radius: 20px;
  color: #475569;
}

.advisor-modal__name {
  margin: 0;
  font-family: "League Spartan", Inter, system-ui, sans-serif;
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.01em;
  color: var(--community-night);
}

.advisor-modal__linkedin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(10, 102, 194, 0.22);
  background: #ffffff;
  color: #0a66c2;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition:
    background 200ms ease,
    border-color 200ms ease,
    transform 200ms ease,
    box-shadow 200ms ease;
}

.advisor-modal__linkedin:hover,
.advisor-modal__linkedin:focus-visible {
  background: #ffffff;
  border-color: rgba(10, 102, 194, 0.4);
  box-shadow: 0 8px 22px rgba(10, 102, 194, 0.12);
  transform: translateY(-1px);
  outline: none;
}

.advisor-modal__linkedin-icon {
  display: block;
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.advisor-modal__bio {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(26, 26, 26, 0.74);
  white-space: pre-line;
}

body.advisor-modal-open {
  overflow: hidden;
}

@media (max-width: 600px) {
  .advisor-modal__card {
    padding: 28px 22px 28px;
  }

  .advisor-modal__header {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding-right: 28px;
  }

  .advisor-modal__avatar {
    width: 72px;
    height: 72px;
    min-width: 72px;
  }
}

/* ── Fellowship: Bento Grid ── */
.community-fellowship {
  padding-block: clamp(40px, 5vw, 72px);
  background:
    linear-gradient(180deg, transparent, rgba(234, 246, 240, 0.45) 30%, rgba(234, 246, 240, 0.45) 70%, transparent);
}

.community-fellowship__header {
  max-width: 560px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.fellowship-bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: stretch;
  width: 100%;
}

.fellowship-bento__card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 36px;
  border-radius: 24px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #ffffff;
  box-shadow: 0 16px 48px rgba(15, 31, 61, 0.05);
  transition:
    transform 360ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 360ms ease;
}

.fellowship-bento__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 60px rgba(15, 31, 61, 0.09);
}

.fellowship-bento__card--hero,
.fellowship-bento__card--accent,
.fellowship-bento__card--experience,
.fellowship-bento__card--purpose {
  grid-column: 1 / -1;
}

.fellowship-bento__card--accent {
  position: relative;
  justify-content: space-between;
  padding: 32px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  overflow: hidden;
}

.fellowship-bento__quote-mark {
  position: absolute;
  top: 8px;
  right: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 96px;
  line-height: 1;
  color: rgba(59, 130, 246, 0.12);
  pointer-events: none;
  user-select: none;
}

.fellowship-bento__quote {
  position: relative;
  z-index: 1;
  margin: 0 !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  color: #0f172a !important;
}

.fellowship-bento__accent-divider {
  width: 100%;
  height: 1px;
  margin: 20px 0;
  background: rgba(0, 0, 0, 0.06);
}

.fellowship-bento__value-badges {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}

.fellowship-bento__value-badge {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  background: rgba(255, 255, 255, 0.9);
  transition: transform 0.2s ease;
}

.fellowship-bento__value-badge:hover {
  transform: translateY(-2px);
}

.fellowship-bento__value-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: #0f172a;
}

.fellowship-bento__value-text {
  font-size: 12px;
  line-height: 1.35;
  color: #64748b;
}

.fellowship-bento__label {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--community-day);
}

.fellowship-bento__card p {
  margin: 0;
  font-size: 16px;
  line-height: 1.72;
  color: rgba(26, 26, 26, 0.74);
}

.fellowship-bento__card p + p {
  margin-top: 14px;
}

.fellowship-bento__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: auto 0 0;
  padding: 22px 0 0;
  list-style: none;
}

.fellowship-bento__tags li {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(111, 168, 214, 0.1);
  border: 1px solid rgba(111, 168, 214, 0.22);
  font-size: 12px;
  font-weight: 600;
  color: rgba(15, 31, 61, 0.78);
}

.fellowship-bento__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.fellowship-bento__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: rgba(15, 31, 61, 0.86);
}

.fellowship-bento__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 10px;
  background: rgba(111, 168, 214, 0.12);
  font-size: 15px;
  line-height: 1;
}

.fellowship-bento__pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  background: #f8fafc;
}

.fellowship-bento__pillar {
  min-width: 0;
  transition: transform 0.2s ease;
}

.fellowship-bento__pillar:hover {
  transform: translateY(-2px);
}

.fellowship-bento__pillar-tag {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #3b82f6;
}

.fellowship-bento__pillar-title {
  margin: 4px 0 2px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  color: #0f172a;
}

.fellowship-bento__pillar-text {
  margin: 0 !important;
  font-size: 12px !important;
  line-height: 1.3 !important;
  color: #64748b !important;
}

.community-fellowship__cta {
  margin-top: clamp(40px, 6vw, 64px);
  text-align: center;
}

/* ── Fellowship Graduate Cohort (2-lane ticker) ── */
.community-cohort__header {
  margin-top: clamp(48px, 7vw, 72px);
  margin-bottom: clamp(24px, 4vw, 36px);
  text-align: center;
}

.community-cohort__header .h3 {
  margin: 8px 0 0;
  color: var(--community-night);
}

.community-cohort {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  overscroll-behavior-x: contain;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 12%,
    #000 88%,
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 12%,
    #000 88%,
    transparent 100%
  );
}

.community-cohort.is-dragging {
  cursor: grabbing;
  user-select: none;
  -webkit-user-select: none;
}

.community-cohort::before,
.community-cohort::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(48px, 10vw, 120px);
  z-index: 2;
  pointer-events: none;
}

.community-cohort::before {
  left: 0;
  background: linear-gradient(
    to right,
    var(--community-mint) 0%,
    rgba(234, 246, 240, 0.92) 35%,
    rgba(234, 246, 240, 0) 100%
  );
}

.community-cohort::after {
  right: 0;
  background: linear-gradient(
    to left,
    var(--community-mint) 0%,
    rgba(234, 246, 240, 0.92) 35%,
    rgba(234, 246, 240, 0) 100%
  );
}

.community-cohort__lanes {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.community-cohort__lane {
  overflow: hidden;
}

.community-cohort__track {
  --cohort-duration: 88s;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px;
  width: max-content;
  will-change: transform;
}

.community-cohort__lane--ltr .community-cohort__track {
  animation: community-roster-ltr var(--cohort-duration) linear infinite;
}

.community-cohort__lane--rtl .community-cohort__track {
  animation: community-roster-rtl var(--cohort-duration) linear infinite;
}

.community-cohort.is-dragging .community-cohort__track,
.community-cohort.is-manual-hold .community-cohort__track,
.community-cohort:has(.community-cohort__item:hover) .community-cohort__track,
.community-cohort:has(.community-cohort__item:focus-visible) .community-cohort__track,
body.graduate-modal-open .community-cohort__track {
  animation-play-state: paused;
}

.community-cohort__item {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  padding: 8px 16px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 40px;
  box-shadow: 0 4px 16px rgba(15, 31, 61, 0.04);
  cursor: grab;
  font: inherit;
  color: inherit;
  text-align: left;
  appearance: none;
  transition:
    transform 280ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 280ms ease,
    border-color 280ms ease;
  outline: none;
}

.community-cohort.is-dragging .community-cohort__item {
  cursor: grabbing;
}

.community-cohort__item:hover,
.community-cohort__item:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(111, 168, 214, 0.35);
  box-shadow: 0 10px 28px rgba(15, 31, 61, 0.1);
}

.community-cohort__item:focus-visible {
  outline: 2px solid rgba(111, 168, 214, 0.55);
  outline-offset: 2px;
}

.community-cohort__play {
  width: 18px;
  height: 18px;
  min-width: 18px;
  color: var(--community-day);
  opacity: 0.72;
  transition:
    opacity 220ms ease,
    transform 220ms ease,
    color 220ms ease;
}

.community-cohort__item:hover .community-cohort__play,
.community-cohort__item:focus-visible .community-cohort__play {
  opacity: 1;
  color: #0a66c2;
  transform: scale(1.08);
}

.community-cohort__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  overflow: hidden;
  background: #e2e8f0;
  flex-shrink: 0;
}

.community-cohort__avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.community-cohort__silhouette {
  width: 18px;
  height: 18px;
  color: rgba(15, 31, 61, 0.32);
}

.community-cohort__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.community-cohort__name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  color: rgba(15, 31, 61, 0.9);
  white-space: nowrap;
}

.community-cohort__country {
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  color: rgba(26, 26, 26, 0.48);
  white-space: nowrap;
}

/* ── Graduate Video Profile Modal ── */
.graduate-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.graduate-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.graduate-modal[hidden] {
  display: none;
}

.graduate-modal.is-open[hidden] {
  display: flex;
}

.graduate-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
}

.graduate-modal__card {
  position: relative;
  z-index: 1;
  width: min(90vw, 780px);
  max-height: min(90vh, 900px);
  overflow-y: auto;
  padding: 32px;
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid rgba(111, 168, 214, 0.18);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  transform: scale(0.96) translateY(12px);
  opacity: 0;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.graduate-modal.is-open .graduate-modal__card {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.graduate-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(15, 31, 61, 0.1);
  border-radius: 999px;
  background: rgba(244, 246, 250, 0.9);
  color: rgba(15, 31, 61, 0.72);
  cursor: pointer;
  transition:
    background 200ms ease,
    color 200ms ease,
    border-color 200ms ease,
    transform 200ms ease;
}

.graduate-modal__close:hover,
.graduate-modal__close:focus-visible {
  background: #ffffff;
  color: var(--community-night);
  border-color: rgba(111, 168, 214, 0.4);
  transform: scale(1.04);
  outline: none;
}

.graduate-modal__header {
  padding-right: 40px;
  margin-bottom: 22px;
}

.graduate-modal__name {
  margin: 0 0 12px;
  font-family: "League Spartan", Inter, system-ui, sans-serif;
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.01em;
  color: var(--community-night);
}

.graduate-modal__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.graduate-modal__pill {
  display: inline-block;
  padding: 6px 14px;
  background: #f1f5f9;
  font-size: 13px;
  font-weight: 500;
  border-radius: 20px;
  color: #475569;
}

.graduate-modal__pill--impact {
  background: rgba(111, 168, 214, 0.14);
  color: rgba(15, 31, 61, 0.82);
}

.graduate-modal__player {
  margin: 0 auto;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #0f1f3d;
  box-shadow: 0 12px 32px rgba(15, 31, 61, 0.12);
}

.graduate-modal__player[data-aspect="landscape"] {
  aspect-ratio: 16 / 9;
  max-width: 720px;
}

.graduate-modal__player[data-aspect="shorts"] {
  aspect-ratio: 9 / 16;
  max-width: 380px;
  max-height: min(62vh, 640px);
}

.graduate-modal__player iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

body.graduate-modal-open {
  overflow: hidden;
}

@media (max-width: 600px) {
  .graduate-modal__card {
    padding: 24px 18px 24px;
  }

  .graduate-modal__player[data-aspect="shorts"] {
    max-width: min(100%, 320px);
  }
}

/* ── Premium CTA Buttons ── */
.community-btn--premium {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 14px 28px;
  border-radius: 16px;
  font-size: 14px;
  letter-spacing: 0.02em;
  --mag-x: 0px;
  --mag-y: 0px;
  transform: translate(var(--mag-x), var(--mag-y));
  transition:
    transform 280ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 320ms ease;
}

.community-btn--premium::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, rgba(175, 245, 214, 0.5), rgba(109, 214, 255, 0.4));
  opacity: 0;
  transition: opacity 320ms ease;
  border-radius: inherit;
}

.community-btn--premium:hover::before {
  opacity: 1;
}

.community-btn--premium:hover {
  transform: translate(var(--mag-x), calc(var(--mag-y) - 2px));
  box-shadow: 0 24px 70px rgba(43, 108, 255, 0.28);
}

.community-btn--ghost {
  border-color: rgba(15, 31, 61, 0.16);
  background: rgba(255, 255, 255, 0.6);
  color: rgba(15, 31, 61, 0.86);
}

.community-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(111, 168, 214, 0.4);
}

/* ── Invitation: Closing CTA ── */
.community-invite {
  padding-block: clamp(24px, 4vw, 48px) clamp(40px, 5vw, 72px);
}

.community-invite__inner {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
}

.community-invite__divider {
  width: 48px;
  height: 2px;
  margin: 0 auto 28px;
  background: linear-gradient(90deg, transparent, var(--community-day), transparent);
  border-radius: 2px;
}

.community-invite__title {
  margin-bottom: 20px;
}

.community-invite__lead {
  margin: 0 0 16px;
}

.community-invite__body {
  margin: 0 0 clamp(32px, 5vw, 48px);
  font-size: 16px;
  line-height: 1.7;
  color: rgba(26, 26, 26, 0.68);
}

.community-invite__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  align-items: center;
}

/* ── Staggered Reveal ── */
.community-page [data-stagger] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 620ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--stagger, 0) * 90ms);
}

.community-page [data-stagger].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (min-width: 720px) {
  .community-hero__layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(48px, 5vw, 64px);
    align-items: center;
  }

  .community-hero__copy {
    text-align: left;
  }

  .community-hero__body {
    margin-inline: 0;
  }

  .community-people__columns {
    grid-template-columns: 1fr 1fr;
  }

  .community-advisory__mosaic {
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto auto auto;
    align-items: stretch;
  }

  .community-advisory__panel--feature {
    grid-column: 1 / 8;
    grid-row: 1 / 3;
  }

  .community-advisory__panel--tall {
    grid-column: 8 / 13;
    grid-row: 1;
  }

  .community-advisory__panel--accent {
    grid-column: 8 / 13;
    grid-row: 2;
  }

  .community-advisory__panel--wide {
    grid-column: 1 / 7;
    grid-row: 3;
  }

  .community-advisory__panel--commit {
    grid-column: 7 / 13;
    grid-row: 3;
  }
}

@media (min-width: 900px) {
  .fellowship-bento {
    grid-template-columns: repeat(12, 1fr);
  }

  .fellowship-bento__card--hero {
    grid-column: span 8;
  }

  .fellowship-bento__card--accent {
    grid-column: span 4;
  }

  .fellowship-bento__card--experience {
    grid-column: span 4;
  }

  .fellowship-bento__card--purpose {
    grid-column: span 8;
  }
}

@media (max-width: 719px) {
  .community-hero__viz {
    max-height: 340px;
  }

  .community-people__columns {
    padding-left: 20px;
  }

  .community-advisory__metrics {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .fellowship-bento__card {
    padding: 28px 22px;
  }

  .fellowship-bento__pillars {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .community-atmosphere__orb {
    animation: none;
  }

  .community-roster__track {
    animation: none !important;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 20px;
  }

  .community-roster__lane {
    overflow: visible;
  }

  .community-roster [aria-hidden="true"] {
    display: none;
  }

  .community-cohort__track {
    animation: none !important;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 20px;
  }

  .community-cohort__lane {
    overflow: visible;
  }

  .community-cohort [aria-hidden="true"] {
    display: none;
  }

  .community-page [data-stagger] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .community-advisory__panel:hover,
  .fellowship-bento__card:hover,
  .fellowship-bento__pillar:hover,
  .fellowship-bento__value-badge:hover,
  .community-btn--premium:hover {
    transform: none;
  }
}
