/* =========================
   ABOUT
========================= */

.about-section {
  padding: 100px 32px 0;
  background: #F6F7F1;
}

.about-section > *:not(.about-footer),
.about-heading {
  width: min(1180px, calc(100% - 64px));
  margin-left: auto;
  margin-right: auto;
}

.about-heading {
  margin-bottom: 32px;
}

/* =========================
   FOLDER STACK
========================= */

.about-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 36px;
  margin-bottom: 56px;
}

.about-folder {
  position: sticky;
  top: 24px;
  min-height: 360px;
  padding: 34px 48px 42px;
  background: #fffdf8;
  border: 1px solid rgba(0,0,0,0.14);
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -8px 28px rgba(0,0,0,0.035);
}

.about-folder + .about-folder {
  margin-top: -18px;
}

.about-folder:last-child {
  border-radius: 24px;
  margin-bottom: 0;
}

.folder-tab {
  margin-bottom: 22px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0,0,0,0.14);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 900;
}

.about-section .about-folder h3 {
  font-size: clamp(2.1rem, 3.4vw, 3.35rem);
  line-height: 0.95;
  margin: 0 0 20px;
  letter-spacing: -0.05em;
}

.about-folder p {
  max-width: 100%;
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.58;
  color: var(--grey-mid);
}

.about-content {
  max-width: 100%;
}

/* links / tags */
.about-section .about-folder a,
.tool-tags span {
  display: inline-block;
  margin: 0 7px 9px 0;
  padding: 5px 9px;
  border: 1px solid rgba(0,0,0,0.16);
  border-radius: 999px;
  color: var(--grey-strong);
  text-decoration: none;
  font-size: 0.86rem;
  line-height: 1.3;
}

.about-section .about-folder a:hover {
  color: var(--accent);
  border-color: rgba(242,86,35,0.45);
}

/* =========================
   TEAM
========================= */

.team-section {
  margin-top: 48px;
}

.team-title {
  margin: 0 0 28px;
  font-size: 30px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 28px;
}

.team-card {
  position: relative;
  min-height: 210px;
  height: 210px;
  border: 1px solid rgba(0,0,0,0.16);
  border-radius: 18px;
  background: rgba(255,255,255,0.55);
  overflow: hidden;
}

.card-front {
  position: relative;
  z-index: 2;
  padding: 26px;
}

.card-front p {
  margin: 0 0 10px;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.18;
  color: #111;
  overflow-wrap: anywhere;
}

.card-front span {
  display: block;
  max-width: 100%;
  color: #666;
  font-size: 0.78rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.card-back {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.card-back img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card:hover .card-back {
  opacity: 1;
}

/* =========================
   FOOTER
========================= */

.about-footer {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-top: 64px;
  padding: 18px 0;
  background: #0b0b0b;
  color: rgba(255,255,255,0.62);
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {
  .about-section {
    padding: 88px 20px 0;
  }

  .about-section > *:not(.about-footer),
  .about-heading {
    width: min(100%, calc(100% - 24px));
  }

  .about-folder {
    position: relative;
    top: auto;
    min-height: auto;
    padding: 30px 24px;
    border-radius: 22px;
  }

  .about-folder + .about-folder {
    margin-top: 18px;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .team-card {
    height: 190px;
    min-height: 190px;
  }
}

.team-card {
  perspective: 1000px;
  height: 180px;
}

.team-card > div {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  transition: transform 0.5s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-front {
  transform: rotateY(0deg);
  z-index: 2;
}

.card-back {
  transform: rotateY(180deg);
  background: #111;
  color: #fff;
}

.team-card:hover .card-front {
  transform: rotateY(180deg);
}

.team-card:hover .card-back {
  transform: rotateY(360deg);
}

/* content styling */

.card-front p {
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0;
}

.card-back-content {
  text-align: center;
  padding: 20px;
}

.card-back-content span {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 8px;
}

.card-back-content p {
  font-size: 0.9rem;
  margin: 0;
  word-break: break-word;
}

/* Kongtup (card 2) – smaller email */
.team-card:nth-child(2) .card-back-content p {
  font-size: 0.85rem;
  line-height: 1.4;
}