/* =====================================================================
   PARADIGMA HOME · CONCEPT D 2026 (v2 — Артём feedback)
   Префикс .hp-* (homepage)
   ===================================================================== */
.hp-page {
  --hp-ink: #0c0c0c;
  --hp-cream: #f4ede1;
  --hp-bone: #e8dfcc;
  --hp-fire: #ff4524;
  --hp-pulse: #c4ff00;
  --hp-sky: #7dc4ff;
  --hp-rose: #ff7da8;
  --hp-faint: rgba(244, 237, 225, 0.08);
  --hp-faint2: rgba(244, 237, 225, 0.16);

  background: var(--hp-ink); color: var(--hp-cream);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  position: relative;
}
.hp-page, .hp-page * { box-sizing: border-box; }
.hp-page::before {
  content: ""; position: absolute; inset: 0;
  pointer-events: none; z-index: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.4' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0 0.04 0'/></filter><rect width='240' height='240' filter='url(%23n)'/></svg>");
  opacity: .35;
}
.hp-page > * { position: relative; z-index: 1; }

.hp-display {
  font-family: 'Russo One', 'Unbounded', Impact, sans-serif;
  letter-spacing: -0.015em; text-transform: uppercase;
}
.hp-container { max-width: 1500px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); }

.hp-section-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--hp-fire);
}
.hp-section-title {
  font-size: clamp(44px, 8vw, 128px);
  line-height: 0.92;
  margin: clamp(14px, 2vh, 24px) 0 clamp(28px, 4vh, 56px);
  word-break: break-word;
}
.hp-accent { color: var(--hp-fire); }
.hp-pulse-text { color: var(--hp-pulse); }

.hp-pulse-dot {
  display: inline-block; width: 8px; height: 8px;
  border-radius: 50%; background: var(--hp-pulse);
  animation: hp-pulse 2s ease-out infinite; flex-shrink: 0;
}
@keyframes hp-pulse {
  0% { box-shadow: 0 0 0 0 rgba(196, 255, 0, .55); }
  100% { box-shadow: 0 0 0 18px rgba(196, 255, 0, 0); }
}

/* =================================
   HERO — на один экран
   ================================= */
.hp-hero {
  position: relative;
  min-height: 100svh;
  height: 100svh;
  padding: clamp(80px, 11vh, 120px) 0 clamp(28px, 4vh, 48px);
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
}
.hp-hero-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}
.hp-hero-vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(255, 69, 36, .15) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 80%, rgba(196, 255, 0, .08) 0%, transparent 50%),
    linear-gradient(to bottom, rgba(12,12,12,0) 30%, var(--hp-ink) 100%);
  pointer-events: none;
  z-index: 1;
}
.hp-hero-content { position: relative; z-index: 2; }

.hp-hero-grid {
  display: block;
  position: relative;
}
.hp-hero-main { max-width: 1000px; }
@media (min-width: 1100px) {
  /* оставляем место под терминал в правом нижнем углу */
  .hp-hero-main { max-width: min(1000px, calc(100% - 420px)); }
}
@media (min-width: 1400px) {
  .hp-hero-main { max-width: min(1100px, calc(100% - 480px)); }
}

.hp-kicker {
  display: flex; align-items: center; gap: 12px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--hp-fire);
  margin-bottom: clamp(18px, 2.5vh, 28px);
}

.hp-h1 {
  font-size: clamp(44px, 6.5vw, 96px);
  line-height: 0.9;
  margin: 0;
  word-break: keep-all;
  hyphens: none;
}
.hp-h1 .hp-glitch { display: block; }

.hp-lead {
  margin-top: clamp(20px, 3vh, 32px);
  font-size: clamp(15px, 1.35vw, 19px);
  line-height: 1.5;
  color: rgba(244, 237, 225, .82);
  max-width: 720px;
}
.hp-lead-strong { color: var(--hp-cream); font-weight: 500; }

.hp-hero-meta {
  margin-top: clamp(24px, 3.5vh, 36px);
  display: flex; flex-wrap: wrap; gap: 12px;
}

.hp-hero-tagline {
  margin-top: clamp(20px, 3vh, 28px);
  display: flex; align-items: center; gap: 10px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: rgba(244, 237, 225, .55);
}

/* HERO terminal mini — float card, absolute on desktop */
.hp-hero-term {
  border: 1px solid var(--hp-faint2);
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: 'JetBrains Mono', monospace;
  display: flex; flex-direction: column;
  min-height: 200px;
  width: 100%;
  max-width: 100%;
  margin-top: clamp(24px, 3vh, 32px);
  box-shadow: 0 30px 60px rgba(0,0,0,.55);
}
@media (min-width: 1100px) {
  .hp-hero-term {
    position: absolute;
    right: 0; bottom: 0;
    width: 380px;
    margin-top: 0;
  }
}
@media (min-width: 1400px) {
  .hp-hero-term { width: 440px; }
}
.hp-term-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--hp-faint2);
  background: rgba(244, 237, 225, .04);
}
.hp-term-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(244, 237, 225, .25);
}
.hp-term-dot:nth-child(1) { background: #ff5f56; }
.hp-term-dot:nth-child(2) { background: #ffbd2e; }
.hp-term-dot:nth-child(3) { background: #27c93f; }
.hp-term-title {
  margin-left: auto;
  font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase;
  color: rgba(244, 237, 225, .4);
}
.hp-term-body {
  padding: 16px 18px;
  font-size: 13px; line-height: 1.55;
  color: rgba(244, 237, 225, .9);
  flex: 1;
  white-space: pre-wrap;
  overflow: hidden;
  min-height: 200px;
}
.hp-term-line { display: block; min-height: 1.55em; }
.hp-term-cmd { color: var(--hp-cream); }
.hp-term-cmd::before { content: "$ "; color: var(--hp-fire); }
.hp-term-ok { color: var(--hp-pulse); }
.hp-term-info { color: rgba(244, 237, 225, .7); }
.hp-term-cursor {
  display: inline-block;
  width: 9px; height: 1.05em; vertical-align: -2px;
  background: var(--hp-pulse); margin-left: 2px;
  animation: hp-blink 1.05s steps(1) infinite;
}
@keyframes hp-blink { 50% { opacity: 0; } }

/* =================================
   BUTTONS (shared)
   ================================= */
.hp-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: clamp(14px, 1.8vw, 18px) clamp(20px, 2.4vw, 28px);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; letter-spacing: 0.25em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; border: none;
  transition: background-color .3s, color .3s, border-color .3s;
  will-change: transform;
}
.hp-btn-large { padding: clamp(18px, 2.5vw, 24px) clamp(28px, 3vw, 36px); font-size: 13px; }
.hp-btn-label { display: inline-block; will-change: transform; }
.hp-btn-primary { background: var(--hp-fire); color: var(--hp-cream); }
.hp-btn-primary:hover { background: var(--hp-pulse); color: var(--hp-ink); }
.hp-btn-secondary {
  background: transparent;
  border: 1px solid rgba(244, 237, 225, .2);
  color: var(--hp-cream);
}
.hp-btn-secondary:hover { border-color: var(--hp-fire); color: var(--hp-fire); }
.hp-btn-ghost {
  background: transparent;
  color: rgba(244, 237, 225, .6);
}
.hp-btn-ghost:hover { color: var(--hp-fire); }

/* =================================
   GLITCH text
   ================================= */
.hp-glitch { position: relative; display: inline-block; }
.hp-glitch::before, .hp-glitch::after {
  content: attr(data-text);
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%; opacity: 0;
}
.hp-glitch::before { color: var(--hp-fire); transform: translate(-3px, 0); mix-blend-mode: screen; }
.hp-glitch::after  { color: var(--hp-sky); transform: translate(3px, 0); mix-blend-mode: screen; }
.hp-glitch.active::before { animation: hp-gA .3s steps(1) 2; opacity: 1; }
.hp-glitch.active::after  { animation: hp-gB .3s steps(1) 2; opacity: 1; }
@keyframes hp-gA {
  0% { transform: translate(-3px,0); clip-path: inset(10% 0 80% 0); }
  50% { transform: translate(-5px,-1px); clip-path: inset(85% 0 5% 0); }
  100% { transform: translate(-3px,0); clip-path: inset(10% 0 80% 0); }
}
@keyframes hp-gB {
  0% { transform: translate(3px,0); clip-path: inset(70% 0 10% 0); }
  50% { transform: translate(2px,2px); clip-path: inset(45% 0 30% 0); }
  100% { transform: translate(3px,0); clip-path: inset(70% 0 10% 0); }
}

/* =================================
   TICKER
   ================================= */
.hp-ticker {
  border-top: 1px solid var(--hp-faint);
  border-bottom: 1px solid var(--hp-faint);
  background: rgba(0,0,0,.3);
  overflow: hidden;
  padding: 12px 0;
}
.hp-ticker-track {
  display: flex; white-space: nowrap;
  animation: hp-marquee 40s linear infinite;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.35em; text-transform: uppercase;
}
@keyframes hp-marquee {
  from { transform: translateX(0); } to { transform: translateX(-50%); }
}
.hp-ticker-item { padding: 0 28px; color: rgba(244, 237, 225, .55); }
.hp-ticker-fire { color: var(--hp-fire); }
.hp-ticker-pulse { color: var(--hp-pulse); }

/* =================================
   STATS — плоская строка, без боксов
   ================================= */
.hp-stats {
  padding: clamp(72px, 12vh, 144px) 0 clamp(48px, 8vh, 96px);
  border-top: 1px solid var(--hp-faint);
}
.hp-stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(28px, 4vw, 64px) clamp(20px, 3vw, 48px);
  align-items: end;
}
@media (min-width: 992px) {
  .hp-stats-row { grid-template-columns: repeat(4, 1fr); }
}
.hp-stat {
  display: flex; flex-direction: column;
  position: relative;
  padding-top: 14px;
  border-top: 1px solid var(--hp-faint2);
}
.hp-stat-num {
  font-family: 'Russo One', Impact, sans-serif;
  font-size: clamp(56px, 9vw, 156px);
  line-height: 0.86; letter-spacing: -0.04em;
  color: var(--hp-cream);
  font-feature-settings: "tnum" 1;
}
.hp-stat:nth-child(2) .hp-stat-num { color: var(--hp-pulse); }
.hp-stat:nth-child(3) .hp-stat-num { color: var(--hp-fire); }
.hp-stat:nth-child(4) .hp-stat-num { color: var(--hp-sky); }
.hp-stat-suffix {
  font-size: 0.4em; color: rgba(244, 237, 225, .5);
  vertical-align: top; margin-left: 4px;
}
.hp-stat-lbl {
  margin-top: clamp(10px, 1.5vh, 16px);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase;
  color: rgba(244, 237, 225, .55);
  line-height: 1.45;
}

/* =================================
   SERVICES — 7 категорий, span-2 на первом
   ================================= */
.hp-services {
  padding: clamp(64px, 10vh, 128px) 0;
  border-top: 1px solid var(--hp-faint);
}
.hp-services-head, .hp-cases-head, .hp-blog-head {
  display: flex; justify-content: space-between;
  align-items: flex-end; flex-wrap: wrap; gap: 16px;
  margin-bottom: clamp(32px, 5vh, 56px);
}
.hp-services-all, .hp-cases-all, .hp-blog-all {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--hp-fire); text-decoration: none;
  transition: color .2s;
}
.hp-services-all:hover, .hp-cases-all:hover, .hp-blog-all:hover { color: var(--hp-pulse); }

.hp-services-grid {
  display: grid; grid-template-columns: 1fr; gap: 1px;
  background: var(--hp-faint); border: 1px solid var(--hp-faint);
}
@media (min-width: 576px) { .hp-services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .hp-services-grid { grid-template-columns: repeat(4, 1fr); } }

.hp-svc-card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--hp-ink);
  padding: clamp(20px, 2.5vw, 32px);
  text-decoration: none; color: inherit;
  min-height: 240px;
  transition: background-color .25s;
  overflow: hidden;
}
@media (min-width: 992px) {
  .hp-svc-card.hp-svc-featured {
    grid-column: span 2;
    min-height: 280px;
  }
  .hp-svc-card.hp-svc-featured .hp-svc-title { font-size: clamp(28px, 3vw, 40px); }
  .hp-svc-card.hp-svc-featured::after {
    content: "";
    position: absolute; top: 0; left: 0; bottom: 0;
    width: 3px; background: var(--hp-fire);
  }
}
.hp-svc-card:hover { background: rgba(255, 69, 36, .04); }
.hp-svc-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.3em; color: var(--hp-fire);
  margin-bottom: 16px;
}
.hp-svc-body { flex: 1; }
.hp-svc-title {
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1; margin: 0 0 10px;
}
.hp-svc-desc {
  font-size: 14px; line-height: 1.55;
  color: rgba(244, 237, 225, .7);
  margin: 0;
}
.hp-svc-foot {
  margin-top: 20px; padding-top: 16px;
  border-top: 1px solid var(--hp-faint);
  display: flex; justify-content: space-between; align-items: center;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
}
.hp-svc-count { color: var(--hp-pulse); }
.hp-svc-arrow { color: var(--hp-fire); transition: transform .25s; font-size: 16px; }
.hp-svc-card:hover .hp-svc-arrow { transform: translateX(4px); }

.hp-svc-card::before {
  content: ""; position: absolute; inset: 0;
  pointer-events: none; opacity: 0;
  transition: opacity .25s;
  background: linear-gradient(135deg, transparent 60%, rgba(255,69,36,.06) 100%);
}
.hp-svc-card:hover::before { opacity: 1; }
.hp-svc-trading::before { background: linear-gradient(135deg, transparent 60%, rgba(255,69,36,.10) 100%); }
.hp-svc-ai::before { background: linear-gradient(135deg, transparent 60%, rgba(125,196,255,.08) 100%); }
.hp-svc-development::before { background: linear-gradient(135deg, transparent 60%, rgba(196,255,0,.06) 100%); }

/* =================================
   FEATURED CASES — простой 3-col
   ================================= */
.hp-cases {
  padding: clamp(64px, 10vh, 128px) 0;
  border-top: 1px solid var(--hp-faint);
}
.hp-cases-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 768px) { .hp-cases-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 1100px) { .hp-cases-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

.hp-case-card {
  position: relative;
  display: block;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #1a1a1a;
  text-decoration: none; color: inherit;
  isolation: isolate;
  border: 1px solid var(--hp-faint);
  transition: border-color .25s;
}
.hp-case-card:hover { border-color: var(--hp-fire); }
.hp-case-card img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  will-change: transform, filter;
}
.hp-case-meta {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: clamp(16px, 2.5vw, 28px);
  z-index: 5;
  background: linear-gradient(to top,
    rgba(12, 12, 12, .92) 0%,
    rgba(12, 12, 12, .4) 60%,
    rgba(12, 12, 12, 0) 100%);
}
.hp-case-meta-top {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 8px;
}
.hp-case-num {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 0.3em; color: var(--hp-fire);
}
.hp-case-cat {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: rgba(244, 237, 225, .65);
}
.hp-case-name {
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1; margin: 0;
}
.hp-case-client {
  margin-top: 6px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(244, 237, 225, .55);
}

.hp-fx-rgb img { transition: transform .6s cubic-bezier(.6,0,.4,1); }
.hp-fx-rgb::before, .hp-fx-rgb::after {
  content: ""; position: absolute; inset: 0; opacity: 0;
  mix-blend-mode: multiply; transition: opacity .5s, transform .5s;
  pointer-events: none; z-index: 2;
}
.hp-fx-rgb::before { background: var(--hp-fire); }
.hp-fx-rgb::after  { background: var(--hp-sky); }
.hp-fx-rgb:hover::before { opacity: .55; transform: translate(-8px, 0); }
.hp-fx-rgb:hover::after  { opacity: .45; transform: translate(8px, 0); }
.hp-fx-rgb:hover img { transform: scale(1.06); }

.hp-fx-pixelate img { transition: filter .8s, transform .8s; filter: blur(8px) saturate(1.5) contrast(1.1); }
.hp-fx-pixelate:hover img { filter: blur(0); transform: scale(1.03); }

.hp-fx-bw img { filter: grayscale(1) contrast(1.1); transition: filter .8s, transform .8s; }
.hp-fx-bw:hover img { filter: grayscale(0) contrast(1.05); transform: scale(1.04); }

.hp-fx-slide img { transition: transform .9s; }
.hp-fx-slide:hover img { transform: scale(1.05); }
.hp-fx-slide::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--hp-fire); transform: scaleY(0); transform-origin: bottom;
  transition: transform .5s cubic-bezier(.7,0,.3,1); z-index: 3;
}
.hp-fx-slide:hover::before { transform: scaleY(1); transform-origin: top; }

.hp-fx-ascii img { transition: opacity .8s, transform .8s; opacity: .6; }
.hp-fx-ascii:hover img { opacity: 1; transform: scale(1.02); }
.hp-fx-ascii::before {
  content: "01001000\A 0000110100\A 1111000111\A 01010110001";
  white-space: pre; position: absolute; top: 14px; right: 14px;
  font-family: 'JetBrains Mono', monospace; font-size: 9px; line-height: 1.2;
  color: rgba(196, 255, 0, .35); pointer-events: none;
  transition: opacity .5s; z-index: 3;
}
.hp-fx-ascii:hover::before { opacity: 0; }

.hp-fx-glitchreveal img { transition: filter .25s, transform .8s; }
.hp-fx-glitchreveal:hover img { animation: hp-glitchpulse .5s steps(2) 2; }
@keyframes hp-glitchpulse {
  0%, 100% { filter: hue-rotate(0deg); transform: translate(0, 0); }
  25% { filter: hue-rotate(20deg); transform: translate(-3px, 1px); }
  50% { filter: hue-rotate(-15deg); transform: translate(2px, -1px); }
  75% { filter: hue-rotate(40deg); transform: translate(-1px, 2px); }
}

@media (hover: none), (pointer: coarse) {
  .hp-fx-rgb::before, .hp-fx-rgb::after { display: none; }
  .hp-fx-pixelate img { filter: none; }
  .hp-fx-bw img { filter: none; }
  .hp-fx-ascii img { opacity: 1; }
  .hp-fx-ascii::before { opacity: 0; }
}

/* =================================
   PROCESS — терминальная стилистика
   ================================= */
.hp-process {
  padding: clamp(64px, 10vh, 128px) 0;
  border-top: 1px solid var(--hp-faint);
}
.hp-process-list {
  display: grid; grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--hp-faint2);
}
.hp-process-step {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: clamp(24px, 3.5vh, 36px) 0;
  border-bottom: 1px solid var(--hp-faint2);
  position: relative;
  opacity: 0.45;
  transition: opacity .5s ease;
}
.hp-process-step.is-active { opacity: 1; }
@media (min-width: 768px) {
  .hp-process-step {
    grid-template-columns: 100px 1fr minmax(280px, 1fr);
    gap: clamp(28px, 4vw, 56px); align-items: baseline;
  }
}
.hp-process-num {
  font-family: 'Russo One', Impact, sans-serif;
  font-size: clamp(40px, 5vw, 80px);
  line-height: 0.9; letter-spacing: -0.02em;
  color: var(--hp-fire);
  position: relative;
}
.hp-process-step.is-active .hp-process-num { color: var(--hp-pulse); }
.hp-process-info { min-width: 0; }
.hp-process-title {
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.05; margin: 0 0 12px;
  text-transform: uppercase;
}
.hp-process-desc {
  font-size: clamp(15px, 1.3vw, 17px); line-height: 1.65;
  color: rgba(244, 237, 225, .75); max-width: 720px;
  margin: 0;
}
.hp-process-term {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; line-height: 1.55;
  border-left: 2px solid var(--hp-faint2);
  padding: 6px 0 6px 14px;
  align-self: center;
  min-height: 70px;
}
.hp-process-step.is-active .hp-process-term { border-left-color: var(--hp-fire); }
.hp-process-cmd {
  display: block;
  color: var(--hp-cream);
}
.hp-process-cmd::before {
  content: "$ ";
  color: var(--hp-fire);
}
.hp-process-cursor {
  display: inline-block;
  width: 7px; height: 1em;
  background: var(--hp-pulse);
  vertical-align: -2px; margin-left: 2px;
  animation: hp-blink 1.05s steps(1) infinite;
  opacity: 0;
}
.hp-process-step.is-active .hp-process-cursor { opacity: 1; }
.hp-process-out {
  display: block;
  color: rgba(196, 255, 0, .85);
  margin-top: 4px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .5s ease, transform .5s ease;
}
.hp-process-step.is-active .hp-process-out { opacity: 1; transform: translateY(0); }

/* =================================
   STACK
   ================================= */
.hp-stack {
  padding: clamp(64px, 10vh, 128px) 0;
  border-top: 1px solid var(--hp-faint);
}
.hp-stack-intro {
  font-size: clamp(15px, 1.3vw, 18px); line-height: 1.65;
  color: rgba(244, 237, 225, .7);
  max-width: 720px;
  margin: 0 0 clamp(32px, 5vh, 56px);
}
.hp-stack-grid {
  display: grid; grid-template-columns: 1fr; gap: 1px;
  background: var(--hp-faint); border: 1px solid var(--hp-faint);
}
@media (min-width: 576px) { .hp-stack-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .hp-stack-grid { grid-template-columns: repeat(4, 1fr); } }
.hp-stack-col {
  background: var(--hp-ink);
  padding: clamp(20px, 2.5vw, 32px);
}
.hp-stack-cat {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--hp-fire);
  margin-bottom: 14px;
}
.hp-stack-list { list-style: none; padding: 0; margin: 0; }
.hp-stack-list li {
  font-family: 'JetBrains Mono', monospace; font-size: 13px;
  color: rgba(244, 237, 225, .8);
  padding: 6px 0; position: relative; padding-left: 16px;
}
.hp-stack-list li::before {
  content: "→"; position: absolute; left: 0;
  color: var(--hp-pulse);
}

/* =================================
   PUNCH (manifesto)
   ================================= */
.hp-punch {
  padding: clamp(96px, 16vh, 192px) 0;
  border-top: 1px solid var(--hp-faint);
  background:
    linear-gradient(180deg, rgba(255,69,36,.05) 0%, transparent 80%),
    var(--hp-ink);
  text-align: left;
}
.hp-punch-text {
  font-family: 'Russo One', Impact, sans-serif;
  font-size: clamp(44px, 9vw, 168px);
  line-height: 0.92;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  margin: 0;
  max-width: 1200px;
}
.hp-punch-text .hp-punch-line { display: block; }
.hp-punch-text .hp-punch-line:nth-child(1) { color: rgba(244, 237, 225, .35); }
.hp-punch-text .hp-punch-line:nth-child(2) { color: var(--hp-cream); }
.hp-punch-accent {
  background: var(--hp-fire);
  color: var(--hp-cream);
  padding: 0 14px;
  display: inline-block;
  line-height: 1.05;
}
.hp-punch-meta {
  margin-top: clamp(32px, 5vh, 56px);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase;
  color: rgba(244, 237, 225, .5);
  display: flex; align-items: center; gap: 14px;
}

/* =================================
   BLOG (latest 3)
   ================================= */
.hp-blog {
  padding: clamp(64px, 10vh, 128px) 0;
  border-top: 1px solid var(--hp-faint);
}
.hp-blog-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) { .hp-blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .hp-blog-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; } }

.hp-blog-card {
  display: flex; flex-direction: column;
  background: rgba(244, 237, 225, .02);
  border: 1px solid var(--hp-faint);
  text-decoration: none; color: inherit;
  transition: border-color .25s, transform .25s;
  overflow: hidden;
}
.hp-blog-card:hover { border-color: var(--hp-fire); transform: translateY(-2px); }
.hp-blog-cover {
  aspect-ratio: 16/9; background: #1a1a1a; overflow: hidden;
}
.hp-blog-cover img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s; filter: grayscale(.3);
}
.hp-blog-card:hover .hp-blog-cover img { transform: scale(1.04); filter: grayscale(0); }
.hp-blog-cover-placeholder {
  background: linear-gradient(135deg, #1a1a1a, #2a2a2a, #1a1a1a);
  width: 100%; height: 100%;
}
.hp-blog-body {
  padding: clamp(18px, 2vw, 24px);
  flex: 1; display: flex; flex-direction: column;
}
.hp-blog-cat {
  display: inline-block; align-self: flex-start;
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  letter-spacing: 0.3em; text-transform: uppercase;
  padding: 3px 8px;
  background: var(--hp-fire); color: var(--hp-cream);
  margin-bottom: 12px;
}
.hp-blog-cat-cases { background: var(--hp-pulse); color: var(--hp-ink); }
.hp-blog-cat-architecture { background: var(--hp-sky); color: var(--hp-ink); }
.hp-blog-cat-postmortem { background: var(--hp-fire); color: var(--hp-cream); }
.hp-blog-cat-tutorial { background: var(--hp-bone); color: var(--hp-ink); }
.hp-blog-cat-trends { background: var(--hp-rose); color: var(--hp-ink); }
.hp-blog-cat-team { background: var(--hp-pulse); color: var(--hp-ink); }

.hp-blog-name {
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.05; margin: 0 0 10px; word-break: break-word;
}
.hp-blog-summary {
  font-size: 14px; line-height: 1.55;
  color: rgba(244, 237, 225, .7);
  margin: 0 0 16px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}
.hp-blog-meta {
  margin-top: auto; padding-top: 14px;
  border-top: 1px solid var(--hp-faint);
  display: flex; justify-content: space-between;
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(244, 237, 225, .5);
}
.hp-blog-readtime { color: var(--hp-pulse); }

/* =================================
   FINAL CTA — мини, один экран, без ASCII
   ================================= */
.hp-final {
  padding: clamp(80px, 14vh, 160px) 0 clamp(64px, 10vh, 96px);
  border-top: 1px solid var(--hp-faint);
}
.hp-final-title {
  font-size: clamp(56px, 12vw, 200px);
  line-height: 0.86;
  margin: clamp(20px, 3vh, 32px) 0 clamp(28px, 4vh, 40px);
}
.hp-final-grid {
  display: grid; grid-template-columns: 1fr; gap: 32px;
  align-items: end;
}
@media (min-width: 768px) {
  .hp-final-grid { grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); }
}
.hp-final-text {
  font-size: clamp(15px, 1.4vw, 18px); line-height: 1.65;
  color: rgba(244, 237, 225, .75);
  max-width: 540px; margin: 0;
}
.hp-final-info {
  display: flex; flex-direction: column; gap: 1px;
  background: rgba(244, 237, 225, .05);
  border: 1px solid var(--hp-faint);
}
.hp-final-row {
  background: var(--hp-ink);
  padding: 16px 20px;
  display: grid; grid-template-columns: 160px 1fr; gap: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
}
.hp-final-key { color: rgba(244, 237, 225, .4); }
.hp-final-buttons {
  margin-top: clamp(32px, 5vh, 48px);
  display: flex; flex-wrap: wrap; gap: 12px;
}

/* =================================
   RESPONSIVE
   ================================= */
@media (max-width: 991.98px) {
  .hp-hero { height: auto; min-height: 100svh; }
  .hp-hero-term { max-width: 100%; }
}
@media (max-width: 575.98px) {
  .hp-h1 { font-size: clamp(40px, 12vw, 72px); }
  .hp-section-title { font-size: clamp(36px, 10vw, 72px); }
  .hp-punch-text { font-size: clamp(34px, 11vw, 72px); }
  .hp-final-title { font-size: clamp(48px, 14vw, 96px); }
  .hp-stat-num { font-size: clamp(56px, 18vw, 120px); }
  .hp-process-step { gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .hp-pulse-dot { animation: none; }
  .hp-glitch.active::before, .hp-glitch.active::after { animation: none; opacity: 0; }
  .hp-ticker-track { animation: none; }
  .hp-fx-glitchreveal:hover img { animation: none; }
  .hp-term-cursor, .hp-process-cursor { animation: none; }
}
