﻿:root {
  --bg: #0b0b0c;
  --fg: #f5f5f6;
  --dim: #8e8e95;
  --dimmer: #5b5b62;
  --line: #1e1e21;
  --panel: #151517;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 720px;
  --pad: clamp(20px, 5vw, 40px);
  --nav-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--fg);
  font-family: var(--font); font-weight: 400; font-size: 16px; line-height: 1.6;
  font-feature-settings: "cv11", "ss03", "calt";
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column;
}
body.locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
::selection { background: var(--fg); color: var(--bg); }
.mono { font-size: .8rem; font-weight: 500; letter-spacing: .01em; }
em { font-style: normal; color: var(--dim); }

/* static dot grid across the whole background */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(255,255,255,.22) 1px, transparent 1.3px);
  background-size: 26px 26px; background-position: center;
}
.page, .footer, .nav, .menu { position: relative; z-index: 2; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 60; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 0 var(--pad); background: rgba(11,11,12,.8);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.logo { font-size: 1.25rem; font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.logo span { color: var(--dim); font-weight: 500; }

.nav__links { display: flex; gap: 4px; }
.nav__links a { padding: 8px 14px; border-radius: 10px; font-size: .9rem; font-weight: 500; color: var(--dim); transition: color .2s, background .2s; }
.nav__links a:hover { color: var(--fg); }
.nav__links a.on { color: var(--fg); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }

.burger { display: none; position: relative; width: 44px; height: 44px; border-radius: 12px; }
.burger:hover { background: var(--panel); }
.burger i { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--fg); }
.burger i:nth-child(1) { top: 17px; } .burger i:nth-child(2) { top: 26px; }
.burger[aria-expanded="true"] i:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
.burger[aria-expanded="true"] i:nth-child(2) { top: 21.5px; transform: rotate(-45deg); }

.menu { position: fixed; inset: 0; z-index: 55; background: var(--bg); display: none; flex-direction: column; justify-content: center; gap: 6px; padding: 90px var(--pad) var(--pad); }
.menu.open { display: flex; }
.menu a { font-size: clamp(2.4rem, 11vw, 4rem); font-weight: 700; letter-spacing: -.045em; line-height: 1.15; color: var(--dimmer); }
.menu a:hover, .menu a.cur { color: var(--fg); }

/* ---------- home ---------- */
.home { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 50px var(--pad) 70px; }
.avatar { width: 152px; height: 152px; margin-bottom: 30px; border-radius: 50%; padding: 5px; border: 1px solid #2b2b2f; background: var(--bg); }
.avatar__img { position: relative; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; background: var(--panel); display: grid; place-items: center; }
.avatar__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; z-index: 1; }
.avatar__mono { font-size: 3.6rem; font-weight: 700; letter-spacing: -.05em; }

.name { font-size: clamp(3.6rem, 13vw, 7.6rem); font-weight: 700; line-height: 1; letter-spacing: -.055em; }
.role { margin-top: 12px; font-size: clamp(1.05rem, 2.6vw, 1.25rem); font-weight: 500; color: var(--dim); letter-spacing: -.01em; }

.socials { display: flex; gap: 10px; margin-top: 34px; }
.ico { position: relative; width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--panel); border: 1px solid var(--line); color: var(--dim); transition: background .2s, color .2s, border-color .2s; }
.ico svg { width: 22px; height: 22px; fill: currentColor; }
.ico svg.st { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ico:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* ---------- inner pages ---------- */
.page:not(.home) { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: clamp(50px, 9vw, 96px) var(--pad) clamp(70px, 10vw, 110px); flex: 1; }
.ph__tag { display: block; color: var(--dim); margin-bottom: 14px; }
.ph__title { font-size: clamp(2.8rem, 9vw, 4.8rem); font-weight: 700; line-height: 1.05; letter-spacing: -.05em; }
.ph__text { color: var(--dim); margin-top: 20px; font-size: 1.05rem; max-width: 560px; }

.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: 40px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.facts div { background: var(--panel); padding: 20px 24px; display: flex; flex-direction: column; gap: 2px; }
.facts dt { color: var(--dim); }
.facts dd { font-size: 1.05rem; font-weight: 600; letter-spacing: -.01em; }

.sub { color: var(--dim); margin: 56px 0 16px; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pcard { padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }
.pcard span { color: var(--dimmer); }
.pcard h3 { font-size: 1.5rem; font-weight: 700; letter-spacing: -.04em; margin: 26px 0 6px; }
.pcard p { color: var(--dim); font-size: .92rem; }

.groups { margin-top: 44px; display: flex; flex-direction: column; gap: 30px; }
.group h2 { color: var(--dim); margin-bottom: 12px; font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { padding: 11px 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); font-size: 1.05rem; font-weight: 600; letter-spacing: -.02em; transition: background .2s, color .2s, border-color .2s; }
.chips li:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }

.list { margin-top: 36px; border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 44px 1fr auto 24px; align-items: center; gap: 12px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.row span, .row em { color: var(--dim); }
.row b { font-size: clamp(1.4rem, 4vw, 1.9rem); font-weight: 600; letter-spacing: -.04em; line-height: 1.15; }
.row i { font-style: normal; text-align: right; color: var(--dim); transition: color .2s; }
.row:hover i, .row:hover b { color: var(--fg); }

.mail { display: inline-flex; align-items: center; gap: 14px; margin-top: 30px; padding: 15px 26px; border-radius: 14px; background: var(--fg); color: var(--bg); font-size: 1.05rem; font-weight: 600; letter-spacing: -.01em; transition: opacity .2s; }
.mail:hover { opacity: .86; }
.mail i { font-style: normal; }

.footer { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px var(--pad); border-top: 1px solid var(--line); color: var(--dim); background: rgba(11,11,12,.85); }

@media (max-width: 760px) {
  .nav__links { display: none; }
  .burger { display: block; }
  .principles { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .row { grid-template-columns: 30px 1fr 20px; } .row em { display: none; }
  .facts { grid-template-columns: 1fr; }
  .ico { width: 50px; height: 50px; }
}

/* contact */
.hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0 26px; }
.ways { font-size: clamp(1.25rem, 3.4vw, 1.6rem); font-weight: 600; letter-spacing: -.03em; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.contacts { display: flex; flex-direction: column; gap: 26px; padding: 0 0 0 14px; }
.contacts dt { font-size: .74rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-bottom: 4px; }
.contacts dd { font-size: 1.1rem; font-weight: 500; letter-spacing: -.01em; }
.contacts a { transition: color .2s; }
.contacts a:hover { color: var(--dim); }

/* ---------- music player ---------- */
.player { width: min(440px, 100%); margin-top: 26px; padding: 14px 16px 12px; border: 1px solid var(--line); border-radius: 20px; background: rgba(21,21,23,.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); text-align: left; }
.player__top { display: flex; align-items: center; gap: 12px; }
.player__cover { flex: none; width: 52px; height: 52px; border-radius: 12px; overflow: hidden; background: #1c1c1f; border: 1px solid var(--line); display: grid; place-items: center; color: var(--dim); }
.player__cover img { width: 100%; height: 100%; object-fit: cover; }
.player__cover svg { width: 22px; height: 22px; }
.player__cover svg.st { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.player__meta { flex: 1; min-width: 0; }
.player__title { font-size: .95rem; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player__artist { font-size: .8rem; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player__ctrl { flex: none; display: flex; align-items: center; gap: 4px; }
.pbtn { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--dim); transition: color .2s, background .2s, opacity .2s; }
.pbtn svg { width: 18px; height: 18px; fill: currentColor; }
.pbtn:hover:not(:disabled) { color: var(--fg); background: var(--panel); }
.pbtn:disabled { opacity: .35; cursor: default; }
.pbtn--main { width: 42px; height: 42px; background: var(--fg); color: var(--bg); }
.pbtn--main:hover:not(:disabled) { background: var(--fg); color: var(--bg); opacity: .85; }
.pbtn--main svg { width: 20px; height: 20px; }
.pbtn--main .i-pause { display: none; }
.player.is-playing .pbtn--main .i-play { display: none; }
.player.is-playing .pbtn--main .i-pause { display: block; }

.player__bar { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.ptime { flex: none; width: 34px; font-size: .72rem; font-variant-numeric: tabular-nums; color: var(--dim); }
.ptime:nth-of-type(2) { text-align: left; }
.prange { -webkit-appearance: none; appearance: none; flex: 1; height: 16px; background: transparent; cursor: pointer; --p: 0%; }
.prange:disabled { opacity: .4; cursor: default; }
.prange::-webkit-slider-runnable-track { height: 3px; border-radius: 3px; background: linear-gradient(to right, var(--fg) var(--p), #2a2a2e var(--p)); }
.prange::-moz-range-track { height: 3px; border-radius: 3px; background: linear-gradient(to right, var(--fg) var(--p), #2a2a2e var(--p)); }
.prange::-webkit-slider-thumb { -webkit-appearance: none; width: 11px; height: 11px; margin-top: -4px; border-radius: 50%; background: var(--fg); border: 0; }
.prange::-moz-range-thumb { width: 11px; height: 11px; border-radius: 50%; background: var(--fg); border: 0; }
.prange--vol { flex: none; width: 64px; margin-left: 6px; }
@media (max-width: 420px) { .prange--vol { display: none; } }

/* toast */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 100; transform: translate(-50%, 12px); padding: 12px 20px; border-radius: 12px; background: var(--fg); color: var(--bg); font-size: .92rem; font-weight: 600; letter-spacing: -.01em; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; white-space: nowrap; max-width: calc(100vw - 32px); overflow: hidden; text-overflow: ellipsis; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- spotify player (one persistent element, positioned by script) ---------- */
.spotify-slot { width: min(440px, 100%); height: 152px; margin-top: 26px; }
.spotify { position: absolute; top: 0; left: 0; z-index: 3; visibility: hidden; border-radius: 14px; overflow: hidden; background: #121212; border: 1px solid var(--line); }
.spotify.ready { visibility: visible; }
.spotify iframe { display: block; width: 100%; height: 100%; border: 0; }
.spotify.mini { position: fixed; top: auto; left: auto; right: 16px; bottom: 16px; z-index: 40; width: min(420px, calc(100vw - 32px)); height: 100px; }
.page:not(.home) { padding-bottom: 120px; }

/* click-to-copy values on the contact page */
.copy { padding: 0; font: inherit; letter-spacing: inherit; color: inherit; text-align: left; cursor: pointer; }
.copy::after { content: "copy"; margin-left: 12px; font-size: .72rem; font-weight: 500; letter-spacing: .02em; color: var(--dim); opacity: 0; transition: opacity .2s; }
.copy:hover::after, .copy:focus-visible::after { opacity: 1; }
.copy:focus-visible { outline: 1px solid var(--dim); outline-offset: 4px; border-radius: 4px; }

