/* Vibe Coder — editorial / brutal-refined (frontend-design skill) */
:root {
  --bg-deep: #080706;
  --bg-elevated: #110f0e;
  --bg-card: #171311;
  --text: #f2ebe4;
  --text-muted: #9a9189;
  --accent: #ff4d1a;
  --accent-soft: #ff7849;
  --accent-dim: rgba(255, 77, 26, 0.14);
  --accent-glow: rgba(255, 77, 26, 0.5);
  --frost: #7cdbd5;
  --frost-dim: rgba(124, 219, 213, 0.12);
  --border: rgba(242, 235, 228, 0.09);
  --border-strong: rgba(242, 235, 228, 0.16);
  /* Все заголовки — Syne */
  --font-heading: "Syne", system-ui, sans-serif;
  --font-body: "Newsreader", "Georgia", serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --radius: 0;
  --radius-sm: 0;
  --space-section: clamp(4.5rem, 14vw, 9rem);
  --max: 1140px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-snap: cubic-bezier(0.34, 1.56, 0.64, 1);
  --scroll-progress: 0;
}

/* Индикатор прогресса прокрутки */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 10001;
  pointer-events: none;
}

.scroll-progress__bar {
  display: block;
  height: 100%;
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(var(--scroll-progress));
  background: linear-gradient(90deg, var(--accent) 0%, var(--frost) 100%);
  box-shadow: 0 0 14px rgba(255, 77, 26, 0.35);
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero .eyebrow,
  .hero .hero-lead,
  .hero .hero-actions,
  .hero .hero__visual {
    animation: none !important;
  }
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.68;
  color: var(--text);
  background: var(--bg-deep);
  overflow-x: hidden;
}

/* Skip link (доступность) */
.skip-link {
  position: fixed;
  left: 1rem;
  top: 0.75rem;
  z-index: 10020;
  padding: 0.65rem 0.9rem;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transform: translateY(-200%);
  transition: transform 0.25s var(--ease-out);
}

.skip-link:focus {
  transform: translateY(0);
  outline: none;
  border-color: var(--frost);
  box-shadow: 0 0 0 4px var(--frost-dim);
}

/* Единые фокус-стили (клавиатура) */
:where(a, button, [role="button"], .cursor-target):focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px var(--frost-dim);
}

.nav a:focus-visible {
  text-decoration: underline;
  text-decoration-color: var(--frost);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.35rem;
}

/* Фон: mesh + диагональ */
.ambient {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.ambient__mesh {
  position: absolute;
  inset: -40% -20%;
  background:
    radial-gradient(ellipse 80% 55% at 15% 20%, rgba(255, 77, 26, 0.19), transparent 55%),
    radial-gradient(ellipse 60% 45% at 88% 75%, rgba(124, 219, 213, 0.1), transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(255, 120, 73, 0.08), transparent 45%);
  filter: blur(0px);
}

.ambient__strip {
  position: absolute;
  top: -10%;
  right: 12%;
  width: 1px;
  height: 120%;
  background: linear-gradient(
    180deg,
    transparent 0%,
    var(--border-strong) 25%,
    var(--accent-dim) 50%,
    var(--border-strong) 75%,
    transparent 100%
  );
  transform: rotate(12deg);
  opacity: 0.85;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0.055;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.78' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a {
  color: var(--frost);
  text-decoration: none;
  transition: color 0.2s var(--ease-out), opacity 0.2s;
}

a:hover {
  color: #a8f5ef;
}

.site-header,
main > *,
.footer {
  position: relative;
  z-index: 1;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem clamp(1.25rem, 4vw, 2.5rem);
  background: rgba(8, 7, 6, 0.72);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  color: var(--text);
  text-transform: uppercase;
}

.logo:hover {
  color: var(--accent-soft);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

.nav a:hover {
  color: var(--text);
}

.nav a[data-nav]:not(.nav-cta).is-active {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.35rem;
}

.nav-cta.is-active {
  background: var(--accent-dim);
  border-color: var(--accent-soft);
  color: var(--accent-soft) !important;
  box-shadow: 0 0 32px var(--accent-dim);
}

.nav-cta {
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--accent);
  color: var(--accent-soft) !important;
  box-shadow: 0 0 24px var(--accent-dim);
}

.nav-cta:hover {
  background: var(--accent-dim);
  color: #ffb8a0 !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 1.25rem;
    gap: 1rem;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s var(--ease-out), opacity 0.4s;
  }

  .nav--open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
}

/* Hero — сетка: контент + фото в стиле сайта */
.hero {
  position: relative;
  padding: clamp(2.5rem, 7vw, 5rem) clamp(1.25rem, 4vw, 2.5rem) var(--space-section);
  margin: 0 auto;
}

.hero__layout {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 36%);
  gap: clamp(1.75rem, 5vw, 3.75rem);
  align-items: center;
  min-height: min(90vh, 900px);
  position: relative;
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.hero__visual {
  margin: 0;
  position: relative;
  z-index: 1;
  justify-self: end;
  width: 100%;
  max-width: 380px;
}

.hero__photo-frame {
  position: relative;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  background: var(--bg-card);
  overflow: hidden;
  box-shadow: 14px 14px 0 var(--accent-dim);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.hero__photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    165deg,
    rgba(255, 77, 26, 0.14) 0%,
    transparent 42%,
    rgba(124, 219, 213, 0.1) 100%
  );
  mix-blend-mode: soft-light;
}

@media (prefers-reduced-motion: no-preference) {
  .hero__photo-frame:hover {
    transform: translate(-5px, -5px);
    box-shadow: 18px 18px 0 var(--accent-dim);
  }
}

.hero__photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 20%;
  filter: grayscale(100%) contrast(1.06) brightness(0.97);
}

.hero__rail {
  position: absolute;
  left: clamp(1.25rem, 4vw, 2.5rem);
  top: 32%;
  width: min(4rem, 12vw);
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
  z-index: 0;
  opacity: 0.85;
  pointer-events: none;
}

@media (max-width: 900px) {
  .hero__layout {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 2.25rem;
  }

  .hero__visual {
    order: -1;
    justify-self: center;
    max-width: min(280px, 72vw);
  }

  .hero__rail {
    top: 22%;
  }
}

@media (max-width: 640px) {
  .hero__rail {
    display: none;
  }
}

.hero::before {
  content: "";
  position: absolute;
  top: 8%;
  right: -15%;
  width: min(55vw, 480px);
  height: min(55vw, 480px);
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 68%);
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--text-muted);
  margin: 0 0 1.75rem;
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .hero .eyebrow,
  .hero .hero-lead,
  .hero .hero-actions,
  .hero .hero__visual {
    animation: hero-rise 1s var(--ease-out) backwards;
  }

  .hero .eyebrow {
    animation-delay: 0.06s;
  }

  .hero .hero-lead {
    animation-delay: 0.18s;
  }

  .hero .hero-actions {
    animation-delay: 0.26s;
  }

  .hero .hero__visual {
    animation-delay: 0.14s;
  }
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(2rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2rem, 5.5vw, 3.75rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin: 0 0 1.5rem;
  max-width: 100%;
  position: relative;
  z-index: 1;
  /* чтобы печатающийся текст не дёргал верстку */
  min-height: 2.2em;
}

.hero-type {
  display: block;
  white-space: normal;
  max-width: 18ch;
}

.hero-type__cursor {
  display: inline-block;
  margin-left: 0.08em;
  color: var(--accent-soft);
  font-weight: 800;
  transform: translateY(-0.02em);
}

@media (prefers-reduced-motion: no-preference) {
  .hero-type__cursor {
    animation: hero-cursor-blink 0.5s ease-in-out infinite;
  }
}

@keyframes hero-cursor-blink {
  0%,
  40% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0;
  }
}

.hero-lead {
  font-size: clamp(1.02rem, 2.1vw, 1.22rem);
  color: var(--text-muted);
  max-width: 42ch;
  margin: 0 0 2.35rem;
  position: relative;
  z-index: 1;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  position: relative;
  z-index: 1;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.65rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s, background 0.25s, border-color 0.25s;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-deep);
  box-shadow: 0 4px 0 var(--bg-elevated), 0 12px 40px var(--accent-dim);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 0 var(--bg-elevated), 0 20px 48px rgba(255, 77, 26, 0.38);
  color: var(--bg-deep);
}

.btn:active {
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.btn-ghost:hover {
  border-color: var(--frost);
  background: var(--frost-dim);
  color: var(--text);
  transform: translateY(-2px);
}

/* Sections */
.section {
  padding: var(--space-section) clamp(1.25rem, 4vw, 2.5rem);
}

@media (prefers-reduced-motion: no-preference) {
  .section {
    opacity: 0;
    transform: translateY(1.75rem);
    animation: section-in 0.85s var(--ease-out) forwards;
    animation-timeline: view();
    animation-range: entry 8% cover 22%;
  }

  @keyframes section-in {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

@supports not (animation-timeline: view()) {
  .section {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .section {
    opacity: 1;
    transform: none;
    animation: none !important;
  }
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.8vw, 2.6rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 2.75rem;
  max-width: 22ch;
  color: var(--text);
}

.section-title--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 28ch;
}

/* About */
.about {
  background: linear-gradient(165deg, var(--bg-deep) 0%, var(--bg-elevated) 45%, var(--bg-deep) 100%);
  border-top: 1px solid var(--border);
}

.about-grid {
  max-width: 720px;
}

.prose p {
  margin: 0 0 1.35rem;
  color: var(--text-muted);
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

.check-list {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.check-list li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--text-muted);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 2px;
  background: var(--accent);
  transform-origin: left;
  box-shadow: 0 0 14px var(--accent-glow);
}

.about-closing {
  font-size: 1.08rem;
  color: var(--text) !important;
  border-left: 3px solid var(--accent);
  padding: 1rem 0 1rem 1.35rem;
  margin-top: 2.25rem !important;
  background: linear-gradient(90deg, var(--accent-dim), transparent);
}

/* Skills */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  margin: 0 -1px -1px 0;
  padding: 1.85rem 1.75rem 2rem;
  transition: border-color 0.3s var(--ease-out), background 0.3s, transform 0.35s var(--ease-snap);
}

@media (prefers-reduced-motion: no-preference) {
  .card:nth-child(1) {
    animation: card-pop 0.65s var(--ease-out) 0.05s backwards;
  }

  .card:nth-child(2) {
    animation: card-pop 0.65s var(--ease-out) 0.1s backwards;
  }

  .card:nth-child(3) {
    animation: card-pop 0.65s var(--ease-out) 0.15s backwards;
  }

  .card:nth-child(4) {
    animation: card-pop 0.65s var(--ease-out) 0.2s backwards;
  }

  .card:nth-child(5) {
    animation: card-pop 0.65s var(--ease-out) 0.25s backwards;
  }

  .card:nth-child(6) {
    animation: card-pop 0.65s var(--ease-out) 0.3s backwards;
  }

  @keyframes card-pop {
    from {
      opacity: 0;
      transform: translateY(1.25rem) scale(0.98);
    }

    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .card {
    animation: none !important;
  }
}

.card:hover {
  border-color: var(--border-strong);
  background: #1c1916;
  transform: translate(-4px, -4px);
  box-shadow: 8px 8px 0 var(--accent-dim);
  z-index: 2;
}

.card-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  margin: 0 0 0.85rem;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.card-text {
  margin: 0;
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.62;
}

/* Approach */
.approach {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.approach-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  max-width: 760px;
}

.approach-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.75rem;
  align-items: start;
  padding-bottom: 2rem;
  border-bottom: 1px dashed var(--border);
}

.approach-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.approach-num {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  color: var(--accent-soft);
  line-height: 1;
  padding-top: 0.35rem;
}

.approach-item-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0 0 0.6rem;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.approach-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
}

/* Projects */
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.project-card {
  position: relative;
  isolation: isolate;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--border);
  padding: 2rem 2rem 2.15rem;
  margin-bottom: -1px;
  transition:
    border-left-color 0.35s,
    background 0.35s,
    transform 0.3s var(--ease-out),
    opacity 0.65s var(--ease-out),
    box-shadow 0.35s var(--ease-out);
}

.project-card > * {
  position: relative;
  z-index: 1;
}

/* Блик по левой границе при наведении */
@media (prefers-reduced-motion: no-preference) {
  .project-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(
      180deg,
      transparent 0%,
      rgba(255, 120, 73, 0.95) 42%,
      rgba(124, 219, 213, 0.75) 58%,
      transparent 100%
    );
    background-size: 100% 220%;
    background-position: center 100%;
    opacity: 0;
    transition: opacity 0.35s var(--ease-out);
  }

  .project-card:hover::before,
  .project-card:focus-within::before {
    opacity: 0.9;
    animation: project-shimmer 2.4s ease-in-out infinite;
  }
}

@keyframes project-shimmer {
  0% {
    background-position: center 130%;
  }

  50% {
    background-position: center -30%;
  }

  100% {
    background-position: center 130%;
  }
}

.project-card:nth-child(even) {
  border-left-color: var(--frost-dim);
}

.project-card:hover {
  border-left-color: var(--accent);
  background: #1d1a17;
  transform: translateX(6px);
}

body.motion-stagger .project-card:not(.is-inview) {
  opacity: 0;
  transform: translateX(-1.25rem);
}

body.motion-stagger .project-card:not(.is-inview):hover {
  transform: translateX(-1rem);
}

body.motion-stagger .project-card.is-inview {
  opacity: 1;
  transform: translateX(0);
}

body.motion-stagger .project-card.is-inview:hover {
  transform: translateX(6px);
}

.project-meta {
  margin-bottom: 0.85rem;
}

.project-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-soft);
  border: 1px solid var(--accent-dim);
  padding: 0.35rem 0.65rem;
}

.project-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.45rem;
  margin: 0 0 0.75rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.project-desc {
  margin: 0 0 1.1rem;
  color: var(--text-muted);
}

.project-done {
  margin: 0;
  font-size: 0.96rem;
  color: var(--text-muted);
}

.project-done strong {
  color: var(--text);
  font-weight: 600;
}

/* Why */
.why-inner {
  max-width: 820px;
}

.why-lead {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1.35rem, 2.8vw, 1.75rem);
  color: var(--text);
  margin: 0 0 2.25rem;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.why-columns {
  display: grid;
  grid-template-columns: 1fr 1.45fr;
  gap: 2.5rem;
  margin-bottom: 2.25rem;
}

@media (max-width: 600px) {
  .why-columns {
    grid-template-columns: 1fr;
  }
}

.why-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  margin: 0 0 0.85rem;
}

.why-col ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text-muted);
}

.why-col li {
  margin-bottom: 0.4rem;
}

.why-col--accent ul {
  color: var(--text);
}

.why-formula {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0;
  padding: 1.35rem 1.65rem;
  background: var(--accent-dim);
  border: 1px solid rgba(255, 77, 26, 0.35);
  color: var(--accent-soft);
  line-height: 1.55;
}

/* Stack */
.badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 2.25rem;
}

.badge {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  padding: 0.55rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: border-color 0.25s, color 0.25s, transform 0.2s var(--ease-snap);
}

.badge:hover {
  border-color: var(--frost);
  color: var(--text);
  transform: translateY(-2px);
}

.stack-note {
  text-align: center;
  max-width: 48ch;
  margin: 0 auto;
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 500;
  font-size: 1.18rem;
  line-height: 1.58;
  color: var(--text-muted);
}

/* Audience */
.audience {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
}

.audience-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.65rem 1rem;
}

.audience-list li {
  padding: 1rem 1.15rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.98rem;
  transition:
    border-color 0.25s,
    padding-left 0.25s var(--ease-out),
    opacity 0.55s var(--ease-out),
    transform 0.55s var(--ease-out);
}

body.motion-stagger .audience-list li:not(.is-inview) {
  opacity: 0;
  transform: translateY(0.75rem);
}

body.motion-stagger .audience-list li.is-inview {
  opacity: 1;
  transform: translateY(0);
}

.audience-list li:hover {
  border-color: var(--accent-dim);
  padding-left: 1.35rem;
}

.audience-list li::before {
  content: "// ";
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.85em;
}

/* Manifest */
.manifest {
  margin: 0;
  padding: var(--space-section) clamp(1.25rem, 4vw, 2.5rem);
  position: relative;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.manifest::before,
.manifest::after {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(4rem, 12vw, 7rem);
  line-height: 1;
  color: var(--accent-dim);
  position: absolute;
  pointer-events: none;
  opacity: 0.55;
  letter-spacing: -0.04em;
}

.manifest::before {
  content: "“";
  top: 1.5rem;
  left: clamp(1rem, 4vw, 2rem);
}

.manifest::after {
  content: "”";
  bottom: 1rem;
  right: clamp(1rem, 4vw, 2rem);
}

.manifest p {
  max-width: 900px;
  margin: 0 auto;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.55rem, 4.2vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  text-align: center;
  color: var(--text);
  position: relative;
  z-index: 1;
}

/* Final CTA */
.cta-final {
  padding-bottom: clamp(3.5rem, 9vw, 6rem);
  position: relative;
}

.cta-final::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: min(90%, 520px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
}

.cta-inner {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.cta-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.55rem, 3.6vw, 2.1rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 1.35rem;
}

.cta-text {
  color: var(--text-muted);
  margin: 0 0 2.25rem;
  font-size: 1.08rem;
}

.cta-inner .hero-actions {
  justify-content: center;
}

/* Footer */
.footer {
  padding: 3.5rem clamp(1.25rem, 4vw, 2.5rem);
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
}

.footer-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.35rem;
  margin: 0 0 1.5rem;
  letter-spacing: -0.03em;
}

.footer-contacts {
  margin-bottom: 1.75rem;
}

.footer-contacts p {
  margin: 0.4rem 0;
}

.footer-contacts a {
  color: var(--text);
}

.footer-contacts a:hover {
  color: var(--accent-soft);
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.75rem;
  margin-bottom: 2.25rem;
}

.footer-social a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.footer-social a:hover {
  color: var(--frost);
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0;
  opacity: 0.75;
}

/* Отзывы — стопка карточек при скролле (аналог ContainerScroll + CardTransformed) */
.testimonials-section {
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-elevated) 40%, var(--bg-deep) 100%);
}

.testimonials-section__head {
  padding-bottom: 0.5rem;
}

.testimonials-section__lead {
  text-align: center;
  max-width: 36rem;
  margin: -0.5rem auto 0;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.testimonials-scroll {
  position: relative;
  min-height: min(340vh, 3200px);
  margin-top: 1.5rem;
}

.testimonials-sticky {
  position: sticky;
  top: clamp(4.5rem, 14vh, 7rem);
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem clamp(1rem, 3vw, 2rem) 3rem;
  box-sizing: border-box;
}

.testimonials-stack {
  position: relative;
  width: 100%;
  max-width: 380px;
  height: min(460px, 72vh);
  margin: 0 auto;
  perspective: 1200px;
  perspective-origin: 50% 45%;
  overflow: visible;
}

.testimonial-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  max-width: 380px;
  transform-style: preserve-3d;
  will-change: transform;
  transform: translate3d(-50%, -50%, 0);
}

.testimonial-card__inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: min(420px, 68vh);
  padding: 1.65rem 1.75rem 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  box-shadow: 12px 12px 0 var(--accent-dim);
  box-sizing: border-box;
}

@media (prefers-reduced-motion: no-preference) {
  .testimonial-card__inner {
    transition: box-shadow 0.35s var(--ease-out), transform 0.35s var(--ease-out), border-color 0.35s;
  }

  .testimonial-card:hover .testimonial-card__inner {
    border-color: var(--border-strong);
    box-shadow: 16px 16px 0 var(--accent-dim);
  }
}

.review-stars {
  flex-shrink: 0;
}

.review-stars__row {
  display: inline-block;
  color: var(--accent-soft);
  font-size: 1.05rem;
  letter-spacing: 0.2em;
  line-height: 1;
  text-shadow: 0 0 18px var(--accent-dim);
}

.review-stars__half {
  display: inline-block;
  width: 0.52em;
  overflow: hidden;
  vertical-align: top;
  margin-right: -0.06em;
}

.testimonial-card__quote {
  margin: 0;
  flex: 1;
}

.testimonial-card__quote p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.58;
  color: var(--text-muted);
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 0.25rem;
  border-top: 1px solid var(--border);
}

.testimonial-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-strong);
  flex-shrink: 0;
}

.testimonial-card__name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0 0 0.2rem;
  letter-spacing: -0.03em;
}

.testimonial-card__role {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .testimonials-scroll {
    min-height: min(280vh, 2600px);
  }

  .testimonials-sticky {
    min-height: auto;
    padding-bottom: 2rem;
  }

  .testimonials-stack {
    height: min(500px, 78vh);
  }

  .testimonial-card__inner {
    min-height: min(440px, 75vh);
  }
}

/* Target cursor — адаптация Reactbits / GSAP под статический сайт */
body.has-target-cursor,
body.has-target-cursor button,
body.has-target-cursor a,
body.has-target-cursor [role="button"] {
  cursor: none !important;
}

.target-cursor {
  position: fixed;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 10050;
  mix-blend-mode: normal;
}

.target-cursor[hidden] {
  display: none !important;
}

.target-cursor__inner {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 1px;
  transform: translate(-50%, -50%);
  will-change: transform;
}

.target-cursor__dot {
  position: absolute;
  left: 0;
  top: 0;
  width: 5px;
  height: 5px;
  background: var(--accent-soft);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent-glow);
  pointer-events: none;
  will-change: transform;
  transform: translate(-50%, -50%);
}

.target-cursor__corner {
  position: absolute;
  left: 0;
  top: 0;
  width: 12px;
  height: 12px;
  border: 3px solid var(--accent-soft);
  pointer-events: none;
  box-sizing: border-box;
  will-change: transform;
}

.target-cursor__corner--tl {
  border-right: none;
  border-bottom: none;
}

.target-cursor__corner--tr {
  border-left: none;
  border-bottom: none;
}

.target-cursor__corner--br {
  border-left: none;
  border-top: none;
}

.target-cursor__corner--bl {
  border-right: none;
  border-top: none;
}