/* ABOUT US */

.about-page {
  min-height: 100vh;
  min-width: 0;
  background-color: #fafafa;
  font-family: 'Lato', sans-serif;
  padding: 28px 40px 48px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

/* HEADER */

.about-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 36px;
  min-height: 40px;
  min-width: 0;
}

.about-back {
  position: absolute;
  left: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #7a1f2b;
  text-decoration: none;
  padding: 6px;
  border-radius: 8px;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.about-back:hover {
  background-color: rgba(122, 31, 43, 0.08);
  transform: translateX(-3px);
}

.about-back svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.about-title {
  font-family: 'Lato', sans-serif;
  font-weight: 900;
  font-size: 2rem;
  color: #7a1f2b;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 0;
  text-align: center;
  overflow-wrap: anywhere;
}

/* CREATORS GRID */

.creators-grid {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
  max-width: 1120px;
  width: 100%;
  min-width: 0;
  margin: 0 auto;
}

/* FLIP CARD */

.creator-card {
  width: 300px;
  min-width: 0;
  min-height: 480px;
  padding: 0;
  border: none;
  background: transparent;
  font-family: 'Lato', sans-serif;
  color: inherit;
  text-align: center;
  cursor: pointer;
  perspective: 1200px;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.25s ease;
}

.creator-card:hover {
  transform: translateY(-6px);
}

.creator-card:focus-visible {
  outline: 3px solid #e8b93f;
  outline-offset: 5px;
  border-radius: 18px;
}

.creator-card-inner {
  position: relative;
  width: 100%;
  min-height: 480px;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.2, 0.75, 0.25, 1);
}

.creator-card.is-flipped .creator-card-inner {
  transform: rotateY(180deg);
}

/* BOTH CARD FACES */

.creator-card-face {
  position: absolute;
  inset: 0;
  width: 100%;
  min-height: 480px;
  box-sizing: border-box;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  background-color: #9e2734;
  border: 3px solid #6b1520;
  border-radius: 18px;
  padding: 20px;

  box-shadow: 0 8px 20px rgba(107, 21, 32, 0.16);

  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.creator-card-front {
  transform: rotateY(0deg);
}

.creator-card-back {
  transform: rotateY(180deg);
  color: #ffffff;
  gap: 22px;
}

/* FRONT: PHOTO AND NAME */

.creator-photo-frame {
  width: 100%;
  aspect-ratio: 3 / 4;
  border: 3px solid #6b1520;
  border-radius: 14px;
  overflow: hidden;
  background-color: #e6e6e6;
  margin-bottom: 18px;
  min-width: 0;
}

.creator-photo-frame img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.creator-name {
  max-width: 100%;
  margin: 0;
  text-align: center;
  color: #ffffff;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.3;
  display: flex;
  flex-direction: column;
  overflow-wrap: anywhere;
}

.creator-card-hint {
  display: block;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* BACK: PROJECT ROLES */

.creator-role-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.65);
  border-radius: 50%;
  color: #ffffff;
  font-size: 1.3rem;
  font-weight: 900;
}

.creator-back-title {
  margin: 0;
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: center;
}

.creator-roles {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.creator-roles span {
  width: 100%;
  box-sizing: border-box;
  padding: 13px 10px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.10);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}

/* RESPONSIVE: TABLET */

@media (max-width: 768px) {
  .about-page {
    padding: 20px 20px 36px;
  }

  .about-header {
    margin-bottom: 28px;
  }

  .about-title {
    font-size: 1.6rem;
  }

  .creators-grid {
    flex: none;
    gap: 24px;
  }

  .creator-card {
    width: 100%;
    max-width: 320px;
    min-height: 450px;
  }

  .creator-card-inner,
  .creator-card-face {
    min-height: 450px;
  }
}

/* RESPONSIVE: MOBILE */

@media (max-width: 520px) {
  .about-page {
    padding: 16px 14px 28px;
  }

  .about-header {
    margin-bottom: 24px;
  }

  .about-back {
    left: -4px;
  }

  .about-back svg {
    width: 24px;
    height: 24px;
  }

  .about-title {
    font-size: 1.35rem;
  }

  .creators-grid {
    gap: 20px;
  }

  .creator-card-face {
    padding: 16px;
  }

  .creator-photo-frame {
    margin-bottom: 14px;
  }

  .creator-name {
    font-size: 1.2rem;
  }

  .creator-card-back {
    gap: 18px;
  }

  .creator-roles span {
    font-size: 0.95rem;
  }
}

/* VERY NARROW SCREENS */

@media (max-width: 360px) {
  .about-page {
    padding: 14px 10px 24px;
  }

  .about-header {
    margin-bottom: 20px;
  }

  .about-title {
    font-size: 1.15rem;
  }

  .creators-grid {
    gap: 16px;
  }

  .creator-card-face {
    padding: 12px;
    border-radius: 14px;
  }

  .creator-name {
    font-size: 1.05rem;
  }

  .creator-back-title {
    font-size: 1.15rem;
  }

  .creator-roles span {
    font-size: 0.88rem;
    padding: 11px 8px;
  }
}

/* ACCESSIBILITY: REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
  .creator-card,
  .creator-card-inner,
  .about-back {
    transition: none;
  }
}
