/* ── About section — normal flow ── */
#about-mnirsm {
  background: #fafaf8;
  color: #1a1a1a;
  padding: 3.5rem 0 2.5rem 0;
  margin: 0;
  position: relative;
  z-index: 1;
  overflow: hidden;
}
/* Responsive two-column layout — logos panel gets priority, text shrinks */
.about-mnirsm-container {
  display: flex;
  gap: 3rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  align-items: stretch;
  justify-content: flex-start;
  flex-wrap: wrap;
}
/* Text column: takes left ~55%, logos live inside it below the text */
.about-mnirsm-info {
  flex: 1 1 320px;
  min-width: 260px;
  max-width: 660px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* Logo panel now INSIDE .about-mnirsm-info — no flex constraints needed */
.about-mnirsm-info .about-side-panel {
  flex: none;
  min-width: 0;
  margin-top: 2.2rem;
  border-top: 1px solid rgba(0,0,0,0.08);
  padding-top: 2rem;
  width: 100%;
}
.about-mnirsm-title {
  font-family: 'Bebas Neue', 'Avenir Next Pro', Arial, sans-serif;
  font-size: clamp(2.4rem, 4.5vw, 4.8rem);
  font-weight: 400;
  letter-spacing: 0.05em;
  line-height: 1;
  margin-bottom: 0.5rem;
  color: #1a1a1a;
  text-transform: uppercase;
}

/* JS splits words into .word-wrap > .word-inner > .char spans */
.about-mnirsm-title.word-reveal-title {
  display: flex;
  flex-direction: column;   /* stack: ABOUT / MNIRSM / 2026 */
  align-items: flex-start;
  column-gap: 0;
  row-gap: 0;
  letter-spacing: 0;
  overflow: visible;
}

/* ── Word 1: "ABOUT" — small dimmed kicker ── */
.about-mnirsm-title .word-wrap:nth-child(1) {
  
  font-size: clamp(4.5rem, 8.5vw, 11rem);
  letter-spacing: -0.01em;
  color: rgba(26,26,26,0.35);
  padding-bottom: 0;
  line-height: 0.85;
}

/* ── Word 2: "MNIRSM" — huge, dark ── */
.about-mnirsm-title .word-wrap:nth-child(2) {
  font-size: clamp(2rem, 4.4vw, 5.5rem);
  letter-spacing: 0.05em;
  color: #1a1a1a;
  line-height: 0.85;
  margin-bottom: 0.03em;
}

/* ── Word 3: "2026" — hero accent pink ── */
.about-mnirsm-title .word-wrap:nth-child(3) {
  font-size: clamp(4.5rem, 8.5vw, 11rem);
  letter-spacing: -0.01em;
  color: #ff1f6b;
  line-height: 0.82;
}

/* On narrow viewports the stack looks fine already — just shrink a touch */
@media (max-width: 600px) {
  .about-mnirsm-title.word-reveal-title {
    flex-wrap: wrap;
    row-gap: 0;
  }
  .about-mnirsm-title .word-wrap:nth-child(1),
  .about-mnirsm-title .word-wrap:nth-child(3) {
    font-size: clamp(3.8rem, 14vw, 7rem);
  }
  .about-mnirsm-title .word-wrap:nth-child(2) {
    font-size: clamp(1.5rem, 6.5vw, 2.2rem);
  }
}

/* Restore letter-spacing inside each word span — overridden per-word above */
.about-mnirsm-title .word-wrap {
  display: inline-block;
  overflow: hidden;
  padding-bottom: 0.08em;
  vertical-align: bottom;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.about-mnirsm-title .word-inner {
  display: block;
  transform: translateY(110%);
  transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1) var(--word-delay, 0s);
  will-change: transform;
}

/* .char spans from buildCharSpans — inline, inherit word letter-spacing */
.about-mnirsm-title .char {
  display: inline;
}

.about-mnirsm-title.section-title-visible .word-inner {
  transform: translateY(0);
}
.about-mnirsm-divider {
  width: 0px;
  height: 0px;
  background: #ff1f6b;
  border-radius: 2px;
  margin-bottom: 1.5rem;
}
.about-mnirsm-body {
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 60ch; /* readable line length */
  margin-bottom: 2.2rem;
  color: #000000;
}
/* ── Right panel: REGISTRATION INFO ── */
.about-reg-panel {
  flex: 0 0 auto;
  min-width: clamp(300px, 44%, 520px);
  align-self: stretch;
  display: flex;
  flex-direction: column;
}

.about-reg-inner {
  background: #1a1a2e;
  border: 1px solid rgba(255,31,107,0.25);
  border-radius: 12px;
  padding: 2.2rem 2rem;
  color: #fff;
  flex: 1 1 auto;
  box-sizing: border-box;
}

.about-reg-heading {
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ff1f6b;
  margin: 0 0 1rem 0;
  padding: 0.2em 0.6em;
  background: rgba(255,31,107,0.12);
  border-left: 3px solid #ff1f6b;
  border-radius: 0 4px 4px 0;
  display: block;
}

.about-reg-heading:not(:first-child) {
  margin-top: 1.8rem;
}

/* Dates list */
.about-reg-dates {
  list-style: none;
  margin: 0 0 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.about-reg-dates li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.65rem 0.9rem;
  border-radius: 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
}

.about-reg-label {
  font-family: 'Avenir Next Pro', 'Avenir Next', Arial, sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}

.about-reg-value {
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  letter-spacing: 0.06em;
  color: #ffffff;
}

/* Fee groups */
.about-reg-fees {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-reg-fee-group {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  padding: 0.9rem 1rem;
}

.about-reg-fee-title {
  font-family: 'Avenir Next Pro', 'Avenir Next', Arial, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 0.6rem;
}

.about-reg-fee-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.25rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.about-reg-fee-row:last-child {
  border-bottom: none;
}

.about-reg-fee-tier {
  font-family: 'Avenir Next Pro', 'Avenir Next', Arial, sans-serif;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.62);
  letter-spacing: 0.02em;
}

.about-reg-fee-amount {
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  letter-spacing: 0.06em;
  color: #ff1f6b;
}

/* ── Old right panel: no longer a column sibling ── */
.about-mnirsm-info .about-side-panel .about-side-inner {
  background: transparent;
  border: none;
  padding: 0;
  gap: 1.5rem;
}


/* ── Logo group ── */
.about-logo-group {
  width: 100%;
  margin: 0;
  padding: 0;
}

.about-logo-heading {
  font-family: 'Avenir Next Pro', 'Avenir Next', Arial, sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: rgba(0,0,0,0.38);
  margin-bottom: 1rem;
  text-transform: uppercase;
}

/* Organizer logos — always side-by-side, fill available width */
#group-organizers .about-logo-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 1.8rem;
  align-items: center;  /* vertically centre logos */
  justify-content: center;
  padding-bottom: 1rem;
}

#group-organizers .about-logo-card {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  margin: 0;
  flex: 0 0 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
}

/* SoPhysics: compact 22% / USM+APEX: wide 74% */
#group-organizers .about-logo-card:first-child  { width: 22%; }
#group-organizers .about-logo-card:nth-child(2) { width: 74%; }

/* All organizer logos: fill their card, capped at a comfortable max */
#group-organizers .about-logo-card img {
  width: 100%;
  height: auto;
  max-height: 140px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 1px 6px rgba(0,0,0,0.1));
  transition: filter 0.2s ease, transform 0.2s ease;
}

/* Sophy (first in JSON/DOM) = spotlight: larger cap */
#group-organizers .about-logo-card:first-child img {
  max-height: 160px;
}

#group-organizers .about-logo-card:first-child::after {
  content: none;
  display: none;
}

#group-organizers .about-logo-card img:hover {
  filter: drop-shadow(0 4px 14px rgba(255,31,107,0.2));
  transform: translateY(-2px);
}

/* Partner logos */
#group-partners .about-logo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  align-items: center;
  justify-content: flex-start;
}

#group-partners .about-logo-card {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  max-width: none;
  max-height: none;
}

#group-partners .about-logo-card img {
  height: 55px;
  width: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 1px 5px rgba(0,0,0,0.08));
  transition: filter 0.2s ease, transform 0.2s ease;
}

#group-partners .about-logo-card img:hover {
  filter: drop-shadow(0 4px 12px rgba(255,31,107,0.18));
  transform: translateY(-2px);
}

/* Separator between groups */
.about-logo-group + .about-logo-group {
  border-top: 1px solid rgba(0,0,0,0.07);
  padding-top: 1.8rem;
  margin-top: 0;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .about-mnirsm-container {
    flex-direction: column;
    gap: 2.5rem;
    align-items: stretch;
  }
  .about-mnirsm-info {
    max-width: 100%;
  }
  .about-reg-panel {
    flex: none;
    max-width: 100%;
    width: 100%;
    min-width: 0;
  }
  .about-side-inner {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2rem;
  }
  .about-logo-group + .about-logo-group {
    border-top: none;
    border-left: 1px solid rgba(0,0,0,0.07);
    padding-top: 0;
    padding-left: 2rem;
  }
}

@media (max-width: 700px) {
  #about-mnirsm {
    padding: 2.5rem 0 2rem;
  }
  .about-mnirsm-container {
    gap: 2rem;
    padding: 0 1.25rem;
  }
  .about-side-inner {
    flex-direction: column;
    gap: 1.5rem;
  }
  .about-logo-group + .about-logo-group {
    border-left: none;
    border-top: 1px solid rgba(0,0,0,0.07);
    padding-left: 0;
    padding-top: 1.5rem;
  }
  /* Keep organizer logos side-by-side but scaled for small screens */
  #group-organizers .about-logo-card img {
    max-height: 80px;
  }
  #group-organizers .about-logo-card:first-child img {
    max-height: 100px;  /* Sophy still proportionally bigger on mobile */
  }
  #group-partners .about-logo-card img {
    height: 40px;
  }
  #group-organizers .about-logo-grid {
    gap: 1.2rem;
  }
}
