/* 7I — bento landing */

:root {
  color-scheme: dark;

  --bg: #07070a;
  --surface: #101015;
  --surface-2: #16161d;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f2f7;
  --muted: #9b99a8;
  --dim: #6c6a78;

  /* цвета участников */
  --aisha: #ff3352;
  --aisulu: #2f9bff;
  --ailana: #6fcf4f;
  --ibot: #3fe0ff;
  --aibar: #e6e1ff;
  --aidar: #a5abb5;
  --aizat: #5c6480; /* тёмный графит с синим отливом, как блики в его чёрных волосах */

  --rainbow: linear-gradient(180deg, var(--aisha), #ffb454 22%, var(--ailana) 40%, var(--ibot) 58%, var(--aisulu) 74%, var(--aibar) 88%, var(--aidar));

  --radius: 26px;
  --gap: 14px;
  --font-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --font-body: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* лёгкое свечение и зерно на фоне */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60vw 40vw at 85% -10%, rgba(255, 51, 82, 0.12), transparent 60%),
    radial-gradient(50vw 40vw at -10% 30%, rgba(47, 155, 255, 0.1), transparent 60%),
    radial-gradient(40vw 30vw at 50% 110%, rgba(63, 224, 255, 0.07), transparent 60%);
}

img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, figure, blockquote, dl, dd { margin: 0; }

.wrap {
  width: min(1320px, 100% - 32px);
  margin-inline: auto;
}

.ai { color: var(--accent, var(--text)); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- pill / buttons ---------- */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(10, 10, 14, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.pill i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent, var(--aisha));
  box-shadow: 0 0 10px var(--accent, var(--aisha));
}
.pill--live i { animation: pulse 1.6s ease-in-out infinite; }

@keyframes pulse { 50% { opacity: 0.3; transform: scale(0.7); } }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn--light { background: var(--text); color: #0b0b0f; }
.btn--ghost { border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.04); backdrop-filter: blur(10px); }
.btn--ghost:hover { border-color: rgba(255, 255, 255, 0.4); }

/* ---------- topbar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  width: min(1320px, 100% - 32px);
  margin: 0 auto;
  padding: 14px 0;
}
.topbar::before {
  content: "";
  position: absolute;
  inset: 0 calc(50% - 50vw);
  z-index: -1;
  background: linear-gradient(var(--bg) 30%, rgba(7, 7, 10, 0));
  opacity: 0;
  transition: opacity 0.3s;
}
.topbar.is-scrolled::before { opacity: 1; }

.logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 26px;
  letter-spacing: -0.04em;
  text-decoration: none;
  line-height: 1;
}
.logo span, .hero__logo span, .footer__logo span {
  background: var(--rainbow);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.topbar__nav { display: flex; gap: 4px; margin-right: auto; }
.topbar__nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
}
.topbar__nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }

/* ---------- tiles ---------- */

.tile {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 26px;
  isolation: isolate;
  transition: border-color 0.35s, transform 0.5s var(--ease), box-shadow 0.35s;
}
.tile:hover {
  border-color: color-mix(in srgb, var(--accent, #fff) 45%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent, #fff) 15%, transparent), 0 24px 60px -30px color-mix(in srgb, var(--accent, #000) 60%, transparent);
}

.tile__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tile__bg--top { object-position: 50% 18%; }

/* универсальная bento-сетка */
.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
}
.bento > .tile { grid-column: span var(--span, 12); }

/* появление при прокрутке */
.js .reveal { opacity: 0; transform: translateY(24px) scale(0.985); }
.js .reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), border-color 0.35s, box-shadow 0.35s;
}

/* ---------- hero bento ---------- */

.hero-bento {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: repeat(4, minmax(118px, 1fr)) auto;
  grid-template-areas:
    "h h h h h h h h v v v v"
    "h h h h h h h h v v v v"
    "h h h h h h h h v v v v"
    "h h h h h h h h v v v v"
    "n n n n n n n s s s s s";
  padding-top: 6px;
}

.tile--hero { grid-area: h; min-height: 560px; padding: 0; display: flex; flex-direction: column; justify-content: space-between; }
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(7, 7, 10, 0.96) 8%, rgba(7, 7, 10, 0.55) 45%, rgba(7, 7, 10, 0.1) 75%),
    linear-gradient(to right, rgba(7, 7, 10, 0.55), transparent 60%);
}
.hero__chip { align-self: flex-start; margin: 22px 0 0 22px; }
.hero__content { padding: 0 34px 34px; }
.hero__logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(110px, 15vw, 230px);
  line-height: 0.8;
  letter-spacing: -0.06em;
  margin-left: -0.04em;
}
.hero__tag {
  margin-top: 18px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 2.6vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.hero__sub { margin-top: 12px; max-width: 46ch; color: #c9c7d3; font-size: 16px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

/* слайдер участников: эмоции одного участника — фейдом, между участниками — слайдом */
.tile--cast { grid-area: v; padding: 0; min-height: 420px; }
.cast__viewport { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; touch-action: pan-y; }
.cast__track { display: flex; height: 100%; transition: transform 0.85s var(--ease); will-change: transform; }
.cast__track.no-anim { transition: none; }
.cast__slide { position: relative; flex: 0 0 100%; height: 100%; margin: 0; overflow: hidden; }
.cast__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(7, 7, 10, 0.94) 6%, rgba(7, 7, 10, 0.3) 38%, transparent 58%),
    linear-gradient(to top, color-mix(in srgb, var(--accent) 24%, transparent), transparent 45%);
  pointer-events: none;
}
.cast__faces img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 15%;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.9s var(--ease), transform 2.4s var(--ease);
}
.cast__faces img.is-on { opacity: 1; transform: scale(1); }
.cast__cap { position: absolute; left: 24px; right: 110px; bottom: 22px; z-index: 1; }
.cast__cap .eyebrow { color: #d4d1dc; }
.cast__name {
  margin-top: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 3.6vw, 54px);
  line-height: 1;
  letter-spacing: -0.035em;
}
.cast__line { margin-top: 8px; color: #d4d1dc; font-size: 15px; }

.cast__bars { position: absolute; top: 10px; left: 14px; right: 14px; z-index: 2; display: flex; gap: 5px; }
.cast__bars button { flex: 1; padding: 8px 0; border: 0; background: none; cursor: pointer; }
.cast__bars button::before {
  content: "";
  display: block;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.25);
}
.cast__bars button { position: relative; }
.cast__bars i {
  position: absolute;
  left: 0;
  top: 8px;
  height: 3px;
  width: var(--p, 0%);
  border-radius: 3px;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.cast__bars button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.cast__nav { position: absolute; right: 18px; bottom: 22px; z-index: 2; display: flex; gap: 8px; }
.cast__btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(7, 7, 10, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text);
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.cast__btn:hover { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.4); }
.cast__btn:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }

.tile--names { grid-area: n; display: flex; flex-direction: column; gap: 16px; }
.marquee {
  margin-inline: -26px;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee__track span {
  padding-right: 0.9em;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 3.6vw, 54px);
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: rgba(255, 255, 255, 0.92);
}
.marquee__track span b { color: var(--accent); font-weight: 900; }
.marquee__track span::after { content: "✦"; margin-left: 0.9em; font-size: 0.4em; vertical-align: middle; color: var(--dim); }
@keyframes marquee { to { transform: translateX(-50%); } }
.names__text { color: var(--muted); max-width: 60ch; font-size: 15px; }
.names__text strong { color: var(--text); }

.tile--stats { grid-area: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; padding: 0; }
.stat { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 26px 22px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat__num { font-family: var(--font-display); font-weight: 900; font-size: clamp(44px, 4.4vw, 68px); line-height: 0.9; letter-spacing: -0.04em; }
.stat__label { color: var(--muted); font-size: 14px; line-height: 1.3; }

/* ---------- sections ---------- */

.section { padding-top: 96px; }
.section__head { display: grid; gap: 10px; margin-bottom: 26px; }
.section__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 4.6vw, 64px);
  line-height: 1;
  letter-spacing: -0.035em;
}
.section__note { color: var(--muted); font-size: 15px; }

/* ---------- members ---------- */

.members {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: var(--gap);
}

.member {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface-2);
  isolation: isolate;
  transition: border-color 0.35s, box-shadow 0.35s, transform 0.5s var(--ease);
}
.member--big { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.member:hover, .member:focus-within {
  border-color: color-mix(in srgb, var(--accent) 60%, transparent);
  box-shadow: 0 30px 80px -40px var(--accent);
}

.member__faces { position: absolute; inset: 0; z-index: -1; }
.member__faces img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 15%;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.7s var(--ease), transform 1.4s var(--ease);
}
.member__faces img.is-on { opacity: 1; transform: scale(1); }
.member:hover .member__faces img.is-on { transform: scale(1.035); }

.member::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(7, 7, 10, 0.92) 4%, rgba(7, 7, 10, 0.35) 32%, transparent 55%),
    linear-gradient(to top, color-mix(in srgb, var(--accent) 22%, transparent), transparent 40%);
  pointer-events: none;
}

.member__num {
  position: absolute;
  top: 16px; left: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  pointer-events: none;
}

.member__info { position: absolute; left: 18px; right: 18px; bottom: 18px; pointer-events: none; }
.member__emo {
  display: inline-flex; align-items: center; gap: 7px;
  margin-bottom: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(7, 7, 10, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.03em;
}
.member__emo i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.member__emo b { font-weight: 500; }
.member__emo.is-swap b { animation: swap 0.5s var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateY(6px); } }

.member__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 2.2vw, 32px);
  line-height: 1;
  letter-spacing: -0.03em;
}
.member--big .member__name { font-size: clamp(40px, 4.6vw, 72px); }
.member__role { margin-top: 6px; color: #cfccd8; font-size: 14px; }

.member__hit {
  position: absolute;
  inset: 0;
  z-index: 1;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: inherit;
}
.member__hit:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; }

.member__dots {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 2;
  display: flex;
  gap: 4px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(7, 7, 10, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.member__dots button {
  width: 8px; height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: width 0.3s var(--ease), background 0.3s;
}
.member__dots button.on { width: 20px; background: var(--accent); }
.member__dots button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.tile--quote {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(63, 224, 255, 0.14), transparent 55%),
    var(--surface);
}
.quote__text {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.25;
  letter-spacing: -0.015em;
}
.quote__meta { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 12px; color: var(--ibot); }

.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.eq i { width: 3px; background: currentColor; border-radius: 2px; animation: eq 1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -0.3s; }
.eq i:nth-child(3) { animation-delay: -0.6s; }
.eq i:nth-child(4) { animation-delay: -0.15s; }
@keyframes eq { 0%, 100% { height: 30%; } 50% { height: 100%; } }

/* ---------- relationships ---------- */

.rel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 250px;
  background:
    radial-gradient(90% 120% at 0% 0%, color-mix(in srgb, var(--a) 16%, transparent), transparent 60%),
    radial-gradient(90% 120% at 100% 100%, color-mix(in srgb, var(--b) 14%, transparent), transparent 60%),
    var(--surface);
}
.rel:hover { --accent: var(--a); }
.rel__faces { display: flex; margin-bottom: auto; padding-bottom: 18px; }
.rel__faces img {
  width: 64px; height: 64px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 12%;
  border: 2px solid var(--a);
  background: var(--surface-2);
}
.rel__faces img + img { margin-left: -16px; border-color: var(--b); }
.rel__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 2vw, 30px); line-height: 1.05; letter-spacing: -0.025em; }
.rel__text { color: #c4c1ce; font-size: 15px; max-width: 52ch; }

.rel--bot { flex-direction: row; align-items: center; gap: 28px; min-height: 0; }
.rel__bot { width: 150px; height: 150px; flex: none; border-radius: 22px; object-fit: cover; object-position: 50% 15%; border: 1px solid var(--line-strong); }
.rel__list { margin: 12px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 28px; color: #c4c1ce; font-size: 15px; }
.rel__list b { font-weight: 600; }

/* ---------- sound ---------- */

.genre { display: flex; flex-direction: column; gap: 14px; min-height: 300px; }
.genre__text { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 3.4vw, 48px); line-height: 1.05; letter-spacing: -0.035em; max-width: 16ch; }
.genre__text em { font-style: normal; color: var(--accent); }
.bars { display: flex; align-items: flex-end; gap: 5px; height: 70px; margin-top: auto; }
.bars i {
  flex: 1;
  height: 20%;
  border-radius: 3px;
  background: var(--rainbow);
  background-size: 100% 70px;
  background-position: bottom;
  animation: bar 1.3s ease-in-out infinite alternate;
}
.bars i:nth-child(3n) { animation-duration: 0.9s; }
.bars i:nth-child(4n+1) { animation-duration: 1.6s; }
.bars i:nth-child(5n+2) { animation-delay: -0.5s; }
.bars i:nth-child(7n) { animation-delay: -0.9s; }
@keyframes bar { to { height: 100%; } }

.signal {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  --accent: var(--aisha);
  background:
    radial-gradient(100% 100% at 100% 0%, rgba(255, 51, 82, 0.22), transparent 60%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 4px),
    var(--surface);
}
.signal__num { margin-top: auto; font-family: var(--font-display); font-weight: 900; font-size: clamp(40px, 4.4vw, 64px); line-height: 0.95; letter-spacing: -0.04em; }
.signal__text { color: #c4c1ce; max-width: 40ch; }

.type { min-height: 200px; display: flex; flex-direction: column; gap: 8px; --accent: var(--a); }
.type__title { margin-top: 36px; }
.type::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--a), var(--b));
}
.type__num { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.type__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(24px, 2.2vw, 32px); letter-spacing: -0.03em; }
.type__text { color: #c4c1ce; font-size: 15px; }

.lineup__list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: var(--gap);
}
.lineup__list li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 14px;
  border-top: 2px solid var(--accent);
}
.lineup__list b { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.lineup__list span:not(.ai) { color: var(--muted); font-size: 14px; line-height: 1.35; }

/* ---------- stage ---------- */

.stage { grid-auto-rows: 118px; }
.vid { padding: 0; grid-row: span var(--rows, 2); }
.vid video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, 50% 50%);
  transition: transform 1.2s var(--ease);
}
.vid:hover video { transform: scale(1.03); }
.vid::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(7, 7, 10, 0.6), transparent 40%); pointer-events: none; }
.vid figcaption { position: absolute; left: 14px; bottom: 14px; z-index: 1; }
.vid figcaption::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent, #fff);
  box-shadow: 0 0 10px var(--accent, #fff);
}

/* ---------- footer ---------- */

.footer { padding: 120px 0 40px; }
.footer__logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(120px, 30vw, 420px);
  line-height: 0.75;
  letter-spacing: -0.07em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.18);
}
.footer__logo span { -webkit-text-stroke: 0; }
.footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 40px; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); }
.footer__quote { font-family: var(--font-display); font-weight: 500; font-size: 18px; }
.footer__note { color: var(--dim); font-size: 14px; max-width: 52ch; }

/* ---------- profile dialog ---------- */

.profile-dialog {
  width: min(1040px, 100% - 32px);
  max-height: min(760px, 100dvh - 32px);
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 30px;
  background: var(--surface);
  color: var(--text);
  overflow: hidden;
}
.profile-dialog::backdrop { background: rgba(4, 4, 6, 0.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.profile-dialog[open] { animation: pop 0.45s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(0.97); } }

.profile-dialog__close {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 3;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(7, 7, 10, 0.6);
  color: var(--text);
  font-size: 16px;
  cursor: pointer;
}
.profile-dialog__close:hover { background: rgba(255, 255, 255, 0.12); }

.profile { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); max-height: inherit; }
.profile__media { position: relative; background: #f3f3f3; min-height: 100%; }
.profile__media video { width: 100%; height: 100%; object-fit: cover; }
.profile__media::after { content: ""; position: absolute; inset: auto 0 0 0; height: 4px; background: var(--accent); }
.profile__body { padding: 40px 40px 36px; overflow-y: auto; max-height: min(760px, 100dvh - 32px); }
.profile__name { margin-top: 10px; font-family: var(--font-display); font-weight: 900; font-size: clamp(44px, 5vw, 72px); line-height: 0.95; letter-spacing: -0.045em; }
.profile__name small { display: block; margin-top: 8px; font-family: var(--font-body); font-weight: 500; font-size: 18px; letter-spacing: 0; color: var(--muted); }
.profile__lead { margin-top: 20px; font-size: 17px; color: #dcd9e4; }
.profile__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.profile__facts div { padding: 14px 16px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); }
.profile__facts dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.profile__facts dd { margin-top: 6px; font-size: 14px; color: #cfccd8; line-height: 1.45; }
.profile__quote {
  margin-top: 24px;
  padding-left: 18px;
  border-left: 3px solid var(--accent);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 19px;
  line-height: 1.35;
}

/* ---------- responsive ---------- */

@media (max-width: 1024px) {
  .topbar__nav { display: none; }
  .topbar { justify-content: space-between; }

  .hero-bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto auto auto;
    grid-template-areas:
      "h h"
      "v n"
      "v s";
  }
  .tile--hero { min-height: 520px; }
  .tile--cast { min-height: 520px; }

  .bento { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .bento > .tile { grid-column: span var(--span-md, 6); }

  .members { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tile--quote { grid-column: span 2; }

  .lineup__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  .stage { grid-auto-rows: 100px; }
  .profile { grid-template-columns: 1fr; }
  .profile__media { height: 300px; min-height: 0; }
  .profile__media video { object-position: 50% 25%; }
  .profile__body { max-height: none; overflow: visible; }
  .profile-dialog { overflow-y: auto; }
}

@media (max-width: 640px) {
  :root { --radius: 22px; --gap: 10px; }
  .section { padding-top: 72px; }
  .topbar .pill { font-size: 11px; padding: 6px 10px; }

  .hero-bento {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "h" "v" "n" "s";
  }
  .tile--hero { min-height: 560px; }
  .hero__content { padding: 0 20px 22px; }
  .hero__chip { margin: 16px 0 0 16px; }
  .tile--cast { min-height: 0; aspect-ratio: 4 / 5; }
  .cast__cap { left: 18px; right: 18px; bottom: 74px; }
  .cast__nav { right: auto; left: 18px; bottom: 18px; }
  .cast__name { font-size: 40px; }
  .tile--stats { grid-template-columns: repeat(3, 1fr); }
  .stat { padding: 20px 14px; }

  .bento { grid-template-columns: minmax(0, 1fr); }
  .bento > .tile { grid-column: 1 / -1; }

  .members { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .member--big { grid-row: span 1; aspect-ratio: 4 / 5; }
  .member--big .member__name { font-size: 44px; }
  .member__info { left: 12px; right: 12px; bottom: 12px; }
  .member__role { font-size: 12px; }
  .member__emo { font-size: 10px; padding: 4px 8px; margin-bottom: 8px; }

  .rel--bot { flex-direction: column; align-items: flex-start; }
  .rel__bot { width: 96px; height: 96px; }
  .rel__list { grid-template-columns: 1fr; }

  .lineup__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .stage { grid-auto-rows: auto; }
  .vid { grid-row: auto; aspect-ratio: 16 / 10; }

  .profile__body { padding: 28px 20px 24px; }
  .profile__facts { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
