/* =========================================================
   Кирилл Живаев — личный сайт
   Тёмная тема по умолчанию, мягкий лиловый акцент
   ========================================================= */

:root {
  --bg: #0e0e12;
  --bg-soft: #121218;
  --surface: #16161c;
  --surface-2: #1b1b23;
  --text: #f2f2f4;
  --muted: #8c8c96;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.17);
  --accent: #8e80ff;
  --accent-ink: #14131f;
  --accent-soft: rgba(142, 128, 255, 0.14);
  --glass: rgba(255, 255, 255, 0.055);
  --glass-strong: rgba(255, 255, 255, 0.075);
  --glass-border: rgba(255, 255, 255, 0.13);
  --glass-highlight: rgba(255, 255, 255, 0.16);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  --shadow-soft: 0 12px 34px rgba(0, 0, 0, 0.28);
  --radius: 28px;
  --radius-sm: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1180px;
  --font-display: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  --nav-h: 76px;
}

[data-theme="light"] {
  --bg: #f7f7f5;
  --bg-soft: #ffffff;
  --surface: #ffffff;
  --surface-2: #f0f0ec;
  --text: #131315;
  --muted: #6e6e73;
  --line: rgba(19, 19, 21, 0.1);
  --line-strong: rgba(19, 19, 21, 0.18);
  --accent: #6a58f0;
  --accent-ink: #ffffff;
  --accent-soft: rgba(106, 88, 240, 0.1);
  --glass: rgba(255, 255, 255, 0.62);
  --glass-strong: rgba(255, 255, 255, 0.78);
  --glass-border: rgba(255, 255, 255, 0.9);
  --glass-highlight: rgba(255, 255, 255, 0.95);
  --shadow: 0 20px 60px rgba(20, 20, 30, 0.1);
  --shadow-soft: 0 10px 30px rgba(20, 20, 30, 0.07);
}

/* ---------- смена темы: диагональный wipe ---------- */

::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}
::view-transition-old(root) { z-index: 1; }
::view-transition-new(root) { z-index: 999; }

.no-transitions,
.no-transitions *,
.no-transitions *::before,
.no-transitions *::after {
  transition: none !important;
}

/* ---------- reset ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color 0.5s var(--ease), color 0.5s var(--ease);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

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

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

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

section[id] { scroll-margin-top: 96px; }

/* ---------- утилиты ---------- */

.container {
  width: min(var(--container), 100% - 2 * clamp(20px, 5vw, 48px));
  margin-inline: auto;
}

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

.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow), inset 0 1px 0 var(--glass-highlight);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  backdrop-filter: blur(24px) saturate(150%);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 13px;
  transform: translateY(-160%);
  transition: transform 0.3s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* появление при скролле */
.js .reveal {
  opacity: 0;
  translate: 0 26px;
  filter: blur(7px);
  transition:
    opacity 0.9s var(--ease),
    translate 0.9s var(--ease),
    filter 0.9s var(--ease);
}
.js .reveal.is-in {
  opacity: 1;
  translate: 0 0;
  filter: blur(0);
}

/* панель терминала не должна становиться containing block для fixed-модалки */
.js .hero__panel,
.js .hero__panel.is-in {
  translate: none;
  filter: none;
}

/* ---------- фон ---------- */

.background {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.5;
  will-change: transform;
}

.orb--1 {
  width: 46vw;
  height: 46vw;
  min-width: 340px;
  min-height: 340px;
  top: -16vw;
  left: -8vw;
  background: radial-gradient(circle, rgba(142, 128, 255, 0.42), transparent 68%);
  animation: drift 26s ease-in-out infinite alternate;
}

.orb--2 {
  width: 40vw;
  height: 40vw;
  min-width: 300px;
  min-height: 300px;
  top: 34%;
  right: -12vw;
  background: radial-gradient(circle, rgba(84, 176, 156, 0.26), transparent 68%);
  animation: drift 32s ease-in-out infinite alternate-reverse;
}

.orb--3 {
  width: 34vw;
  height: 34vw;
  min-width: 280px;
  min-height: 280px;
  bottom: -14vw;
  left: 26%;
  background: radial-gradient(circle, rgba(122, 132, 255, 0.2), transparent 70%);
  animation: drift 38s ease-in-out infinite alternate;
}

[data-theme="light"] .orb { opacity: 0.62; }
[data-theme="light"] .orb--1 { background: radial-gradient(circle, rgba(142, 128, 255, 0.34), transparent 68%); }
[data-theme="light"] .orb--2 { background: radial-gradient(circle, rgba(94, 196, 168, 0.24), transparent 68%); }
[data-theme="light"] .orb--3 { background: radial-gradient(circle, rgba(255, 186, 150, 0.26), transparent 70%); }

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(4vw, 5vh, 0) scale(1.12); }
}

.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 120px 120px;
  opacity: 0.22;
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 72%);
}

/* ---------- прогресс скролла ---------- */

.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 70;
  background: transparent;
  pointer-events: none;
}
.progress i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 60%, #5ad1b4));
  transform: scaleX(0);
  transform-origin: 0 50%;
}

/* ---------- навигация ---------- */

.nav {
  position: fixed;
  inset: 14px 0 auto 0;
  z-index: 60;
  padding-inline: clamp(14px, 3vw, 28px);
  transition: transform 0.5s var(--ease);
}
.nav.is-hidden { transform: translateY(-136%); }

.nav__inner {
  width: min(var(--container), 100%);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 8px 8px 8px 22px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  border-color: color-mix(in srgb, var(--line-strong) 85%, transparent);
  -webkit-backdrop-filter: blur(26px) saturate(170%);
  backdrop-filter: blur(26px) saturate(170%);
  transition:
    background-color 0.4s var(--ease),
    border-color 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}
[data-theme="light"] .nav__inner {
  background: color-mix(in srgb, #ffffff 74%, transparent);
}
.nav.is-scrolled .nav__inner {
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.42), inset 0 1px 0 var(--glass-highlight);
}
[data-theme="light"] .nav.is-scrolled .nav__inner {
  background: color-mix(in srgb, #ffffff 92%, transparent);
  box-shadow: 0 16px 40px rgba(20, 20, 30, 0.12), inset 0 1px 0 var(--glass-highlight);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav__link {
  position: relative;
  font-size: 0.85rem;
  color: var(--muted);
  padding-block: 4px;
  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: 0 50%;
  transition: transform 0.35s var(--ease);
}
.nav__link:hover,
.nav__link.is-active { color: var(--text); }
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }

.nav__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--muted);
  transition: color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.icon-btn:hover { color: var(--text); background: var(--surface-2); }
.icon { width: 17px; height: 17px; }

.icon--sun { display: none; }
[data-theme="light"] .icon--sun { display: block; }
[data-theme="light"] .icon--moon { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  translate: var(--btn-x, 0px) var(--btn-y, 0px);
  transition:
    background-color 0.35s var(--ease),
    border-color 0.35s var(--ease),
    color 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    transform 0.35s var(--ease),
    translate 0.4s var(--ease);
}
.btn svg { width: 16px; height: 16px; flex: none; }

.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 10px 30px color-mix(in srgb, var(--accent) 28%, transparent);
}
.btn--primary:hover {
  background: color-mix(in srgb, var(--accent) 86%, white);
  box-shadow: 0 16px 40px color-mix(in srgb, var(--accent) 36%, transparent);
  transform: translateY(-1px);
}
.btn--primary:active { transform: translateY(1px) scale(0.99); }

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--text);
  background: color-mix(in srgb, var(--surface) 55%, transparent);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}
.btn--ghost:active { transform: translateY(1px) scale(0.99); }

.btn--sm { padding: 9px 16px; font-size: 0.8rem; }
.btn--lg { padding: 16px 28px; font-size: 0.95rem; }

.nav__burger { display: none; }
.burger { display: grid; gap: 4px; width: 16px; }
.burger i {
  display: block;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.25s var(--ease);
}
body.menu-open .burger i:first-child { transform: translateY(2.75px) rotate(45deg); }
body.menu-open .burger i:last-child { transform: translateY(-2.75px) rotate(-45deg); }

.menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 34px;
  padding: 100px 24px 48px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  backdrop-filter: blur(28px) saturate(140%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.menu.is-open { opacity: 1; visibility: visible; }
.menu__nav { display: grid; gap: 14px; text-align: center; }
.menu__nav a {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 8vw, 2.6rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  opacity: 0;
  translate: 0 14px;
  transition: opacity 0.5s var(--ease), translate 0.5s var(--ease), color 0.3s;
}
.menu.is-open .menu__nav a { opacity: 1; translate: 0 0; }
.menu.is-open .menu__nav a:nth-child(2) { transition-delay: 0.05s; }
.menu.is-open .menu__nav a:nth-child(3) { transition-delay: 0.1s; }
.menu.is-open .menu__nav a:nth-child(4) { transition-delay: 0.15s; }
.menu__nav a:hover { color: var(--accent); }
.menu__cta { width: min(340px, 100%); }
body.menu-open { overflow: hidden; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100svh;
  padding-top: calc(var(--nav-h) + clamp(40px, 9vh, 96px));
  padding-bottom: 28px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
    620px circle at var(--spot-x, 74%) var(--spot-y, 34%),
    color-mix(in srgb, var(--accent) 15%, transparent),
    transparent 62%
  );
  opacity: 0;
  transition: opacity 0.7s var(--ease);
}
.hero:hover::after { opacity: 1; }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(36px, 5vw, 76px);
}

.hero__title {
  margin-top: 0;
  font-family: var(--font-display);
  font-size: clamp(3.3rem, 8.6vw, 7.4rem);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.052em;
}
.hero__title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.045em;
}
.hero__title .line > span {
  display: block;
  translate: 0 112%;
  animation: titleIn 1s var(--ease) forwards;
}
.hero__title .line:nth-child(2) > span {
  translate: 0 112%;
  animation-delay: 0.09s;
}
@keyframes titleIn {
  to { translate: 0 0; }
}

.hero__lead {
  max-width: 44ch;
  margin-top: clamp(22px, 3vw, 30px);
  color: var(--muted);
  font-size: clamp(1rem, 1.15vw, 1.075rem);
  line-height: 1.66;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: clamp(26px, 3.4vw, 38px);
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 4vw, 44px);
  margin-top: clamp(34px, 4.5vw, 52px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
  max-width: 520px;
}
.hero__facts dt {
  font-family: var(--font-mono);
  font-size: 0.63rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero__facts dd { margin-top: 6px; font-size: 0.86rem; }

.hero__panel { min-width: 0; }

/* ---------- терминал ---------- */

.terminal {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  overflow: hidden;
  background: color-mix(in srgb, var(--bg) 66%, transparent);
  box-shadow: var(--shadow), inset 0 1px 0 var(--glass-highlight);
  transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.terminal.is-max {
  position: fixed;
  top: clamp(12px, 3.5vh, 40px);
  left: 0;
  right: 0;
  margin-inline: auto;
  width: min(1080px, calc(100vw - 24px));
  height: min(84vh, 900px);
  z-index: 130;
  border-radius: 22px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  box-shadow: 0 60px 160px rgba(0, 0, 0, 0.65), inset 0 1px 0 var(--glass-highlight);
}
.terminal.is-closed { display: none; }
.hero--term-open { z-index: 200; }
body.terminal-max { overflow: hidden; }
.terminal::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.32), transparent 42%, transparent 62%, rgba(142, 128, 255, 0.35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.terminal__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.3s var(--ease);
}
.terminal.is-min .terminal__bar {
  border-bottom-color: transparent;
  cursor: pointer;
}

.terminal__dots { display: flex; align-items: center; gap: 2px; margin-left: -4px; }
.term-dot {
  position: relative;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  transition: filter 0.25s var(--ease);
}
.term-dot::before {
  content: "";
  position: absolute;
  inset: 3.5px;
  border-radius: 50%;
  background: var(--dot-color);
  transition: transform 0.2s var(--ease), filter 0.25s var(--ease);
}
.term-dot span {
  position: relative;
  z-index: 1;
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 600;
  line-height: 1;
  opacity: 0;
  translate: 0 0.4px;
  transition: opacity 0.18s var(--ease);
  pointer-events: none;
}
.terminal__dots:hover .term-dot span,
.term-dot:focus-visible span { opacity: 1; }
.term-dot--close { --dot-color: #ff5f57; color: #61110d; }
.term-dot--min { --dot-color: #febc2e; color: #5c3a00; }
.term-dot--max { --dot-color: #28c840; color: #0a3d12; }
.term-dot:hover::before { filter: brightness(1.1); }
.term-dot:active::before { transform: scale(0.9); }

.terminal__title {
  color: var(--muted);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  text-transform: none;
  white-space: nowrap;
}
.terminal__hint {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.56rem;
  letter-spacing: 0.12em;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.terminal.is-max .terminal__hint { opacity: 0.65; }

.terminal__body {
  display: grid;
  grid-template-rows: 1fr;
  min-height: 0;
  transition: grid-template-rows 0.45s var(--ease);
}
.terminal__body-inner {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  opacity: 1;
  transition: opacity 0.3s var(--ease);
}
.terminal.is-min .terminal__body { grid-template-rows: 0fr; }
.terminal.is-min .terminal__body-inner { opacity: 0; pointer-events: none; }
.terminal.is-max .terminal__body { flex: 1; min-height: 0; }
.terminal.is-max .terminal__body-inner { flex: 1; min-height: 0; }

.terminal__output {
  height: 252px;
  padding: 18px 18px 8px;
  overflow-y: auto;
  font-size: 0.76rem;
  line-height: 1.72;
  letter-spacing: 0;
  text-transform: none;
  color: color-mix(in srgb, var(--text) 82%, var(--muted));
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
  overscroll-behavior: contain;
}
.terminal.is-max .terminal__output {
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
  font-size: 0.82rem;
}
.terminal.is-max .terminal__form { flex: none; }
.terminal.is-max .terminal__chips { flex: none; }
.terminal__output::-webkit-scrollbar { width: 5px; }
.terminal__output::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: 99px;
}

.term-line {
  margin-bottom: 6px;
  animation: termIn 0.32s var(--ease) both;
  overflow-wrap: anywhere;
}
.term-line:last-child { margin-bottom: 0; }
.term-line .term-cmd { color: var(--accent); }
.term-line .term-ok { color: #74d9ad; }
.term-line.is-muted { color: var(--muted); }
.term-line a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
@keyframes termIn {
  from { opacity: 0; translate: 0 5px; }
  to { opacity: 1; translate: 0 0; }
}

.terminal__form {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 18px 6px;
  border-top: 1px solid var(--line);
}
.terminal__prompt { color: var(--accent); font-size: 0.78rem; }
.terminal__input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: none;
  color: var(--text);
  font-size: 0.78rem;
  letter-spacing: 0;
  text-transform: none;
  caret-color: var(--accent);
  padding: 2px 0;
}
.terminal__input::placeholder { color: var(--muted); opacity: 0.7; }

.terminal__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px 18px 16px;
}
.chip {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.63rem;
  letter-spacing: 0.04em;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.chip:hover {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  background: var(--accent-soft);
}

.hero__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-top: clamp(34px, 5vh, 60px);
  color: var(--muted);
}
.hero__hint { font-size: 0.63rem; letter-spacing: 0.12em; }
.scroll-hint { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); }
.scroll-hint .mono { font-size: 0.6rem; letter-spacing: 0.14em; }
.scroll-hint__line {
  width: 1px;
  height: 34px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollLine 2.2s ease-in-out infinite;
  transform-origin: top;
}
@keyframes scrollLine {
  0%, 100% { transform: scaleY(0.45); opacity: 0.5; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* ---------- бегущая строка ---------- */

.marquee {
  position: relative;
  padding-block: 17px;
  border-block: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 30%, transparent);
  overflow: hidden;
}
.marquee::before,
.marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(50px, 9vw, 120px);
  z-index: 2;
  pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 42s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group {
  display: flex;
  align-items: center;
  gap: 44px;
  padding-right: 44px;
  flex: none;
}
.marquee__group span {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--muted) 82%, var(--text));
  white-space: nowrap;
}
.marquee__group i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.65;
  flex: none;
}
@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(var(--marquee-shift, -50%), 0, 0); }
}

.terminal-restore {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 26px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: 24px;
  background: color-mix(in srgb, var(--surface) 42%, transparent);
  color: var(--muted);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.terminal-restore[hidden] { display: none; }
.terminal-restore:not([hidden]) { animation: restoreIn 0.42s var(--ease) both; }
.terminal-restore:hover {
  color: var(--text);
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  background: var(--accent-soft);
}
.terminal-restore:focus-visible {
  outline: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
  outline-offset: 2px;
  color: var(--text);
}
.terminal-restore .mono { font-size: 0.62rem; letter-spacing: 0.12em; }
.terminal-restore__dots { display: flex; gap: 5px; align-items: center; }
.terminal-restore__dots i { width: 8px; height: 8px; border-radius: 50%; }
.terminal-restore__dots i:nth-child(1) { background: #ff5f57; }
.terminal-restore__dots i:nth-child(2) { background: #febc2e; }
.terminal-restore__dots i:nth-child(3) { background: #28c840; }
@keyframes restoreIn {
  from { opacity: 0; translate: 0 10px; }
  to { opacity: 1; translate: 0 0; }
}

.terminal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: color-mix(in srgb, var(--bg) 62%, transparent);
  -webkit-backdrop-filter: blur(10px) saturate(115%);
  backdrop-filter: blur(10px) saturate(115%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.terminal-backdrop.is-open { opacity: 1; visibility: visible; }

/* ---------- секции ---------- */

.section { padding-block: clamp(72px, 10vw, 130px); }

.section__head { margin-bottom: clamp(32px, 5vw, 60px); }
.section__head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.section__label {
  color: var(--accent);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  margin-bottom: 18px;
}
.section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.4vw, 3.5rem);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.038em;
  max-width: 22ch;
}

/* ---------- обо мне ---------- */

.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 84px);
  align-items: start;
}
.about__text p {
  color: var(--muted);
  font-size: clamp(0.98rem, 1.15vw, 1.06rem);
  line-height: 1.78;
}
.about__text p + p { margin-top: 18px; }

.about__facts { border-top: 1px solid var(--line); }
.about__facts li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 3px 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.about__num {
  grid-row: span 2;
  font-size: 0.63rem;
  color: var(--muted);
  padding-top: 3px;
}
.about__fact-title { font-size: 0.95rem; font-weight: 500; }
.about__fact-text { color: var(--muted); font-size: 0.86rem; line-height: 1.55; }

/* ---------- услуги ---------- */

.services { border-top: 1px solid var(--line); }
.service {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(160px, 0.9fr) minmax(0, 1.25fr) 42px;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  padding: 28px 20px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  transition: background-color 0.45s var(--ease);
}
.service::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: 50% 0;
  transition: transform 0.5s var(--ease);
}
.service:hover {
  background: linear-gradient(90deg, var(--accent-soft), transparent 68%);
}
.service:hover::before { transform: scaleY(1); }
.service__num { color: var(--muted); font-size: 0.63rem; letter-spacing: 0.1em; transition: color 0.4s var(--ease); }
.service:hover .service__num { color: var(--accent); }
.service__title {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  font-weight: 500;
  letter-spacing: -0.025em;
}
.service__text {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.62;
  max-width: 54ch;
}
.service__arrow {
  justify-self: end;
  color: var(--muted);
  font-size: 1rem;
  opacity: 0;
  translate: -6px 6px;
  transition: opacity 0.4s var(--ease), translate 0.4s var(--ease), color 0.4s var(--ease);
}
.service:hover .service__arrow {
  opacity: 1;
  translate: 0 0;
  color: var(--accent);
}

/* ---------- фильтры ---------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}
.filter {
  padding: 8px 15px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.8rem;
  transition: color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.filter:hover { color: var(--text); }
.filter.is-active {
  background: var(--accent);
  color: var(--accent-ink);
}

/* ---------- проекты ---------- */

.projects {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
  perspective: 1400px;
}
.project { will-change: transform; }
.project.is-hidden { display: none; }
.js .project {
  opacity: 0;
  translate: 0 22px;
  filter: blur(5px);
  transition: opacity 0.8s var(--ease), translate 0.8s var(--ease), filter 0.8s var(--ease);
}
.js .project.is-in { opacity: 1; translate: 0 0; filter: blur(0); }

.project__card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
  overflow: hidden;
  transform-style: preserve-3d;
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition:
    transform 0.7s var(--ease),
    border-color 0.4s var(--ease),
    box-shadow 0.5s var(--ease);
  will-change: transform;
}
.project__card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}
.project.is-tilting .project__card { transition: transform 0.12s linear, border-color 0.4s, box-shadow 0.5s; }

.project__card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    420px circle at var(--mx, 50%) var(--my, 40%),
    rgba(255, 255, 255, 0.12),
    transparent 46%
  );
  opacity: 0;
  transition: opacity 0.45s var(--ease);
  pointer-events: none;
  z-index: 2;
}
.project:hover .project__card::after { opacity: 1; }
[data-theme="light"] .project__card::after {
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 40%), rgba(124, 108, 246, 0.13), transparent 46%);
}

.preview {
  position: relative;
  display: grid;
  place-items: center;
  height: 208px;
  overflow: hidden;
  transform: translateZ(18px);
}
.preview::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(20, 20, 30, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(20, 20, 30, 0.07) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 45%, #000, transparent 78%);
  mask-image: radial-gradient(ellipse at 50% 45%, #000, transparent 78%);
  opacity: 0.7;
}

.preview--violet { background: linear-gradient(135deg, #ece7ff, #d2c8ff 46%, #b9a8ff); }
.preview--mint   { background: linear-gradient(135deg, #e4f8ef, #c6eedd 50%, #a6e1c9); }
.preview--sky    { background: linear-gradient(135deg, #e5f2ff, #c7e3ff 50%, #a7d2ff); }
.preview--peach  { background: linear-gradient(135deg, #ffefe5, #ffd9c7 55%, #ffc4a8); }
.preview--rose   { background: linear-gradient(135deg, #ffe9f2, #ffcfe1 55%, #ffb3ce); }
.preview--sand   { background: linear-gradient(135deg, #f6f0e2, #e8ddc4 55%, #d8c8a4); }

.mock {
  position: relative;
  width: 74%;
  padding: 11px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 40px rgba(28, 18, 58, 0.2);
  transform: rotate(-2.5deg) translateY(4px);
  transition: transform 0.7s var(--ease), box-shadow 0.7s var(--ease);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.project:hover .mock {
  transform: rotate(0deg) translateY(-2px) scale(1.03);
  box-shadow: 0 26px 54px rgba(28, 18, 58, 0.26);
}

.mock__bar {
  display: flex;
  gap: 4px;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(20, 20, 30, 0.07);
}
.mock__bar i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(20, 20, 30, 0.18);
}

.mock__rows { display: flex; gap: 6px; margin-top: 11px; }
.mock__pill {
  display: block;
  width: 56%;
  height: 6px;
  border-radius: 99px;
  background: rgba(20, 20, 30, 0.14);
}
.mock__pill--short { width: 26%; background: rgba(124, 108, 246, 0.55); }

.mock__lines { display: grid; gap: 6px; margin-top: 11px; }
.mock__lines i {
  display: block;
  height: 5px;
  border-radius: 99px;
  background: rgba(20, 20, 30, 0.1);
}
.mock__lines i:nth-child(1) { width: 100%; }
.mock__lines i:nth-child(2) { width: 76%; }
.mock__lines i:nth-child(3) { width: 54%; }

.mock__chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 44px;
  margin-top: 12px;
}
.mock__chart i {
  flex: 1;
  height: var(--h, 50%);
  border-radius: 3px 3px 2px 2px;
  background: linear-gradient(to top, rgba(124, 108, 246, 0.75), rgba(124, 108, 246, 0.28));
  transform-origin: bottom;
  transition: height 0.7s var(--ease);
}

.mock__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  margin-top: 12px;
}
.mock__grid span {
  height: 20px;
  border-radius: 4px;
  background: rgba(20, 20, 30, 0.09);
  transition: background 0.4s var(--ease);
}
.mock__grid span.is-on {
  background: linear-gradient(135deg, rgba(124, 108, 246, 0.85), rgba(124, 108, 246, 0.5));
}

.mock--code .mock__code { display: grid; gap: 6px; margin-top: 12px; }
.mock--code .mock__code i {
  display: block;
  width: var(--w, 60%);
  height: 5px;
  border-radius: 99px;
  background: rgba(20, 20, 30, 0.13);
}
.mock--code .mock__code i:nth-child(2),
.mock--code .mock__code i:nth-child(5) { background: rgba(124, 108, 246, 0.5); }
.mock__run {
  position: absolute;
  right: 12px;
  bottom: 10px;
  padding: 3px 8px;
  border-radius: 99px;
  background: #1b1b22;
  color: #fff;
  font-size: 0.55rem;
  letter-spacing: 0.06em;
}

.mock--chat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 68%;
  padding: 0;
  background: none;
  box-shadow: none;
  transform: rotate(-3deg);
}
.mock--chat .mock__bubble {
  display: block;
  width: 82%;
  height: 30px;
  border-radius: 12px 12px 12px 4px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 24px rgba(28, 18, 58, 0.14);
}
.mock--chat .mock__bubble--out {
  align-self: flex-end;
  width: 64%;
  border-radius: 12px 12px 4px 12px;
  background: #1d1b26;
}
.mock--chat .mock__bubble--short { width: 44%; }

.mock--blocks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  width: 58%;
  padding: 0;
  background: none;
  box-shadow: none;
  transform: rotate(-5deg);
}
.mock--blocks span {
  aspect-ratio: 1;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(20, 20, 30, 0.08);
}
.mock--blocks span:nth-child(3n) { background: rgba(20, 20, 30, 0.72); }
.mock--blocks span:nth-child(5n) { background: rgba(124, 108, 246, 0.6); }

.preview__badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 5px 9px;
  border-radius: 99px;
  background: rgba(12, 12, 17, 0.72);
  color: #f2f2f4;
  font-size: 0.55rem;
  letter-spacing: 0.07em;
  z-index: 1;
}

.project__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px 22px 22px;
  transform: translateZ(26px);
}
.project__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.project__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.028em;
}
.project__arrow {
  color: var(--muted);
  font-size: 1rem;
  transition: transform 0.4s var(--ease), color 0.4s var(--ease);
}
.project__card:hover .project__arrow {
  transform: translate(3px, -3px);
  color: var(--accent);
}
.project__desc {
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.845rem;
  line-height: 1.6;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: auto;
  padding-top: 16px;
}
.tags li {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.59rem;
  letter-spacing: 0.02em;
  transition: border-color 0.4s var(--ease), color 0.4s var(--ease);
}
.project__card:hover .tags li { border-color: var(--line-strong); color: var(--text); }

.projects__note {
  margin-top: 26px;
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.09em;
}

/* ---------- стек ---------- */

.stack {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px);
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.stack__name {
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
}
.stack__list { display: flex; flex-wrap: wrap; gap: 6px; }
.stack__list li {
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--surface);
  font-size: 0.79rem;
  color: color-mix(in srgb, var(--text) 88%, var(--muted));
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), color 0.35s var(--ease);
}
.stack__list li:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  color: var(--accent);
}

/* ---------- контакты ---------- */

.section--contact { padding-bottom: clamp(72px, 9vw, 118px); }
.contact {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(40px, 7vw, 88px) clamp(22px, 5vw, 64px);
  border-radius: 32px;
  overflow: hidden;
}
.contact__orb {
  position: absolute;
  top: -46%;
  right: -12%;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 42%, transparent), transparent 66%);
  filter: blur(30px);
  opacity: 0.55;
  pointer-events: none;
}
.contact > *:not(.contact__orb) { position: relative; z-index: 1; }
.contact .section__label { margin-bottom: 20px; }
.contact__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  font-weight: 500;
  line-height: 1.0;
  letter-spacing: -0.045em;
}
.contact__text {
  max-width: 46ch;
  margin-top: 20px;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.1vw, 1.02rem);
  line-height: 1.7;
}
.contact__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 32px;
}
.contact__links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(16px, 2.5vw, 28px);
  margin-top: 38px;
}
.contact__link { display: flex; flex-direction: column; gap: 5px; }
.contact__link .mono {
  color: var(--muted);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  transition: color 0.3s var(--ease);
}
.contact__link span:last-child { font-size: 0.87rem; transition: color 0.3s var(--ease); }
.contact__link:hover span:last-child { color: var(--accent); }
.contact__divider { width: 1px; height: 28px; background: var(--line); }

/* ---------- футер и тост ---------- */

.footer { border-top: 1px solid var(--line); padding-block: 26px; }
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
}
.footer__inner .mono { font-size: 0.61rem; letter-spacing: 0.1em; }
.footer__up { transition: color 0.3s var(--ease); }
.footer__up:hover { color: var(--accent); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 90;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  box-shadow: var(--shadow-soft);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  opacity: 0;
  translate: -50% 14px;
  pointer-events: none;
  transition: opacity 0.35s var(--ease), translate 0.35s var(--ease);
}
.toast.is-visible { opacity: 1; translate: -50% 0; }

/* ---------- адаптив ---------- */

@media (max-width: 1060px) {
  .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .hero { min-height: auto; padding-top: calc(var(--nav-h) + 56px); padding-bottom: 36px; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .hero__panel { max-width: 560px; width: 100%; }
  .hero__facts { max-width: none; }
  .about { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .service {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 6px 16px;
    padding: 22px 16px;
  }
  .service__text { grid-column: 2; }
  .service__arrow { display: none; }
  .contact__orb { right: -35%; opacity: 0.4; }
}

@media (max-width: 780px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__burger { display: grid; }
  .nav__inner { padding: 6px 8px 6px 10px; gap: 12px; }
  .nav__actions { flex: 1; margin-left: 0; justify-content: space-between; }
  .section__head--row { align-items: flex-start; }
  .filters { order: -1; }
  .projects { grid-template-columns: minmax(0, 1fr); }
  .preview { height: 200px; }
  .section__title { max-width: none; }
}

@media (max-width: 560px) {
  .hero__title { font-size: clamp(3rem, 15vw, 4.4rem); }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .hero__facts { gap: 22px; }
  .hero__facts > div { min-width: calc(50% - 22px); }
  .hero__foot { margin-top: 30px; }
  .terminal__output { height: 230px; }
  .terminal__input { font-size: 16px; }
  .term-dot { width: 22px; height: 22px; }
  .term-dot span { font-size: 10px; }
  .terminal-restore { padding: 22px 16px; }
  .contact__actions { flex-direction: column; align-items: stretch; width: 100%; max-width: 340px; }
  .contact__actions .btn { width: 100%; }
  .contact__links { flex-direction: column; gap: 14px; }
  .contact__divider { display: none; }
  .footer__inner { justify-content: center; text-align: center; }
  .stack { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .filter { padding: 7px 12px; font-size: 0.76rem; }
  .filters { width: 100%; border-radius: 16px; justify-content: space-between; padding: 4px; }
  .filter { flex: 1 1 auto; text-align: center; padding: 8px 8px; }
  .toast { max-width: calc(100% - 32px); text-align: center; }
}

@media (max-width: 400px) {
  .mono { letter-spacing: 0.05em; }
}

/* тач-устройства: без «залипающих» hover */
@media (hover: none) {
  .service:hover { background: none; }
  .service:hover::before { transform: scaleY(0); }
  .project:hover .mock { transform: rotate(-2.5deg) translateY(4px); }
  .project__card:hover { box-shadow: none; border-color: var(--line); }
  .project__card:hover .project__arrow { transform: none; color: var(--muted); }
  .stack__list li:hover { transform: none; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal,
  .js .project { opacity: 1; translate: none; filter: none; }
  .hero__title .line > span { translate: none; }
  .orb { animation: none; }
}
