/* =========================================================================
   О студии — about.css   (1em = 16px макета; десктоп 314:686, мобайл 318:2)
   ========================================================================= */

:root { --dot: #c9a24a; --ink-60: rgba(15, 15, 16, .6); }

/* текст «капсом» из макета (Text/Caps 16) */
.about-caps { font: 400 1em/1.4 var(--sans); letter-spacing: -.02em; text-transform: uppercase; }

/* ---------- первый экран ---------- */
.ahero { position: relative; height: 55.4375em; }                  /* 887 */
.ahero__media { position: absolute; inset: 0 0 auto; height: 49.5625em; overflow: hidden; } /* 793 */
.ahero__plx { position: absolute; inset: 0; will-change: transform; }   /* без запаса: кадр как в макете, край при параллаксе уходит выше экрана */
.ahero__img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.ahero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .8) 11.6%, rgba(0, 0, 0, 0) 27.36%),
    linear-gradient(0deg, #0f0f10 0%, rgba(15, 15, 16, 0) 25%),
    rgba(15, 15, 16, .5);
}
.ahero__content {
  position: absolute; z-index: 3; left: var(--pad); top: 30.1875em; /* 483 */
  width: 39.5625em;                                                /* 633 */
  display: flex; flex-direction: column; align-items: flex-start;
  gap: .625em;                                                     /* 10 */
}
.ahero__title { white-space: nowrap; }
.ahero__btn {
  width: 14.9375em; height: 2.5em; gap: .4375em; margin-top: .625em; /* 239 × 40, gap 7, до кнопки 20 */
  border-color: var(--light);
}
.ahero__btn .btn__arrow { width: 1.03125em; }                     /* 16.5 */

/* интро после загрузки: картинка проявляется, заголовок по буквам, дальше подпись и кнопка */
.js .ahero__img { transform: scale(1.12); opacity: 0; }
.is-loaded .ahero__img {
  transform: none; opacity: 1;
  transition: transform 2.6s var(--ease-out), opacity 1.4s var(--ease-soft);
}
.js .ahero__sub, .js .ahero__btn {
  opacity: 0; transform: translate3d(0, 1.5em, 0);
}
.js .ahero__sub.is-in, .js .ahero__btn.is-in {
  opacity: 1; transform: none;
  transition: opacity 1.1s var(--ease-soft) var(--d, 0s), transform var(--t-reveal) var(--ease-out) var(--d, 0s);
}
/* после интро кнопке возвращаем собственные ховер-переходы */
.js .ahero__btn.is-in { transition: opacity 1.1s var(--ease-soft) var(--d, 0s), transform var(--t-reveal) var(--ease-out) var(--d, 0s), color var(--t-ui) var(--ease-ui), border-color var(--t-ui) var(--ease-ui), background-color var(--t-ui) var(--ease-ui); }

/* =========================================================================
   ВОЛНА + светлая часть (философия, основатель, CTA)
   Механика — общий компонент .wave / data-wave из main.js; кривая — из макета.
   ========================================================================= */
.philo { position: relative; z-index: 2; display: flow-root; margin-top: 4.5em; color: var(--ink); } /* верх кривой y=959; flow-root — чтобы отступ CTA не «выпадал» из светлого поля */
.philo::before {                                                  /* светлое поле под кривой */
  content: ""; position: absolute; left: 0; right: 0; top: 6.15em; bottom: 0; background: var(--light);
}
.philo .wave__svg--desk { height: 6.25em; }                       /* 100 из 1441 */
.philo__label { position: absolute; z-index: 1; left: var(--pad); top: 1.25em; color: var(--text); } /* y=979 */
.philo__bottom { display: none; }

.philo__body {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 42.5625em;             /* текст 681 с x=720 */
  padding: 0 2.4375em 0 var(--pad);
}
.philo__brand { --m: 7.4277em; margin-top: 7.75em; }               /* знак 118.8, y=1083 */
.philo__text { margin-top: 3.1875em; display: flex; flex-direction: column; gap: 1.875em; } /* y=1010, gap 30 */
.philo__p { width: 35.9375em; }                                    /* 575 */

/* ---------- основатель ---------- */
.founder {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  margin: 8.2083em var(--pad) 0;                                   /* y=1350 */
}
.founder__info { width: 40.4375em; display: flex; flex-direction: column; align-items: flex-start; gap: 1.25em; } /* 647, gap 20 */
.founder__head { display: flex; flex-direction: column; align-items: flex-start; gap: 1.25em; }
.founder__quote { margin: 0; width: 35.9375em; }                   /* 575 */
.founder__list { display: flex; flex-direction: column; gap: .75em; } /* 12 */
.founder__list li { display: flex; align-items: center; gap: .5625em; color: rgba(15, 15, 16, .8); } /* 9, текст 80% */
.founder__list li::before { content: ""; flex: none; width: .375em; height: .375em; border-radius: 50%; background: var(--dot); }
.founder__media {
  position: relative; flex: none; overflow: hidden;
  width: 42.625em; height: 24.4521em;                              /* 682 × 391.2 */
  background: #b7b1aa;                                             /* подложка из макета */
}
.founder__img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }

/* список пунктов: мягкий каскад */
.js .founder__list li {
  opacity: 0; transform: translate3d(0, .75em, 0);
  transition: opacity 1s var(--ease-soft) calc(var(--d, 0s) + .4s), transform 1.2s var(--ease-out) calc(var(--d, 0s) + .4s);
}
.js .founder__list.is-in li { opacity: 1; transform: none; }

/* фото: шторка снизу вверх + лёгкий scale 1.06 → 1 */
/* шторка — отдельным слоем поверх: сам блок не обрезаем, иначе IntersectionObserver его не видит */
.founder__media::after { content: ""; position: absolute; inset: 0; background: var(--light); transform-origin: 50% 0; pointer-events: none; }
.no-js .founder__media::after, html:not(.js) .founder__media::after { display: none; }
.js .founder__media::after { transition: transform 1.4s var(--ease-out); }
.js .founder__media.is-in::after { transform: scaleY(0); }
.js .founder__img { transform: scale(1.06); transition: transform 1.6s var(--ease-out); }
.js .founder__media.is-in .founder__img { transform: none; }

/* ---------- CTA на светлом ---------- */
.philo .cta { position: relative; z-index: 1; margin-top: 8.75em; margin-bottom: 8.3125em; } /* 140 / 133 */
.philo .cta__lead { color: var(--ink-60); }
.philo .cta__btn { color: var(--ink); border-color: var(--ink-60); }
.philo .cta .gold-in, .philo .cta .gold { background: none; color: inherit; -webkit-text-fill-color: currentColor; } /* в макете страницы «ваш» без золота */
@media (hover: hover) {
  .philo .cta__btn:hover { background-color: var(--ink); color: var(--light); border-color: var(--ink); }
}

/* =========================================================================
   МОБАЙЛ
   ========================================================================= */
@media (max-width: 767.98px) {
  .ahero { height: 33.75em; }                                      /* 540 */
  .ahero__media { height: 100%; }
  .ahero__img { object-position: 3% 50%; }
  .ahero__shade {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, .8) 11.6%, rgba(0, 0, 0, 0) 27.36%),
      linear-gradient(0deg, #0f0f10 .3%, rgba(15, 15, 16, 0) 10.4%),
      rgba(15, 15, 16, .5);
  }
  .ahero__content { left: var(--pad); top: 27.25em; width: auto; gap: .375em; } /* y=436, gap 6 */
  .ahero__title { margin-bottom: .15em; }                          /* +9 при 60px → 15 до подписи */
  .ahero__sub { width: 11.6667em; font: 400 1.125em/1.4 var(--sans); letter-spacing: -.02em; } /* 210 при 18px */
  .ahero__btn { width: 13.75em; margin-top: 0; }                   /* 220 */

  .philo { margin-top: -3.4375em; margin-bottom: .8125em; }        /* верх кривой y=485; до футера 13 */
  .philo::before { top: 10.55em; }
  .philo .wave__svg--mob { height: 10.625em; }                     /* 170 из 375 */
  .philo__label { display: none; }
  .philo__bottom { display: block; }

  .philo__body { grid-template-columns: 1fr; padding: 12.1875em var(--pad) 0; } /* знак y=680 */
  .philo__brand { --m: 4.4668em; margin-top: 0; }
  .philo__text { margin-top: 2em; gap: 1.5em; }                    /* 32, 24 */
  .philo__title, .founder__name { font-size: 1.5em; }              /* в мобильном макете здесь Mobile/H3 — 24 */
  .philo__p { width: auto; }

  .founder { flex-direction: column; align-items: stretch; gap: 1.5em; margin-top: 3.338em; } /* y=1069 */
  .founder__media { order: -1; width: 100%; height: auto; aspect-ratio: 344 / 197.34; }
  .founder__info { width: auto; }
  .founder__head { gap: .75em; }
  .founder__quote { width: auto; }

  .philo .cta { margin-top: 6.3125em; margin-bottom: 5.5413em; }   /* 101 / 89 */
}

@media (prefers-reduced-motion: reduce) {
  .js .ahero__img { transform: none; }
  .is-loaded .ahero__img { transition: opacity .6s linear; }
  .js .ahero__sub, .js .ahero__btn { transform: none; }
  .js .founder__list li { transform: none; }
  .js .founder__media::after { transition: opacity .6s linear; transform: none; }
  .js .founder__media.is-in::after { opacity: 0; }
  .js .founder__img { transform: none; }
}

.philo .cta__btn:focus-visible { background-color: var(--ink); color: var(--light); border-color: var(--ink); outline-color: var(--ink); }
