:root {
  --bg: #0a0a0a;
  --fg: #f5f5f5;
  --muted: #888;
  --line: #222;
  --card: rgba(255, 255, 255, 0.02);
  --maxw: 980px;
  /* Акцент по умолчанию — нейтральный. На странице участника
     переопределяется палитрой из аватарки (color.js → body). */
  --accent: #f5f5f5;
  --accent-soft: rgba(255, 255, 255, 0.08);
  --accent-line: #2a2a2a;
  --accent-glow: rgba(255, 255, 255, 0.12);
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, ui-serif,
    serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

/* Чёрная подложка + гасим резиновый overscroll (Mac): иначе при рывке
   композиторный слой ленты и вуаль рассинхронизируются и сверху/снизу видны
   незатемнённые картинки. */
html {
  background: var(--bg);
  overscroll-behavior: none;
}

body {
  overscroll-behavior: none;
  background: var(--bg);
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---------- Фоновая лента (marquee) ---------- */
.marquee-bg {
  position: fixed;
  inset: -40vh 0;
  z-index: 0;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(10px, 2vw, 24px);
  pointer-events: none;
  transform: translateZ(0); /* свой композиторный слой — двигается вместе с вуалью */
}

/* Ряд — обёртка; трек внутри сам прокручивается (CSS), плитки толкает JS. */
.marquee-row {
  position: relative;
}

.marquee-track {
  display: flex;
  gap: clamp(10px, 1.6vw, 22px);
  width: max-content;
  will-change: transform;
  animation: scroll var(--speed, 60s) linear infinite;
}

.marquee-track.reverse {
  animation-direction: reverse;
}

.marquee-row img,
.marquee-row .tile {
  height: clamp(120px, 18vh, 210px);
  width: clamp(90px, 13vh, 150px);
  object-fit: cover;
  border-radius: 12px;
  flex: 0 0 auto;
  filter: grayscale(1) contrast(1.05) brightness(0.85);
  opacity: 0.5;
  background: #111;
  /* transform ведёт JS (отталкивание от курсора) — его НЕ анимируем переходом;
     плавно меняем только цвет/прозрачность при переключении стиля. */
  transition: filter 0.5s ease, opacity 0.5s ease;
}

@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Затемняющая вуаль для читаемости контента */
.veil {
  position: fixed;
  inset: -40vh 0;
  z-index: 1;
  pointer-events: none;
  transform: translateZ(0); /* в одном слое с лентой — не отстаёт при overscroll */
  background: radial-gradient(
      120% 80% at 50% 45%,
      rgba(10, 10, 10, 0.45) 0%,
      rgba(10, 10, 10, 0.78) 55%,
      rgba(10, 10, 10, 0.95) 100%
    ),
    linear-gradient(180deg, rgba(10, 10, 10, 0.9), rgba(10, 10, 10, 0.6) 30%, rgba(10, 10, 10, 0.6) 70%, rgba(10, 10, 10, 0.95));
}

/* Лёгкое зерно поверх — даёт «дорогую» матовость */
.grain {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Слои контента ---------- */
.site-header,
.content,
.site-footer {
  position: relative;
  z-index: 3;
}

.site-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: clamp(20px, 4vw, 36px) clamp(20px, 6vw, 56px);
}

.site-header--end {
  justify-content: flex-end;
}

.logo {
  font-weight: 700;
  font-size: clamp(18px, 2.2vw, 22px);
  letter-spacing: -0.02em;
}

/* Переключатель языка */
.lang-switch {
  display: flex;
  gap: 4px;
}

.lang-btn {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.08em;
  padding: 6px 8px;
  cursor: pointer;
  border-radius: 6px;
  transition: color 0.2s ease, background 0.2s ease;
}

.lang-btn:hover {
  color: var(--fg);
}

.lang-btn.active {
  color: var(--fg);
  background: rgba(255, 255, 255, 0.06);
}

.content {
  flex: 1;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(40px, 8vh, 90px) clamp(20px, 6vw, 56px);
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 9vh, 96px);
}

/* Hero */
.hero {
  text-align: center;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 13px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--muted);
}

.title {
  margin: 0;
  font-size: clamp(56px, 13vw, 140px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.subtitle {
  margin: 18px 0 0;
  font-size: clamp(15px, 2vw, 18px);
  color: var(--muted);
  font-weight: 400;
}

/* ---------- Карточки участников ---------- */
.section-label {
  text-align: center;
  margin: 0 0 clamp(20px, 4vh, 34px);
  font-size: 12px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--muted);
}

.members {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2vw, 22px);
}

.member-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: clamp(26px, 3vw, 36px) 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  backdrop-filter: blur(6px);
  color: inherit;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1),
    border-color 0.35s ease, background 0.35s ease;
}

.member-card:hover {
  transform: translateY(-6px);
  border-color: #3a3a3a;
  background: rgba(255, 255, 255, 0.04);
}

.member-card .avatar {
  width: clamp(82px, 9vw, 100px);
  height: clamp(82px, 9vw, 100px);
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
  filter: none; /* цветные по умолчанию */
  transition: filter 0.35s ease, transform 0.35s ease;
  background: #111;
}

.member-card:hover .avatar {
  transform: scale(1.04);
  filter: contrast(1.08) brightness(1.05);
}

.member-card .nick {
  font-size: clamp(16px, 2vw, 19px);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.member-card .view-more {
  position: absolute;
  top: 16px;
  right: 18px;
  color: var(--muted);
  font-size: 15px;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

.member-card:hover .view-more {
  opacity: 1;
  transform: translateX(0);
  color: var(--fg);
}

/* ---------- Контактная форма ---------- */
.contact-wrap {
  max-width: 560px;
  margin: 0 auto;
  width: 100%;
}
.contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-kinds {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.contact-kind {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  padding: 7px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.contact-kind:hover {
  color: var(--fg);
  border-color: #3a3a3a;
}
.contact-kind.active {
  color: var(--bg);
  background: var(--accent);
  border-color: var(--accent);
}
.contact-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--fg);
  font: inherit;
  font-size: 15px;
  padding: 12px 14px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.contact-input::placeholder {
  color: var(--muted);
}
.contact-input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.05);
}
.contact-textarea {
  resize: vertical;
  min-height: 96px;
  line-height: 1.5;
}
/* honeypot — прячем от людей, боты заполняют */
.contact-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.contact-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.contact-send {
  appearance: none;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--bg);
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  padding: 11px 28px;
  border-radius: 10px;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.contact-send:hover {
  opacity: 0.88;
}
.contact-send:active {
  transform: translateY(1px);
}
.contact-send:disabled {
  opacity: 0.5;
  cursor: default;
}
.contact-msg {
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Footer ---------- */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: clamp(20px, 4vw, 36px);
  font-size: 13px;
  color: var(--muted);
}

.site-footer .dot {
  opacity: 0.5;
}

/* ---------- Адаптив ---------- */
@media (max-width: 720px) {
  .members {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
    width: 100%;
  }
}

/* ---------- Страница участника ---------- */
.member-page {
  background: var(--bg);
}

.veil--profile {
  background: radial-gradient(
      100% 55% at 50% -8%,
      var(--accent-glow),
      transparent 62%
    ),
    radial-gradient(
      120% 80% at 50% 45%,
      rgba(10, 10, 10, 0.5) 0%,
      rgba(10, 10, 10, 0.82) 55%,
      rgba(10, 10, 10, 0.96) 100%
    ),
    linear-gradient(
      180deg,
      rgba(10, 10, 10, 0.9),
      rgba(10, 10, 10, 0.62) 30%,
      rgba(10, 10, 10, 0.62) 70%,
      rgba(10, 10, 10, 0.96)
    );
}

.content--profile {
  gap: clamp(28px, 5vh, 48px);
}

.back-link {
  align-self: flex-start;
  font-size: 13px;
  color: var(--muted);
  display: inline-flex;
  gap: 8px;
  align-items: center;
  transition: color 0.25s ease;
}

.back-link:hover {
  color: var(--fg);
}

.profile-head {
  display: flex;
  gap: clamp(20px, 4vw, 36px);
  align-items: center;
  flex-wrap: wrap;
}

.profile-avatar {
  width: clamp(110px, 16vw, 156px);
  height: clamp(110px, 16vw, 156px);
  border-radius: 24px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #111;
}

.profile-nick {
  margin: 0;
  font-size: clamp(34px, 6vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.profile-bio {
  margin: 14px 0 0;
  max-width: 52ch;
  color: var(--muted);
  font-size: clamp(15px, 1.8vw, 17px);
  line-height: 1.6;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 16px;
}
.profile-link {
  display: inline-block;
  font-size: 13px;
  color: var(--accent);
  border-bottom: 1px solid var(--accent-line);
  padding-bottom: 2px;
  transition: border-color 0.25s ease;
}

.profile-link:hover {
  border-color: var(--accent);
}

.profile-cols {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(28px, 5vw, 56px);
  padding-top: clamp(20px, 4vh, 40px);
  border-top: 1px solid var(--line);
}

.block-title {
  margin: 0 0 18px;
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.skills {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill {
  font-size: 13px;
  padding: 7px 13px;
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  color: var(--fg);
}

.projects {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.project {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  transition: border-color 0.25s ease;
}

.project:hover {
  border-color: #3a3a3a;
}

.project-name {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
}

.project-desc {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.not-found {
  color: var(--muted);
  font-size: 18px;
}

@media (max-width: 720px) {
  .profile-cols {
    grid-template-columns: 1fr;
  }
  .profile-head {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  .profile-bio {
    text-align: left;
  }
}

/* ============================================================
   Индивидуальные стили участников (body.style-*)
   Акцент --accent приходит динамически из аватарки (color.js).
   ============================================================ */

/* ── minimal (uwsed): воздух, тонкие веса, сдержанность ── */
.style-minimal .marquee-row img {
  opacity: 0.26;
  filter: grayscale(1) brightness(0.8);
}
.style-minimal .content--profile {
  max-width: 760px;
  gap: clamp(40px, 8vh, 84px);
}
.style-minimal .profile-head {
  gap: clamp(28px, 5vw, 48px);
}
.style-minimal .profile-avatar {
  border-radius: 50%;
  width: clamp(96px, 13vw, 132px);
  height: clamp(96px, 13vw, 132px);
}
.style-minimal .profile-nick {
  font-weight: 300;
  letter-spacing: -0.02em;
  text-transform: lowercase;
}
.style-minimal .profile-bio,
.style-minimal .block-title {
  font-weight: 300;
}
.style-minimal .profile-cols {
  border-top-color: var(--accent-line);
}
.style-minimal .skill {
  background: transparent;
  font-weight: 300;
}
.style-minimal .project {
  border: 0;
  border-left: 2px solid var(--accent-line);
  border-radius: 0;
  padding: 4px 0 4px 18px;
  background: transparent;
}

/* ── maximal: крупная типографика, плотность, ЦВЕТ ──
   В максимализме лента не ЧБ, а в полном цвете. Эффект динамический:
   переключатель стиля меняет body.style-* — фильтр пересчитывается вживую
   для любого участника (плавно за счёт transition на .marquee-row img). */
.style-maximal .marquee-row img {
  opacity: 0.72;
  filter: none;
}
.style-maximal .content--profile {
  gap: clamp(22px, 4vh, 40px);
}
.style-maximal .profile-head {
  align-items: flex-end;
  gap: clamp(20px, 4vw, 44px);
}
.style-maximal .profile-avatar {
  width: clamp(130px, 20vw, 200px);
  height: clamp(130px, 20vw, 200px);
  border-radius: 28px;
  border: 2px solid var(--accent-line);
  box-shadow: 0 0 70px var(--accent-glow);
}
.style-maximal .profile-nick {
  font-size: clamp(54px, 12vw, 116px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.82;
  text-transform: uppercase;
  color: var(--accent);
}
.style-maximal .profile-bio {
  font-size: clamp(17px, 2.2vw, 22px);
  color: var(--fg);
  font-weight: 500;
  max-width: 44ch;
}
.style-maximal .profile-cols {
  grid-template-columns: 1fr;
  gap: clamp(26px, 4vh, 40px);
}
.style-maximal .block-title {
  color: var(--accent);
  font-size: 13px;
}
.style-maximal .skill {
  background: var(--accent);
  color: #0a0a0a;
  border-color: var(--accent);
  border-radius: 9px;
  font-weight: 700;
  font-size: 14px;
  padding: 9px 16px;
}
.style-maximal .project {
  border-radius: 16px;
  border-color: var(--accent-line);
  background: var(--accent-soft);
}
.style-maximal .project-name {
  font-size: 20px;
}

/* ── brutal (nevermore): моноширинный, жёсткие рамки, terminal ── */
.style-brutal {
  font-family: var(--mono);
}
.style-brutal .marquee-row img {
  opacity: 0.4;
  filter: grayscale(1) contrast(1.4);
  border-radius: 0;
}
.style-brutal .lang-btn,
.style-brutal .logo,
.style-brutal .site-footer,
.style-brutal .back-link,
.style-brutal .profile-link {
  font-family: var(--mono);
}
.style-brutal .profile-avatar {
  border-radius: 0;
  border: 2px solid var(--accent);
}
.style-brutal .profile-nick {
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-weight: 700;
}
.style-brutal .profile-nick::before {
  content: "> ";
  color: var(--accent);
}
.style-brutal .profile-bio {
  font-size: 14px;
  line-height: 1.7;
}
.style-brutal .profile-cols {
  border-top: 1px dashed var(--accent-line);
}
.style-brutal .block-title {
  color: var(--accent);
}
.style-brutal .skill {
  border-radius: 0;
  border: 1px solid var(--accent);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.05em;
}
.style-brutal .project {
  border-radius: 0;
  border: 1px solid var(--accent-line);
  background: transparent;
}
.style-brutal .project-name::before {
  content: "// ";
  color: var(--accent);
}

/* ── editorial (журнальный): serif, крупные засечки, нумерация ── */
.style-editorial {
  font-family: var(--serif);
}
.style-editorial .marquee-row img {
  opacity: 0.32;
  filter: grayscale(1) contrast(1.05) brightness(0.85);
}
.style-editorial .content--profile {
  max-width: 820px;
}
.style-editorial .profile-avatar {
  border-radius: 4px;
  border: 1px solid var(--accent-line);
}
.style-editorial .profile-nick {
  font-family: var(--serif);
  font-weight: 500;
  font-style: italic;
  letter-spacing: -0.01em;
}
.style-editorial .profile-bio {
  font-family: var(--serif);
  font-size: clamp(17px, 2.1vw, 21px);
  line-height: 1.7;
  color: #cfcfcf;
}
.style-editorial .block-title {
  font-family: var(--mono);
  letter-spacing: 0.2em;
  border-bottom: 1px solid var(--accent-line);
  padding-bottom: 10px;
}
.style-editorial .skills {
  gap: 0 10px;
}
.style-editorial .skill {
  border: 0;
  border-radius: 0;
  padding: 4px 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: #ddd;
}
.style-editorial .skill:not(:last-child)::after {
  content: " ·";
  color: var(--accent);
}
.style-editorial .projects {
  counter-reset: proj;
}
.style-editorial .project {
  border: 0;
  border-top: 1px solid var(--accent-line);
  border-radius: 0;
  background: transparent;
  padding: 18px 0 18px 44px;
  position: relative;
}
.style-editorial .project::before {
  counter-increment: proj;
  content: counter(proj, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 18px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
}
.style-editorial .project-name {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
}

/* ── neon (киберсвечение): акцент-glow повсюду, тёмный «экранный» вайб ── */
.style-neon .marquee-row img {
  opacity: 0.5;
  filter: grayscale(0.4) contrast(1.15) brightness(0.85);
}
.style-neon .veil--profile {
  mix-blend-mode: normal;
}
.style-neon .profile-avatar {
  border-radius: 20px;
  border: 1px solid var(--accent);
  box-shadow: 0 0 35px var(--accent-glow), inset 0 0 0 1px var(--accent-soft);
}
.style-neon .profile-nick {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-shadow: 0 0 22px var(--accent-glow), 0 0 44px var(--accent-glow);
}
.style-neon .profile-bio {
  color: #cdd2d6;
}
.style-neon .block-title {
  color: var(--accent);
  text-shadow: 0 0 16px var(--accent-glow);
}
.style-neon .skill {
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 8px;
  background: var(--accent-soft);
  box-shadow: 0 0 14px var(--accent-glow);
}
.style-neon .project {
  border: 1px solid var(--accent-line);
  border-radius: 12px;
  background: var(--accent-soft);
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.35);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.style-neon .project:hover {
  border-color: var(--accent);
  box-shadow: 0 0 26px var(--accent-glow);
}
.style-neon .profile-link {
  text-shadow: 0 0 16px var(--accent-glow);
}

/* ── glitch (RGB-сдвиг, скан-линии, моно) ── */
.style-glitch {
  font-family: var(--mono);
}
.style-glitch .marquee-row img {
  opacity: 0.5;
  filter: grayscale(1) contrast(1.3);
}
.style-glitch::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.16) 0 1px,
    transparent 1px 3px
  );
}
.style-glitch .profile-avatar {
  border-radius: 0;
  border: 1px solid var(--accent);
  box-shadow: 3px 0 var(--accent-soft), -3px 0 rgba(25, 211, 255, 0.25);
}
.style-glitch .profile-nick {
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-weight: 700;
  color: var(--fg);
  animation: glitch-shift 1.8s steps(2) infinite;
}
.style-glitch .profile-bio {
  font-size: 14px;
  line-height: 1.7;
}
.style-glitch .block-title {
  color: var(--accent);
}
.style-glitch .skill {
  border-radius: 0;
  border: 1px solid var(--accent);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.05em;
}
.style-glitch .project {
  border-radius: 0;
  border: 1px solid var(--accent-line);
  background: transparent;
}
.style-glitch .project-name::before {
  content: "▎";
  color: var(--accent);
  margin-right: 6px;
}
@keyframes glitch-shift {
  0%,
  100% {
    text-shadow: 2px 0 var(--accent), -2px 0 #19d3ff;
  }
  25% {
    text-shadow: -2px 0 var(--accent), 2px 0 #19d3ff;
  }
  50% {
    text-shadow: 1px -1px var(--accent), -1px 1px #19d3ff;
  }
  75% {
    text-shadow: -1px 1px var(--accent), 1px -1px #19d3ff;
  }
}

/* ── soft (пастель, скругления, воздух) ── */
.style-soft .marquee-row img {
  opacity: 0.4;
  filter: grayscale(0.5) brightness(1.05);
}
.style-soft .content--profile {
  gap: clamp(30px, 6vh, 56px);
}
.style-soft .profile-avatar {
  border-radius: 50%;
  border: 0;
  box-shadow: 0 0 0 6px var(--accent-soft), 0 20px 60px rgba(0, 0, 0, 0.4);
}
.style-soft .profile-nick {
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, var(--accent), #ffffff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.style-soft .profile-bio {
  color: #d6d6d6;
}
.style-soft .block-title {
  color: var(--accent);
}
.style-soft .skill {
  border: 0;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--fg);
  padding: 8px 16px;
}
.style-soft .project {
  border: 0;
  border-radius: 20px;
  background: var(--accent-soft);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}
.style-soft .profile-cols {
  border-top-color: var(--accent-soft);
}

/* ---------- Переключатель стиля (вертикально, слева) ---------- */
.switcher-wrap {
  position: fixed;
  left: clamp(10px, 1.5vw, 22px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
}

.switcher {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  padding: 10px 8px;
  border: 1px solid var(--accent-line);
  border-radius: 16px;
  background: rgba(16, 16, 16, 0.74);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  font-family: var(--mono);
  max-height: 86vh;
  overflow-y: auto;
  scrollbar-width: none;
}

.switcher::-webkit-scrollbar {
  display: none;
}

.sw-label {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 2px 8px 6px;
}

.sw-opts {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sw-opt {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  text-align: left;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.sw-opt:hover {
  color: var(--fg);
}

.sw-opt.active {
  color: var(--accent);
  background: var(--accent-soft);
}

.sw-tools {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--accent-line);
}

.sw-lock,
.sw-save {
  appearance: none;
  border: 1px solid var(--accent-line);
  background: transparent;
  color: var(--fg);
  font: inherit;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.sw-save {
  color: var(--accent);
}

.sw-lock:hover,
.sw-save:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.sw-msg {
  font-size: 10px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 600px) {
  .switcher-wrap {
    left: 6px;
  }
  .switcher {
    padding: 7px 6px;
  }
  .sw-opt {
    font-size: 11px;
    padding: 5px 8px;
  }
}

/* ---------- Главная (меню): ЧБ-фон ---------- */
.home .marquee-row img {
  filter: grayscale(1) brightness(0.9);
  opacity: 0.5;
}
/* контент пропускает события на фон, кроме интерактивных элементов */
.home .content {
  pointer-events: none;
}
.home .content a,
.home .content button,
.home .content input,
.home .content textarea,
.home .member-card {
  pointer-events: auto;
}
/* читаемость текста поверх фона */
.home .title {
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.7);
}
.home .eyebrow,
.home .subtitle,
.home .section-label {
  text-shadow: 0 1px 22px rgba(0, 0, 0, 0.85);
}

/* ---------- Карточка проекта (на странице участника) ---------- */
.project {
  position: relative;
}
.project-main {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}
.project-tools {
  position: absolute;
  top: 10px;
  right: 10px;
  display: none;
  gap: 6px;
}
body.is-admin .project-tools {
  display: flex;
}
.project-edit,
.project-del {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: 1px solid var(--accent-line);
  background: rgba(0, 0, 0, 0.45);
  color: var(--muted);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}
.project-edit:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.project-del:hover {
  color: #ff6b6b;
  border-color: #ff6b6b;
}
/* drag-сортировка (только владелец) */
body.is-admin .project[data-pid] {
  cursor: grab;
}
.project.dragging {
  opacity: 0.5;
  cursor: grabbing;
}
/* превью существующих фото в форме редактирования */
.pf-existing {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pf-existing[hidden] {
  display: none;
}
.pf-thumb {
  position: relative;
  width: 54px;
  height: 54px;
}
.pf-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.pf-thumb-x {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #000;
  color: #fff;
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
}
.project-thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 10px;
  flex: 0 0 auto;
  border: 1px solid var(--accent-line);
}
.project-body {
  flex: 1;
  min-width: 0;
}
.project-arrow {
  flex: 0 0 auto;
  color: var(--muted);
  transition: transform 0.25s ease, color 0.25s ease;
}
.project:hover .project-arrow {
  color: var(--accent);
  transform: translateX(3px);
}
.proj-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.proj-tag {
  font-size: 11px;
  color: var(--muted);
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  padding: 2px 8px;
}

/* ---------- Страница проекта ---------- */
.project-page {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 5vh, 44px);
}
.project-by {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: lowercase;
}
.project-title {
  margin: 0;
  font-size: clamp(36px, 7vw, 72px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}
.project-about {
  margin: 16px 0 0;
  max-width: 60ch;
  color: var(--muted);
  font-size: clamp(15px, 1.9vw, 18px);
  line-height: 1.7;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.shot {
  display: block;
  border: 1px solid var(--accent-line);
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.shot:hover img {
  transform: scale(1.04);
}
.gallery-empty {
  color: var(--muted);
  font-size: 18px;
}

/* ---------- Формы владельца (проект / профиль) ---------- */
.pf-wrap {
  margin-top: 18px;
}
.pe-wrap {
  margin: 4px 0 10px;
}
.pf-toggle {
  appearance: none;
  border: 1px dashed var(--accent-line);
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
}
.pf-toggle:hover {
  border-color: var(--accent);
}
.pf-form[hidden] {
  display: none;
}
.pf-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
  padding: 16px;
  border: 1px solid var(--accent-line);
  border-radius: 14px;
  background: var(--card);
  max-width: 480px;
}
.pf-form input[type="text"],
.pf-form textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--fg);
  font: inherit;
  font-size: 14px;
  padding: 9px 11px;
}
.pf-form textarea {
  resize: vertical;
}
.pf-file {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}
.pf-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pf-add {
  border: 1px solid var(--accent);
  background: var(--accent-soft);
  color: var(--fg);
  font: inherit;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
}
.pf-cancel {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
}
.pf-msg {
  font-size: 12px;
  color: var(--muted);
}
.pf-cap {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}
.pf-cap:first-child {
  margin-top: 0;
}

/* ---------- Доступность: меньше движения ---------- */
@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none !important;
  }
  .member-card {
    transition: none;
  }
  .style-glitch .profile-nick {
    animation: none !important;
  }
}
