/* ============================================================
   THE ★ BOYS — страницы персонажей (3 уровня)
   Подключается ПОСЛЕ style.css (токены, нав, меню, футер — оттуда)
   ============================================================ */

/* ---------- Каркас уровней ---------- */
.lvl { display: none; }
.lvl.is-active { display: block; }

/* появление уровня и каскад его содержимого */
.lvl.is-active .fx {
  opacity: 0;
  transform: translateY(26px);
  animation: fx-in .8s cubic-bezier(.16, 1, .3, 1) forwards;
  animation-delay: calc(.09s * var(--fx, 0));
}
@keyframes fx-in {
  to { opacity: 1; transform: translateY(0); }
}

/* Переключатель уровней (фиксированный) */
.steps {
  position: fixed;
  left: clamp(16px, 3vw, 40px);
  bottom: clamp(16px, 3vh, 32px);
  z-index: 80;
  display: flex;
  gap: 14px;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .18em;
}
.steps a {
  color: var(--ink-dim);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color .25s, border-color .25s;
}
.steps a:hover { color: var(--ink); }
.steps a.is-current {
  color: var(--red);
  border-color: var(--red);
}

/* ============ УРОВЕНЬ 1 — ГЛАВНОЕ ФОТО + ИМЯ ============ */
.lvl1 {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
}
.lvl1__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.lvl1__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.8) brightness(.75);
}
.lvl1__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11,14,13,.62) 0%, rgba(11,14,13,.30) 45%, rgba(11,14,13,.94) 100%),
    radial-gradient(ellipse at 50% 40%, transparent 25%, rgba(11,14,13,.55) 100%);
}
.lvl1__inner {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 20px 90px;
}
.lvl1__kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-head);
  font-size: clamp(11px, 1.3vw, 13px);
  font-weight: 500;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.lvl1__kicker .line { width: clamp(24px, 5vw, 56px); height: 1px; background: var(--line); }

.lvl1__photo {
  width: min(340px, 68vw);
  margin: clamp(22px, 4vh, 38px) 0;
  background: var(--ink);
  padding: 10px 10px 13px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .65);
  transform: rotate(-2deg);
  transition: transform .5s var(--ease-out);
}
.lvl1__photo:hover { transform: rotate(0deg) scale(1.02); }
.lvl1__photo img { width: 100%; }

/* Огромное кликабельное имя */
.lvl1__name {
  position: relative;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(38px, 8.5vw, 96px);
  line-height: 1.02;
  letter-spacing: .05em;
  text-transform: uppercase;
  text-shadow: 0 10px 40px rgba(0, 0, 0, .7);
  transition: color .3s;
}
.lvl1__name em {
  font-style: normal;
  color: var(--red);
  transition: color .3s;
}
.lvl1__name::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease-out);
}
.lvl1__name:hover { color: var(--red); }
.lvl1__name:hover em { color: var(--ink); }
.lvl1__name:hover::after { transform: scaleX(1); transform-origin: left; }

.lvl1__hint {
  margin-top: 26px;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.lvl1__hint .star { animation: hint-pulse 2s infinite; display: inline-block; }
@keyframes hint-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}

/* ============ УРОВЕНЬ 2 — БЫСТРОЕ ЗНАКОМСТВО ============ */
.lvl2 { background: var(--bg); }
.lvl2__inner {
  max-width: 1150px;
  margin: 0 auto;
  padding: clamp(110px, 16vh, 150px) clamp(20px, 4vw, 48px) clamp(70px, 9vw, 110px);
  display: grid;
  grid-template-columns: minmax(280px, 440px) 1fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: start;
}

/* мудборд сбоку */
.lvl2__mood {
  position: sticky;
  top: 110px;
  background: var(--ink);
  padding: 10px 10px 13px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .55);
  transform: rotate(1.5deg);
  transition: transform .5s var(--ease-out);
}
.lvl2__mood:hover { transform: rotate(0deg); }
.lvl2__mood img { width: 100%; }
.lvl2__mood figcaption {
  margin-top: 10px;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: #6b6459;
  text-align: center;
}

.lvl2__eyebrow,
.lvl3__eyebrow {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.lvl2__eyebrow .star, .lvl3__eyebrow .star { color: var(--red); }

.lvl2__title,
.lvl3__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(38px, 6vw, 72px);
  letter-spacing: .03em;
  line-height: 1;
  margin: 10px 0 28px;
  text-transform: uppercase;
}

/* досье-таблица */
.dossier { border-top: 1px solid var(--line); }
.dossier div {
  display: grid;
  grid-template-columns: minmax(140px, 200px) 1fr;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.dossier dt {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-dim);
  padding-top: 3px;
}
.dossier dd { font-size: 15px; line-height: 1.55; }
.dossier .motto dd { font-style: italic; color: var(--ink); }
.dossier .motto dd span { display: block; font-style: normal; font-size: 13px; color: var(--ink-dim); margin-top: 2px; }

/* КТО ОН? */
.lvl2__more {
  display: inline-flex;
  align-items: baseline;
  gap: 16px;
  margin-top: 40px;
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 56px);
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: color .3s;
}
.lvl2__more i {
  font-style: normal;
  color: var(--red);
  transition: transform .4s var(--ease-out);
}
.lvl2__more:hover { color: var(--red); }
.lvl2__more:hover i { transform: translateX(12px); }

/* ============ УРОВЕНЬ 3 — КТО ОН ============ */
.lvl3 { background: var(--bg); position: relative; overflow: hidden; }
.lvl3__watermark {
  position: absolute;
  top: 90px;
  right: -4%;
  font-family: var(--font-display);
  font-size: clamp(140px, 24vw, 320px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(242, 239, 232, .05);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}
.lvl3__inner {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(110px, 16vh, 150px) clamp(20px, 4vw, 48px) clamp(70px, 9vw, 110px);
}
.lvl3__sub { color: var(--ink-dim); font-size: 15px; margin: -14px 0 44px; }

.lvl3 section { margin-bottom: 42px; }
.lvl3 h3 {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.lvl3 h3 span {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .2em;
  color: var(--red);
}
.lvl3 p { color: #c9cec9; font-size: 15.5px; line-height: 1.75; margin-bottom: 12px; }
.lvl3 p strong { color: var(--ink); font-weight: 600; }
.lvl3 ul { list-style: none; }
.lvl3 ul li {
  position: relative;
  padding: 9px 0 9px 22px;
  color: #c9cec9;
  font-size: 15px;
  line-height: 1.6;
  border-bottom: 1px solid rgba(242, 239, 232, .07);
}
.lvl3 ul li::before {
  content: "★";
  position: absolute;
  left: 0;
  top: 10px;
  font-size: 10px;
  color: var(--red);
}
.lvl3 ul li b { color: var(--ink); font-weight: 600; }

/* вайб-блок */
.lvl3 .vibe {
  border-left: 3px solid var(--red);
  padding: 6px 0 6px 22px;
}
.lvl3 .vibe p { font-style: italic; color: var(--ink); }

/* навигация внизу досье */
.lvl3__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  margin-top: 60px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.lvl3__nav a { color: var(--ink-dim); transition: color .25s; }
.lvl3__nav a:hover { color: var(--red); }
.lvl3__nav .next { color: var(--ink); }

/* ============ АДАПТИВ ============ */
@media (max-width: 860px) {
  .lvl2__inner { grid-template-columns: 1fr; }
  .lvl2__mood {
    position: static;
    max-width: 420px;
    margin: 0 auto 10px;
  }
  .steps {
    left: 50%;
    transform: translateX(-50%);
    background: rgba(11, 14, 13, .8);
    backdrop-filter: blur(10px);
    padding: 2px 16px;
    border: 1px solid var(--line);
    border-radius: 100px;
  }
  .dossier div { grid-template-columns: 1fr; gap: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  .lvl.is-active .fx { animation: none; opacity: 1; transform: none; }
}
