/* Прототипы первого экрана 2–6 (hero-2…6.html) поверх варианта B. После выбора нужный кусок переезжает в site.css, файл удаляется */

/* Переключатель вариантов — только для сравнения */
.hp-switch { position: fixed; right: 16px; bottom: 16px; z-index: 50; display: flex; align-items: center; gap: 2px; padding: 4px; background: rgba(24, 24, 27, .92); border-radius: 999px; font-size: 13px; line-height: 1; }
.hp-switch a, .hp-switch button { display: block; white-space: nowrap; padding: 8px 12px; border: 0; border-radius: 999px; background: none; color: #A1A1AA; font: inherit; text-decoration: none; cursor: pointer; }
.hp-switch a:hover, .hp-switch button:hover { color: #fff; }
.hp-switch a[aria-current] { background: #fff; color: var(--ink); }
@media (max-width: 720px) { .hp-switch { right: 50%; translate: 50% 0; font-size: 12px; } .hp-switch a, .hp-switch button { padding: 7px 9px; } }
.hp-switch hr { width: 1px; height: 16px; margin: 0 4px; border: 0; background: #3F3F46; }

@keyframes hp-up { 40% { color: var(--live, #0B6B3A); } } /* вспышка досчитанной цифры */

/* ===== 2. Канвас Figma ===== */
.hp-board { position: relative; margin: 0 16px; border-radius: 20px; background-color: var(--surface); background-image: radial-gradient(circle, #D4D4D8 1px, transparent 1.4px); background-size: 24px 24px; background-position: 12px 12px; overflow: hidden; }
.hp-board .hero-b { min-height: calc(100vh - 80px); min-height: calc(100svh - 80px); padding-top: clamp(56px, 7vw, 104px); }
.hp-frame-name { position: absolute; left: 20px; top: 14px; z-index: 3; display: flex; gap: 6px; font-size: 12px; color: var(--muted); }
.hp-frame-name b { font-weight: 400; color: var(--select); }
.hp-hint { position: absolute; right: 20px; top: 14px; z-index: 3; font-size: 12px; color: var(--faint); }
.hp-obj { position: relative; touch-action: auto; }
.hp-board .hero-b__title { align-self: flex-start; } /* рамка выделения обнимает текст, как Hug в Figma */
.hp-obj::before { content: ''; position: absolute; inset: -6px; border: 1px solid var(--select); opacity: 0; pointer-events: none; transition: opacity var(--fast) var(--ease); }
.hp-obj .sel { inset: -6px; display: none; }
.hp-obj .hp-size { position: absolute; left: 50%; bottom: -32px; z-index: 4; translate: -50% 0; padding: 4px 6px; border-radius: 3px; background: var(--select); color: #fff; font-size: 11px; line-height: 1; white-space: nowrap; display: none; font-variant-numeric: tabular-nums; }
.hp-obj.is-selected .sel, .hp-obj.is-selected .hp-size { display: block; }
.hp-obj.is-dragging { z-index: 5; }
@media (hover: hover) and (pointer: fine) {
  .hp-board [data-obj] { cursor: default; }
  .hp-board [data-obj]:hover::before { opacity: 1; }
  .hp-board [data-obj].is-dragging { cursor: grabbing; }
}
@media (hover: none), (pointer: coarse) { .hp-hint { display: none; } }
.hp-board .cursor { --dx: 0px; --dy: 0px; z-index: 6; animation: hp-cur-in 2.6s var(--ease) both, hp-cur-idle 5s ease-in-out 2.6s infinite alternate; }
.hp-board .cursor svg { width: 16px; height: 16px; }
.hp-board .cursor b { font-size: 12px; padding: 5px 9px; border-radius: 6px; } /* плашка имени не тесная */
@keyframes hp-cur-in { from { transform: translate(var(--fx), var(--fy)); opacity: 0; } 15% { opacity: 1; } to { transform: none; opacity: 1; } }
@keyframes hp-cur-idle { to { transform: translate(var(--ix, 6px), var(--iy, 4px)); } }
.hp-comment { position: absolute; z-index: 5; display: flex; align-items: flex-start; gap: 8px; }
.hp-comment__pin { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50% 50% 50% 0; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 0 0 1px rgba(0, 0, 0, .04); font-size: 11px; color: #fff; animation: hp-pop 400ms var(--ease) 1.2s both; }
.hp-comment__pin span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #FF7A1A; }
.hp-comment__card { width: 232px; padding: 10px 12px; border-radius: 10px; background: #fff; box-shadow: 0 4px 16px rgba(0, 0, 0, .08), 0 0 0 1px rgba(0, 0, 0, .04); font-size: 13px; line-height: 1.35; animation: hp-pop 400ms var(--ease) 1.8s both; transform-origin: 0 0; }
.hp-comment__msg + .hp-comment__msg { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); animation: hp-pop 400ms var(--ease) 3.2s both; }
.hp-comment__who { display: flex; align-items: center; gap: 6px; margin-bottom: 2px; font-size: 12px; color: var(--muted); }
.hp-comment__who i { width: 16px; height: 16px; border-radius: 50%; background: var(--c); }
@keyframes hp-pop { from { opacity: 0; transform: scale(.85); } }
.hp-board .hero-b__mid { position: relative; }
.hp-board .hp-comment { right: 0; bottom: calc(100% + 32px); }
.hp-board .cursor--pm { left: calc(100% + 4px); top: 8%; }
@media (max-width: 960px) {
  .hp-board { margin: 0 8px; border-radius: 16px; }
  .hp-board .hero-b { min-height: 0; padding-top: 72px; padding-bottom: 24px; }
  .hp-board .hp-comment { position: relative; right: auto; bottom: auto; grid-column: 1 / -1; order: 3; }
  .hp-board .cursor--pm { left: auto; right: 6%; top: -30px; }
  .hp-comment__pin { display: none; }
  .hp-comment__card { width: auto; max-width: 280px; }
  .hp-obj .hp-size { bottom: -28px; }
}

/* ===== 4. Раскатка релиза ===== */
:root { --live: #148049; } /* глубокий зелёный статуса Live, чуть светлее */
/* состояние задаёт data-step: 0 Draft, 1 Rolling out, 2 Live, 3 Better (по умолчанию — финал, если скрипт не сработал).
   Раскатка живёт в линии над цифрами: пока идёт — толстая чёрная, на финале гаснет до обычной линии варианта B */
.hp-roll .hero-b__bar { position: relative; }
.hp-roll .hero-b__bar > p { border-top: 0; }
.hp-roll .hero-b__bar > .hp-line { position: absolute; left: 0; right: 0; top: 0; height: 1px; padding: 0; border: 0; background: var(--line-strong); }
.hp-line > i { position: absolute; left: 0; right: 0; top: -1px; height: 3px; background: var(--ink); transform-origin: left; opacity: 0; transition: opacity var(--slow) var(--ease); }
/* «Rolling out» закреплён слева; над головой полосы — бабл с процентами, его хвостик всегда показывает на голову */
.hp-line__label { position: absolute; left: 0; bottom: 14px; display: flex; align-items: center; gap: 8px; white-space: nowrap; font-size: var(--text-caption); line-height: 1; color: var(--ink-2); opacity: 0; transition: opacity var(--base) var(--ease); }
.hp-line__label b { width: 7px; height: 7px; border-radius: 50%; background: var(--select); animation: hp-blink 900ms ease-in-out infinite alternate; }
.hp-roll[data-step="1"] .hp-line__label:not(.is-off) { opacity: 1; }
.hp-line__tag { --tag: var(--ink); position: absolute; left: 0; bottom: 14px; padding: 6px 9px; border-radius: 7px; background: var(--tag); color: #fff; font-size: 12px; line-height: 1; white-space: nowrap; font-variant-numeric: tabular-nums; opacity: 0; transition: opacity var(--base) var(--ease), background var(--base) var(--ease); }
.hp-line__tag::after { content: ''; position: absolute; top: 100%; left: var(--tail, 50%); translate: -50% 0; border: 5px solid transparent; border-top-color: var(--tag); border-bottom-width: 0; }
.hp-line__tag.is-on { opacity: 1; }
.hp-roll[data-step="2"] .hp-line__tag { --tag: var(--live); }
.hp-roll[data-step="3"] .hp-line__tag { opacity: 0; }
.hp-l2 { transition: color 1600ms cubic-bezier(.45, 0, .25, 1); }
.hp-roll .num { display: inline-block; min-width: 3.2ch; }
.hp-roll .num.is-up { animation: hp-up 700ms var(--ease); }

.hp-roll:not([data-step="3"]) .hp-line > i { opacity: 1; }
@keyframes hp-blink { to { opacity: .35; } }
/* «Then better.» темнеет уже на Live, вместе с перепиской — переход длинный и мягкий */
.hp-pre .hp-roll .hp-l2, .hp-roll:is([data-step="0"], [data-step="1"]) .hp-l2 { color: var(--line-strong); }
.hp-pre .hp-roll .hero-b__bar .num, .hp-roll:not([data-step="3"]) .hero-b__bar p .num { color: var(--faint); }
/* цифры сразу под заголовком, четыре колонки: третья начинается там же, где текст справа */
.hp-roll .hero-b__bar { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(56px, 6vw, 96px); }
@media (max-width: 720px) {
  .hp-roll .hero-b__bar { grid-template-columns: 1fr 1fr; row-gap: 0; margin-top: 48px; }
}

/* переписка у конца линии — карточка как комментарий в прототипе 2; появляется на 100%, точка Live — её «булавка» */
.hp-live { position: absolute; right: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%; background: var(--live); opacity: 0; transition: opacity var(--slow) var(--ease); }
.hp-live::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--live); animation: hp-live 2s ease-out infinite; }
@keyframes hp-live { from { opacity: .5; scale: 1; } to { opacity: 0; scale: 3; } }
.hp-roll[data-step="3"] .hp-live { opacity: 1; }
.hp-pre .hp-roll .hp-live { opacity: 0; } /* до старта раскатки точка не мелькает */
.hp-thread { position: absolute; right: 2px; bottom: 16px; z-index: 3; width: 248px; padding: 12px 14px; border-radius: 12px 12px 2px 12px; background: var(--bg); box-shadow: 0 4px 16px rgba(0, 0, 0, .08), 0 0 0 1px rgba(0, 0, 0, .05); font-size: 14px; line-height: 1.35; color: var(--ink); opacity: 0; translate: 0 6px; transform-origin: 100% 100%; scale: .96; transition: opacity var(--base) var(--ease), translate var(--base) var(--ease), scale var(--base) var(--ease); }
.hp-thread.is-on { opacity: 1; translate: 0 0; scale: 1; }
.hp-thread__msg { opacity: 0; translate: 0 4px; transition: opacity var(--base) var(--ease), translate var(--base) var(--ease); }
.hp-thread__msg.is-on { opacity: 1; translate: 0 0; }
.hp-thread__msg + .hp-thread__msg { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.hp-roll .hp-thread p { display: block; padding: 0; }
.hp-roll .hp-thread .hp-thread__who { display: flex; flex-direction: row; align-items: center; gap: 6px; margin-bottom: 4px; font-size: 12px; color: var(--muted); }
.hp-thread__who i { flex: none; display: grid; place-items: center; width: 18px; height: 18px; overflow: hidden; border-radius: 50%; background: var(--c); color: #fff; font: normal 10px/1 var(--font); }
.hp-thread__who i img { width: 100%; height: 100%; object-fit: cover; }
.hp-roll .hp-thread.is-on ~ .hp-line__tag { opacity: 0; }
.hp-pre .hp-roll .hp-thread { opacity: 0; }

/* заметка к релизу у каждой цифры: при наведении или фокусе */
.hp-roll .hero-b__bar > p[data-note] { position: relative; outline-offset: 6px; }
.hp-roll .hero-b__bar > p[data-note] .muted { text-decoration: underline dotted var(--line-strong); text-underline-offset: 4px; }
.hp-roll .hero-b__bar > p[data-note]::after { content: attr(data-note); position: absolute; left: 0; top: calc(100% + 4px); z-index: 4; width: max-content; max-width: 240px; padding: 8px 12px; border-radius: 10px; background: var(--bg); box-shadow: 0 4px 16px rgba(0, 0, 0, .08), 0 0 0 1px rgba(0, 0, 0, .05); font-size: 13px; line-height: 1.35; color: var(--ink-2); opacity: 0; translate: 0 -4px; pointer-events: none; transition: opacity var(--fast) var(--ease), translate var(--fast) var(--ease); }
.hp-roll .hero-b__bar > p[data-note]:hover::after, .hp-roll .hero-b__bar > p[data-note]:focus-visible::after { opacity: 1; translate: 0 0; }
.hp-roll .hero-b__bar > p[data-note]:last-of-type::after { left: auto; right: 0; } /* у крайней цифры заметка открывается влево, иначе вылезает за экран */
@media (hover: hover) and (pointer: fine) { .hp-roll .hero-b__bar > p[data-note] { cursor: help; } }
/* уже 1280 заголовок доходит до правого края — переписке нужно место между ним и линией */
@media (max-width: 1279px) { .hp-roll .hero-b__bar { margin-top: 152px; } }
@media (max-width: 720px) {
  .hp-roll .hero-b__bar > p[data-note]:nth-of-type(even)::after { left: auto; right: 0; }
  .hp-roll .hero-b__bar > p[data-note]:focus::after { opacity: 1; translate: 0 0; }
}

/* заголовок плотнее */
.home-b .hp-roll .hero-b__title { line-height: .86; }

/* ===== Selected work наезжает на первый экран листом ===== */
/* экран прилипает под шапкой (если он выше окна — так, чтобы был виден его низ), лист с работами едет поверх;
   где есть анимации по прокрутке, экран под листом уменьшается и гаснет, а углы листа выпрямляются */
.hp-stack { position: relative; }
.hp-stack > .hp-dots { position: sticky; top: var(--hp-stick, 64px); z-index: 0; transform-origin: 50% 30%; }
.hp-sheet { position: relative; z-index: 1; background: var(--bg); border-radius: 32px 32px 0 0; box-shadow: 0 -1px 0 var(--line), 0 -32px 64px -24px rgba(24, 24, 27, .14); }
@supports (animation-timeline: view()) {
  .hp-stack { timeline-scope: --hp-sheet; }
  .hp-sheet { view-timeline: --hp-sheet block; animation: hp-sheet linear both; animation-timeline: --hp-sheet; animation-range: entry 0% entry 100%; }
  .hp-stack > .hp-dots { animation: hp-recede linear both; animation-timeline: --hp-sheet; animation-range: entry 10% entry 100%; }
}
@keyframes hp-sheet { from { border-radius: 48px 48px 0 0; } to { border-radius: 0; } }
@keyframes hp-recede { to { scale: .9; opacity: .2; } }
@media (prefers-reduced-motion: reduce) { .hp-sheet, .hp-stack > .hp-dots { animation: none; } }

/* первый экран на светло-сером канвасе с точками, как в прототипе 2; лист с работами — белый */
.hp-dots { margin: 16px 16px 0; border-radius: 20px; background-color: var(--surface); } /* серый, без точек; отступ сверху как по бокам */
.hp-dots .hero-b { min-height: calc(100vh - 32px); min-height: calc(100svh - 32px); padding-top: clamp(128px, 12vw, 184px); } /* заголовок с раскаткой ниже, сверху место под капсулу */
@media (max-width: 960px) { .hp-dots { margin: 8px 8px 0; border-radius: 16px; } }

/* Selected work: больше воздуха */
.hp-sheet .work-b { padding-top: calc(var(--section) * 1.2); padding-bottom: var(--section); }
.hp-sheet .work-b__head { padding-bottom: 64px; }
@media (min-width: 961px) {
  .hp-sheet .prow > a, .hp-sheet .prow > div { padding: 48px 0; }
  .hp-sheet .prow { min-height: 160px; }
  .hp-sheet .prow.is-active { min-height: 396px; }
  .hp-sheet .prow__facts { bottom: 48px; }
}
@media (max-width: 960px) { .hp-sheet .prow > a, .hp-sheet .prow > div { padding: 40px 0; } }

/* ===== Конец страницы — канвас, как первый экран прототипа 2 ===== */
.hp-board--foot { margin: var(--block) 16px 16px; background-image: none; } /* серый фон без точек */
/* раскладка как в футере старого портфолио: вступление, почта слева и заголовок справа, под линией колонки и «наверх», внизу авторство */
.ft { display: grid; gap: clamp(56px, 7vw, 112px); padding-top: clamp(96px, 10vw, 160px); }
.ft__intro { max-width: 28em; font-size: var(--text-lead); line-height: 1.45; color: var(--muted); }
.ft__intro > span:first-child { display: block; margin-bottom: 6px; font-size: var(--text-h3); line-height: 1.2; letter-spacing: -0.02em; color: var(--ink); }
.ft__main { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.ft__title { font-size: clamp(44px, calc(27.6px + 4.2vw), 96px); line-height: .94; text-align: right; }
.ft__mail { flex: none; }
.ft__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-top: 24px; border-top: 1px solid var(--line-strong); }
.hp-board--foot .ft__cols > [data-obj] { width: auto; display: grid; gap: 12px; align-content: start; }
.ft__cols p:not(.label) { font-size: var(--text-small); }
.ft__top { justify-self: end; align-self: end; display: flex; align-items: center; gap: 14px; font-size: var(--text-label); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); text-decoration: none; }
.ft__circle { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--line-strong); border-radius: 50%; transition: background var(--fast) var(--ease), color var(--fast) var(--ease); }
.ft__top:hover .ft__circle { background: var(--ink); color: #fff; border-color: var(--ink); }
.ft__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: calc(-1 * clamp(24px, 4vw, 64px)); padding-bottom: 24px; }
.ft__base .heart { color: var(--me); }
@media (max-width: 720px) {
  .ft__main { flex-direction: column; align-items: flex-start; gap: 32px; }
  .ft__title { order: -1; text-align: left; }
  .ft__cols { grid-template-columns: 1fr 1fr; row-gap: 28px; }
}

/* курсоры ходят по канвасу от точки к точке (порядок задан в data-wander), как в прототипе 2 */
.cursor[data-wander] { position: absolute; z-index: 6; pointer-events: none; transition: left 4.5s cubic-bezier(.45, 0, .25, 1), top 4.5s cubic-bezier(.45, 0, .25, 1); } /* медленный дрейф рядом со своим местом, без мельтешения */
.hp-dots { position: relative; overflow: clip; } /* курсор у края не расширяет страницу */
.hp-dots > .cursor b { font: 400 12px/1 var(--font); letter-spacing: 0; }
.hp-board--foot .contact-b { padding-top: clamp(96px, 10vw, 160px); }
.hp-board--foot [data-obj] { width: fit-content; }
@media (hover: hover) and (pointer: fine) { .hp-board--foot [data-obj] { -webkit-user-select: none; user-select: none; } } /* тянешь — двигается блок, а не выделяется текст; почту копирует кнопка Copy */
/* курсоры прилетают, когда канвас показался на экране, а не при загрузке страницы */
.hp-board--foot:not(.is-seen) .cursor { animation-play-state: paused; }
@media (max-width: 960px) {
  .hp-board--foot { margin: var(--block) 8px 8px; }
}

/* ===== Selected work карточками (hero-5) — по мотивам Skillset у pamidordesign.co ===== */
.clist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); overflow-x: clip; } /* строки выезжают из-за правого края — без обрезки они расширяют страницу на телефоне */
.crow { border-bottom: 1px solid var(--line-strong); transition: opacity 400ms var(--ease); }
.crow > a, .crow > div { display: grid; grid-template-columns: 64px minmax(0, 1.1fr) minmax(0, 1fr) auto; align-items: center; column-gap: 32px; padding: 48px 0; color: inherit; text-decoration: none; }
.crow__n { align-self: start; padding-top: .15em; font-size: var(--text-caption); color: var(--muted); font-variant-numeric: tabular-nums; }
.crow__name { font-size: var(--text-small); line-height: 1.4; font-weight: 400; color: var(--muted); } /* название проекта — мелкая серая подпись над описанием */
.crow__facts { display: flex; flex-direction: column; gap: 6px; font-size: var(--text-small); color: var(--muted); } /* достижения — каждое на своей строке */
.crow__facts b { font-weight: 400; color: var(--ink); }
.crow__cta .arr { display: inline-block; transition: transform 300ms cubic-bezier(.22, 1, .36, 1); }
.crow > a:hover .crow__cta { background: var(--ink); border-color: var(--ink); color: #fff; }
.crow > a:hover .crow__cta .arr { transform: rotate(-45deg); }
.crow__img { display: none; }
/* наведена одна строка — остальные затухают */
.clist:has(.crow:hover) .crow:not(:hover) { opacity: .2; }
/* строки выезжают справа налево, по очереди, когда список показался на экране */
.js .crow { opacity: 0; translate: 0 12px; transition: opacity 600ms ease calc(var(--i) * 90ms), translate 600ms ease calc(var(--i) * 90ms); } /* строки появляются снизу вверх, как «What could cost $10,000» у superpower.com */
.js .clist.is-in .crow { opacity: 1; translate: 0 0; }
.js .clist.is-in:has(.crow:hover) .crow:not(:hover) { opacity: .2; transition-delay: 0ms; }
.js .clist.is-in .crow:hover { transition-delay: 0ms; }
/* превью висит у курсора поверх списка */
.work-c { position: relative; }
.cfloat { position: fixed; left: 0; top: 0; z-index: 30; width: clamp(260px, 26vw, 400px); aspect-ratio: 4 / 3; overflow: hidden; pointer-events: none; opacity: 0; scale: .6; transition: opacity 300ms var(--ease), scale 400ms cubic-bezier(.22, 1, .36, 1); box-shadow: 0 24px 60px -20px rgba(24, 24, 27, .35); }
.cfloat.is-on { opacity: 1; scale: 1; }
.cfloat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 250ms var(--ease); }
.cfloat img.is-on { opacity: 1; }
@media (max-width: 960px), (hover: none) {
  .cfloat { display: none; }
  .crow > a, .crow > div { grid-template-columns: 40px minmax(0, 1fr); row-gap: 16px; padding: 40px 0; }
  .crow__n { padding-top: .15em; }
  .crow__facts, .crow__cta, .crow__img { grid-column: 2; }
  .crow__cta { justify-self: start; }
  .crow__img { display: block; width: 100%; height: auto; } /* без скругления, как объекты на канвасе */
  .clist:has(.crow:hover) .crow:not(:hover), .js .clist.is-in:has(.crow:hover) .crow:not(:hover) { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .js .crow { opacity: 1; translate: none; transition: none; } .cfloat { transition: none; } }

/* ===== Шапка-капсула (по мотивам prestonb.xyz): сверху по центру, подсветка ездит под пунктом, справа фото ===== */
.pill-head { height: 0; } /* своей полосы у шапки нет: капсула висит поверх плашек */
.pill { position: fixed; top: 14px; left: 50%; translate: -50% 0; z-index: 40; display: flex; align-items: center; gap: 2px; padding: 6px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .82); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); box-shadow: 0 6px 24px -12px rgba(24, 24, 27, .18); }
.pill > a { position: relative; z-index: 1; padding: 10px 18px; border-radius: 999px; font-size: var(--text-caption); line-height: 1; color: var(--muted); text-decoration: none; transition: color var(--fast) var(--ease); }
.pill > a:hover, .pill > a.is-on { color: var(--ink); }
.pill__hl { position: absolute; top: 6px; bottom: 6px; left: 0; width: 0; opacity: 0; border-radius: 999px; background: #EDEDEF; transition: translate 380ms cubic-bezier(.22, 1, .36, 1), width 380ms cubic-bezier(.22, 1, .36, 1), opacity var(--fast) var(--ease); }
.pill__me { margin-left: 6px; width: 40px; height: 40px; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); cursor: pointer; transition: border-color var(--fast) var(--ease), scale var(--fast) var(--ease); }
.pill__me:hover, .pill__me[aria-expanded="true"] { border-color: var(--line-strong); }
.pill__me:focus-visible { outline-width: 1px; outline-offset: 2px; }
.pill__me img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 720px) { .pill > a { padding: 10px 12px; } .pill__me { margin-left: 2px; } }

/* Info — как вкладка Info в меню старого портфолио */
.info-scrim { position: fixed; inset: 0; z-index: 38; background: rgba(24, 24, 27, .28); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; visibility: hidden; transition: opacity 300ms var(--ease), visibility 0s 300ms; }
.info { position: fixed; top: 76px; left: 50%; z-index: 39; width: min(460px, calc(100vw - 24px)); max-height: calc(100svh - 92px); overflow-y: auto; display: grid; gap: 24px; padding: 28px; border-radius: 24px; background: var(--bg); box-shadow: 0 30px 70px -20px rgba(24, 24, 27, .35), 0 0 0 1px rgba(0, 0, 0, .05); translate: -50% -8px; scale: .97; transform-origin: 50% 0; opacity: 0; visibility: hidden; transition: opacity 260ms var(--ease), translate 360ms cubic-bezier(.22, 1, .36, 1), scale 360ms cubic-bezier(.22, 1, .36, 1), visibility 0s 360ms; }
.info-open .info-scrim { opacity: 1; visibility: visible; transition: opacity 300ms var(--ease); }
.info-open .info { opacity: 1; visibility: visible; translate: -50% 0; scale: 1; transition: opacity 260ms var(--ease), translate 360ms cubic-bezier(.22, 1, .36, 1), scale 360ms cubic-bezier(.22, 1, .36, 1); }
.info:focus { outline: none; }
.info__close { position: absolute; top: 18px; right: 18px; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: #F1F1F3; color: var(--ink); cursor: pointer; }
.info__close:hover { background: var(--line); }
.info__top { display: flex; align-items: center; gap: 16px; } /* фото у правого края, по центру блока из трёх строк; круг чуть выше текста (88 px при блоке ~81 px от букв до букв) — оптически они равны */
.info__who { flex: 1; min-width: 0; display: grid; gap: 6px; }
.info__hello { font-size: var(--text-small); color: var(--muted); }
.info__hello + .info__top { margin-top: -18px; } /* «Hello,» над блоком, фото выровнено по блоку из трёх строк под ним */
.info__name { font-size: 28px; line-height: 1.1; letter-spacing: -0.02em; } /* основной шрифт, как «Hi, I’m Angelina» */
.info__role { font-size: 17px; line-height: 1.25; color: var(--ink-2); }
.info__meta { margin-top: 10px; white-space: nowrap; }
.info__photo { flex: none; width: 88px; height: 88px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line-strong); }
.info__text { font-size: var(--text-body); line-height: 1.45; }
.info__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.info__chips span { padding: 7px 11px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 12px; line-height: 1; color: var(--ink-2); }
.info__links { padding-top: 20px; border-top: 1px solid var(--line); font-size: var(--text-small); color: var(--muted); } /* ссылки как в футере */
.info__mail { width: 100%; } /* кнопка почты на всю ширину */
@media (max-width: 480px) { .info { padding: 20px; gap: 20px; } .info__meta { white-space: normal; } .info__photo { width: 80px; height: 80px; } .info__name { font-size: 24px; } }
@media (prefers-reduced-motion: reduce) { .info, .info-scrim, .pill__hl { transition: none; } }

/* ===== Прототип 6: первый экран и футер — плашками, About — на весь экран ===== */

/* About: при переходе из шапки — сразу к плашке, без белой полосы над ней */
#about { scroll-margin-top: calc(-1 * var(--section) - 24px); }
/* прототип 6: About тоже на весь экран */
.hp-full .about-stage { margin: 0; border-radius: 0; }
html.js .hp-full .about-pin.is-canvas .about-stage { top: 0; height: 100vh; height: 100svh; }
.hp-full #about { scroll-margin-top: calc(-1 * var(--section) - 96px); }

/* вместо системной стрелки — цветной курсор Client, как в About: в футере, а в прототипе 6 и на первом экране */
@media (hover: hover) and (pointer: fine) {
  .hp-full .hp-dots, .hp-full .hp-dots *, .hp-board--foot, .hp-board--foot * { cursor: none; }
  .hp-board--foot > .client-cursor { z-index: 8; }
  .hp-dots > .client-cursor { z-index: 8; }
}

/* Experience: заглушки логотипов слева от должности */
.f-exp:has(.f-logo) { grid-template-columns: auto minmax(0, 1fr); align-items: start; column-gap: 3cqw; } /* лого по верхнему краю */
.f-logo { display: grid; place-items: center; width: 9cqw; height: 9cqw; border-radius: 2cqw; background: #F1F1F3; border: 1px dashed var(--line-strong); font-size: max(9px, 2.4cqw); line-height: 1; color: var(--muted); }

/* футер: ссылки и картинки внутри блоков не перетаскиваются браузером — тянется сам блок */
.hp-board--foot [data-obj] a, .hp-board--foot [data-obj] img { -webkit-user-drag: none; user-drag: none; }
/* подсказка над блоком при первом перетаскивании */
.hp-drag-hint { position: absolute; left: 0; bottom: calc(100% + 12px); z-index: 7; padding: 6px 10px; border-radius: 6px; background: var(--ink); color: #fff; font: 400 12px/1 var(--font); letter-spacing: 0; white-space: nowrap; pointer-events: none; opacity: 0; translate: 0 4px; transition: opacity 200ms var(--ease), translate 200ms var(--ease); }
.hp-drag-hint.is-on { opacity: 1; translate: 0 0; }

/* Кнопки: чёрные, текст обычного начертания; по наведению текст перемешивается (data-scramble), стрелка поворачивается */
.btn-ink { display: inline-flex; align-items: center; justify-content: space-between; gap: 14px; height: 52px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font: 400 var(--text-small)/1 var(--font); letter-spacing: 0; text-decoration: none; white-space: nowrap; cursor: pointer; }
.btn-ink svg { flex: none; width: 16px; height: 16px; transition: rotate 300ms cubic-bezier(.22, 1, .36, 1); }
.btn-ink:hover svg, a:hover > .btn-ink svg { rotate: 45deg; }
.btn-ink--s { height: 36px; padding: 0 16px; gap: 8px; font-size: var(--text-caption); }
.btn-ink .arr { display: inline-block; transition: transform 300ms cubic-bezier(.22, 1, .36, 1); }

/* точки между LinkedIn · Behance — с отступами вдвое шире пробела */
.info__links .sep, .ft__links .sep { margin: 0 .5em; }

/* Подпись «10 years / Consumer, B2B, AI»: две строки, мельче h2, сферы приглушены */
.hp-roll .hero-b__years { font-size: var(--text-h3); line-height: 1.1; }
.hp-roll .hero-b__years span { display: block; color: var(--muted); }

/* Selected work: под названием — что это за продукт */

/* How I work: номера [001] над заголовками; четыре колонки на пробу */
.ruler-cols__n { margin-bottom: 8px; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (min-width: 721px) { .how .ruler-cols--4 { grid-template-columns: repeat(4, 1fr); } .how .ruler-cols--4 > div { padding: 0 28px; } } /* отступ полями, а не gap: центры колонок остаются ровно над длинными делениями */
/* линейка под четыре пункта: 64 деления, длинные на 8, 24, 40, 56; к краям деления растворяются */
.ruler--4::before { background: repeating-linear-gradient(90deg, rgba(24, 24, 27, .12) 0 1px, transparent 1px calc(100% / 64));
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); }

/* Заголовок карточки в одну строку: размер считается от ширины колонки (самый длинный заголовок ≈ 18,4 em) */
/* Карточка проекта: название мелко, описание средним размером, цифры некрупно столбиком; кнопке постоянная колонка, чтобы цифры стояли ровно */
.crow > a, .crow > div { grid-template-columns: 64px minmax(0, 1.1fr) minmax(0, 1fr) 140px; }
.crow__cta { justify-self: end; }
.crow__what { margin-top: 6px; font-size: clamp(20px, 1.7vw, 26px); line-height: 1.2; letter-spacing: -0.015em; color: var(--ink); }
@media (max-width: 720px) { .crow > a, .crow > div { grid-template-columns: 40px minmax(0, 1fr); } .crow__cta { justify-self: start; } }

/* Появление первого экрана снизу вверх, как блоки «How it works» у superpower.com: прозрачность 750 мс линейно, сдвиг 24px за 750 мс expo.out, шаг 150 мс.
   Порядок сверху вниз: меню, заголовок, ряд цифр, подпись с кнопкой, абзац. Раскатка линии стартует через 500 мс и идёт поверх */
@keyframes hp-rise-o { from { opacity: 0; } }
@keyframes hp-rise-y { from { transform: translateY(24px); } }
html.js .pill-head .pill, html.js .hp-roll .hero-b__title, html.js .hp-roll .hero-b__bar, html.js .hp-roll .hero-b__lead, html.js .hp-roll .hero-b__text {
  animation: hp-rise-o 750ms linear both, hp-rise-y 750ms cubic-bezier(.16, 1, .3, 1) both; }
html.js .hp-roll .hero-b__title { animation-delay: 0ms, 0ms; }
html.js .pill-head .pill { animation-delay: 150ms, 150ms; }
html.js .hp-roll .hero-b__bar { animation-delay: 300ms, 300ms; }
html.js .hp-roll .hero-b__lead { animation-delay: 450ms, 450ms; }
html.js .hp-roll .hero-b__text { animation-delay: 600ms, 600ms; }
@media (prefers-reduced-motion: reduce) { html.js .pill-head .pill, html.js .hp-roll .hero-b__title, html.js .hp-roll .hero-b__bar, html.js .hp-roll .hero-b__lead, html.js .hp-roll .hero-b__text { animation: none; } }

/* Прототип 7: полоса раскатки толщиной с плашку в кнопке [See the work] (12px), статус и проценты внутри полосы тем же шрифтом.
   Текст белый с режимом difference: на светлой части полосы он тёмный, на залитой чёрным — светлый */
.hp-roll--bar .hero-b__bar > .hp-line { height: 12px; background: var(--line); }
.hp-roll--bar .hp-line > i { top: 0; height: 12px; }
.hp-roll--bar .hero-b__bar > p { padding-top: 36px; }
.hp-roll--bar .hp-line__label { left: 8px; top: 0; bottom: auto; height: 12px; gap: 8px; font: 400 12px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: #fff; mix-blend-mode: difference; opacity: 1; font-variant-numeric: tabular-nums; }
.hp-roll--bar .hp-line__label.is-off { opacity: 1; }
.hp-roll--bar .hp-line__label b { width: 6px; height: 6px; background: #fff; }
.hp-roll--bar:is([data-step="2"], [data-step="3"]) .hp-line__word { display: none; }
.hp-roll--bar[data-step="3"] .hp-line__label b { animation: none; }
.hp-roll--bar .hp-line__tag { display: none; }
.hp-roll--bar .hp-live { top: 0; right: -18px; width: 12px; height: 12px; }
.hp-roll--bar .hp-thread { bottom: 24px; }
.hp-pre .hp-roll--bar .hp-line__label { opacity: 0; }
@media (max-width: 720px) { .hp-roll--bar .hero-b__bar > p { padding-top: 28px; } }
