/* ------------------------------------------------------------------
   Чёрное поле в серую клетку.
   Наведение — тёмно-синяя клетка.
   Быстрое движение мышью оставляет затухающий след.
   ------------------------------------------------------------------ */

:root {
  --bg: #000000;
  --cell: #0d0d0d;
  --line: #1b1b1b;
  --hot: #0e3f78;
  --hot-glow: rgba(46, 130, 220, 0.35);
  --fade: 1100ms;
  --ease: cubic-bezier(0.16, 0.84, 0.44, 1);
  --ink: #e8e8e8;
  --muted: #a9a9a9;
  --dim: #5e5e5e;
  --link: #7fb2e6;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
}

body {
  background: var(--bg);
  overflow: hidden;
  cursor: crosshair;
  -webkit-tap-highlight-color: transparent;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* сетка ровно на весь экран: 64 x 36 — это 16:9, клетки квадратные */
.grid {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(64, 1fr);
  grid-template-rows: repeat(36, 1fr);
  background: var(--bg);
}

.c {
  background: var(--cell);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition:
    background-color var(--fade) var(--ease),
    box-shadow var(--fade) var(--ease);
  will-change: background-color;
}

/* вход — почти мгновенно, выход — медленно: из этого и получается след */
.c:hover {
  background: var(--hot);
  box-shadow: inset 0 0 22px var(--hot-glow);
  transition-duration: 35ms;
}

/* на телефоне hover нет — реагируем на касание */
.c:active {
  background: #12509a;
  box-shadow: inset 0 0 26px rgba(70, 150, 240, 0.45);
  transition-duration: 0ms;
}

/* виньетка и лёгкая «плёнка», чтобы чёрное не выглядело плоским */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(130% 100% at 50% -10%, transparent 35%, rgba(0, 0, 0, 0.55) 100%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.012) 0 1px, transparent 1px 3px);
}

/* --- текст поверх сетки ------------------------------------------- */

.brand {
  position: fixed;
  z-index: 2;
  top: clamp(18px, 3vw, 34px);
  left: clamp(18px, 4vw, 54px);
  font-size: 13px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #7a7a7a;
}

.about {
  position: fixed;
  z-index: 2;
  left: clamp(18px, 6vw, 90px);
  top: 50%;
  transform: translateY(-50%);
  width: min(460px, calc(100vw - 36px));
  padding: 26px 28px 22px;
  background: rgba(6, 6, 6, 0.72);
  border: 1px solid #1c1c1c;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.kicker {
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #6f6f6f;
}

.about h1 {
  margin: 0 0 14px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.about p {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}

.about p:last-child { margin-bottom: 0; }

.about a {
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px solid rgba(127, 178, 230, 0.35);
}

.about a:hover { color: #a9cdf3; }

.foot {
  position: fixed;
  z-index: 2;
  left: clamp(18px, 4vw, 54px);
  bottom: clamp(16px, 3vw, 30px);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--dim);
}

@media (max-width: 640px) {
  .about {
    top: auto;
    bottom: 64px;
    transform: none;
    padding: 20px 20px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .c { transition: none; }
}
