/* ============================================================================
   style.css — Алексей Кононов · личный сайт
   Стиль: тёмная editorial-тема, крупная типографика, тёплый акцент (медь/янтарь)
   ========================================================================== */

/* ------------------------------------------------------------- ТОКЕНЫ */
:root {
  --bg: #070606;
  --bg-soft: #0e0c0a;
  --bg-elev: #141110;

  --ink: #f5f1ea;
  --muted: rgba(245, 241, 234, 0.56);
  --faint: rgba(245, 241, 234, 0.34);
  --line: rgba(245, 241, 234, 0.14);
  --line-2: rgba(245, 241, 234, 0.07);

  --accent: #e0a45c;
  --accent-2: #c9752f;
  --accent-ink: #1a1206;
  --good: #8fd18a;

  --wrap: min(1280px, 92vw);
  --gutter: clamp(1.2rem, 4vw, 3.5rem);
  --r: 16px;
  --r-sm: 10px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-2: cubic-bezier(0.65, 0, 0.35, 1);

  /* Helvetica для всего сайта: на macOS это Helvetica Neue, далее Helvetica/Arial */
  --f-sans: "Helvetica Neue", Helvetica, Arial, "Liberation Sans", sans-serif;
  --f-display: var(--f-sans);
  --f-body: var(--f-sans);
  --f-mono: var(--f-sans);
  --f-serif: var(--f-sans);

  --head-h: 78px;
  color-scheme: dark;
}

/* --------------------------------------------------------------- БАЗА */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--head-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

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

.mono {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
}

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

/* ----------------------------------------------------------- ФОН СЛОИ */
.bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}
.vignette {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(130% 95% at 50% -10%, transparent 42%, rgba(0, 0, 0, 0.6) 100%);
}
.grain {
  position: fixed;
  inset: -50%;
  z-index: 80;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 140px 140px;
  animation: grainShift 6s steps(6) infinite;
}
@keyframes grainShift {
  0%,
  100% {
    transform: translate(0, 0);
  }
  20% {
    transform: translate(-4%, 3%);
  }
  40% {
    transform: translate(3%, -4%);
  }
  60% {
    transform: translate(-2%, -2%);
  }
  80% {
    transform: translate(4%, 2%);
  }
}

/* --------------------------------------------------------- ЗАГРУЗКА */
.loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--bg);
  display: flex;
  align-items: flex-end;
  transition:
    opacity 0.9s var(--ease),
    visibility 0.9s;
}
.loader__brain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.loader__inner {
  position: relative;
  width: var(--wrap);
  margin-inline: auto;
  padding-bottom: var(--gutter);
}
.loader__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: clamp(2rem, 8vh, 6rem);
}
.loader__name {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(1.4rem, 4vw, 2.6rem);
  letter-spacing: -0.02em;
}
.loader__tag {
  color: var(--accent);
}
.loader__bottom {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.loader__count {
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.1em;
  min-width: 4ch;
}
.loader__bar {
  flex: 1;
  height: 1px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.loader__bar i {
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}
.loader.is-done {
  opacity: 0;
  visibility: hidden;
}
.loader[hidden] {
  display: none;
}

/* -------------------------------------------------------------- ХЕДЕР */
.site-head {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--head-h);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
  transition:
    background 0.45s var(--ease),
    border-color 0.45s var(--ease),
    backdrop-filter 0.45s;
  border-bottom: 1px solid transparent;
}
.site-head.is-solid {
  background: rgba(7, 6, 6, 0.72);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom-color: var(--line-2);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-right: auto;
}
.brand__mark {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 0.95rem;
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent);
  letter-spacing: 0.02em;
}
.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand__name {
  font-family: var(--f-display);
  font-size: 0.86rem;
  font-weight: 400;
}
.brand__surname {
  font-family: var(--f-mono);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--faint);
}

.head-nav {
  display: flex;
  gap: 1.9rem;
}
.head-nav a {
  position: relative;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.4rem 0;
  transition: color 0.3s;
}
.head-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 0;
  background: var(--accent);
  transition: width 0.4s var(--ease);
}
.head-nav a:hover {
  color: var(--ink);
}
.head-nav a:hover::after,
.head-nav a.is-active::after {
  width: 100%;
}
.head-nav a.is-active {
  color: var(--ink);
}

.head-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 0.15rem;
}
.lang__btn {
  font-family: var(--f-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  padding: 0.35rem 0.7rem;
  border-radius: 100px;
  color: var(--faint);
  transition:
    color 0.3s,
    background 0.3s;
}
.lang__btn[aria-pressed="true"] {
  background: var(--accent);
  color: var(--accent-ink);
}

/* --------------------------------------------------------- КНОПКИ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--f-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.95rem 1.6rem;
  border-radius: 100px;
  background: var(--accent);
  color: var(--accent-ink);
  border: 1px solid var(--accent);
  transition:
    transform 0.4s var(--ease),
    background 0.35s,
    color 0.35s,
    border-color 0.35s;
}
.btn__arrow {
  font-style: normal;
  transition: transform 0.4s var(--ease);
}
.btn:hover {
  transform: translateY(-2px);
  background: #efba7a;
  border-color: #efba7a;
}
.btn:hover .btn__arrow {
  transform: translate(3px, -3px);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn--sm {
  padding: 0.7rem 1.15rem;
  font-size: 0.68rem;
}

/* --------------------------------------------------------- БУРГЕР */
.burger {
  display: none;
  width: 42px;
  height: 42px;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 50%;
}
.burger span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 1.5px;
  background: var(--ink);
  transition:
    transform 0.4s var(--ease),
    opacity 0.3s;
}
.burger span:nth-child(1) {
  top: 17px;
}
.burger span:nth-child(2) {
  top: 23px;
}
body.menu-open .burger span:nth-child(1) {
  transform: translateY(3px) rotate(45deg);
}
body.menu-open .burger span:nth-child(2) {
  transform: translateY(-3px) rotate(-45deg);
}

/* ----------------------------------------------------- МОБИЛЬНОЕ МЕНЮ */
.menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: linear-gradient(180deg, #0a0807 0%, #070606 100%);
  padding: calc(var(--head-h) + 2rem) max(var(--gutter), env(safe-area-inset-right))
    max(2rem, env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translateY(-102%);
  transition: transform 0.7s var(--ease);
}
body.menu-open .menu {
  transform: translateY(0);
}
.menu__nav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.menu__nav a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  font-family: var(--f-display);
  font-weight: 300;
  letter-spacing: -0.02em;
  font-size: clamp(2rem, 9vw, 3.4rem);
  line-height: 1.25;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--line-2);
}
.menu__no {
  font-size: 0.66rem;
  color: var(--accent);
}
.menu__foot {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  color: var(--muted);
}
.menu__foot a:hover {
  color: var(--accent);
}

/* -------------------------------------------------------------- ГЕРОЙ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--head-h);
  padding-bottom: 4rem;
}
.hero__wrap {
  display: grid;
  grid-template-columns: 1.12fr 0.78fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero__text {
  min-width: 0;
}
.eyebrow {
  color: var(--accent);
  margin-bottom: clamp(1rem, 3vh, 2rem);
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.eyebrow::before {
  content: "";
  width: clamp(24px, 6vw, 60px);
  height: 1px;
  background: var(--accent);
  display: inline-block;
}

.hero__title {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(2.8rem, 8.2vw, 7.2rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin-bottom: clamp(1.4rem, 4vh, 2.6rem);
}
.hero__title .line {
  display: block;
}
.hero__title .line:last-child {
  padding-left: 0.16em;
  color: transparent;
  -webkit-text-stroke: 1px var(--faint);
}

.hero__role {
  color: var(--accent);
  margin-bottom: 1rem;
}
.hero__lead {
  font-size: clamp(1rem, 1.5vw, 1.22rem);
  color: var(--muted);
  max-width: 36ch;
  line-height: 1.6;
  margin-bottom: 2rem;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero__portrait {
  position: relative;
}
.hero__portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  max-height: min(74vh, 660px);
  object-fit: cover;
  border-radius: var(--r);
  filter: grayscale(1) contrast(1.06) brightness(0.94);
  transition:
    filter 0.9s var(--ease),
    transform 1.1s var(--ease);
}
.hero__portrait:hover img {
  filter: grayscale(0) contrast(1.02);
}
.hero__portrait figcaption {
  position: absolute;
  left: 0;
  bottom: -1.5rem;
  color: var(--faint);
}
.hero__portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--r);
  pointer-events: none;
  box-shadow: inset 0 0 0 1px var(--line);
}

.scroll-hint {
  position: absolute;
  left: var(--gutter);
  bottom: 1.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--faint);
}
.scroll-hint i {
  width: 1px;
  height: 46px;
  background: linear-gradient(var(--faint), transparent);
  position: relative;
  overflow: hidden;
}
.scroll-hint i::after {
  content: "";
  position: absolute;
  top: -50%;
  left: 0;
  width: 100%;
  height: 50%;
  background: var(--accent);
  animation: scrollDot 2.2s var(--ease-2) infinite;
}
@keyframes scrollDot {
  0% {
    top: -50%;
  }
  100% {
    top: 130%;
  }
}

/* ------------------------------------------------------------ СЕКЦИИ */
.section {
  padding-block: clamp(5rem, 13vh, 11rem);
}
.label {
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: clamp(2rem, 6vh, 4rem);
}
.label::after {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--line);
}

.section__head {
  max-width: 62ch;
  margin-bottom: clamp(2.5rem, 7vh, 5rem);
}
.section__title {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(2rem, 5.2vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 1.4rem;
}
.section__lead {
  color: var(--faint);
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 0.82rem;
}

/* ----------------------------------------------------------- МАНИФЕСТ */
.statement {
  margin-bottom: clamp(3rem, 8vh, 5.5rem);
}
.statement__line {
  display: block;
  overflow: hidden;
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(1.7rem, 5.6vw, 4.6rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.statement__line:nth-child(2) {
  padding-left: clamp(1rem, 8vw, 8rem);
  color: var(--accent);
  font-style: italic;
  font-family: var(--f-serif);
  font-weight: 500;
}
.statement__line:nth-child(3) {
  padding-left: clamp(0.5rem, 4vw, 4rem);
}

.about__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 5vw, 4rem);
  max-width: 78ch;
  margin-bottom: clamp(3rem, 8vh, 5rem);
}
.about__body p {
  color: var(--muted);
  font-size: 1.02rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  border-top: 1px solid var(--line);
}
.stat {
  padding: 1.6rem 0 0.4rem;
  border-right: 1px solid var(--line-2);
  padding-right: 1rem;
}
.stat:last-child {
  border-right: 0;
}
.stat__num {
  display: block;
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  letter-spacing: -0.02em;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.6rem;
}
.stat__label {
  color: var(--faint);
}

/* ------------------------------------------------------------ МАРКИЗА */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line-2);
  padding-block: 1.6rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: inline-flex;
  white-space: nowrap;
  animation: marquee 32s linear infinite;
  will-change: transform;
}
.marquee:hover .marquee__track {
  animation-play-state: paused;
}
.marquee__item {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(1.4rem, 3.4vw, 2.6rem);
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-right: clamp(1.5rem, 4vw, 3rem);
  color: var(--muted);
}
.marquee__dot {
  color: var(--accent);
  font-style: normal;
  font-size: 0.5em;
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* --------------------------------------------------------------- ОПЫТ */
.xp {
  border-top: 1px solid var(--line);
}
.xp__row {
  border-bottom: 1px solid var(--line);
  transition: background 0.4s var(--ease);
}
.xp__row:hover,
.xp__row[open] {
  background: var(--bg-soft);
}
.xp__sum {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 3rem 11rem minmax(0, 1.3fr) minmax(0, 0.9fr) 2.4rem;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 0.5rem;
}
.xp__sum::-webkit-details-marker {
  display: none;
}
.xp__no {
  color: var(--faint);
}
.xp__period {
  color: var(--accent);
  letter-spacing: 0.08em;
}
.xp__role {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(1.1rem, 2.2vw, 1.7rem);
  letter-spacing: -0.01em;
}
.xp__org {
  color: var(--faint);
  text-transform: none;
  letter-spacing: 0.04em;
}
.xp__toggle {
  justify-self: end;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 50%;
  position: relative;
  transition:
    border-color 0.4s,
    transform 0.5s var(--ease);
}
.xp__toggle::before,
.xp__toggle::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  background: var(--muted);
  transition: background 0.4s;
}
.xp__toggle::before {
  width: 11px;
  height: 1px;
}
.xp__toggle::after {
  width: 1px;
  height: 11px;
}
.xp__row:hover .xp__toggle {
  border-color: var(--accent);
}
.xp__row[open] .xp__toggle {
  transform: rotate(135deg);
  border-color: var(--accent);
}
.xp__row[open] .xp__toggle::before,
.xp__row[open] .xp__toggle::after {
  background: var(--accent);
}
.xp__body {
  padding: 0 1.5rem 1.8rem 4.5rem;
  max-width: 68ch;
}
.xp__body p {
  color: var(--muted);
  animation: fadeUp 0.6s var(--ease);
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------------------------------------------------------- УВЛЕЧЕНИЯ */
.hobby-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1px;
  background: var(--line-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  overflow: hidden;
}
.hobby {
  position: relative;
  background: var(--bg);
  padding: clamp(1.6rem, 3vw, 2.6rem);
  display: flex;
  flex-direction: column;
  min-height: 15rem;
  transition:
    background 0.5s var(--ease),
    transform 0.5s var(--ease);
}
.hobby:hover {
  background: var(--bg-elev);
}
.hobby__no {
  color: var(--accent);
}
.hobby__title {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(1.3rem, 2.6vw, 2rem);
  letter-spacing: -0.01em;
  margin: 1.8rem 0 0.7rem;
}
.hobby__text {
  color: var(--muted);
  font-size: 0.96rem;
  max-width: 32ch;
}
.hobby--link {
  cursor: pointer;
}
.hobby__cta {
  margin-top: 1.6rem;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  opacity: 0.8;
  transition: opacity 0.4s;
}
.hobby__cta i {
  font-style: normal;
  transition: transform 0.4s var(--ease);
}
.hobby--link:hover .hobby__cta {
  opacity: 1;
}
.hobby--link:hover .hobby__cta i {
  transform: translate(3px, -3px);
}
.hobby__line {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.6s var(--ease);
}
.hobby:hover .hobby__line {
  width: 100%;
}

/* --------------------------------------------------------------- ИДЕИ */
.idea-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.idea {
  position: relative;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent);
  display: flex;
  flex-direction: column;
  min-height: 14rem;
  transition:
    border-color 0.5s var(--ease),
    transform 0.5s var(--ease),
    background 0.5s;
}
.idea:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  background: var(--bg-soft);
}
.idea__status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--faint);
  margin-bottom: auto;
}
.idea__status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--faint);
}
.idea[data-status="wip"] .idea__status {
  color: var(--accent);
}
.idea[data-status="wip"] .idea__status i {
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 1.8s infinite;
}
.idea[data-status="done"] .idea__status {
  color: var(--good);
}
.idea[data-status="done"] .idea__status i {
  background: var(--good);
}
@keyframes pulse {
  50% {
    opacity: 0.35;
  }
}
.idea__title {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(1.25rem, 2.4vw, 1.8rem);
  letter-spacing: -0.01em;
  margin: 2rem 0 0.7rem;
}
.idea__text {
  color: var(--muted);
  font-size: 0.96rem;
}
.idea__arrow {
  position: absolute;
  top: 1.4rem;
  right: 1.6rem;
  color: var(--accent);
  opacity: 0;
  transform: translate(-6px, 6px);
  transition:
    opacity 0.4s,
    transform 0.4s var(--ease);
}
.idea:hover .idea__arrow {
  opacity: 1;
  transform: none;
}

/* ----------------------------------------------------------- КОНТАКТЫ */
.contact__title {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(2.6rem, 9vw, 8rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin-bottom: 1.6rem;
}
.contact__lead {
  color: var(--muted);
  max-width: 46ch;
  margin-bottom: clamp(2.5rem, 7vh, 4rem);
  font-size: 1.1rem;
}
.contact__links {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}
.contact__link {
  display: grid;
  grid-template-columns: 11rem 1fr 2rem;
  align-items: center;
  gap: 1rem;
  padding: 1.6rem 0.4rem;
  border-bottom: 1px solid var(--line);
  transition:
    padding-left 0.5s var(--ease),
    color 0.4s;
}
.contact__link .mono {
  color: var(--faint);
}
.contact__value {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(1.2rem, 3.2vw, 2.2rem);
  letter-spacing: -0.01em;
}
.contact__link .btn__arrow {
  justify-self: end;
  color: var(--accent);
}
.contact__link:hover {
  padding-left: 1.4rem;
  color: var(--accent);
}
.contact__link:hover .btn__arrow {
  transform: translate(3px, -3px);
}
.contact__link--static {
  cursor: default;
}
.contact__link--static:hover {
  padding-left: 0.4rem;
  color: var(--ink);
}
.contact__link--static .contact__value {
  font-size: clamp(1rem, 2.2vw, 1.5rem);
}
.contact__sign {
  margin-top: 2.5rem;
  color: var(--faint);
  text-transform: none;
  letter-spacing: 0.04em;
}

/* --------------------------------------------------------------- ФУТЕР */
.site-foot {
  border-top: 1px solid var(--line-2);
}
.site-foot__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-block: 2rem;
  padding-bottom: max(2rem, env(safe-area-inset-bottom));
  color: var(--faint);
  flex-wrap: wrap;
}
.site-foot__top:hover {
  color: var(--accent);
}

/* -------------------------------------------------------------- ПРОЧЕЕ */
.noscript {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: var(--bg);
  display: grid;
  place-items: center;
  padding: 2rem;
  text-align: center;
}

/* ---------------------------------------------------- АНИМАЦИИ ПОЯВЛЕНИЯ */
.w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
}
.w__in {
  display: inline-block;
  transform: translateY(115%) rotate(5deg);
  opacity: 0;
  transition:
    transform 1s var(--ease),
    opacity 0.8s var(--ease);
  transition-delay: calc(var(--i, 0) * 0.05s);
}
.is-in .w__in,
.is-in > .w .w__in {
  transform: none;
  opacity: 1;
}

.reveal-up {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
}
.reveal-up.is-in {
  opacity: 1;
  transform: none;
}

.reveal-clip {
  clip-path: inset(0 0 100% 0 round var(--r));
  transition: clip-path 1.2s var(--ease);
}
.reveal-clip.is-in {
  clip-path: inset(0 0 0 0 round var(--r));
}

/* сетки: лёгкая задержка по элементам */
.hobby-grid .reveal-up:nth-child(2),
.idea-grid .reveal-up:nth-child(2),
.stats .reveal-up:nth-child(2) {
  transition-delay: 0.08s;
}
.hobby-grid .reveal-up:nth-child(3),
.idea-grid .reveal-up:nth-child(3),
.stats .reveal-up:nth-child(3) {
  transition-delay: 0.16s;
}
.hobby-grid .reveal-up:nth-child(4),
.idea-grid .reveal-up:nth-child(4),
.stats .reveal-up:nth-child(4) {
  transition-delay: 0.24s;
}
.hobby-grid .reveal-up:nth-child(5),
.idea-grid .reveal-up:nth-child(5) {
  transition-delay: 0.32s;
}
.hobby-grid .reveal-up:nth-child(6),
.idea-grid .reveal-up:nth-child(6) {
  transition-delay: 0.4s;
}

/* --------------------------------------------------------- АДАПТИВ */
@media (max-width: 1080px) {
  .head-nav {
    display: none;
  }
  .head-cta {
    display: none;
  }
  .burger {
    display: block;
  }
  .hero__wrap {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .hero__portrait {
    max-width: 420px;
  }
  .hero__portrait img {
    max-height: none;
  }
  .about__body {
    grid-template-columns: 1fr;
  }
  .idea-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat:nth-child(2) {
    border-right: 0;
  }
  .stat {
    border-bottom: 1px solid var(--line-2);
    padding-bottom: 1.2rem;
  }
  .xp__sum {
    display: block;
    position: relative;
    padding: 1.4rem 3rem 1.4rem 0.2rem;
  }
  .xp__no {
    display: block;
    margin-bottom: 0.5rem;
  }
  .xp__period {
    display: block;
  }
  .xp__role {
    display: block;
    margin: 0.35rem 0;
  }
  .xp__org {
    display: block;
  }
  .xp__toggle {
    position: absolute;
    top: 1.4rem;
    right: 0.4rem;
  }
  .xp__body {
    padding-left: 0.2rem;
  }
}

@media (max-width: 640px) {
  :root {
    --head-h: 66px;
  }
  .hero__title {
    font-size: clamp(3rem, 17vw, 5rem);
  }
  .hero__title .line:last-child {
    padding-left: 0.1em;
  }
  .hobby-grid,
  .idea-grid,
  .stats {
    grid-template-columns: 1fr;
  }
  .stat {
    border-right: 0;
  }
  .contact__link {
    grid-template-columns: 1fr auto;
  }
  .contact__link .mono {
    grid-column: 1 / -1;
  }
  .scroll-hint {
    display: none;
  }
  .brand__text {
    display: none;
  }
  .head-actions {
    gap: 0.6rem;
  }
}

/* ------------------------------------------------- УДОБСТВО НА ТАЧ-ЭКРАНАХ */
@media (hover: none) and (pointer: coarse) {
  .lang__btn {
    min-height: 36px;
    padding-inline: 0.85rem;
  }
  .site-foot__top,
  .menu__foot a,
  .sub-head__back {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
  }
  .place-btn {
    min-height: 44px;
  }
}

/* -------------------------------------------------- УВАЖЕНИЕ К MOTION */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .grain,
  .marquee__track,
  .scroll-hint i::after,
  .idea__status i {
    animation: none !important;
  }
  .w__in,
  .reveal-up,
  .reveal-clip {
    transition: none !important;
  }
  .w__in {
    transform: none;
    opacity: 1;
  }
  .reveal-up {
    opacity: 1;
    transform: none;
  }
  .reveal-clip {
    clip-path: none;
  }
}
