

:root {
  --ink: #11130f;
  --paper: #f1f0e8;
  --paper-deep: #e5e4da;
  --acid: #c9ff31;
  --acid-dark: #93bd18;
  --coral: #ff7459;
  --line: rgba(17, 19, 15, 0.18);
  --line-light: rgba(241, 240, 232, 0.18);
  --muted: #67695f;
  --pointer-x: 50vw;
  --pointer-y: 50vh;
  --pointer-nx: 0;
  --pointer-ny: 0;
  --scroll-progress: 0;
  --scroll-shift: 0px;
  --display: "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial,
    sans-serif;
  --body: Inter, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  text-rendering: optimizeLegibility;
}

body,
a,
button,
input,
textarea {
  cursor: default;
}

a,
button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

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

.site-shell {
  min-height: 100vh;
  overflow: hidden;
}

.pointer-glow {
  position: fixed;
  z-index: 80;
  top: var(--pointer-y);
  left: var(--pointer-x);
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 255, 49, 0.09), transparent 68%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  mix-blend-mode: multiply;
}

.scroll-progress {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--acid), var(--coral));
  box-shadow: 0 0 22px rgba(201, 255, 49, 0.48);
  pointer-events: none;
  transform: scaleX(var(--scroll-progress));
  transform-origin: left center;
}

.ambient-beam {
  position: fixed;
  z-index: 0;
  width: 46vw;
  height: 46vw;
  border: 1px solid rgba(201, 255, 49, 0.1);
  border-radius: 50%;
  filter: blur(1px);
  opacity: 0.55;
  pointer-events: none;
}

.ambient-beam::before,
.ambient-beam::after {
  position: absolute;
  border: inherit;
  border-radius: inherit;
  content: "";
}

.ambient-beam::before {
  inset: 10%;
}

.ambient-beam::after {
  inset: 22%;
}

.beam-one {
  top: -30vw;
  right: -20vw;
  animation: ambient-drift 22s ease-in-out infinite alternate;
}

.beam-two {
  bottom: -34vw;
  left: -26vw;
  border-color: rgba(255, 116, 89, 0.1);
  animation: ambient-drift 28s ease-in-out -9s infinite alternate-reverse;
}

.site-header {
  position: absolute;
  z-index: 50;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  height: 86px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-light);
  padding: 0 clamp(1.25rem, 4vw, 4rem);
  color: var(--paper);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.11em;
}

.brand-mark {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid rgba(201, 255, 49, 0.8);
  border-radius: 50%;
  color: var(--acid);
  transition:
    background 240ms ease,
    color 240ms ease,
    transform 500ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.brand:hover .brand-mark {
  background: var(--acid);
  color: var(--ink);
  transform: rotate(135deg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.5rem);
}

.site-nav a {
  position: relative;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.site-nav a:not(.nav-admin)::after {
  position: absolute;
  right: 0;
  bottom: -0.45rem;
  left: 0;
  height: 1px;
  background: var(--acid);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 240ms ease;
}

.site-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-admin {
  border: 1px solid rgba(241, 240, 232, 0.34);
  border-radius: 99px;
  padding: 0.65rem 1rem;
  transition:
    background 200ms ease,
    color 200ms ease;
}

.nav-admin:hover {
  background: var(--paper);
  color: var(--ink);
}

.menu-button {
  display: none;
  width: 2.8rem;
  height: 2.8rem;
  border: 1px solid var(--line-light);
  border-radius: 50%;
  background: transparent;
}

.menu-button span {
  display: block;
  width: 1rem;
  height: 1px;
  margin: 4px auto;
  background: var(--paper);
  transition: transform 200ms ease;
}

.menu-button.open span:first-child {
  transform: translateY(2.5px) rotate(45deg);
}

.menu-button.open span:last-child {
  transform: translateY(-2.5px) rotate(-45deg);
}

.hero {
  position: relative;
  display: grid;
  min-height: 880px;
  grid-template-columns: minmax(0, 1.14fr) minmax(380px, 0.86fr);
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 74% 48%, rgba(201, 255, 49, 0.08), transparent 25%),
    var(--ink);
  color: var(--paper);
  padding: 10rem clamp(1.25rem, 7vw, 7rem) 7rem;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(241, 240, 232, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(241, 240, 232, 0.035) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to right, black, transparent 80%);
  transform: translate3d(
    calc(var(--pointer-nx) * -12px),
    calc(var(--pointer-ny) * -12px + var(--scroll-shift) * -0.06),
    0
  );
  transition: transform 180ms ease-out;
  will-change: transform;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.eyebrow,
.section-label,
.admin-kicker {
  display: flex;
  align-items: center;
  gap: 0.62rem;
  margin: 0 0 1.75rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.live-dot {
  display: inline-block;
  width: 0.48rem;
  height: 0.48rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 0 0 rgba(201, 255, 49, 0.55);
  animation: pulse-dot 2.2s infinite;
}

.hero h1 {
  max-width: 980px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(4rem, 7.4vw, 8.9rem);
  font-stretch: condensed;
  font-weight: 800;
  letter-spacing: -0.068em;
  line-height: 0.86;
  text-transform: uppercase;
}

.hero h1 em {
  position: relative;
  color: var(--acid);
  font-style: normal;
}

.hero h1 em::after {
  position: absolute;
  right: 0.03em;
  bottom: 0.02em;
  left: 0.03em;
  height: 0.055em;
  background: var(--acid);
  content: "";
  transform: rotate(-1deg);
}

.hero-description {
  max-width: 670px;
  margin: 2.5rem 0 0;
  color: rgba(241, 240, 232, 0.7);
  font-size: clamp(1.05rem, 1.35vw, 1.28rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  min-height: 3.55rem;
  font-size: 0.86rem;
  font-weight: 750;
}

.button.primary {
  min-width: 13.5rem;
  background: var(--acid);
  color: var(--ink);
  padding: 0.7rem 1.25rem;
  transition:
    transform 220ms ease,
    background 220ms ease;
}

.button.primary:hover {
  background: #dcff76;
  transform: translateY(-3px);
}

.button.text {
  border-bottom: 1px solid rgba(241, 240, 232, 0.35);
}

.hero-system {
  position: relative;
  z-index: 3;
  width: min(42vw, 570px);
  aspect-ratio: 1;
  justify-self: end;
  transform: translate3d(
      calc(var(--pointer-nx) * 22px),
      calc(var(--pointer-ny) * 22px + var(--scroll-shift) * 0.08),
      0
    )
    rotate(calc(var(--pointer-nx) * 1.5deg));
  transition: transform 200ms ease-out;
  will-change: transform;
}

.system-orbit {
  position: absolute;
  border: 1px solid rgba(241, 240, 232, 0.17);
  border-radius: 50%;
}

.orbit-one {
  inset: 9%;
  border-style: dashed;
  animation: spin 38s linear infinite;
}

.orbit-two {
  inset: 22%;
  animation: spin 24s linear infinite reverse;
}

.orbit-one::after,
.orbit-two::after {
  position: absolute;
  top: 50%;
  left: -0.3rem;
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 50%;
  background: var(--acid);
  content: "";
}

.system-core {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  width: 31%;
  aspect-ratio: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(201, 255, 49, 0.7);
  border-radius: 50%;
  background: rgba(17, 19, 15, 0.82);
  box-shadow:
    0 0 0 1.2rem rgba(201, 255, 49, 0.025),
    0 0 70px rgba(201, 255, 49, 0.12);
  transform: translate(-50%, -50%);
}

.system-core span,
.system-core small,
.system-node span,
.system-status small {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
}

.system-core strong {
  color: var(--acid);
  font-size: clamp(2.3rem, 4vw, 4.2rem);
  line-height: 1;
}

.system-node {
  position: absolute;
  min-width: 7rem;
  border: 1px solid var(--line-light);
  background: rgba(17, 19, 15, 0.84);
  padding: 0.95rem 1rem;
  backdrop-filter: blur(10px);
}

.system-node span {
  display: block;
  color: var(--acid);
  margin-bottom: 0.28rem;
}

.system-node strong {
  font-size: 0.9rem;
}

.node-react {
  top: 12%;
  right: 2%;
}

.node-data {
  bottom: 18%;
  left: 1%;
}

.system-status {
  position: absolute;
  right: 0;
  bottom: 5%;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  border-left: 2px solid var(--acid);
  padding-left: 0.9rem;
}

.system-status span {
  font-size: 0.82rem;
  font-weight: 700;
}

.system-status small {
  color: rgba(241, 240, 232, 0.55);
}

.hero-index {
  position: absolute;
  right: 2.5rem;
  bottom: -0.22em;
  color: rgba(241, 240, 232, 0.04);
  font-family: var(--display);
  font-size: 17rem;
  font-weight: 900;
  line-height: 1;
}

.ticker {
  overflow: hidden;
  border-bottom: 1px solid var(--ink);
  background: var(--acid);
  padding: 0.84rem 0;
  white-space: nowrap;
}

.ticker div {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 1.5rem;
  animation: marquee 24s linear infinite;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.ticker i {
  font-size: 0.46rem;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
}

.metric {
  min-height: 190px;
  border-right: 1px solid var(--line);
  padding: 2.5rem clamp(1.25rem, 3vw, 3rem);
}

.metric:last-child {
  border-right: 0;
}

.metric strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(3rem, 5vw, 5.3rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1;
}

.metric span {
  display: block;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.section {
  padding: clamp(5.5rem, 10vw, 10rem) clamp(1.25rem, 7vw, 7rem);
}

.section-label {
  color: var(--muted);
}

.intro-section {
  display: grid;
  grid-template-columns: minmax(150px, 0.35fr) 1.65fr;
  gap: 2rem;
}

.intro-content h2,
.section-heading h2,
.java-intro h2,
.seo-heading h2,
.infrastructure-copy h2,
.process-heading h2 {
  max-width: 1050px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3.2rem, 6vw, 7rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.94;
  text-transform: uppercase;
}

.intro-body {
  display: grid;
  max-width: 900px;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 3rem;
  margin-top: 4rem;
}

.intro-body p {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.85rem);
  line-height: 1.47;
}

.intro-body span {
  align-self: end;
  border-left: 2px solid var(--acid-dark);
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
  padding-left: 1rem;
}

.stack-section {
  background: var(--paper-deep);
}

.section-heading {
  display: grid;
  grid-template-columns: 1.25fr 0.55fr;
  gap: 4rem;
  align-items: end;
  margin-bottom: 5rem;
}

.section-heading p,
.java-intro > p,
.seo-heading > p,
.infrastructure-copy > p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.stack-card {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 2.2rem;
  transition:
    background 240ms ease,
    color 240ms ease;
}

.stack-card:hover {
  background: var(--ink);
  color: var(--paper);
}

.card-number {
  font-family: var(--mono);
  font-size: 0.7rem;
}

.stack-card h3 {
  margin: 3.5rem 0 1rem;
  font-family: var(--display);
  font-size: 2.6rem;
  letter-spacing: -0.04em;
}

.stack-card strong {
  display: block;
  max-width: 32rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.7;
}

.stack-card p {
  max-width: 33rem;
  margin: 1.35rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.stack-card:hover p {
  color: rgba(241, 240, 232, 0.64);
}

.card-line {
  position: absolute;
  right: -1.2rem;
  bottom: -1.2rem;
  width: 5rem;
  height: 5rem;
  border: 1px solid var(--acid-dark);
  border-radius: 50%;
  transition: transform 450ms ease;
}

.stack-card:hover .card-line {
  transform: scale(2.4);
}

.java-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 7vw;
  background: var(--ink);
  color: var(--paper);
}

.java-intro {
  position: sticky;
  top: 3rem;
  align-self: start;
}

.java-intro .section-label {
  color: var(--acid);
}

.java-intro h2 {
  font-size: clamp(3.2rem, 5vw, 6rem);
}

.java-intro > p {
  max-width: 39rem;
  margin-top: 2.2rem;
  color: rgba(241, 240, 232, 0.64);
}

.reason-list {
  border-top: 1px solid var(--line-light);
}

.reason-row {
  display: grid;
  grid-template-columns: 3rem 0.8fr 1.2fr;
  gap: 1.2rem;
  align-items: start;
  border-bottom: 1px solid var(--line-light);
  padding: 2.5rem 0;
}

.reason-row > span {
  color: var(--acid);
  font-family: var(--mono);
  font-size: 0.7rem;
}

.reason-row h3 {
  margin: 0;
  font-size: 1.2rem;
}

.reason-row p {
  margin: 0;
  color: rgba(241, 240, 232, 0.62);
  font-size: 0.9rem;
  line-height: 1.65;
}

.seo-section {
  background: var(--acid);
}

.seo-heading {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 6vw;
  align-items: end;
}

.seo-heading .section-label {
  color: var(--ink);
}

.seo-heading h2 {
  grid-column: 1 / -1;
  max-width: 1200px;
}

.seo-heading > p {
  grid-column: 2;
  margin-top: 1.5rem;
  color: rgba(17, 19, 15, 0.68);
}

.seo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 5rem;
  border-top: 1px solid rgba(17, 19, 15, 0.34);
  border-left: 1px solid rgba(17, 19, 15, 0.34);
}

.seo-card {
  min-height: 320px;
  border-right: 1px solid rgba(17, 19, 15, 0.34);
  border-bottom: 1px solid rgba(17, 19, 15, 0.34);
  padding: 1.8rem;
}

.seo-card > span {
  font-family: var(--mono);
  font-size: 0.7rem;
}

.seo-card h3 {
  margin: 4.5rem 0 1.1rem;
  font-family: var(--display);
  font-size: 1.7rem;
  letter-spacing: -0.03em;
}

.seo-card p {
  margin: 0;
  color: rgba(17, 19, 15, 0.68);
  font-size: 0.88rem;
  line-height: 1.6;
}

.seo-conclusion {
  max-width: 900px;
  margin: 3rem 0 0 auto;
  border-left: 2px solid var(--ink);
  font-size: 1.35rem;
  font-weight: 650;
  line-height: 1.45;
  padding-left: 1.5rem;
}

.infrastructure-section {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 8vw;
  background: var(--paper);
}

.infrastructure-copy h2 {
  font-size: clamp(3.2rem, 5vw, 6.1rem);
}

.infrastructure-copy > p {
  margin-top: 2rem;
}

.moscow-ping {
  display: grid;
  max-width: 18rem;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 0.7rem;
  align-items: center;
  border: 1px solid var(--line);
  margin-top: 3rem;
  padding: 1rem;
}

.moscow-ping .live-dot {
  grid-row: 1 / 3;
}

.moscow-ping strong {
  font-family: var(--mono);
  font-size: 0.78rem;
}

.moscow-ping small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.62rem;
}

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

.spec-list article {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  padding: 2rem 0;
}

.spec-list article > span {
  font-family: var(--mono);
  font-size: 0.7rem;
}

.spec-list h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.spec-list strong {
  display: block;
  font-family: var(--mono);
  font-size: 0.84rem;
  line-height: 1.5;
}

.spec-list p {
  max-width: 42rem;
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.55;
}

.infrastructure-conclusion {
  margin: 2.4rem 0 0 4rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.portfolio-section {
  background: var(--ink);
  color: var(--paper);
}

.portfolio-heading .section-label {
  color: var(--acid);
}

.portfolio-heading > p {
  color: rgba(241, 240, 232, 0.58);
}

.portfolio-list {
  display: grid;
  gap: 7rem;
}

.portfolio-item {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 4rem;
  align-items: center;
}

.portfolio-item:nth-child(even) {
  grid-template-columns: 0.7fr 1.3fr;
}

.portfolio-item:nth-child(even) .portfolio-image {
  grid-column: 2;
}

.portfolio-item:nth-child(even) .portfolio-meta {
  grid-row: 1;
  grid-column: 1;
}

.portfolio-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--line-light);
  background: #0c0d0b;
}

.portfolio-image::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17, 19, 15, 0.25), transparent 50%);
  content: "";
  pointer-events: none;
}

.portfolio-image::before {
  position: absolute;
  z-index: 2;
  top: -35%;
  bottom: -35%;
  left: -22%;
  width: 16%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(241, 240, 232, 0.18),
    transparent
  );
  content: "";
  pointer-events: none;
  transform: rotate(12deg) translateX(-320%);
}

.portfolio-item:hover .portfolio-image::before {
  animation: scan-project 1.15s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.portfolio-image-1 {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 116, 89, 0.24), transparent 35%),
    #311116;
}

.portfolio-image-1 img {
  width: auto;
  height: 88%;
  border: 6px solid #090a08;
  border-radius: 1.4rem;
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.5);
  object-fit: contain;
}

.portfolio-item:hover .portfolio-image img {
  transform: scale(1.035);
}

.project-arrow {
  position: absolute;
  z-index: 2;
  top: 1.25rem;
  right: 1.25rem;
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border-radius: 50%;
  background: var(--acid);
  color: var(--ink);
  font-size: 1.2rem;
  transition: transform 240ms ease;
}

.portfolio-item:hover .project-arrow {
  transform: rotate(45deg);
}

.portfolio-meta {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 1rem;
}

.portfolio-meta > span {
  color: var(--acid);
  font-family: var(--mono);
  font-size: 0.7rem;
}

.portfolio-meta small {
  color: rgba(241, 240, 232, 0.48);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portfolio-meta h3 {
  margin: 0.7rem 0 1.2rem;
  font-family: var(--display);
  font-size: clamp(2.6rem, 4.5vw, 5.2rem);
  letter-spacing: -0.055em;
}

.portfolio-meta p {
  margin: 0;
  color: rgba(241, 240, 232, 0.62);
  font-size: 0.9rem;
  line-height: 1.65;
}

.portfolio-meta strong {
  display: block;
  margin-top: 1.5rem;
  font-family: var(--mono);
  font-size: 0.66rem;
  line-height: 1.6;
}

.process-section {
  background: var(--paper-deep);
}

.process-heading {
  display: grid;
  grid-template-columns: 0.45fr 1.55fr;
  gap: 3rem;
  align-items: start;
}

.process-heading h2 {
  font-size: clamp(3.2rem, 5.5vw, 6.6rem);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 5rem;
  border-top: 1px solid var(--line);
}

.process-grid article {
  min-height: 260px;
  border-right: 1px solid var(--line);
  padding: 1.8rem;
}

.process-grid article:last-child {
  border-right: 0;
}

.process-grid span {
  font-family: var(--mono);
  font-size: 0.7rem;
}

.process-grid h3 {
  margin: 4rem 0 1rem;
  font-size: 1.2rem;
}

.process-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

.contact-section {
  position: relative;
  display: flex;
  min-height: 780px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--acid);
  padding: 7rem 1.25rem;
  text-align: center;
}

.contact-noise {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(17, 19, 15, 0.2) 0.8px, transparent 0.8px);
  background-size: 12px 12px;
  mask-image: radial-gradient(circle at center, black, transparent 70%);
  opacity: 0.45;
}

.contact-section > *:not(.contact-noise) {
  position: relative;
  z-index: 2;
}

.contact-section .section-label {
  color: var(--ink);
}

.contact-section h2 {
  max-width: 1150px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(4rem, 8vw, 9rem);
  font-weight: 850;
  letter-spacing: -0.072em;
  line-height: 0.88;
  text-transform: uppercase;
}

.contact-section > p {
  max-width: 620px;
  margin: 2.5rem auto 0;
  font-size: 1rem;
  line-height: 1.65;
}

.contact-actions {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

.telegram-button {
  display: inline-flex;
  min-width: 19rem;
  align-items: center;
  gap: 1rem;
  background: var(--ink);
  color: var(--paper);
  padding: 1rem 1.3rem;
  text-align: left;
  transition: transform 220ms ease;
}

.telegram-button:hover {
  transform: translateY(-4px);
}

.email-button {
  border: 1px solid rgba(17, 19, 15, 0.38);
  background: transparent;
  color: var(--ink);
}

.email-button .telegram-plane {
  background: var(--ink);
  color: var(--acid);
  font-family: var(--mono);
}

.email-button small {
  color: rgba(17, 19, 15, 0.6);
}

.telegram-plane {
  display: grid;
  width: 2.6rem;
  height: 2.6rem;
  place-items: center;
  border-radius: 50%;
  background: var(--acid);
  color: var(--ink);
}

.telegram-button > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.telegram-button strong {
  font-size: 0.88rem;
}

.telegram-button small {
  color: rgba(241, 240, 232, 0.58);
  font-family: var(--mono);
}

.response-time {
  margin-top: 1rem;
  font-size: 0.72rem;
}

.site-footer {
  display: grid;
  min-height: 150px;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: center;
  background: var(--ink);
  color: var(--paper);
  padding: 2rem clamp(1.25rem, 4vw, 4rem);
}

.site-footer div {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.site-footer strong {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

.site-footer span,
.site-footer a {
  color: rgba(241, 240, 232, 0.5);
  font-size: 0.72rem;
}

.site-footer nav {
  display: flex;
  justify-self: end;
  gap: 1.5rem;
}

.site-footer nav a {
  justify-self: end;
}

.js [data-reveal] {
  opacity: 0.001;
  transform: translateY(28px);
  transition:
    opacity 650ms ease,
    transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Knowledge base */
.knowledge-shell {
  min-height: 100vh;
  background: var(--paper);
}

.knowledge-header {
  display: flex;
  min-height: 86px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-light);
  background: var(--ink);
  color: var(--paper);
  padding: 0 clamp(1.25rem, 4vw, 4rem);
}

.knowledge-back {
  color: rgba(241, 240, 232, 0.62);
  font-family: var(--mono);
  font-size: 0.7rem;
  transition: color 180ms ease;
}

.knowledge-back:hover {
  color: var(--acid);
}

.articles-hero {
  display: grid;
  min-height: 540px;
  grid-template-columns: 0.4fr 1.6fr;
  gap: 2rem;
  align-content: end;
  background:
    linear-gradient(rgba(241, 240, 232, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(241, 240, 232, 0.035) 1px, transparent 1px),
    var(--ink);
  background-size: 54px 54px;
  color: var(--paper);
  padding: 6rem clamp(1.25rem, 7vw, 7rem);
}

.articles-hero .section-label {
  color: var(--acid);
}

.articles-hero h1 {
  max-width: 1050px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3.6rem, 7vw, 8.2rem);
  font-weight: 850;
  letter-spacing: -0.065em;
  line-height: 0.9;
  text-transform: uppercase;
}

.articles-hero > p {
  grid-column: 2;
  max-width: 720px;
  margin: 1.5rem 0 0;
  color: rgba(241, 240, 232, 0.62);
  font-size: 1rem;
  line-height: 1.7;
}

.articles-list {
  padding: 0 clamp(1.25rem, 7vw, 7rem) 7rem;
}

.article-choice {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr) 4rem;
  gap: 1.5rem;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 2.6rem 0;
  transition: padding 220ms ease;
}

.article-choice:first-child {
  border-top: 1px solid var(--line);
}

.article-choice:hover {
  padding-right: 0.7rem;
  padding-left: 0.7rem;
}

.article-choice-number,
.article-read-time {
  color: var(--acid-dark);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-choice h2 {
  max-width: 900px;
  margin: 0.55rem 0 0.75rem;
  font-family: var(--display);
  font-size: clamp(2rem, 3.5vw, 4.2rem);
  letter-spacing: -0.05em;
  line-height: 1;
}

.article-choice p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.article-choice-arrow {
  display: grid;
  width: 3.2rem;
  height: 3.2rem;
  place-items: center;
  justify-self: end;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition:
    background 200ms ease,
    transform 200ms ease;
}

.article-choice:hover .article-choice-arrow {
  background: var(--acid);
  transform: rotate(45deg);
}

.knowledge-footer {
  display: flex;
  min-height: 130px;
  align-items: center;
  justify-content: space-between;
  background: var(--ink);
  color: var(--paper);
  padding: 2rem clamp(1.25rem, 4vw, 4rem);
}

.knowledge-footer strong {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
}

.knowledge-footer a {
  color: rgba(241, 240, 232, 0.58);
  font-size: 0.74rem;
}

.article-hero {
  display: flex;
  min-height: 650px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  background:
    radial-gradient(circle at 78% 28%, rgba(201, 255, 49, 0.1), transparent 28%),
    var(--ink);
  color: var(--paper);
  padding: 7rem clamp(1.25rem, 11vw, 11rem);
}

.article-hero h1 {
  max-width: 1200px;
  margin: 1.4rem 0 0;
  font-family: var(--display);
  font-size: clamp(3.7rem, 7.5vw, 8.7rem);
  font-weight: 850;
  letter-spacing: -0.07em;
  line-height: 0.88;
  text-transform: uppercase;
}

.article-hero p {
  max-width: 760px;
  margin: 2rem 0 0;
  color: rgba(241, 240, 232, 0.64);
  font-size: 1.05rem;
  line-height: 1.7;
}

.article-layout {
  display: grid;
  max-width: 1320px;
  grid-template-columns: 220px minmax(0, 760px);
  gap: 7vw;
  justify-content: center;
  margin: 0 auto;
  padding: 7rem 1.25rem;
}

.article-layout > aside {
  position: sticky;
  top: 2rem;
  display: flex;
  height: max-content;
  flex-direction: column;
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.article-layout > aside span,
.article-layout > aside strong {
  font-family: var(--mono);
  font-size: 0.66rem;
  line-height: 1.5;
}

.article-layout > aside span {
  color: var(--muted);
}

.article-content section + section {
  margin-top: 4.5rem;
}

.article-content h2 {
  margin: 0 0 1.5rem;
  font-family: var(--display);
  font-size: clamp(2.1rem, 4vw, 3.7rem);
  letter-spacing: -0.045em;
  line-height: 1;
}

.article-content p {
  margin: 0;
  color: #373a33;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.08rem, 1.45vw, 1.24rem);
  line-height: 1.8;
}

.article-content p + p {
  margin-top: 1.25rem;
}

.article-content section:first-child p:first-of-type::first-letter {
  float: left;
  margin: 0.08em 0.14em 0 0;
  color: var(--acid-dark);
  font-family: var(--display);
  font-size: 4.6em;
  font-weight: 800;
  line-height: 0.72;
}

.article-cta {
  display: flex;
  min-height: 360px;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  background: var(--acid);
  padding: 4rem clamp(1.25rem, 11vw, 11rem);
}

.article-cta h2 {
  max-width: 850px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.8rem, 5.5vw, 6.3rem);
  letter-spacing: -0.06em;
  line-height: 0.94;
  text-transform: uppercase;
}

.article-cta a {
  flex: 0 0 auto;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 1.1rem 1.3rem;
}

.related-articles {
  padding: 6rem clamp(1.25rem, 7vw, 7rem);
}

.related-articles > div {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.related-articles a {
  position: relative;
  display: flex;
  min-height: 230px;
  flex-direction: column;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.6rem;
}

.related-articles small {
  color: var(--acid-dark);
  font-family: var(--mono);
  font-size: 0.65rem;
}

.related-articles strong {
  max-width: 22rem;
  margin-top: auto;
  font-size: 1.12rem;
  line-height: 1.35;
}

.related-articles a > span {
  position: absolute;
  right: 1.5rem;
  bottom: 1.35rem;
}

/* Admin */
.admin-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 260px minmax(0, 1fr);
  background: #f3f3ed;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  height: 100vh;
  flex-direction: column;
  background: var(--ink);
  color: var(--paper);
  padding: 2rem 1.5rem;
}

.admin-brand {
  font-family: var(--mono);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.admin-sidebar > p {
  margin: 0.45rem 0 2.5rem;
  color: rgba(241, 240, 232, 0.45);
  font-size: 0.74rem;
}

.admin-sidebar nav {
  display: flex;
  overflow: auto;
  flex-direction: column;
  gap: 0.2rem;
}

.admin-sidebar nav a {
  border-left: 1px solid rgba(241, 240, 232, 0.12);
  color: rgba(241, 240, 232, 0.58);
  font-size: 0.76rem;
  padding: 0.62rem 0.9rem;
}

.admin-sidebar nav a:hover {
  border-color: var(--acid);
  color: var(--paper);
}

.admin-user {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: auto;
  border-top: 1px solid rgba(241, 240, 232, 0.12);
  padding-top: 1.2rem;
}

.admin-user span {
  color: rgba(241, 240, 232, 0.42);
  font-size: 0.65rem;
}

.admin-user strong {
  overflow: hidden;
  font-size: 0.74rem;
  text-overflow: ellipsis;
}

.admin-main {
  min-width: 0;
  padding: 3rem clamp(1.5rem, 4vw, 4rem) 7rem;
}

.admin-header {
  display: flex;
  max-width: 1200px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin: 0 auto 3rem;
}

.admin-kicker {
  color: var(--acid-dark);
  margin-bottom: 0.75rem;
}

.admin-header h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.4rem, 4vw, 4.5rem);
  letter-spacing: -0.055em;
  line-height: 1;
}

.admin-header p {
  max-width: 580px;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.admin-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.8rem;
}

.admin-actions a,
.admin-actions button {
  border: 1px solid var(--line);
  background: transparent;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.9rem 1rem;
}

.admin-actions button {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.admin-actions button:disabled {
  opacity: 0.6;
}

.admin-message {
  max-width: 1200px;
  margin: -1rem auto 2rem;
  border-left: 3px solid var(--acid-dark);
  background: rgba(201, 255, 49, 0.18);
  font-size: 0.78rem;
  padding: 0.8rem 1rem;
}

.admin-message.error {
  border-color: var(--coral);
  background: rgba(255, 116, 89, 0.12);
}

.admin-sections {
  display: grid;
  max-width: 1200px;
  gap: 1.25rem;
  margin: 0 auto;
}

.admin-card {
  border: 1px solid var(--line);
  background: #fff;
  scroll-margin-top: 1rem;
}

.admin-card-heading {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  padding: 1.25rem 1.5rem;
}

.admin-card-heading span {
  color: var(--acid-dark);
  font-family: var(--mono);
  font-size: 0.65rem;
}

.admin-card-heading h2 {
  margin: 0;
  font-size: 1rem;
}

.admin-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
  padding: 1.5rem;
}

.admin-fields label {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.45rem;
}

.admin-fields label.wide {
  grid-column: 1 / -1;
}

.admin-fields label > span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
}

.admin-fields input,
.admin-fields textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  outline: none;
  background: #f7f7f2;
  color: var(--ink);
  font-size: 0.82rem;
  line-height: 1.55;
  padding: 0.8rem;
  resize: vertical;
}

.admin-fields input:focus,
.admin-fields textarea:focus {
  border-color: var(--acid-dark);
  box-shadow: 0 0 0 2px rgba(201, 255, 49, 0.2);
}

.analytics-panel {
  display: grid;
  max-width: 1200px;
  gap: 1.25rem;
  margin: 0 auto 5rem;
  scroll-margin-top: 1rem;
}

.analytics-heading,
.analytics-card-title,
.campaign-row-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}

.analytics-heading {
  border-top: 1px solid var(--line);
  padding-top: 2rem;
}

.analytics-heading h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.5rem, 4vw, 4.7rem);
  letter-spacing: -0.055em;
  line-height: 1;
}

.analytics-heading p {
  max-width: 620px;
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.analytics-heading > button,
.analytics-card-title button,
.analytics-tabs button,
.campaign-actions button,
.primary-admin-button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 750;
  padding: 0.8rem 1rem;
}

.analytics-heading > button:disabled,
.campaign-actions button:disabled,
.primary-admin-button:disabled {
  cursor: wait;
  opacity: 0.45;
}

.analytics-tabs {
  display: flex;
  gap: 0.45rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.65rem;
}

.analytics-tabs button {
  background: transparent;
}

.analytics-tabs button.active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.analytics-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.analytics-kpis article {
  display: flex;
  min-height: 140px;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
  padding: 1.2rem;
}

.analytics-kpis span,
.analytics-card-title span,
.campaign-row-head span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.analytics-kpis strong {
  font-family: var(--display);
  font-size: clamp(2rem, 3.4vw, 3.7rem);
  letter-spacing: -0.045em;
}

.analytics-grid,
.users-layout,
.campaign-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 1.25rem;
}

.analytics-card {
  min-width: 0;
  border: 1px solid var(--line);
  background: #fff;
  padding: 1.5rem;
}

.analytics-card-title {
  margin-bottom: 1.5rem;
}

.analytics-card-title h3,
.campaign-row-head h3 {
  margin: 0.4rem 0 0;
  font-family: var(--display);
  font-size: 1.6rem;
  letter-spacing: -0.035em;
}

.analytics-card-title p {
  margin: 0;
  color: var(--muted);
  font-size: 0.7rem;
}

.traffic-card {
  min-height: 330px;
}

.traffic-bars {
  display: flex;
  height: 215px;
  align-items: flex-end;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  background: repeating-linear-gradient(
    to top,
    transparent 0,
    transparent 52px,
    rgba(17, 19, 15, 0.06) 53px
  );
}

.traffic-bars span {
  min-height: 4px;
  flex: 1;
  background: var(--acid-dark);
  transition: height 300ms ease;
}

.traffic-bars span:hover {
  background: var(--ink);
}

.analytics-stats-list {
  margin: 0;
}

.analytics-stats-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-light);
  padding: 0.95rem 0;
}

.analytics-stats-list dt {
  color: var(--muted);
  font-size: 0.76rem;
}

.analytics-stats-list dd {
  margin: 0;
  font-family: var(--mono);
  font-weight: 800;
}

.event-timeline {
  display: grid;
}

.event-timeline article {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  gap: 0.9rem;
  align-items: center;
  border-top: 1px solid var(--line-light);
  padding: 0.85rem 0;
}

.event-timeline article i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--acid-dark);
}

.event-timeline article div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.2rem;
}

.event-timeline strong {
  font-size: 0.78rem;
}

.event-timeline span,
.event-timeline time {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.66rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analytics-empty {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.6;
  padding: 1rem 0;
}

.analytics-search {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.analytics-search span,
.campaign-fields label > span {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 700;
}

.analytics-search input,
.campaign-fields input,
.campaign-fields textarea,
.campaign-fields select,
.campaign-actions input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  outline: none;
  background: #f7f7f2;
  color: var(--ink);
  font: inherit;
  font-size: 0.78rem;
  padding: 0.75rem;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.72rem;
  text-align: left;
}

.admin-table th {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 600;
  padding: 0.8rem 0.5rem;
}

.admin-table td {
  border-top: 1px solid var(--line-light);
  padding: 0.9rem 0.5rem;
  vertical-align: top;
}

.admin-table tbody tr {
  cursor: pointer;
}

.admin-table tbody tr:hover {
  background: rgba(201, 255, 49, 0.11);
}

.admin-table td:first-child {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.admin-table small {
  color: var(--muted);
}

.identity-chip {
  display: inline-flex;
  margin: 0 0.25rem 0.25rem 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.56rem;
  padding: 0.3rem 0.4rem;
}

.user-profile h4 {
  margin: 1.8rem 0 0.7rem;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.user-facts {
  display: grid;
  gap: 0.6rem;
}

.user-facts p {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  border-bottom: 1px solid var(--line-light);
  font-size: 0.68rem;
  padding-bottom: 0.6rem;
}

.user-facts span {
  color: var(--muted);
}

.identity-list,
.consent-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.identity-list span,
.consent-list span {
  border: 1px solid var(--line);
  font-size: 0.62rem;
  padding: 0.45rem 0.55rem;
}

.consent-list .granted {
  border-color: var(--acid-dark);
  background: rgba(201, 255, 49, 0.17);
}

.consent-list .revoked {
  border-color: var(--coral);
  background: rgba(255, 116, 89, 0.1);
}

.campaign-layout {
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
  align-items: start;
}

.campaign-form {
  position: sticky;
  top: 1rem;
}

.campaign-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.campaign-fields label {
  display: grid;
  gap: 0.4rem;
}

.campaign-fields label.wide {
  grid-column: 1 / -1;
}

.primary-admin-button {
  width: 100%;
  margin-top: 1rem;
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.campaign-list {
  display: grid;
  gap: 1rem;
}

.campaign-row-head > strong {
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 0.68rem;
}

.campaign-row > p {
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.55;
}

.campaign-metrics,
.campaign-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.campaign-metrics span {
  border: 1px solid var(--line-light);
  color: var(--muted);
  font-size: 0.62rem;
  padding: 0.45rem 0.55rem;
}

.campaign-metrics strong {
  color: var(--ink);
}

.campaign-actions {
  margin-top: 1rem;
  border-top: 1px solid var(--line-light);
  padding-top: 1rem;
}

.campaign-actions input {
  width: min(220px, 100%);
}

.campaign-preview {
  border-left: 3px solid var(--acid-dark);
  background: rgba(201, 255, 49, 0.14);
  color: var(--ink) !important;
  padding: 0.7rem;
}

.analytics-consent {
  position: fixed;
  z-index: 1000;
  right: 1rem;
  bottom: 1rem;
  display: grid;
  max-width: 470px;
  gap: 0.8rem;
  border: 1px solid rgba(241, 240, 232, 0.2);
  background: var(--ink);
  color: var(--paper);
  padding: 1rem;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.25);
}

.analytics-consent p {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.5;
}

.analytics-consent div {
  display: flex;
  gap: 0.5rem;
}

.analytics-consent button {
  border: 1px solid rgba(241, 240, 232, 0.28);
  background: transparent;
  color: var(--paper);
  font-size: 0.68rem;
  padding: 0.65rem 0.75rem;
}

.analytics-consent button:last-child {
  border-color: var(--acid);
  background: var(--acid);
  color: var(--ink);
}

.admin-signout {
  position: fixed;
  z-index: 20;
  right: 1rem;
  bottom: 1rem;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 0.68rem;
  padding: 0.55rem 0.75rem;
}

.admin-denied {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--paper);
  padding: 2rem;
  text-align: center;
}

.admin-denied > span {
  color: var(--acid);
  font-family: var(--mono);
  font-size: 0.7rem;
}

.admin-denied h1 {
  margin: 1.5rem 0 0.75rem;
  font-family: var(--display);
  font-size: clamp(3rem, 7vw, 7rem);
  letter-spacing: -0.06em;
}

.admin-denied p {
  max-width: 520px;
  color: rgba(241, 240, 232, 0.6);
  line-height: 1.6;
}

.admin-denied a {
  margin-top: 1rem;
  background: var(--acid);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.9rem 1.2rem;
}

@keyframes pulse-dot {
  0% {
    box-shadow: 0 0 0 0 rgba(201, 255, 49, 0.5);
  }
  60% {
    box-shadow: 0 0 0 10px rgba(201, 255, 49, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(201, 255, 49, 0);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

@keyframes ambient-drift {
  to {
    transform: translate3d(5vw, 4vw, 0) rotate(8deg) scale(1.08);
  }
}

@keyframes scan-project {
  to {
    transform: rotate(12deg) translateX(950%);
  }
}

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
    padding-bottom: 5rem;
  }

  .hero-copy {
    max-width: 850px;
  }

  .hero-system {
    position: absolute;
    right: -8rem;
    bottom: -7rem;
    width: 34rem;
    opacity: 0.35;
    transform: none;
  }

  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .metric:nth-child(2) {
    border-right: 0;
  }

  .metric:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .seo-grid,
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .seo-card:nth-child(2),
  .process-grid article:nth-child(2) {
    border-right: 0;
  }

  .seo-card {
    min-height: 280px;
  }

  .process-grid article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .analytics-grid,
  .users-layout,
  .campaign-layout {
    grid-template-columns: 1fr;
  }

  .campaign-form {
    position: static;
  }
}

@media (max-width: 820px) {
  .pointer-glow {
    display: none;
  }

  .site-header {
    height: 74px;
  }

  .menu-button {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 74px;
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--line-light);
    background: rgba(17, 19, 15, 0.98);
    padding: 0.75rem 1.25rem 1.25rem;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    border-bottom: 1px solid var(--line-light);
    padding: 0.9rem 0;
  }

  .nav-admin {
    border: 0;
    border-bottom: 1px solid var(--line-light);
    border-radius: 0;
  }

  .hero {
    min-height: 820px;
    grid-template-columns: 1fr;
    padding-top: 8.5rem;
  }

  .hero h1 {
    font-size: clamp(3.45rem, 14vw, 6.2rem);
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-system {
    right: -11rem;
    bottom: -4rem;
    width: 29rem;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.8rem;
  }

  .button.primary {
    width: 100%;
  }

  .button.text {
    align-self: flex-start;
  }

  .section,
  .contact-section {
    padding: 5.5rem 1.25rem;
  }

  .intro-section,
  .section-heading,
  .java-section,
  .seo-heading,
  .infrastructure-section,
  .process-heading {
    grid-template-columns: 1fr;
  }

  .intro-body {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2.5rem;
  }

  .section-heading {
    gap: 1.5rem;
    margin-bottom: 3rem;
  }

  .stack-grid {
    grid-template-columns: 1fr;
  }

  .stack-card {
    min-height: 290px;
  }

  .java-section {
    gap: 3.5rem;
  }

  .java-intro {
    position: static;
  }

  .reason-row {
    grid-template-columns: 2rem 1fr;
  }

  .reason-row p {
    grid-column: 2;
  }

  .seo-heading > p {
    grid-column: auto;
  }

  .seo-grid {
    grid-template-columns: 1fr;
    margin-top: 3rem;
  }

  .seo-card {
    min-height: 240px;
    border-right: 1px solid rgba(17, 19, 15, 0.34);
  }

  .seo-card:nth-child(2) {
    border-right: 1px solid rgba(17, 19, 15, 0.34);
  }

  .seo-card h3 {
    margin-top: 3rem;
  }

  .portfolio-list {
    gap: 5rem;
  }

  .portfolio-item,
  .portfolio-item:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .portfolio-item:nth-child(even) .portfolio-image,
  .portfolio-item:nth-child(even) .portfolio-meta {
    grid-row: auto;
    grid-column: auto;
  }

  .portfolio-meta h3 {
    font-size: 3rem;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .process-grid article {
    min-height: 220px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: left;
  }

  .site-footer nav {
    justify-self: start;
  }

  .articles-hero {
    min-height: 500px;
    grid-template-columns: 1fr;
    padding: 5rem 1.25rem;
  }

  .articles-hero > p {
    grid-column: auto;
  }

  .article-choice {
    grid-template-columns: 2rem minmax(0, 1fr);
  }

  .article-choice-arrow {
    display: none;
  }

  .article-hero {
    min-height: 570px;
    padding: 5rem 1.25rem;
  }

  .article-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 5rem 1.25rem;
  }

  .article-layout > aside {
    position: static;
  }

  .article-cta {
    align-items: flex-start;
    flex-direction: column;
    padding: 4rem 1.25rem;
  }

  .related-articles {
    padding: 5rem 1.25rem;
  }

  .related-articles > div {
    grid-template-columns: 1fr;
  }

  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    height: auto;
  }

  .admin-sidebar nav,
  .admin-user {
    display: none;
  }

  .admin-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-fields {
    grid-template-columns: 1fr;
  }

  .admin-fields label.wide {
    grid-column: auto;
  }

  .analytics-heading {
    flex-direction: column;
  }

  .analytics-kpis {
    grid-template-columns: repeat(2, 1fr);
  }

  .campaign-fields {
    grid-template-columns: 1fr;
  }

  .campaign-fields label.wide {
    grid-column: auto;
  }

  .event-timeline article {
    grid-template-columns: 10px minmax(0, 1fr);
  }

  .event-timeline time {
    grid-column: 2;
  }
}

@media (max-width: 520px) {
  .hero {
    min-height: 760px;
  }

  .hero-system {
    display: none;
  }

  .metrics {
    grid-template-columns: 1fr;
  }

  .metric {
    min-height: 150px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metric:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }

  .contact-section h2 {
    font-size: clamp(3.4rem, 17vw, 5.5rem);
  }

  .telegram-button {
    width: 100%;
    min-width: 0;
  }

  .contact-actions {
    width: 100%;
    flex-direction: column;
  }

  .admin-main {
    padding: 2rem 1rem 6rem;
  }

  .admin-actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .admin-actions a,
  .admin-actions button {
    text-align: center;
  }

  .analytics-kpis {
    grid-template-columns: 1fr;
  }

  .analytics-tabs {
    overflow-x: auto;
  }

  .analytics-consent {
    right: 0.5rem;
    bottom: 0.5rem;
    left: 0.5rem;
  }

  .analytics-consent div {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .hero-grid,
  .hero-system {
    transform: none;
  }
}
