/* ─── ABOUT PAGE ────────────────────────────────────────────────────────────── */


/* ─── NO-SCROLL DESKTOP ──────────────────────────────────────────────────────── */

@media (min-width: 768px) {
  html, body { overflow: hidden; }
}


/* ─── PAGE ────────────────────────────────────────────────────────────────────── */

.about-page {
  position: relative;
  height: 100vh;
  overflow: hidden;
}


/* ─── BACKGROUND ──────────────────────────────────────────────────────────────── */

.about-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  display: block;
  transition: opacity .6s ease;
}

.about-bg.is-no-bg { opacity: 0; }

.about-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(8,8,8,0.97) 0%,
    rgba(8,8,8,0.90) 38%,
    rgba(8,8,8,0.72) 56%,
    rgba(8,8,8,0.48) 75%,
    rgba(8,8,8,0.28) 100%
  );
}


/* ─── CONTENT GRID ────────────────────────────────────────────────────────────── */

.about-content {
  position: relative;
  z-index: 1;
  height: 100vh;
  padding-top: 68px; /* clear fixed header */
  display: grid;
  grid-template-columns: 42fr 58fr;
  padding-left: 80px;
  padding-right: 80px;
  box-sizing: border-box;
}


/* ─── LEFT COLUMN ─────────────────────────────────────────────────────────────── */

.about-left {
  display: flex;
  flex-direction: column;
  padding: 44px 64px 44px 0;
  border-right: var(--line-weight) solid var(--color-white-faint);
}

.about-explore {
  flex-shrink: 0;
  padding-top: 24px;
}

/* Member list — navegación por identidad */

.about-member-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: none;
}

.about-member-list::-webkit-scrollbar { display: none; }

.about-member-item {
  opacity: 0.22;
  cursor: pointer;
  transition: opacity 0.5s var(--ease-out);
  flex-shrink: 0;
  padding-bottom: 36px;
}

.about-member-item:last-child { padding-bottom: 0; }

.about-member-item.is-active {
  opacity: 1;
  cursor: default;
}

.about-member-item:hover:not(.is-active) { opacity: 0.5; }

/* Ocultar credits y social en items inactivos */
.about-member-item:not(.is-active) .about-credits,
.about-member-item:not(.is-active) .about-social { display: none; }

/* Identity */

.about-eyebrow {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--color-white-dim);
  margin-bottom: 14px;
}

.about-name {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(22px, 2.8vw, 38px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 20px;
}

.about-location {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--color-white-dim);
}

/* Credits */

.about-credits {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  margin: 0;
}

.about-credits-item {
  display: grid;
  grid-template-columns: 88px 1fr;
  padding: 10px 0;
  border-bottom: var(--line-weight) solid var(--color-white-faint);
}

.about-credits-item:first-child {
  border-top: var(--line-weight) solid var(--color-white-faint);
}

.about-credits dt {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--color-white-dim);
  opacity: .55;
}

.about-credits dd {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .12em;
  color: var(--color-white-dim);
  margin: 0;
}

.about-credits dd a {
  color: var(--color-white-dim);
  text-decoration: none;
  transition: color .3s;
}

.about-credits dd a:hover { color: #fff; }

/* Social icons */

.about-social {
  display: flex;
  gap: 20px;
  margin-top: 28px;
}

.about-social a {
  color: rgba(255,255,255,.3);
  transition: color .3s;
  display: flex;
  align-items: center;
}

.about-social a:hover { color: rgba(255,255,255,.75); }

.about-social svg {
  width: 17px;
  height: 17px;
  display: block;
}


/* ─── RIGHT COLUMN ────────────────────────────────────────────────────────────── */

.about-right {
  display: flex;
  flex-direction: column;
  padding: 44px 0 44px 64px;
  overflow: hidden;
}

/* Bio panels */

.about-bio-panels {
  flex: 1;
  position: relative;
  min-height: 0;
  overflow: hidden;
}

.about-bio-panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease-out);
}

.about-bio-panel.is-active {
  opacity: 1;
  pointer-events: auto;
}

.about-bio-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.about-manifesto-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--color-white-dim);
  margin: 0;
}

.about-lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
}

.about-lang-sep {
  font-family: var(--font-mono);
  font-size: 8px;
  color: rgba(255,255,255,0.15);
  user-select: none;
}

.about-lang-btn {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.22);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: color 0.3s;
}

.about-lang-btn.is-active          { color: var(--color-white-dim); }
.about-lang-btn:hover:not(.is-active) { color: rgba(255,255,255,0.5); }

.about-manifesto-line {
  height: var(--line-weight);
  background: var(--color-white-faint);
  margin-bottom: 28px;
  flex-shrink: 0;
}

.about-manifesto-body {
  flex: 1;
  position: relative;
  overflow: hidden;
}

/* Fade inferior — indica que hay más texto para scrollear */
.about-manifesto-body::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 64px;
  background: linear-gradient(transparent, rgba(8,8,8,0.85));
  pointer-events: none;
  z-index: 1;
}

.about-lang-content {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  padding-bottom: 72px;
  scrollbar-width: thin;                               /* Firefox */
  scrollbar-color: rgba(255,255,255,0.3) transparent; /* Firefox */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out);
}

/* Chrome / Safari / Edge — scrollbar agarrable (6px) */
.about-lang-content::-webkit-scrollbar              { width: 6px; }
.about-lang-content::-webkit-scrollbar-track        { background: transparent; }
.about-lang-content::-webkit-scrollbar-thumb        { background: rgba(255,255,255,0.25); border-radius: 3px; }
.about-lang-content::-webkit-scrollbar-thumb:hover  { background: rgba(255,255,255,0.5); }

.about-lang-content.is-active {
  opacity: 1;
  pointer-events: auto;
}

.about-manifesto-body p {
  font-family: var(--font-mono);
  font-size: clamp(12px, 0.94vw, 14px);
  line-height: 1.9;
  letter-spacing: 0.02em;
  color: var(--color-white-dim);
  margin: 0 0 1em;
}

.about-manifesto-body p:last-child { margin-bottom: 0; }


/* ─── SCROLL HINT ─────────────────────────────────────────────────────────────── */

.about-scroll-hint {
  position: absolute; bottom: 14px; left: 50%;
  z-index: 2;
  color: rgba(255,255,255,0.4);
  pointer-events: none;
  transition: opacity 0.5s var(--ease-out);
  animation: scrollHintFloat 2s ease-in-out infinite;
}

.about-scroll-hint.is-hidden { opacity: 0; }

.about-scroll-hint svg {
  display: block; width: 18px; height: 18px;
  fill: none; stroke: currentColor;
  stroke-width: 1; stroke-linecap: round; stroke-linejoin: round;
}

@keyframes scrollHintFloat {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(5px); }
}


/* ─── RESPONSIVE — MOBILE (≤ 767px) ──────────────────────────────────────────── */

@media (max-width: 767px) {

  .about-page {
    height: auto;
    overflow: visible;
  }

  /* Hero móvil: foto como fondo en el primer tramo */
  .about-bg {
    height: 65vh;
    bottom: auto;
    object-position: right top;
  }

  .about-overlay {
    height: 65vh;
    background: linear-gradient(
      180deg,
      rgba(8,8,8,0.25) 0%,
      rgba(8,8,8,0.90) 100%
    );
  }

  .about-content {
    grid-template-columns: 1fr;
    padding: 0 24px 60px;
    height: auto;
  }

  .about-left {
    border-right: none;
    padding: 76px 0 36px;
    min-height: 65vh;
    justify-content: flex-end;
    gap: 0;
  }

  .about-member-list {
    overflow: visible;
    flex: none;
  }

  .about-member-item {
    opacity: 1;
    cursor: default;
    padding-bottom: 36px;
  }

  .about-member-item:not(.is-active) .about-identity {
    opacity: 0.35;
  }

  .about-member-item:not(.is-active) .about-credits,
  .about-member-item:not(.is-active) .about-social { display: none; }

  .about-right { display: none; }

  /* Bio panel movido por JS al after del member-item activo */
  .about-member-item.is-active { padding-bottom: 4px; }

  .about-member-list > .about-bio-panel {
    position: static;
    display: none;
    opacity: 1;
    pointer-events: auto;
    padding: 24px 0 32px;
    border-top: var(--line-weight) solid var(--color-white-faint);
    margin-top: 0;
  }

  .about-member-list > .about-bio-panel.is-active {
    display: flex;
  }

  .about-manifesto-body {
    overflow: visible;
    position: static;
  }

  .about-lang-content {
    position: static;
    display: none;
    opacity: 1;
    pointer-events: auto;
  }

  .about-lang-content.is-active {
    display: block;
  }

  .about-manifesto-body p {
    font-size: clamp(13px, 3.6vw, 16px);
    line-height: 1.85;
    margin-bottom: 1.1em;
  }

  .about-scroll-hint { display: none; }

}
