/* =============================================================================
   alexeykononov.ru — основной stylesheet
   Тёмная «архивная» эстетика: зерно, скан-линии, Playfair + Inter + JetBrains
   ========================================================================== */

/* ---------------------------------------------------------------- переменные */
:root {
  --bg: #0a0a0a;
  --bg-soft: #101012;
  --bg-card: #141416;
  --fg: #ece8e1;
  --fg-dim: #a5a09a;
  --muted: #7d7973;
  --line: rgba(236, 232, 225, 0.12);
  --line-soft: rgba(236, 232, 225, 0.07);
  --accent: #e2603a;
  --accent-soft: rgba(226, 96, 58, 0.16);

  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --pad: clamp(20px, 5vw, 72px);
  --maxw: 1400px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --------------------------------------------------------------------- сброс */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: auto;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 350;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-loading { overflow: hidden; }
body.menu-open { overflow: hidden; }

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ol, ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }

::selection { background: var(--accent); color: #0a0a0a; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* --------------------------------------------------- фоновые эффекты (зерно) */
.fx-grain,
.fx-scanlines,
.fx-vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 900;
}

.fx-grain {
  opacity: 0.4;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='160' height='160' filter='url(%23n)' opacity='0.55'/></svg>");
  animation: grainShift 8s steps(6) infinite;
}

@keyframes grainShift {
  0%   { transform: translate3d(0, 0, 0); }
  20%  { transform: translate3d(-4%, 3%, 0); }
  40%  { transform: translate3d(3%, -5%, 0); }
  60%  { transform: translate3d(-3%, -2%, 0); }
  80%  { transform: translate3d(5%, 4%, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

.fx-scanlines {
  opacity: 0.28;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.035) 0 1px,
    transparent 1px 3px
  );
}

.fx-vignette {
  background: radial-gradient(120% 90% at 50% 45%, transparent 40%, rgba(0, 0, 0, 0.65) 100%);
}

/* ------------------------------------------------------------------- курсор */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1200;
  pointer-events: none;
  mix-blend-mode: difference;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cursor.is-on { opacity: 1; }

.cursor__dot,
.cursor__ring {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.cursor__dot {
  width: 6px;
  height: 6px;
  background: #fff;
}

.cursor__ring {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  transition: width 0.25s var(--ease), height 0.25s var(--ease),
              background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.cursor.is-hot .cursor__ring {
  width: 58px;
  height: 58px;
  background: rgba(255, 255, 255, 0.14);
  border-color: transparent;
}

/* ----------------------------------------------------------------- прелоадер */
.loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s var(--ease), visibility 0.7s var(--ease);
}

body.is-loading .loader {
  opacity: 1;
  visibility: visible;
}

.loader__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
}

.loader__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.loader__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
}

.loader__count {
  font-family: var(--serif);
  font-size: clamp(64px, 14vw, 160px);
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.loader__count i {
  font-style: normal;
  font-size: 0.35em;
  color: var(--accent);
  margin-left: 0.08em;
}

.loader__bar {
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  bottom: 48px;
  height: 1px;
  background: var(--line);
}

.loader__bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--accent);
}

/* ------------------------------------------------------------------ шапка */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px var(--pad);
  transition: background-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease),
              border-color 0.4s var(--ease), transform 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}

.nav.is-solid {
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line-soft);
}

.nav.is-hidden { transform: translateY(-105%); }

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.nav__brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.02em;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease),
              border-color 0.3s var(--ease);
}

.nav__brand:hover .nav__brand-mark {
  background: var(--accent);
  border-color: var(--accent);
  color: #0a0a0a;
}

.nav__brand-text {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.2vw, 34px);
}

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--fg-dim);
  padding: 6px 0;
  transition: color 0.3s var(--ease);
}

.nav__link i {
  font-family: var(--mono);
  font-style: normal;
  font-size: 9px;
  color: var(--muted);
  transition: color 0.3s var(--ease);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}

.nav__link:hover,
.nav__link.is-active { color: var(--fg); }

.nav__link:hover i,
.nav__link.is-active i { color: var(--accent); }

.nav__link:hover::after,
.nav__link.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav__side {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  padding: 7px 10px;
  border: 1px solid var(--line);
  transition: border-color 0.3s var(--ease);
}

.lang:hover { border-color: var(--fg-dim); }
.lang em { font-style: normal; color: var(--muted); }
.lang span { color: var(--muted); transition: color 0.3s var(--ease); }
.lang span.is-on { color: var(--accent); }

.burger {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
}

.burger span {
  position: absolute;
  left: 11px;
  width: 18px;
  height: 1px;
  background: var(--fg);
  transition: transform 0.35s var(--ease), opacity 0.2s var(--ease);
}

.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 22px; }

.burger.is-on span:nth-child(1) { transform: translateY(2.5px) rotate(45deg); }
.burger.is-on span:nth-child(2) { transform: translateY(-2.5px) rotate(-45deg); }

/* ------------------------------------------------------------ прогрунт скролла */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 850;
  background: transparent;
}

.progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), #f0a07a);
}

/* ------------------------------------------------------------- мобильное меню */
.menu {
  position: fixed;
  inset: 0;
  z-index: 790;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 40px;
  padding: 96px var(--pad) 48px;
  background: rgba(8, 8, 9, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-2%);
  transition: opacity 0.45s var(--ease), visibility 0.45s var(--ease),
              transform 0.45s var(--ease);
}

.menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.menu__links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.menu__links a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--serif);
  font-size: clamp(28px, 8vw, 46px);
  line-height: 1.1;
}

.menu__links a i {
  font-family: var(--mono);
  font-style: normal;
  font-size: 11px;
  color: var(--accent);
}

.menu__foot {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.menu__mail { font-size: 17px; color: var(--fg); }
.menu__domain {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ------------------------------------------------------------------- утилиты */
.section-head {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: clamp(36px, 5vw, 64px);
}

.section-head--tight { margin-bottom: 30px; }

.label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}

.label i {
  font-style: normal;
  color: var(--accent);
}

.label::after {
  content: "";
  width: 56px;
  height: 1px;
  background: var(--line);
}

.section-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(38px, 7vw, 88px);
  line-height: 1;
  letter-spacing: -0.02em;
}

.section-intro {
  max-width: 62ch;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.7;
  color: var(--fg-dim);
  margin-bottom: clamp(34px, 4vw, 56px);
}

/* --------------------------------------------------------------------- hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 132px var(--pad) 96px;
  overflow: hidden;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
}

.hero__glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 70vw;
  height: 70vw;
  max-width: 900px;
  max-height: 900px;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 65%);
  filter: blur(20px);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 26px;
}

.hero__eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(226, 96, 58, 0.55);
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(226, 96, 58, 0.5); }
  70%  { box-shadow: 0 0 0 12px rgba(226, 96, 58, 0); }
  100% { box-shadow: 0 0 0 0 rgba(226, 96, 58, 0); }
}

.hero__name {
  display: flex;
  flex-direction: column;
  font-weight: 500;
  font-size: clamp(52px, 9.5vw, 132px);
  line-height: 0.92;
  letter-spacing: -0.035em;
}

.hero__name-line { display: block; overflow: hidden; }

.hero__name-line--serif {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  padding-bottom: 0.08em;
}

.split .char {
  display: inline-block;
  will-change: transform;
}

.hero__role {
  margin-top: 26px;
  max-width: 44ch;
  font-family: var(--mono);
  font-size: clamp(12px, 1.1vw, 14px);
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: var(--fg-dim);
}

.hero__intro {
  margin-top: 20px;
  max-width: 50ch;
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.7;
  color: var(--muted);
}

.hero__scroll {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 46px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero__scroll i {
  position: relative;
  width: 1px;
  height: 52px;
  background: var(--line);
  overflow: hidden;
}

.hero__scroll i::after {
  content: "";
  position: absolute;
  top: -50%;
  left: 0;
  width: 100%;
  height: 50%;
  background: var(--accent);
  animation: scrollDrip 2.2s var(--ease) infinite;
}

@keyframes scrollDrip {
  0%   { top: -50%; }
  100% { top: 110%; }
}

/* портрет */
.portrait { margin: 0; }

.portrait__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  padding: 10px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), transparent 60%);
}

.portrait__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.25) contrast(1.05);
}

.portrait__glare {
  position: absolute;
  inset: 10px;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.14) 50%, transparent 65%);
  transform: translateX(-120%);
  animation: glare 6s var(--ease) 1.5s infinite;
  pointer-events: none;
}

@keyframes glare {
  0%, 62% { transform: translateX(-120%); }
  88%, 100% { transform: translateX(120%); }
}

.portrait__cap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.portrait__cap b {
  font-weight: 500;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}

/* бегущая строка */
.hero__ticker {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  border-top: 1px solid var(--line-soft);
  padding: 14px 0;
  overflow: hidden;
  background: rgba(10, 10, 10, 0.55);
}

.ticker {
  display: flex;
  width: max-content;
  gap: 0;
  animation: tickerMove 38s linear infinite;
}

.ticker span {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  padding: 0 22px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.ticker span::after {
  content: "◆";
  font-size: 7px;
  color: var(--accent);
}

@keyframes tickerMove {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* --------------------------------------------------------------- 01 · история */
.story {
  position: relative;
  background: var(--bg-soft);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.story__track { position: relative; }

.story__stage {
  position: sticky;
  top: 0;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: 110px var(--pad) 72px;
  max-width: var(--maxw);
  margin: 0 auto;
}

.story__media {
  position: relative;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  overflow: hidden;
  background: #0c0c0e;
}

.story__media figure {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 0.7s var(--ease), transform 1.1s var(--ease);
}

.story__media figure.is-on {
  opacity: 1;
  transform: none;
}

.story__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story__media figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  padding: 14px 18px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.story__content { min-width: 0; }

.story__beats { position: relative; }

.story__beat {
  display: none;
}

.story__beat.is-on { display: block; }

.story__beat-top {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}

.story__beat-top b {
  font-weight: 500;
  color: var(--accent);
}

.story__beat-top em {
  font-style: normal;
  color: var(--fg-dim);
}

.story__beat h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 3.6vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.story__beat p {
  max-width: 54ch;
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.75;
  color: var(--fg-dim);
}

.story__foot {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: clamp(30px, 4vw, 52px);
}

.story__hint {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.story__progress {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.story__progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--accent);
}

/* ----------------------------------------------------------------- 02 · дело */
.craft {
  padding: clamp(80px, 11vw, 150px) var(--pad);
  max-width: var(--maxw);
  margin: 0 auto;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  margin-bottom: clamp(48px, 6vw, 80px);
}

.stat {
  padding: clamp(22px, 3vw, 36px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background-color 0.4s var(--ease);
}

.stat:hover { background: rgba(226, 96, 58, 0.05); }

.stat__value {
  font-family: var(--serif);
  font-size: clamp(44px, 6vw, 76px);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.stat__value sup {
  font-size: 0.4em;
  color: var(--accent);
  vertical-align: super;
}

.stat__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* таймлайн */
.timeline {
  border-top: 1px solid var(--line);
}

.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: clamp(16px, 3vw, 48px);
  padding: clamp(26px, 3.4vw, 44px) 0;
  border-bottom: 1px solid var(--line);
}

.timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.6s var(--ease);
}

.timeline li:hover::before { width: 100%; }

.timeline__period {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.timeline__body h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(22px, 2.6vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.timeline__place {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.timeline__text {
  max-width: 66ch;
  color: var(--fg-dim);
  line-height: 1.7;
  margin-bottom: 16px;
}

.tags { display: flex; flex-wrap: wrap; gap: 8px; }

.tags span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-dim);
  border: 1px solid var(--line);
  padding: 5px 10px;
}

/* ---------------------------------------------------------------- 03 · хобби */
.hobbies {
  padding: clamp(80px, 11vw, 150px) var(--pad);
  max-width: var(--maxw);
  margin: 0 auto;
  border-top: 1px solid var(--line-soft);
}

.hobbies__wrap { position: relative; }

.hobbies__list { border-top: 1px solid var(--line); }

.hobby {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: clamp(14px, 3vw, 40px);
  align-items: baseline;
  padding: clamp(22px, 3vw, 34px) 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: padding-left 0.5s var(--ease), color 0.4s var(--ease);
}

.hobby::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, rgba(226, 96, 58, 0.1), transparent 70%);
  transition: width 0.55s var(--ease);
  pointer-events: none;
}

.hobby:hover::after { width: 100%; }
.hobby:hover { padding-left: 18px; }

.hobby__no {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

.hobby__main { min-width: 0; }

.hobby__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(30px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  transition: color 0.4s var(--ease);
}

.hobby:hover .hobby__title { color: var(--accent); }

.hobby__text {
  max-width: 60ch;
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 15px;
}

.hobbies__preview {
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  height: 220px;
  z-index: 700;
  pointer-events: none;
  border: 1px solid var(--line);
  background: #0c0c0e;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  transition: opacity 0.35s var(--ease), transform 0.45s var(--ease);
  overflow: hidden;
}

.hobbies__preview.is-on {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.hobbies__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ----------------------------------------------------------------- 04 · идеи */
.ideas {
  padding: clamp(80px, 11vw, 150px) var(--pad);
  max-width: var(--maxw);
  margin: 0 auto;
  border-top: 1px solid var(--line-soft);
}

.ideas__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}

.idea {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(24px, 3vw, 38px);
  background: var(--bg);
  min-height: 230px;
  transition: background-color 0.4s var(--ease), transform 0.4s var(--ease);
}

.idea:hover { background: var(--bg-card); }

.idea__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.idea__no {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

.idea__status {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 5px 9px;
  border: 1px solid currentColor;
}

.idea__status--work { color: var(--accent); }
.idea__status--done { color: #6fbf8f; }
.idea__status--dream { color: #b58fd8; }
.idea__status--wait { color: #d9b45f; }

.idea h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(21px, 2.1vw, 27px);
  line-height: 1.15;
}

.idea p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  margin-top: auto;
}

/* --------------------------------------------------------------- 05 · контакт */
.contact {
  position: relative;
  padding: clamp(90px, 13vw, 170px) var(--pad);
  text-align: center;
  border-top: 1px solid var(--line-soft);
  overflow: hidden;
}

.contact::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: min(900px, 90vw);
  height: 460px;
  background: radial-gradient(ellipse at top, var(--accent-soft), transparent 70%);
  pointer-events: none;
}

.contact > * { position: relative; }

.contact .label { justify-content: center; }
.contact .label::after { display: none; }

.contact__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin: 26px 0 22px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(46px, 10vw, 128px);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.contact__title em {
  font-style: italic;
  color: var(--accent);
}

.contact__text {
  max-width: 48ch;
  margin: 0 auto;
  color: var(--fg-dim);
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.7;
}

.contact__mail {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: clamp(34px, 5vw, 54px);
  padding: clamp(16px, 2vw, 22px) clamp(24px, 3vw, 38px);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: clamp(14px, 1.6vw, 19px);
  letter-spacing: 0.04em;
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease),
              color 0.4s var(--ease);
}

.contact__mail svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  transition: transform 0.4s var(--ease);
}

.contact__mail:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #0a0a0a;
}

.contact__mail:hover svg { transform: translateX(6px); }

.contact__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact__meta a {
  color: var(--fg);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.contact__meta a:hover { color: var(--accent); border-color: var(--accent); }

/* --------------------------------------------------------------------- футер */
.footer {
  border-top: 1px solid var(--line);
  padding: clamp(34px, 5vw, 54px) var(--pad);
}

.footer__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  max-width: var(--maxw);
  margin: 0 auto;
}

.footer__brand {
  font-family: var(--serif);
  font-size: 20px;
}

.footer__note,
.footer__domain {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer__up {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-dim);
  transition: color 0.3s var(--ease);
}

.footer__up svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  transition: transform 0.4s var(--ease);
}

.footer__up:hover { color: var(--accent); }
.footer__up:hover svg { transform: translateY(-5px); }

.footer__row--sub {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.footer__row--sub b { font-weight: 500; color: var(--fg-dim); }

/* ------------------------------------------------------------------ noscript */
.noscript {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  padding: 16px var(--pad);
  background: var(--accent);
  color: #0a0a0a;
  font-size: 14px;
  line-height: 1.5;
}

/* --------------------------------------------------------- состояние анимаций */
.js-reveal {
  opacity: 0;
  transform: translateY(28px);
}

.js-reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

/* --------------------------------------------------------------- адаптивность */
@media (max-width: 1100px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .ideas__list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .nav__links { display: none; }
  .burger { display: block; }

  .hero { padding-top: 120px; padding-bottom: 120px; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__right { max-width: 380px; }

  .story__stage {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 26px;
    padding-top: 96px;
  }

  .story__media { aspect-ratio: 16 / 10; max-height: 34vh; }

  .timeline li { grid-template-columns: 1fr; gap: 12px; }
  .hobbies__preview { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }

  .stats { grid-template-columns: 1fr; }
  .ideas__list { grid-template-columns: 1fr; }

  .hobby { grid-template-columns: 40px 1fr; }

  .footer__row { flex-direction: column; align-items: flex-start; }
  .story__foot { flex-direction: column; align-items: flex-start; gap: 12px; }
  .story__progress { width: 100%; }
  .loader__bar { bottom: 32px; }
}

/* ------------------------------------------------------ уменьшенная анимация */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .fx-grain { animation: none; }
  .js-reveal { opacity: 1; transform: none; }
}
