/* ===== v3 CONTENT (about + founder) ===== */

.about {
  padding-top: clamp(68px, 10vh, 111px);
  padding-bottom: clamp(68px, 10vh, 111px);
}
/* Тёплая подложка во всю ширину viewport — еле уловимо отличается от
   основного фона paper, чтобы блок «о клубе» визуально немного выделялся,
   но без перепада яркости и без радиальных пятен.
   `display: block !important` нужен, чтобы перебить общий `display: none`
   для `.about::before` из shared.css. */
.about::before {
  content: '' !important;
  display: block !important;
  position: absolute;
  top: 0; bottom: 0;
  left: 50%; transform: translateX(-50%);
  width: 100vw;
  z-index: -1;
  background: #fbe9d6;
  pointer-events: none;
}
/* Единый 2-колоночный grid: heading + copy слева, image справа на всю высоту.
   Image visually balanced со всем текстовым блоком. */
.about {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  column-gap: clamp(34px, 5vw, 68px);
  row-gap: 24px;
  align-items: start;
}
.about__head {
  grid-column: 1; grid-row: 1;
  max-width: 459px;
}
.about__head .eyebrow-2 { margin-bottom: 15px; }
.about__title { font-size: clamp(31px, 4.6vw, 51px); }

.about__copy {
  grid-column: 1; grid-row: 2;
  display: flex; flex-direction: column; gap: 15px;
  font-size: clamp(13px, 1.05vw, 14px);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 442px;
}
.about__copy p:first-child {
  color: var(--ink);
  font-weight: 500;
  font-size: clamp(14px, 1.2vw, 17px);
}

.about__media {
  grid-column: 2;
  grid-row: 1 / span 2;     /* image занимает обе строки → выровнено по высоте с heading+copy */
  position: relative;
  align-self: stretch;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 357px;
  box-shadow: 0 26px 51px -26px rgba(28,34,54,0.30);
  transform: rotate(-1.2deg);
}
.about__media img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; }
  /* Сбрасываем grid-column для head/copy — на десктопе они в col 2,
     а на мобиле column-grid единственный — должны быть в col 1. */
  .about__head,
  .about__copy,
  .about__media { grid-column: 1; }
  .about__media { grid-row: auto; min-height: 272px; }
}

/* -------- Founder — asymmetric layout: text left + photo collage right -------- */
.founder {
  padding-top: clamp(68px, 10vh, 119px);
  display: grid;
  grid-template-columns: 0.95fr 1.1fr;
  gap: clamp(34px, 5vw, 68px);
  align-items: center;
}
/* founder — purple слева сверху + orange справа снизу, full viewport */
.founder::before {
  content: '';
  position: absolute;
  top: -8%; bottom: 50%;
  left: 50%; transform: translateX(-50%);
  width: 100vw;
  z-index: -1;
  background: radial-gradient(540px 420px at 12% 40%, rgba(155, 95, 223, 0.24), transparent 65%);
  pointer-events: none;
}
.founder__left { max-width: 442px; }
.founder__left .eyebrow-2 { margin-bottom: 15px; }
.founder__title { font-size: clamp(31px, 4.6vw, 51px); margin-bottom: 19px; }

.founder__intro {
  margin-bottom: 19px;
  display: flex; flex-direction: column; gap: 10px;
}
.founder__name {
  font-size: clamp(15px, 1.3vw, 19px);
  line-height: 1.35;
  color: var(--ink);
}
.founder__name b { font-weight: 700; }
.founder__name span { color: var(--ink-soft); font-weight: 500; font-size: 12px; }
.founder__roles {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.55;
}
.founder__roles em {
  font-style: normal;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

.founder__tags {
  display: flex; flex-wrap: wrap; gap: 7px;
  margin-bottom: 24px;
}

.founder__quote {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(15px, 1.5vw, 19px);
  color: var(--ink);
  line-height: 1.5;
  padding-left: 15px;
  border-left: 3px solid;
  border-image: var(--grad) 1;
}
.founder__quote em {
  font-style: italic;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---- Coverflow gallery (right column) ---- */
.founder__gallery {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-width: 0;
}
/* asymmetric clipping: clip only the LEFT edge to protect the text column;
   allow overflow on the right (no text there) so the rest of the deck is visible,
   and on top/bottom so the active card's drop shadow isn't cut */
.g-frame {
  position: relative;
  width: 100%;
  clip-path: inset(-200px -100vw -200px 0);
}
.g-stage {
  position: relative;
  width: 100%;
  height: clamp(411px, 62vh, 544px);
  perspective: 1500px;
  /* NOT preserve-3d on purpose: with preserve-3d, z-index is ignored and
     siblings' rotated edges can poke through the active card's white frame.
     Flat composing keeps rotateY perspective (from parent) while letting
     z-index govern stacking. */
  touch-action: pan-y;
  cursor: grab;
}
.g-stage:active { cursor: grabbing; }

.g-card {
  position: absolute;
  top: 50%; left: 50%;
  width: clamp(204px, 24vw, 272px);
  aspect-ratio: 4 / 6;
  border: 0;
  padding: 4px;
  margin: 0;
  background: #fff;
  border-radius: 26px;
  overflow: hidden;
  cursor: pointer;
  will-change: transform, opacity, filter;
  transition:
    transform 600ms cubic-bezier(.22,.61,.36,1),
    opacity   500ms ease,
    filter    500ms ease,
    background 400ms ease,
    box-shadow 500ms ease;
  box-shadow:
    0 20px 51px -24px rgba(28,34,54,0.35),
    0 3px 12px -5px rgba(28,34,54,0.10);
}
.g-card img {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 22px;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
.g-card.is-active {
  background: #fff;
  box-shadow:
    0 41px 77px -26px rgba(28, 34, 54, 0.45),
    0 14px 31px -14px rgba(28, 34, 54, 0.18);
}

.g-label {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(7px);
  padding: 8px 19px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  box-shadow: 0 5px 15px -7px rgba(28,34,54,0.20);
  transition: background 300ms ease, color 300ms ease;
}
.g-card.is-active .g-label {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 12px 24px -9px rgba(28, 34, 54, 0.28);
}

/* ---- Controls ---- */
.g-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.g-dots {
  display: flex;
  gap: 7px;
  align-items: center;
}
.g-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(28,34,54,0.18);
  cursor: pointer;
  transition: width 350ms cubic-bezier(.22,.61,.36,1), background 350ms ease;
}
.g-dot.is-active {
  width: 31px;
  background: var(--grad);
}
@media (max-width: 1000px) {
  .founder { grid-template-columns: 1fr; }
  .g-stage { height: clamp(323px, 60vw, 442px); }
}
