/* ALIGEE — redesign 2026. Главная — один экран, как ninefold: растровый портрет на весь экран,
   имя внизу от края до края. Внутренние страницы (About) прокручиваются. Шрифт один: Archivo.
   Красный — из презентации ALIGEE (#BA0000 / #C80000). */

:root {
  --bg: #000;   /* чисто чёрный: фото из презентации на чёрном фоне сливаются со страницей */
  --ink: #f2f2f0;
  --muted: #b4b4b0;
  --accent: #d40000;
  --red: #ba0000;

  --display: "Archivo", "Arial Narrow", sans-serif;
  --text: "Archivo", system-ui, sans-serif;

  --m: clamp(20px, 3.4vw, 64px);   /* общее поле от края: лого, меню, имя, подвал */
  --bar-h: clamp(60px, 8vh, 76px);
  /* видимые буквы ALIGEE при ширине начертания 100% — 4.016 кегля: имя ровно от поля до поля,
     а по высоте ниже, чем в узком начертании */
  --name: calc((100vw - 2 * var(--m)) / 4.016);
  --name-stretch: 100%;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
/* iOS Safari не увеличивает шрифт сам при повороте телефона */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.45 var(--text);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
/* без системной (синей) подсветки при нажатии и рамки фокуса от мыши/пальца;
   рамка для клавиатуры остаётся — :focus-visible ниже */
a, button { -webkit-tap-highlight-color: transparent; }
button { -webkit-appearance: none; appearance: none; font: inherit; }
a:focus:not(:focus-visible), button:focus:not(:focus-visible) { outline: none; }
h1, h2, h3, p, figure { margin: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
img, svg { display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--ink); }

.display {
  font-family: var(--display);
  font-stretch: 87.5%;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

/* ---------- кадр: шапка, содержимое, строка подвала; на главной — ровно один экран ---------- */
.page {
  position: relative;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  grid-template-columns: minmax(0, 1fr);   /* длинное слово не растягивает страницу шире экрана */
}
.is-home .page { height: 100svh; height: 100dvh; overflow: hidden; }

/* фильмовое зерно поверх фото, как в референсе */
.page::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.09;
  mix-blend-mode: overlay;
}

.bar {
  position: relative;
  z-index: 6;
  height: var(--bar-h);
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 44px);
  padding-left: var(--m);
}
/* знак опущен от верхнего края, чтобы не стоял впритык */
.bar__mark { margin-right: auto; margin-top: clamp(14px, 2.2vh, 22px); color: var(--ink); }
.bar__mark svg { width: calc(var(--bar-h) * 0.82); height: calc(var(--bar-h) * 0.82); fill: currentColor; transition: transform 0.8s var(--ease); }
.bar__mark:hover svg { transform: translateY(-3px) scale(1.06); }
.bar__nav { display: flex; align-items: center; gap: clamp(22px, 2.4vw, 34px); }
.bar__nav a { display: grid; place-items: center; height: 44px; min-width: 32px; }
/* иконки — силуэты из staticpalms (SoundCloud — облако из svg самого aligee) через CSS-маску:
   форму даёт файл, цвет — background-color */
.sicon {
  display: block;
  width: 24px;
  height: 24px;
  background-color: var(--ink);
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
  transition: background-color 0.25s, transform 0.35s var(--ease);
}
/* рамки разные, чтобы на глаз иконки были одного веса */
.sicon--spotify { --icon: url("icons/spotify.png"); }
.sicon--soundcloud { --icon: url("icons/soundcloud.svg"); width: 38px; height: 17px; }
.sicon--youtube { --icon: url("icons/youtube.png"); width: 29px; height: 29px; }
.sicon--instagram { --icon: url("icons/instagram.png"); width: 28px; height: 28px; }
.sicon--facebook { --icon: url("icons/facebook.png"); }
.sicon--x { --icon: url("icons/x.svg"); width: 21px; height: 21px; }
.bar__nav a:hover .sicon { background-color: var(--accent); transform: translateY(-2px); }
/* бургер в своём «отсеке» на всю высоту шапки, как кнопка в референсе;
   правый край черточек — на общем поле --m, как левый край лого */
.bar__bay {
  align-self: stretch;
  display: grid;
  place-content: center end;
  gap: 6px;
  padding: 0 var(--m) 0 clamp(28px, 3.4vw, 56px);
  border: 0;
  border-left: 1px solid rgba(242, 242, 240, 0.18); /* taste-skill-ignore: отсек кнопки из референса */
  background: none;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.3s;
}
.bar__burger span { display: block; width: 26px; height: 2px; background: currentColor; transition: transform 0.35s var(--ease); }
.bar__bay:hover { background: var(--bg); }
.menu-open .bar__bay { background: var(--bg); }
/* три черточки; при открытии средняя гаснет, крайние складываются в крестик */
.bar__burger span:nth-child(2) { transition: opacity 0.2s; }
.menu-open .bar__burger span:first-child { transform: translateY(8px) rotate(45deg); }
.menu-open .bar__burger span:nth-child(2) { opacity: 0; }
.menu-open .bar__burger span:last-child { transform: translateY(-8px) rotate(-45deg); }

/* ---------- меню: площадки крупным шрифтом на месте имени; имя уезжает вниз ---------- */
.menu {
  position: fixed;
  inset: 0;
  z-index: 5;
  /* пункты и соцсети — одна колонка с постоянным отступом между ними, поэтому они
     не могут наложиться ни на каком экране; колонка по центру по высоте, у левого поля
     (на телефоне — по центру, см. медиазапрос) */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(24px, 5svh, 56px);
  /* снизу — место под строку подвала, чтобы иконки на неё не садились */
  padding: var(--bar-h) var(--m) calc(var(--m) + 40px + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  background: transparent;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0s linear 0.5s;
}
.menu-open .menu { opacity: 1; visibility: visible; transition: opacity 0.5s var(--ease), visibility 0s; }
.menu__links { display: flex; flex-direction: column; align-items: flex-start; }
.menu__links a {
  /* 15svh: три строки + соцсети помещаются и на низких экранах (телефон боком, 1366×657) */
  font-size: clamp(44px, min(13vw, 15svh), 200px);
  line-height: 0.98;
  color: var(--ink);
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.45s var(--ease), transform 0.7s var(--ease), color 0.25s;
}
.menu__links a:hover, .menu__links a[aria-current="page"] { color: var(--accent); }
.menu-open .menu__links a { opacity: 1; transform: none; }
/* соцсети под пунктами меню */
.menu__social {
  /* два ряда по три: сверху музыкальные площадки, снизу соцсети (порядок задан в разметке) */
  display: grid;
  grid-template-columns: repeat(3, 52px);
  gap: 6px 24px;
  margin: 0 0 0 -12px;   /* иконка в 52px-ячейке: сдвиг, чтобы её край встал по краю букв */
  padding: 0;
  list-style: none;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.45s var(--ease) 0.3s, transform 0.7s var(--ease) 0.3s;
}
.menu-open .menu__social { opacity: 1; transform: none; }
.menu__social a { display: grid; place-items: center; width: 52px; height: 52px; }
.menu__social .sicon { transform: scale(1.25); }
.menu__social a:hover .sicon { background-color: var(--accent); }
.menu-open .menu__links a:nth-child(2) { transition-delay: 0.05s; }
.menu-open .menu__links a:nth-child(3) { transition-delay: 0.1s; }
.menu-open .menu__links a:nth-child(4) { transition-delay: 0.15s; }
.menu-open .menu__links a:nth-child(5) { transition-delay: 0.2s; }
.menu-open .menu__links a:nth-child(6) { transition-delay: 0.25s; }

.hero__name h1 { transform: scaleY(var(--name-scale, 1)); transform-origin: 50% 100%; transition: transform 0.7s var(--ease), opacity 0.5s var(--ease); }
.menu-open .hero__name h1 { transform: translateY(110%) scaleY(var(--name-scale, 1)); opacity: 0; }

/* ---------- портрет на весь экран ---------- */
.hero { position: relative; grid-row: 1 / 3; grid-column: 1; display: flex; align-items: flex-end; background: #000; }
.page > .bar { grid-row: 1; grid-column: 1; }
.page > .foot { grid-row: 3; grid-column: 1; }
/* Портрет чуть отдалён: левый и нижний края снимка чисто чёрные, поэтому фото прижато
   к правому верхнему углу и уменьшено — свободное место сливается с чёрным фоном героя. */
.hero { overflow: hidden; container-type: size; }
.hero__photo {
  position: absolute;
  top: 0;
  right: 0;
  /* 140cqh — снимок 1.547:1 помещается по высоте; но не уже 80% ширины, иначе на широких
     и низких окнах слева остаётся пустота (лишнее снизу просто обрезается) */
  width: max(min(84cqw, 140cqh), 80cqw);
  height: auto;
  z-index: 1;
}
/* узкие и вертикальные экраны: лицо по центру, правый (красный) край уходит за экран */
@media (max-aspect-ratio: 4/3) {
  .hero__photo { right: auto; width: auto; height: 78%; left: 50%; transform: translateX(-46%); }
}

/* ---------- имя и плашки ---------- */
.hero__name { position: relative; z-index: 2; width: 100%; padding: 0 var(--m); }
.hero__name h1 {
  font-stretch: var(--name-stretch);
  font-size: var(--name);
  line-height: 0.74;
  color: var(--ink);
  white-space: nowrap;
  margin-bottom: calc(var(--name) * -0.012);
}
.hero__line { display: inline-block; }


/* ---------- подвал: одна строка ---------- */
.foot {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px var(--m) clamp(12px, 2vh, 20px);
  background: var(--bg);
  font-size: 14px;
  color: var(--muted);
}
.foot a { color: var(--ink); transition: color 0.25s; }
.foot a:hover { color: var(--accent); }

/* ---------- движение ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero__photo { animation: settle 2.6s var(--ease) both; }
  .hero__name h1 { clip-path: inset(-10% 0 0 0); }
  .hero__line { animation: rise 1.1s var(--ease) both; }
  .hero__line + .hero__line { animation-delay: 0.1s; }
  .bar > * { animation: show 0.8s var(--ease) 0.3s both; }
}
@keyframes settle { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes show { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }


/* ---------- низкие экраны (телефон боком): соцсети в один ряд из шести ---------- */
@media (max-height: 520px) {
  .menu__social { grid-template-columns: repeat(6, 44px); gap: 0 14px; }
  .menu__social a { width: 44px; height: 44px; }
  .menu__social .sicon { transform: none; }
}

/* ---------- телефон ---------- */
@media (max-width: 760px) {
  /* ALIGEE одним словом во всю ширину: самое узкое начертание (62%, 2.619 кегля),
     чтобы слово было как можно выше */
  :root { --name: calc((100vw - 2 * var(--m)) / 2.619); --name-stretch: 62%; }
  /* слово чуть приподнято над подвалом */
  .hero__name { padding-bottom: clamp(16px, 4svh, 40px); }
  .bar__bay { border-left: 0; padding-left: 16px; }
  .menu__links a { font-size: clamp(48px, min(22vw, 11svh), 120px); }
  /* телефон: меню и соцсети по центру */
  .menu { background: var(--bg); align-items: center; }
  .menu__links { align-items: center; text-align: center; }
  .menu__social { margin: 0; }
  /* подвал в одну строку и на узких телефонах (360 и уже) */
  .foot { font-size: min(13px, 3.3vw); gap: 12px; white-space: nowrap; }
}

/* =====================================================================
   ABOUT — по слайдам презентации ALIGEE (Figma «ALIGEE Presentation»).
   Фото выгружены из Фигмы без надписей, тексты — настоящим текстом.
   ===================================================================== */
.is-inner .bar { position: sticky; top: 0; background: var(--bg); }
.is-inner .menu { background: var(--bg); }

.about { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: clamp(120px, 14vw, 220px); padding: clamp(40px, 6vw, 96px) 0 clamp(120px, 14vw, 220px); }
.about p { max-width: 62ch; }
.about strong { font-weight: 700; }
.about h2 { margin: 0; font-size: clamp(48px, 6.4vw, 112px); line-height: 0.9; }
.sec { position: relative; display: grid; align-content: start; grid-template-columns: repeat(12, 1fr); column-gap: clamp(12px, 1.6vw, 24px); padding: 0 var(--m); }
.body-l { font-size: clamp(18px, 1rem + 0.35vw, 22px); line-height: 1.5; }

/* красный свет из слайдов: размытое красное пятно, умноженное на растровое фото —
   белые точки становятся красными, чёрное остаётся чёрным */
.lit { position: relative; overflow: hidden; background: #000; }
.lit img { width: 100%; height: 100%; object-fit: cover; }
.lit::after {
  content: "";
  position: absolute;
  inset: var(--lit-inset, 0 0 0 62%);
  background: var(--red);
  filter: blur(60px);
  mix-blend-mode: multiply;
  pointer-events: none;
}

/* 1. Кто он */
.bio__lead {
  grid-column: 1 / -1;
  font-size: clamp(30px, 1rem + 3.3vw, 66px);
  line-height: 1.06;
  letter-spacing: -0.035em;
  max-width: none !important;
}
.bio__photo { grid-column: 7 / -1; grid-row: 2; margin-top: clamp(40px, 5vw, 80px); aspect-ratio: 4 / 5; --lit-inset: 0 0 0 70%; }
.bio__photo img { object-position: 40% 20%; }
.bio__side { grid-column: 1 / 6; grid-row: 2; align-self: end; display: grid; gap: 8px; }
.bio__wave { width: min(100%, 360px); aspect-ratio: 1; }
.bio__wave img { width: 100%; height: 100%; object-fit: cover; }

/* 2. Два миллиарда */
.streams__copy { grid-column: 1 / 7; }
.streams__num { font-size: clamp(56px, 7.6vw, 136px); line-height: 0.88; }
.streams__num span { display: block; font-weight: 400; text-transform: none; font-stretch: 100%; letter-spacing: -0.03em; margin-top: 0.12em; }
.streams__role { margin-top: 28px; font-weight: 700; }
.streams__copy p + p { margin-top: 1em; }
.streams__cover { margin-top: 48px; width: min(100%, 380px); aspect-ratio: 1; }
.streams__cover img { width: 100%; height: 100%; object-fit: cover; }
.streams__award { grid-column: 8 / -1; align-self: stretch; min-height: 100%; }
.streams__award img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; filter: grayscale(1) contrast(1.1); }

/* 3. Коллаборации — единственный центрированный момент страницы */
.collab { text-align: center; }
.collab > * { grid-column: 1 / -1; }
.collab p { margin: 24px auto 0; }
.collab__board { position: relative; width: min(100%, 1180px); margin: clamp(64px, 7vw, 110px) auto 0; }
.collab__board img { width: 100%; height: auto; }
.collab__name { position: absolute; font-size: clamp(15px, 0.8rem + 0.7vw, 26px); letter-spacing: -0.02em; white-space: nowrap; line-height: 1; }
.collab__name b { font-weight: 700; }
.collab__name--top { bottom: calc(100% + 12px); }
.collab__name--bottom { top: calc(100% + 18px); }
.collab__list { display: none; }

/* 4. Сцена */
.stage__copy { grid-column: 1 / 7; align-self: start; }
.stage__copy p { margin-top: 24px; }
.stage__events { grid-column: 1 / 7; align-self: start; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 64px; }
.stage__event h3 { margin: 0 0 14px; font-size: clamp(26px, 1rem + 1.6vw, 44px); font-weight: 400; letter-spacing: -0.03em; line-height: 1; }
.stage__event h3 b { font-weight: 700; }
.stage__event li { font-size: clamp(18px, 1rem + 0.5vw, 26px); list-style: none; line-height: 1.5; }
.stage__event ul { margin: 0; padding: 0; }
.stage__photo { grid-column: 8 / -1; grid-row: 1 / 4; aspect-ratio: 1200 / 2363; max-height: 120vh; --lit-inset: 0 0 55% 55%; }
.stage__photo img { object-position: 50% 0; }

/* 5. Релизы 2026 */
.releases__copy { grid-column: 1 / 8; }
.releases__copy p + p { margin-top: 1em; }
.releases__table { grid-column: 1 / 8; margin-top: 56px; border-collapse: collapse; width: 100%; font-size: clamp(16px, 0.9rem + 0.35vw, 21px); }
.releases__table th { text-align: left; font-weight: 700; white-space: nowrap; }
.releases__table td, .releases__table th { padding: 12px 0; vertical-align: baseline; }
/* пунктирные «отточия» между колонками, как в презентации */
.releases__table th span, .releases__table td span { display: flex; align-items: baseline; gap: 12px; }
.releases__table th span::after, .releases__table td.lead span::after { content: ""; flex: 1; border-bottom: 1px dashed rgba(242, 242, 240, 0.55); min-width: 24px; margin-right: 12px; transform: translateY(-4px); }
.releases__photo { grid-column: 9 / -1; grid-row: 1 / 3; aspect-ratio: 2 / 3; --lit-inset: 0 0 62% 20%; }
.releases__photo img { object-position: 50% 10%; }

.is-inner .foot { background: var(--bg); }

/* появление при прокрутке */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  .sec { display: block; }
  /* самое длинное слово — COLLABORATIONS (≈8.7 кегля): помещается в ширину телефона */
  .about h2 { font-size: min(10.2vw, 64px); }
  .streams__num { font-size: min(11.5vw, 64px); }
  .bio__photo, .stage__photo, .releases__photo { margin-top: 48px; width: 100%; max-height: none; }
  .bio__wave { display: none; }
  .streams__award { margin-top: 48px; width: 100%; min-height: 0; aspect-ratio: 4 / 5; }
  .collab__name { display: none; }
  .collab__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin: 28px 0 0; padding: 0; list-style: none; font-size: 18px; }
  .stage__events { grid-template-columns: 1fr; margin-top: 40px; }
  .releases__table { margin-top: 40px; }
  .releases__table, .releases__table tbody, .releases__table tr, .releases__table th, .releases__table td { display: block; }
  .releases__table tr { padding: 14px 0; }
  .releases__table th, .releases__table td { padding: 0; }
  .releases__table th span::after, .releases__table td.lead span::after { display: none; }
  .releases__table td:last-child { font-weight: 700; }
}

/* =====================================================================
   MUSIC — содержимое страницы оригинала (11 релизов, обложки, ссылки на Spotify)
   ===================================================================== */
.music { padding: clamp(32px, 5vw, 80px) var(--m) clamp(120px, 12vw, 200px); }
.music__title { font-size: clamp(56px, 9vw, 160px); line-height: 0.88; }
.music__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(36px, 4vw, 64px) clamp(12px, 1.6vw, 24px); margin: clamp(40px, 5vw, 80px) 0 0; padding: 0; list-style: none; }
.rel__link { display: grid; gap: 4px; }
.rel__cover { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: #111; margin-bottom: 14px; }
.rel__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease), filter 0.4s; }
/* «Learn more» из оригинала: появляется при наведении */
.rel__more {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  display: grid; place-items: center; height: 44px;
  background: var(--ink); color: #000; font-weight: 600;
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.rel__link:hover .rel__cover img, .rel__link:focus-visible .rel__cover img { transform: scale(1.04); filter: brightness(0.55); }
.rel__link:hover .rel__more, .rel__link:focus-visible .rel__more { opacity: 1; transform: none; }
.rel__title { font-family: var(--display); font-stretch: 87.5%; font-weight: 900; text-transform: uppercase; font-size: clamp(20px, 0.9rem + 0.8vw, 30px); line-height: 1; letter-spacing: -0.01em; }
.rel__by { color: var(--muted); font-size: 16px; }
@media (prefers-reduced-motion: no-preference) {
  .music__grid .rel:nth-child(4n+2) { --i: 1; }
  .music__grid .rel:nth-child(4n+3) { --i: 2; }
  .music__grid .rel:nth-child(4n+4) { --i: 3; }
}
@media (max-width: 900px) { .music__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .rel__by { font-size: 14px; } .rel__more { display: none; } }
