/* Statistics strip — dark panel with white labels (numbers stay brand red) */
/* Compact mission card and expandable objectives */
.mission-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.1rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-primary);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.mission-toggle .icon {
  width: 1.1rem;
  height: 1.1rem;
  transition: transform 180ms ease;
}

.mission-toggle[aria-expanded="true"] .icon {
  transform: rotate(180deg);
}

.mission-toggle:hover,
.mission-toggle:focus-visible {
  text-decoration: underline;
}

.mission-objectives {
  margin-top: 1.5rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-medium);
  background: var(--surface-card);
  box-shadow: var(--shadow-medium);
}

.mission-objectives[hidden] {
  display: none;
}

.mission-objectives__heading {
  margin-bottom: 1.25rem;
}

.mission-objectives__heading h3 {
  margin-top: 0.35rem;
}

.mission-objectives__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem clamp(1.5rem, 4vw, 3rem);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
  background: var(--color-navy);
  border: 1px solid var(--color-navy);
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-medium);
  padding: 0.75rem;
}

.about-stats .stat-card:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.about-stats .stat-card__label {
  color: #fff;
}

.about-stats .stat-card__value,
.about-stats .stat-card .icon {
  color: #fff;
}

/* Culture */
.about-culture {
  display: grid;
  grid-template-columns: minmax(280px, 1.1fr) 2fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.about-culture__list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.about-culture__list li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  text-align: center;
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--text-heading);
}

.about-culture__list .icon {
  width: 2.4rem;
  height: 2.4rem;
  color: var(--color-primary);
}

/* ============================================================
   Executive committee — tiered leadership roster
   The layout mirrors the club structure: leadership (2),
   regions (3), operations (4).
   ============================================================ */
.exec {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
}

/* Tier heading: small caps label trailed by a hairline rule */
.exec__tier-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 clamp(1.1rem, 2.5vw, 1.6rem);
  font-family: var(--font-heading);
  font-size: var(--text-tiny);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.exec__tier-label span {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.exec__tier-label span::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--color-primary);
  transform: rotate(45deg);
}

.exec__tier-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

.exec__row {
  display: grid;
  gap: clamp(1rem, 2.2vw, 1.75rem);
  list-style: none;
  padding: 0;
  margin: 0;
}

.exec__row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.exec__row--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Full width so its left edge lines up with the tiers below; the larger
   photo share keeps the wide card from reading as empty. */
.exec__row--lead {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* ---------- Card ---------- */
.exec-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-medium);
  background: var(--surface-card);
  border: 1px solid var(--color-border);
  box-shadow: 0 2px 10px rgba(8, 28, 58, 0.05);
  transition: transform 0.45s cubic-bezier(0.23, 1, 0.32, 1),
              box-shadow 0.45s cubic-bezier(0.23, 1, 0.32, 1),
              border-color 0.45s ease;
}

.exec-card:hover {
  transform: translateY(-6px);
  border-color: rgba(227, 6, 19, 0.35);
  box-shadow: 0 18px 40px rgba(8, 28, 58, 0.14);
}

/* Photo: 4:5 matches the source headshots, so no faces get cropped */
.exec-card__photo {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--color-surface);
}

.exec-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1),
              filter 0.5s ease;
}

/* Desaturate at rest so the mismatched studio backdrops read as one set.
   Pointer devices only — touch users never get the hover, so they see colour. */
@media (hover: hover) {
  .exec-card__photo img {
    filter: grayscale(1) contrast(1.03);
  }

  .exec-card:hover .exec-card__photo img {
    filter: grayscale(0) contrast(1);
    transform: scale(1.04);
  }
}

/* Soft brand wash blending the photo into the card foot */
.exec-card__photo::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 38%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, var(--surface-card) 100%);
  opacity: 0.55;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.exec-card:hover .exec-card__photo::after { opacity: 0.28; }

/* Region chip — only on the regional tier */
.exec-card__region {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(227, 6, 19, 0.32);
}

/* ---------- Card foot ---------- */
.exec-card__body {
  position: relative;
  flex: 1;
  padding: clamp(0.95rem, 2vw, 1.35rem) clamp(1rem, 2vw, 1.4rem) clamp(1.15rem, 2.4vw, 1.6rem);
}

/* Accent rule that draws across on hover */
.exec-card__body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.45s cubic-bezier(0.23, 1, 0.32, 1);
}

.exec-card:hover .exec-card__body::before { width: 100%; }

.exec-card__name {
  margin: 0 0 0.3rem;
  font-size: clamp(0.95rem, 1.15vw, 1.08rem);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.01em;
  color: var(--text-heading);
  overflow-wrap: break-word;
}

.exec-card__role {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--color-primary);
}

/* ---------- Leadership tier ----------
   Horizontal so the portrait stays a sensible size at half-container
   width, and so the top tier is visually distinct from the grids. */
.exec-card--lead {
  flex-direction: row;
  align-items: stretch;
  background: linear-gradient(150deg, var(--surface-card) 62%, var(--color-primary-soft));
}

.exec-card--lead .exec-card__photo {
  flex: 0 0 clamp(140px, 36%, 250px);
  aspect-ratio: 4 / 5;
  height: auto;
}

/* The blend runs bottom-to-top on the stacked cards; on the horizontal
   lead cards it should fade sideways into the copy instead. */
.exec-card--lead .exec-card__photo::after {
  inset: 0 0 0 auto;
  width: 34%;
  height: auto;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, var(--surface-card) 100%);
  opacity: 0.4;
}

.exec-card--lead:hover .exec-card__photo::after { opacity: 0.2; }

.exec-card--lead .exec-card__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.1rem, 2.4vw, 1.75rem);
}

.exec-card--lead .exec-card__name {
  font-size: clamp(1.05rem, 1.5vw, 1.32rem);
  margin-bottom: 0.4rem;
}

.exec-card--lead .exec-card__role {
  font-size: 0.75rem;
}

/* ---------- Club board ----------
   Same card as the committee so the two sections read as one system,
   with the tinted panel marking the board out as the senior group. */
.exec-card--board {
  background: linear-gradient(150deg, var(--surface-card) 62%, var(--color-primary-soft));
}

.exec-card--board .exec-card__name {
  font-size: clamp(1rem, 1.3vw, 1.18rem);
}

.about-gallery__controls {
  margin-top: 0.75rem;
  justify-content: flex-end;
}

@media (max-width: 1199px) {
  .about-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .about-stats .stat-card:not(:last-child) {
    border-right: none;
  }

  .about-culture {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991px) {
  .about-culture__list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 991px) {
  /* Operations goes 2-up. As full portraits at this width they would tower
     over the regional tier above, so switch to the compact row card. */
  .exec__row--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .exec__row--4 .exec-card {
    flex-direction: row;
    align-items: stretch;
  }

  .exec__row--4 .exec-card__photo {
    flex: 0 0 clamp(120px, 36%, 175px);
  }

  .exec__row--4 .exec-card__photo::after {
    inset: 0 0 0 auto;
    width: 34%;
    height: auto;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, var(--surface-card) 100%);
  }

  .exec__row--4 .exec-card__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

@media (max-width: 767px) {
  .mission-objectives__list {
    grid-template-columns: 1fr;
  }

  .about-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-culture__list {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Leadership stacks; regions go 2-up with the third centred below */
  .exec__row--lead {
    grid-template-columns: minmax(0, 1fr);
  }

  .exec__row--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .exec__row--3 > :last-child {
    grid-column: 1 / -1;
    max-width: calc(50% - clamp(0.5rem, 1.1vw, 0.875rem));
    margin-inline: auto;
  }

  .exec__tier-label {
    letter-spacing: 0.16em;
  }
}

@media (max-width: 479px) {
  .exec__row--3,
  .exec__row--4 {
    grid-template-columns: minmax(0, 1fr);
  }

  .exec__row--3 > :last-child {
    max-width: none;
    margin-inline: 0;
  }

  /* Every card becomes the horizontal lead layout — far less scrolling
     than nine stacked 4:5 portraits. */
  .exec-card {
    flex-direction: row;
    align-items: stretch;
  }

  .exec-card .exec-card__photo {
    flex: 0 0 38%;
  }

  .exec-card .exec-card__photo::after {
    inset: 0 0 0 auto;
    width: 34%;
    height: auto;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, var(--surface-card) 100%);
  }

  .exec-card .exec-card__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

/* ============================================================
   Dark theme overrides for about page
   ============================================================ */
/* Club board and executive committee */
html[data-theme="dark"] .exec-card--board {
  background: linear-gradient(150deg, #1A1A20 62%, rgba(255, 90, 71, 0.14));
}


html[data-theme="dark"] .exec-card {
  background: #1A1A20;
  border-color: rgba(255, 255, 255, 0.07);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .exec-card:hover {
  border-color: rgba(255, 122, 94, 0.45);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}

html[data-theme="dark"] .exec-card--lead {
  background: linear-gradient(150deg, #1A1A20 62%, rgba(255, 90, 71, 0.14));
}

html[data-theme="dark"] .exec-card__photo {
  background: #101014;
}

/* The blend gradients fade to the card colour, so they need the dark value */
html[data-theme="dark"] .exec-card__photo::after {
  background: linear-gradient(180deg, rgba(26, 26, 32, 0) 0%, #1A1A20 100%);
}

html[data-theme="dark"] .exec-card--lead .exec-card__photo::after {
  background: linear-gradient(90deg, rgba(26, 26, 32, 0) 0%, #1A1A20 100%);
}

html[data-theme="dark"] .exec-card__body::before,
html[data-theme="dark"] .exec__tier-label span::before {
  background: #FF7A5E;
}

html[data-theme="dark"] .exec-card__role {
  color: #FF7A5E;
}

html[data-theme="dark"] .exec-card__region {
  background: linear-gradient(135deg, #FF5A47, #FF7A3D);
  box-shadow: 0 4px 12px rgba(255, 90, 71, 0.35);
}

/* Wherever a card turns horizontal, its fade runs sideways and must
   resolve to the dark card colour. */
@media (max-width: 991px) {
  html[data-theme="dark"] .exec__row--4 .exec-card__photo::after {
    background: linear-gradient(90deg, rgba(26, 26, 32, 0) 0%, #1A1A20 100%);
  }
}

@media (max-width: 479px) {
  html[data-theme="dark"] .exec-card .exec-card__photo::after {
    background: linear-gradient(90deg, rgba(26, 26, 32, 0) 0%, #1A1A20 100%);
  }
}
