/* ============================================================
   SECTION 2 — О КОМПАНИИ
   Концепция: архитектурный чертёж оживает
============================================================ */

/* ── Переход сверху — скошенный край ── */
.about-section {
    position: relative;
    /* НЕТ clip-path — он создаёт stacking context и ломает z-index снаружи.
       Фон + скос делаем через ::before. Стеклянный блок сможет лечь поверх. */
    background: transparent;
    min-height: 100vh;
    overflow: visible;
    display: grid;
    grid-template-columns: 1fr 36% 1fr;
    z-index: 1;
    margin-top: -4vw;
    padding-top: calc(8vw + 3rem);
}

/* Фон со скосом — отдельный слой, не влияет на stacking context секции */
.about-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(165deg, #8fa2c0 0%, #6b7d99 40%, #546580 100%);
    clip-path: polygon(0 4vw, 100% 0, 100% 100%, 0 100%);
    z-index: 0;
    pointer-events: none;
}

/* ── Фоновые декоративные линии — как технический чертёж ── */
.about-section__blueprint {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;  /* выше ::before который z-index:0 */
    overflow: hidden;
    /* Сетка прямо на элементе, без ::before чтобы не конфликтовать */
    background-image: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 79px,
        rgba(255,255,255,0.04) 79px,
        rgba(255,255,255,0.04) 80px
    );
    opacity: 0;
    transition: opacity 1.2s ease 0.2s;
}
.about-section.in-view .about-section__blueprint {
    opacity: 1;
}

/* ── Вертикальные линии колонок ── */
.about-section__col-lines {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 1fr 36% 1fr;
    pointer-events: none;
    z-index: 1;
}
.about-section__col-line {
    border-right: 1px solid rgba(255,255,255,0.15);
    transform-origin: top;
    transform: scaleY(0);
    transition: transform 1.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.about-section.in-view .about-section__col-line:nth-child(1) {
    transform: scaleY(1);
    transition-delay: 0.1s;
}
.about-section.in-view .about-section__col-line:nth-child(2) {
    transform: scaleY(1);
    transition-delay: 0.25s;
}
.about-section.in-view .about-section__col-line:nth-child(3) {
    transform: scaleY(1);
    transition-delay: 0.4s;
}

/* Номера колонок */
.about-section__col-nums {
    position: absolute;
    top: 6vw;
    left: 0;
    right: 0;
    display: grid;
    grid-template-columns: 1fr 36% 1fr;
    pointer-events: none;
    z-index: 3;
    padding: 1rem 0;
}
.about-section__col-num {
    font-family: 'Avenir Next World', sans-serif;
    font-size: 0.6rem;
    letter-spacing: 0.25em;
    color: rgba(255,255,255,0.35);
    text-align: center;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.about-section.in-view .about-section__col-num:nth-child(1) { opacity:1; transform:none; transition-delay: 0.8s; }
.about-section.in-view .about-section__col-num:nth-child(2) { opacity:1; transform:none; transition-delay: 0.95s; }
.about-section.in-view .about-section__col-num:nth-child(3) { opacity:1; transform:none; transition-delay: 1.1s; }

/* ══════════════════════════════════════
   КОЛОНКА 1 — ЗДАНИЕ + КРУГИ
══════════════════════════════════════ */
.about-section__building-col {
    grid-column: 1;
    position: relative;
    overflow: visible;
    min-height: 80vh;
}

/* SVG круги */
.about-section__circles-svg {
    position: absolute;
    left: -12%;
    top: 8%;
    width: 75%;
    height: 75%;
    pointer-events: none;
    z-index: 2;
    overflow: visible;
}
.about-circles-ring {
    fill: none;
    stroke: rgba(255,255,255,0.14);
    stroke-width: 1;
    transform-origin: 180px 260px;
    transform: scale(0);
    transition: transform 1.2s cubic-bezier(0.34, 1.1, 0.64, 1);
}
.about-section.in-view .about-circles-ring:nth-child(1) { transform:scale(1); transition-delay: 0.5s; }
.about-section.in-view .about-circles-ring:nth-child(2) { transform:scale(1); transition-delay: 0.7s; }
.about-section.in-view .about-circles-ring:nth-child(3) { transform:scale(1); transition-delay: 0.9s; }
.about-section.in-view .about-circles-ring:nth-child(4) { transform:scale(1); transition-delay: 1.1s; }

/* Декоративные точки на кольцах */
.about-circles-dot {
    fill: rgba(255,255,255,0.5);
    transform-origin: 180px 260px;
    transform: scale(0);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.about-section.in-view .about-circles-dot:nth-child(5)  { transform:scale(1); transition-delay: 1.3s; }
.about-section.in-view .about-circles-dot:nth-child(6)  { transform:scale(1); transition-delay: 1.45s; }
.about-section.in-view .about-circles-dot:nth-child(7)  { transform:scale(1); transition-delay: 1.6s; }

/* Здание */
.about-section__building {
    position: absolute;
    bottom: 0;
    left: -8%;
    width: 115%;
    height: 90%;
    object-fit: contain;
    object-position: left bottom;
    z-index: 3;
    /* Начальное состояние */
    opacity: 0;
    transform: translateY(50px) scale(1.05);
    filter: blur(4px);
    /* transition добавляется только при in-view */
}
.about-section.in-view .about-section__building {
    opacity: 1;
    transform: translateY(var(--parallax-y, 0px)) scale(1);
    filter: blur(0);
    transition:
        opacity   1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.6s,
        transform 1.6s cubic-bezier(0.16, 1, 0.3, 1) 0.6s,
        filter    1.0s ease 0.6s;
}

/* Световой блик на здании */
.about-section__building-glow {
    position: absolute;
    bottom: 0;
    left: -8%;
    width: 115%;
    height: 90%;
    z-index: 4;
    background: linear-gradient(
        135deg,
        rgba(255,255,255,0.08) 0%,
        transparent 50%
    );
    opacity: 0;
    transform: translateX(-100%);
    pointer-events: none;
}
.about-section.in-view .about-section__building-glow {
    opacity: 1;
    transform: translateX(0);
    transition:
        opacity   0.8s ease 2.0s,
        transform 1.4s cubic-bezier(0.16, 1, 0.3, 1) 2.0s;
}

/* ══════════════════════════════════════
   КОЛОНКА 2 — ТЕКСТ
══════════════════════════════════════ */
.about-section__text-col {
    contain: layout style;
    grid-column: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 6rem 3rem 5rem;
    position: relative;
    z-index: 2;
}

/* Горизонтальная линия — акцент над заголовком */
.about-section__text-accent {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 2.5rem;
    overflow: hidden;
}
.about-section__text-accent-line {
    height: 1px;
    background: rgba(255,255,255,0.5);
    flex: 1;
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1) 1.0s;
}
.about-section.in-view .about-section__text-accent-line {
    transform: scaleX(1);
}
.about-section__text-accent-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255,255,255,0.7);
    flex-shrink: 0;
    transform: scale(0);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 1.8s;
}
.about-section.in-view .about-section__text-accent-dot {
    transform: scale(1);
}

/* Строки текста — каждая в своём overflow:hidden контейнере */
.about-line {
    display: block;
    overflow: hidden;
    line-height: 1.2;
}
.about-line__inner {
    display: block;
    transform: translateY(110%);
    opacity: 0;
    /* transition добавляется только в in-view */
}
.about-section.in-view .about-line__inner {
    transform: translateY(0);
    opacity: 1;
    transition:
        transform 0.9s cubic-bezier(0.16, 1, 0.3, 1) calc(1.1s + var(--line-i, 0) * 0.12s),
        opacity   0.6s ease calc(1.1s + var(--line-i, 0) * 0.12s);
}

.about-section__heading {
    font-family: 'Avenir Next World', sans-serif;
    font-size: clamp(1rem, 1.8vw, 1.4rem);
    font-weight: 400;
    color: rgba(255,255,255,0.95);
    line-height: 1.65;
    margin: 0 0 2.5rem;
}

/* Разделитель между заголовком и телом */
.about-section__divider {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 2rem;
    overflow: hidden;
}
.about-section__divider-line {
    height: 1px;
    width: 2.5rem;
    background: rgba(255,255,255,0.3);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.8s cubic-bezier(0.16,1,0.3,1) 1.9s;
}
.about-section.in-view .about-section__divider-line {
    transform: scaleX(1);
}
.about-section__divider-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    transform: scale(0);
    transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1) 2.5s;
}
.about-section.in-view .about-section__divider-dot {
    transform: scale(1);
}

.about-section__body {
    font-family: 'Avenir Next World', sans-serif;
    font-size: clamp(0.85rem, 1.1vw, 1rem);
    color: rgba(255,255,255,0.65);
    line-height: 1.85;
    margin: 0;
}

/* ══════════════════════════════════════
   КОЛОНКА 3 — ФОТО + СТРЕЛКИ + ПОЛОСЫ
══════════════════════════════════════ */
.about-section__photo-col {
    grid-column: 3;
    position: relative;
    overflow: hidden;
}

/* Верхнее фото */
.about-section__photo-wrap {
    position: absolute;
    top: 8%;
    left: 0;
    right: 0;
    height: 52%;
    overflow: hidden;
}
/* Маска — шторка открывается снизу вверх */
/* Без цветного overlay — только clip-path и transform на самой картинке */
.about-section__photo-wrap::after {
    display: none;
}
.about-section__photo {
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.15) translateY(20px);
    opacity: 0;
    filter: blur(6px);
    will-change: transform, opacity, filter;
}
.about-section.in-view .about-section__photo {
    transform: scale(1) translateY(0);
    opacity: 1;
    filter: blur(0);
    transition:
        transform 1.6s cubic-bezier(0.16, 1, 0.3, 1) 0.7s,
        opacity   1.2s ease                           0.7s,
        filter    1.0s ease                           0.7s;
}

/* Нижнее фото */
.about-section__photo-wrap--bottom {
    top: auto;
    bottom: 0;
    height: 43%;
}
.about-section__photo-wrap--bottom .about-section__photo {
    transition-delay: 1.1s !important;
}

/* Полосы — на правом крае, выезжают справа */
.about-section__stripes {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 22%;
    pointer-events: none;
    z-index: 5;
    overflow: hidden;
}
.about-section__stripe {
    position: absolute;
    right: 0;
    height: 1.5px;
    width: 100%;
    background: linear-gradient(
        to left,
        rgba(255,255,255,0.3) 0%,
        rgba(255,255,255,0.05) 100%
    );
    transform-origin: right center;
    transform: scaleX(0);
}
/* Stagger с разными задержками — красивая волна */
.about-section.in-view .about-section__stripe:nth-child(1)  { transform:scaleX(1); transition: transform 0.9s cubic-bezier(0.16,1,0.3,1) 0.40s; top: 8%;  }
.about-section.in-view .about-section__stripe:nth-child(2)  { transform:scaleX(1); transition: transform 0.9s cubic-bezier(0.16,1,0.3,1) 0.50s; top: 14%; }
.about-section.in-view .about-section__stripe:nth-child(3)  { transform:scaleX(1); transition: transform 0.9s cubic-bezier(0.16,1,0.3,1) 0.60s; top: 20%; }
.about-section.in-view .about-section__stripe:nth-child(4)  { transform:scaleX(1); transition: transform 0.9s cubic-bezier(0.16,1,0.3,1) 0.70s; top: 26%; }
.about-section.in-view .about-section__stripe:nth-child(5)  { transform:scaleX(1); transition: transform 0.9s cubic-bezier(0.16,1,0.3,1) 0.80s; top: 32%; }
.about-section.in-view .about-section__stripe:nth-child(6)  { transform:scaleX(1); transition: transform 0.9s cubic-bezier(0.16,1,0.3,1) 0.90s; top: 38%; }
.about-section.in-view .about-section__stripe:nth-child(7)  { transform:scaleX(1); transition: transform 0.9s cubic-bezier(0.16,1,0.3,1) 1.00s; top: 44%; }
.about-section.in-view .about-section__stripe:nth-child(8)  { transform:scaleX(1); transition: transform 0.9s cubic-bezier(0.16,1,0.3,1) 1.10s; top: 50%; }
.about-section.in-view .about-section__stripe:nth-child(9)  { transform:scaleX(1); transition: transform 0.9s cubic-bezier(0.16,1,0.3,1) 1.20s; top: 56%; }
.about-section.in-view .about-section__stripe:nth-child(10) { transform:scaleX(1); transition: transform 0.9s cubic-bezier(0.16,1,0.3,1) 1.30s; top: 62%; }
.about-section.in-view .about-section__stripe:nth-child(11) { transform:scaleX(1); transition: transform 0.9s cubic-bezier(0.16,1,0.3,1) 1.40s; top: 68%; }
.about-section.in-view .about-section__stripe:nth-child(12) { transform:scaleX(1); transition: transform 0.9s cubic-bezier(0.16,1,0.3,1) 1.50s; top: 74%; }
.about-section.in-view .about-section__stripe:nth-child(13) { transform:scaleX(1); transition: transform 0.9s cubic-bezier(0.16,1,0.3,1) 1.60s; top: 80%; }
.about-section.in-view .about-section__stripe:nth-child(14) { transform:scaleX(1); transition: transform 0.9s cubic-bezier(0.16,1,0.3,1) 1.70s; top: 86%; }

/* Стрелки поверх полос */
.about-section__arrows {
    position: absolute;
    right: 0.3rem;
    bottom: 18%;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    z-index: 6;
}
.about-section__arrow {
    font-size: 2.2rem;
    color: rgba(255,255,255,0.22);
    line-height: 1;
    opacity: 0;
    transform: translateX(30px);
}
.about-section.in-view .about-section__arrow:nth-child(1) { opacity:1; transform:none; transition: all 0.5s cubic-bezier(0.16,1,0.3,1) 1.8s; }
.about-section.in-view .about-section__arrow:nth-child(2) { opacity:1; transform:none; transition: all 0.5s cubic-bezier(0.16,1,0.3,1) 1.9s; }
.about-section.in-view .about-section__arrow:nth-child(3) { opacity:1; transform:none; transition: all 0.5s cubic-bezier(0.16,1,0.3,1) 2.0s; }
.about-section.in-view .about-section__arrow:nth-child(4) { opacity:1; transform:none; transition: all 0.5s cubic-bezier(0.16,1,0.3,1) 2.1s; }
.about-section.in-view .about-section__arrow:nth-child(5) { opacity:1; transform:none; transition: all 0.5s cubic-bezier(0.16,1,0.3,1) 2.2s; }
.about-section.in-view .about-section__arrow:nth-child(6) { opacity:1; transform:none; transition: all 0.5s cubic-bezier(0.16,1,0.3,1) 2.3s; }
.about-section.in-view .about-section__arrow:nth-child(7) { opacity:1; transform:none; transition: all 0.5s cubic-bezier(0.16,1,0.3,1) 2.4s; }

/* Стрелка скролла */
.about-section__scroll-cue {
    position: absolute;
    bottom: 3rem;
    right: 3rem;
    z-index: 7;
    opacity: 0;
    transform: translateY(-10px);
}
.about-section.in-view .about-section__scroll-cue {
    opacity: 0.55;
    transform: none;
    transition: opacity 0.6s ease 2.8s, transform 0.6s cubic-bezier(0.34,1.56,0.64,1) 2.8s;
    animation: arrowBounce 2s ease-in-out 3.5s infinite;
}

/* ── Адаптив ── */
@media (max-width: 64rem) {
    .about-section {
        grid-template-columns: 1fr;
        clip-path: polygon(0 3vw, 100% 0, 100% 100%, 0 100%);
        margin-top: -3vw;
        padding-top: 6vw;
    }
    .about-section__building-col { height: 55vw; }
    .about-section__text-col     { padding: 3rem 2rem; }
    .about-section__photo-col    { height: 70vw; }
    .about-section__col-lines    { display: none; }
}