/* IKI marketing site — white type on black, or the reverse. No colour anywhere:
   hierarchy comes from weight, size and grey, not from hue.
   ONY One (everything) · IBM Plex Mono (filenames = ownership). */

@font-face { font-family: "ONY One"; src: url("../fonts/onyone-thin.woff2") format("woff2");    font-weight: 100; font-style: normal; font-display: swap; }
@font-face { font-family: "ONY One"; src: url("../fonts/onyone-light.woff2") format("woff2");   font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "ONY One"; src: url("../fonts/onyone-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "ONY One"; src: url("../fonts/onyone-medium.woff2") format("woff2");  font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "ONY One"; src: url("../fonts/onyone-bold.woff2") format("woff2");    font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "ONY One"; src: url("../fonts/onyone-black.woff2") format("woff2");   font-weight: 900; font-style: normal; font-display: swap; }
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/plexmono-latin.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}

/* ---------- themes ----------
   Dark is the default (the brand's resting state); light is a choice via the toggle
   (data-theme="light" on <html>, remembered in localStorage). Every colour below is a
   shade of one axis: bg ↔ ink. "inv-*" is the same axis flipped, used by .night blocks
   so an inverted section reads right in both themes. */

:root {
  --bg: #000000;
  --bg-sunken: #141414;
  --card: #0e0e0e;
  --ink: #ffffff;
  --ink-soft: #b3b3b3;
  --ink-faint: #767676;
  --line: rgba(255, 255, 255, 0.16);
  --shadow: rgba(0, 0, 0, 0.6);
  --shadow-deep: rgba(0, 0, 0, 0.8);
  --scrim: 0, 0, 0;

  --inv-bg: #ffffff;
  --inv-bg-deep: #f4f4f4;
  --inv-card: #ffffff;
  --inv-ink: #000000;
  --inv-soft: #4d4d4d;
  --inv-line: rgba(0, 0, 0, 0.12);
  --inv-scrim: 255, 255, 255;

  --radius: 16px;
  --radius-lg: 24px;
  --sans: "ONY One", -apple-system, "SF Pro Text", "Helvetica Neue", sans-serif;
  --serif: var(--sans);
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", monospace;
  --max: 1160px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #ffffff; --bg-sunken: #f2f2f2; --card: #ffffff;
  --ink: #000000; --ink-soft: #4d4d4d; --ink-faint: #8a8a8a;
  --line: rgba(0, 0, 0, 0.12);
  --shadow: rgba(0, 0, 0, 0.12); --shadow-deep: rgba(0, 0, 0, 0.22);
  --scrim: 255, 255, 255;
  --inv-bg: #000000; --inv-bg-deep: #0a0a0a; --inv-card: #161616;
  --inv-ink: #ffffff; --inv-soft: #a3a3a3; --inv-line: rgba(255, 255, 255, 0.16);
  --inv-scrim: 0, 0, 0;
  color-scheme: light;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.3s, color 0.3s;
}
::selection { background: var(--ink); color: var(--bg); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* Photography and app shots go grey too — the rule is the whole page, not just the CSS */
.phone img, .distill-visual img { filter: grayscale(1); }

/* ---------- type ---------- */

h1, h2, .display {
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 0.98;
}
h1 { font-size: clamp(2.9rem, 8vw, 6rem); }
h2 { font-size: clamp(2rem, 4.6vw, 3.3rem); margin-bottom: 22px; }
h3 { font-family: var(--sans); font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; }
em { font-style: normal; font-weight: 300; }

.lede {
  font-size: clamp(1.1rem, 1.9vw, 1.3rem);
  line-height: 1.5;
  font-weight: 300;
  color: var(--ink-soft);
  max-width: 33em;
}
.kicker {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  color: var(--ink-faint);
  margin-bottom: 20px;
}
.mono { font-family: var(--mono); font-size: 0.85em; }
.filepath {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--ink-faint);
  background: var(--bg-sunken);
  border-radius: 8px;
  padding: 3px 10px;
  display: inline-block;
}

/* Inverted block: black on a white page, white on a black one */
.night { background: var(--inv-bg); color: var(--inv-ink); }
.night .lede { color: var(--inv-soft); }
.night .kicker { color: var(--inv-soft); }
.night .filepath { background: var(--inv-card); color: var(--inv-soft); }

/* ---------- layout ---------- */

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
section { padding: 120px 0; position: relative; }
.section-tight { padding: 80px 0; }
.page-hero + .section-tight { padding-top: 24px; }

/* ---------- nav ---------- */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 16px 0;
  transition: background 0.4s, box-shadow 0.4s;
}
.nav.scrolled {
  background: rgba(var(--scrim), 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 30px; }
.nav-logo { font-family: var(--sans); font-size: 1.45rem; font-weight: 700; letter-spacing: -0.03em; display: inline-flex; align-items: center; gap: 0.5rem; }
/* Знак-четырёхлистник: currentColor, чтобы наследовать цвет текста в шапке и футере */
.nav-logo .mark, .footer-logo .mark { width: 1.15em; height: 1.15em; flex: none; }
.nav-links { display: flex; gap: 24px; margin-left: auto; align-items: center; }
.nav-links a { font-size: 0.92rem; font-weight: 500; color: var(--ink-soft); transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }

/* Theme toggle: a small disc, half-filled — reads in either theme without a label */
.theme-toggle {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1.5px solid var(--line);
  background: transparent; color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; flex: none;
  transition: border-color 0.2s, transform 0.3s var(--ease);
}
.theme-toggle:hover { border-color: var(--ink); transform: rotate(180deg); }
.theme-toggle svg { width: 16px; height: 16px; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  white-space: nowrap;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 0.96rem; font-weight: 500;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, background 0.2s, color 0.2s;
  cursor: pointer; border: none;
  font-family: var(--sans);
}
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px var(--shadow); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.night .btn-primary { background: var(--inv-ink); color: var(--inv-bg); }
.night .btn-ghost { color: var(--inv-ink); box-shadow: inset 0 0 0 1.5px var(--inv-line); }
.night .btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--inv-ink); }

/* ---------- hero: scraps settle into a card ---------- */

.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 130px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero-eyebrow {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--ink-faint);
  margin-bottom: 26px;
}
.hero h1 .soft { font-weight: 300; }
.hero-sub { margin-top: 26px; }
.hero-ctas { display: flex; gap: 14px; margin-top: 38px; flex-wrap: wrap; align-items: center; }
.hero-footnote { margin-top: 20px; font-size: 0.85rem; color: var(--ink-faint); }

/* Collage: scraps fly in and settle; the typeset card lands last */
.collage { position: relative; height: 560px; }
.scrap {
  position: absolute;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 14px 44px var(--shadow);
  padding: 14px 16px;
  font-size: 0.8rem;
  color: var(--ink-soft);
  opacity: 0;
  transform: translateY(60px) rotate(0deg);
  animation: settle 1.1s var(--ease) forwards;
}
@keyframes settle {
  0% { opacity: 0; transform: translateY(60px) rotate(0deg) scale(0.96); }
  100% { opacity: 1; transform: translateY(0) rotate(var(--rot, 0deg)) scale(1); }
}
.scrap-url { top: 4%; left: 2%; --rot: -4deg; animation-delay: 0.15s; max-width: 240px; }
.scrap-shot { top: 18%; right: 4%; --rot: 3deg; animation-delay: 0.3s; width: 150px; padding: 8px; }
.scrap-shot .shot-fake { background: var(--bg-sunken); border-radius: 6px; height: 190px; }
.scrap-voice { bottom: 26%; left: 0; --rot: 2deg; animation-delay: 0.45s; }
.wave { display: flex; gap: 2.5px; align-items: center; height: 26px; }
.wave i { width: 3px; border-radius: 2px; background: var(--ink); opacity: 0.7; }
.hero-card {
  position: absolute;
  bottom: 0; right: 6%;
  width: min(330px, 78%);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 34px 90px var(--shadow-deep);
  padding: 28px;
  opacity: 0;
  transform: translateY(70px);
  animation: settle 1.2s var(--ease) 0.7s forwards;
}
.hero-card h4 { font-family: var(--sans); font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.12; margin-bottom: 10px; }
.hero-card p { font-size: 0.86rem; color: var(--ink-soft); line-height: 1.5; }
.hero-card .tags { display: flex; gap: 6px; margin-top: 14px; flex-wrap: wrap; }
.hero-card .tag {
  font-size: 0.72rem; font-weight: 500;
  color: var(--ink);
  background: var(--bg-sunken);
  padding: 3px 10px; border-radius: 999px;
}
.hero-card .file { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }

/* ---------- reveals ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.07s; }
.reveal-d2 { transition-delay: 0.14s; }
.reveal-d3 { transition-delay: 0.21s; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .scrap, .hero-card { opacity: 1; transform: none; animation: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- chapter dividers (particle fields) ---------- */

.chapter {
  position: relative;
  overflow: hidden;
  min-height: 86svh;
  display: flex;
  align-items: flex-end;
  padding: 0;
}
/* Главы рисуются частицами: канвас наследует цвет темы, точки берут его из color */
.chapter-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  color: var(--ink);
  pointer-events: none;
}
.chapter.night .chapter-canvas { color: var(--inv-ink); }
.chapter-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(var(--scrim), 0.06) 30%, rgba(var(--scrim), 0.93) 100%);
}
.chapter.night .chapter-scrim {
  background: linear-gradient(180deg, rgba(var(--inv-scrim), 0.12) 25%, rgba(var(--inv-scrim), 0.92) 100%);
}
.chapter.night .chapter-scrim.flat { background: rgba(var(--inv-scrim), 0.55); }
.chapter-content { position: relative; z-index: 2; width: 100%; padding: 0 0 88px; }

/* ---------- phone shots ---------- */

.phone {
  border-radius: 42px;
  border: 8px solid var(--ink);
  box-shadow: 0 30px 80px var(--shadow-deep);
  overflow: hidden;
  background: var(--ink);
}
.phone img { border-radius: 34px; }
.shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  align-items: start;
  margin-top: 64px;
}
.shots figure:nth-child(2) { transform: translateY(44px); }
.shots figcaption {
  margin-top: 18px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  text-align: center;
}

/* ---------- sticky distill sequence ---------- */

.distill { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.distill-visual { position: sticky; top: 90px; }
.distill-steps { display: grid; gap: 6vh; padding: 12vh 0; }
.distill-step { opacity: 0.32; transition: opacity 0.5s; }
.distill-step.active { opacity: 1; }
.distill-step h3 { font-family: var(--sans); font-size: 1.6rem; font-weight: 500; letter-spacing: -0.02em; margin-bottom: 10px; }
.distill-step p { color: var(--ink-soft); max-width: 26em; }

/* ---------- feature grid ---------- */

.grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  margin-top: 52px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 46px var(--shadow); }
.card h3 { margin-bottom: 8px; }
.card p { font-size: 0.94rem; color: var(--ink-soft); }
.card .glyph {
  width: 42px; height: 42px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-sunken);
  color: var(--ink);
  margin-bottom: 18px; font-size: 1.25rem;
}

/* ---------- night library (manifesto) ---------- */

.manifesto { text-align: left; max-width: 880px; margin: 0 auto; }
.manifesto .line {
  font-family: var(--sans);
  font-size: clamp(1.7rem, 4vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.18;
  color: var(--inv-soft);
  transition: color 0.5s;
  padding: 6px 0;
}
.manifesto .line.lit { color: var(--inv-ink); }
.manifesto .line em { font-weight: 300; }
.mdfile {
  margin: 64px auto 0;
  max-width: 640px;
  background: var(--inv-bg-deep);
  border: 1px solid var(--inv-line);
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--inv-soft);
  overflow: hidden;
}
.mdfile-bar {
  padding: 10px 18px;
  border-bottom: 1px solid var(--inv-line);
  color: var(--inv-soft);
  font-size: 0.75rem;
  display: flex; justify-content: space-between;
}
.mdfile pre { padding: 20px 22px; overflow-x: auto; white-space: pre; }
.mdfile .k { color: var(--inv-ink); }

/* ---------- rules cards ---------- */

.rules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 52px;
}
.rule-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px;
  box-shadow: 0 10px 30px var(--shadow);
  transform: rotate(var(--rot, 0deg));
  transition: transform 0.35s var(--ease);
}
.rule-card:hover { transform: rotate(0deg) translateY(-4px); }
.rule-card .num { font-family: var(--sans); font-size: 2rem; font-weight: 900; letter-spacing: -0.03em; color: var(--ink); }
.rule-card h3 { margin: 10px 0 6px; }
.rule-card p { font-size: 0.92rem; color: var(--ink-soft); }

/* ---------- comparison ---------- */

.compare-table { width: 100%; border-collapse: collapse; margin-top: 44px; font-size: 0.94rem; }
.compare-table th, .compare-table td {
  padding: 15px 16px; text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.compare-table th {
  font-weight: 700; font-size: 0.8rem;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--ink-faint);
}
.compare-table td:first-child { font-weight: 500; }
.compare-table .yes { color: var(--ink); font-weight: 700; }
.compare-table .no { color: var(--ink-faint); }
.compare-table .iki-col { background: var(--bg-sunken); }
.compare-note { font-size: 0.82rem; color: var(--ink-faint); margin-top: 16px; }

/* ---------- pricing ---------- */

.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 22px; margin-top: 52px; align-items: stretch;
}
.price-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 38px 32px;
  display: flex; flex-direction: column;
}
.price-card.featured {
  border: 2px solid var(--ink);
  box-shadow: 0 22px 60px var(--shadow);
  position: relative;
}
.price-tag { font-family: var(--sans); font-size: 2.9rem; font-weight: 700; letter-spacing: -0.04em; margin: 10px 0 2px; }
.price-tag small { font-size: 1rem; font-family: var(--sans); font-weight: 400; letter-spacing: 0; color: var(--ink-faint); }
.price-note { font-size: 0.87rem; color: var(--ink-faint); margin-bottom: 22px; }
.price-card ul { display: grid; gap: 9px; margin: 0 0 30px; font-size: 0.93rem; }
.price-card li { padding-left: 24px; position: relative; color: var(--ink-soft); }
.price-card li::before {
  content: "";
  position: absolute; left: 0; top: 7px;
  width: 13px; height: 13px; border-radius: 50%;
  box-shadow: inset 0 0 0 4px var(--ink);
}
.price-card .btn { margin-top: auto; justify-content: center; }
.badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: var(--bg);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 999px; white-space: nowrap;
}

/* ---------- FAQ ---------- */

.faq-list { margin-top: 44px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  font-family: var(--sans);
  font-size: 1.22rem; font-weight: 500; letter-spacing: -0.01em;
  padding: 24px 44px 24px 0;
  cursor: pointer; list-style: none; position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute; right: 4px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--sans); font-size: 1.45rem; font-weight: 300;
  color: var(--ink);
  transition: transform 0.3s var(--ease);
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-body { padding: 0 0 26px; color: var(--ink-soft); max-width: 44em; }
.faq-body p + p { margin-top: 12px; }

/* ---------- footer ---------- */

footer {
  background: var(--inv-bg);
  color: var(--inv-soft);
  padding: 80px 0 44px;
  font-size: 0.92rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 56px; }
.footer-grid h4 {
  font-size: 0.78rem; letter-spacing: 0.11em; text-transform: uppercase;
  color: var(--inv-ink); margin-bottom: 14px;
}
.footer-grid a { display: block; padding: 4px 0; transition: color 0.2s; }
.footer-grid a:hover { color: var(--inv-ink); }
.footer-logo { font-family: var(--sans); font-size: 1.9rem; font-weight: 700; letter-spacing: -0.03em; color: var(--inv-ink); margin-bottom: 10px; display: inline-flex; align-items: center; gap: 0.5rem; }
.footer-bottom {
  border-top: 1px solid var(--inv-line);
  padding-top: 30px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 0.82rem;
}

/* ---------- prose (vision) ---------- */

.prose { max-width: 41em; margin: 0 auto; font-size: 1.12rem; line-height: 1.75; }
.prose h2 { font-size: 1.9rem; margin: 60px 0 18px; }
.prose p + p { margin-top: 18px; }
.prose .pull {
  font-family: var(--sans);
  font-size: 1.6rem; line-height: 1.3; font-weight: 500; letter-spacing: -0.02em;
  margin: 44px 0; padding-left: 26px;
  border-left: 3px solid var(--ink);
}
.page-hero { padding: 190px 0 64px; }
.page-hero h1 { font-size: clamp(2.5rem, 6vw, 4.3rem); }
.page-hero .lede { margin-top: 18px; }

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  section { padding: 84px 0; }
  .hero-grid { grid-template-columns: 1fr; }
  .collage { height: 420px; max-width: 480px; }
  .distill { grid-template-columns: 1fr; }
  .distill-visual { position: static; }
  .distill-steps { padding: 40px 0; gap: 36px; }
  .distill-step { opacity: 1; }
  .shots { grid-template-columns: 1fr; max-width: 340px; margin-left: auto; margin-right: auto; }
  .shots figure:nth-child(2) { transform: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { gap: 14px; }
  .nav-links a:not(.btn):nth-child(-n+2) { display: none; }
}

@media (max-width: 560px) {
  .nav-links a:not(.btn) { display: none; }
  .nav-links .btn { padding: 8px 16px; font-size: 0.84rem; }
  .compare-scroll { overflow-x: auto; margin: 0 -28px; padding: 0 28px; }
  .compare-table { min-width: 700px; }
}


/* ---------- знак: круги, оживающие по наведению ---------- */

.nav-logo .mark, .footer-logo .mark { overflow: visible; }
.mark .mark-ring, .mark .mark-core { transform-origin: 14px 14px; }
.mark .mark-ring circle, .mark .mark-core circle { transition: r 0.5s var(--ease); }

/* Наведение раскручивает кольцо и ядро навстречу друг другу */
.nav-logo:hover .mark-ring, .footer-logo:hover .mark-ring { animation: markSpin 3.2s linear infinite; }
.nav-logo:hover .mark-core, .footer-logo:hover .mark-core { animation: markSpinBack 2.4s linear infinite; }
.nav-logo:hover .mark .mark-core circle { r: 3.9; }

@keyframes markSpin { to { transform: rotate(360deg); } }
@keyframes markSpinBack { to { transform: rotate(-360deg); } }

/* ---------- иконки из точек ---------- */

.dot-icon { width: 52px; height: 52px; color: var(--ink); display: block; }
.night .dot-icon { color: var(--inv-ink); }
.dot-icon circle { opacity: 0; transform-box: fill-box; transform-origin: center; }
.reveal.in .dot-icon circle,
.dot-icon.in circle {
  animation: dotIn 0.5s var(--ease) forwards;
}
/* Точки проявляются по очереди — иконка «собирается» */
.dot-icon circle:nth-child(1)  { animation-delay: 0.02s; }
.dot-icon circle:nth-child(2)  { animation-delay: 0.05s; }
.dot-icon circle:nth-child(3)  { animation-delay: 0.08s; }
.dot-icon circle:nth-child(4)  { animation-delay: 0.11s; }
.dot-icon circle:nth-child(5)  { animation-delay: 0.14s; }
.dot-icon circle:nth-child(6)  { animation-delay: 0.17s; }
.dot-icon circle:nth-child(7)  { animation-delay: 0.20s; }
.dot-icon circle:nth-child(8)  { animation-delay: 0.23s; }
.dot-icon circle:nth-child(9)  { animation-delay: 0.26s; }
.dot-icon circle:nth-child(10) { animation-delay: 0.29s; }
.dot-icon circle:nth-child(11) { animation-delay: 0.32s; }
.dot-icon circle:nth-child(12) { animation-delay: 0.35s; }

@keyframes dotIn {
  from { opacity: 0; transform: scale(0.2); }
  to   { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .dot-icon circle { opacity: 1; animation: none; }
  .nav-logo:hover .mark-ring, .nav-logo:hover .mark-core,
  .footer-logo:hover .mark-ring, .footer-logo:hover .mark-core { animation: none; }
}
