/* Reset + cross-direction base. Per-direction styles live in themes.jsx */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Onest', system-ui, sans-serif;
  background: #f0eee9;
  color: #111;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

/* Landing root — every direction targets [data-direction] */
.va-root {
  width: 100%;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.45;
  letter-spacing: -0.005em;
}
.va-root *::selection { background: var(--ink); color: var(--paper); }

/* Section wrapper */
.va-section { position: relative; }
.va-pad     { padding: 80px 56px; }
.va-pad-sm  { padding: 56px 56px; }
.va-pad-lg  { padding: 120px 56px; }

/* Hair rules */
.va-rule { height: 1px; background: var(--ink); opacity: .9; border: 0; margin: 0; }
.va-rule-soft { height: 1px; background: var(--ink); opacity: .15; border: 0; margin: 0; }

/* Display helpers */
.va-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.va-num-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
}
.va-display {
  font-family: var(--font-display);
  font-weight: var(--display-weight, 900);
  line-height: 0.88;
  letter-spacing: var(--display-tracking, -0.03em);
  text-transform: var(--display-case, none);
}
.va-h1 { font-size: clamp(60px, 9vw, 180px); }
.va-h2 { font-size: clamp(48px, 6vw, 110px); }
.va-h3 { font-size: clamp(32px, 4vw, 64px); }

/* Marquee */
.va-marquee {
  overflow: hidden;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
  position: relative;
}
.va-marquee-track {
  display: inline-flex;
  gap: 48px;
  white-space: nowrap;
  padding: 20px 0;
  animation: va-marquee 32s linear infinite;
  font-family: var(--font-display);
  font-size: 56px;
  letter-spacing: -0.01em;
}
@keyframes va-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Tag chip */
.va-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 9px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* CTA */
.va-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--ink);
  color: var(--paper);
  padding: 18px 28px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  border: 0;
  cursor: pointer;
  letter-spacing: -0.01em;
  transition: transform .15s, background .15s;
}
.va-cta:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 0 var(--ink); }
.va-cta-ghost {
  background: transparent; color: var(--ink); border: 1px solid var(--ink);
}
.va-cta-ghost:hover { background: var(--ink); color: var(--paper); transform: none; box-shadow: none; }

/* Stats */
.va-stat-num {
  font-family: var(--font-display);
  font-size: clamp(64px, 6vw, 112px);
  line-height: 0.9;
  font-weight: var(--display-weight, 900);
  letter-spacing: -0.02em;
}
.va-stat-lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}

/* Strike */
.va-strike { text-decoration: line-through; text-decoration-thickness: 2px; color: var(--ink-soft); }

/* Cyrillic-friendly utility hyphenation off */
.va-root h1, .va-root h2, .va-root h3 { text-wrap: balance; }

/* Hover lifts */
.va-card { background: var(--paper); border: 1px solid var(--ink); transition: transform .15s, box-shadow .15s; }
.va-card:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 0 var(--ink); }

/* Fake-consultant warning blocks reset (handled in kak-obychno.jsx) */
.ko-block { isolation: isolate; }

/* Image placeholder */
.va-placeholder {
  background-image: repeating-linear-gradient(45deg, var(--ink) 0 1px, transparent 1px 14px);
  background-color: color-mix(in oklch, var(--paper), var(--ink) 6%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}
.va-placeholder::before, .va-placeholder::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px dashed var(--ink);
  pointer-events: none;
}

/* Compact icon placeholders */
.va-noimg {
  background-image: repeating-linear-gradient(45deg, var(--ink) 0 1px, transparent 1px 8px);
  background-color: color-mix(in oklch, var(--paper), var(--ink) 5%);
}

/* Sticky nav inside artboard */
.va-nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
}

/* Accents */
.va-accent { color: var(--accent, var(--ink)); }
.va-accent-bg { background: var(--accent, var(--ink)); color: var(--paper); }

/* Quiz */
.va-quiz-opt {
  font-family: var(--font-body);
  font-size: 17px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  text-align: left;
  padding: 16px 18px;
  cursor: pointer;
  transition: background .12s, color .12s, transform .12s;
}
.va-quiz-opt:hover { background: var(--ink); color: var(--paper); }
.va-quiz-opt.is-active { background: var(--ink); color: var(--paper); }

/* Direction overrides */
[data-direction="manifest"] .va-h1 { font-size: clamp(80px, 12vw, 240px); }
[data-direction="manifest"] .va-display { letter-spacing: 0; }

[data-direction="audit"] .va-cta { border-radius: 0; border: 1px solid var(--ink); }
[data-direction="audit"] .va-display { letter-spacing: -0.04em; }

[data-direction="gazette"] .va-display { letter-spacing: -0.025em; }
[data-direction="gazette"] .va-cta { border-radius: 0; }

/* ─────────────────────────────────────────────────────────────────────
   HARDCORE direction — black BG, red accent, all-caps, censored bars,
   police-tape dividers. Pushes the manifesto to the max.
   ───────────────────────────────────────────────────────────────────── */
[data-direction="hardcore"] .va-display {
  text-transform: uppercase;
  letter-spacing: -0.05em;
  line-height: 0.82;
}
[data-direction="hardcore"] .va-h1 { font-size: clamp(96px, 14vw, 280px); }
[data-direction="hardcore"] .va-h2 { font-size: clamp(64px, 8vw, 160px); }

[data-direction="hardcore"] .va-cta {
  border: 2px solid var(--accent);
  background: var(--accent);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
[data-direction="hardcore"] .va-cta:hover {
  box-shadow: 6px 6px 0 0 var(--accent);
  background: #000;
  color: var(--accent);
}
[data-direction="hardcore"] .va-cta-ghost {
  border-color: var(--ink);
  background: transparent;
  color: var(--ink);
}
[data-direction="hardcore"] .va-cta-ghost:hover {
  background: var(--ink);
  color: var(--paper);
  box-shadow: none;
}

[data-direction="hardcore"] .va-rule { background: var(--accent); height: 2px; }
[data-direction="hardcore"] .va-card {
  background: #141414;
  border: 1px solid var(--accent);
}
[data-direction="hardcore"] .va-card:hover { box-shadow: 6px 6px 0 0 var(--accent); }

[data-direction="hardcore"] .va-chip {
  border-color: var(--accent);
  color: var(--accent);
}
[data-direction="hardcore"] .va-eyebrow { color: var(--accent); }

/* Police-tape divider — used between major sections in hardcore. */
.va-tape {
  background: repeating-linear-gradient(
    45deg,
    #ffd000 0 22px,
    #000 22px 44px
  );
  height: 28px;
  width: 100%;
}
.va-tape-text {
  background: #000;
  color: #ffd000;
  padding: 14px 0;
  font-family: 'Archivo Black', sans-serif;
  font-size: 18px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  text-align: center;
  border-top: 2px solid #ffd000;
  border-bottom: 2px solid #ffd000;
}

/* Censored / redacted block — overlays the ink colour as a sliding bar. */
.va-redact {
  display: inline-block;
  position: relative;
  color: transparent;
  background: var(--ink);
  padding: 0 4px;
  margin: 0 2px;
  border-radius: 2px;
  user-select: none;
}
[data-direction="hardcore"] .va-redact { background: var(--accent); }
.va-redact:hover { color: var(--paper); background: var(--ink); }

/* Strikethrough fakeguarantees */
[data-direction="hardcore"] .va-strike { text-decoration-color: var(--accent); }

/* Quiz options in hardcore */
[data-direction="hardcore"] .va-quiz-opt {
  border-color: var(--accent);
  color: var(--ink);
}
[data-direction="hardcore"] .va-quiz-opt:hover,
[data-direction="hardcore"] .va-quiz-opt.is-active {
  background: var(--accent);
  color: #000;
}

/* Marquee */
[data-direction="hardcore"] .va-marquee {
  background: var(--accent);
  color: #000;
  border-top: 2px solid #000;
  border-bottom: 2px solid #000;
}
[data-direction="hardcore"] .va-marquee-track {
  font-weight: 900;
}

/* Stat numbers — neon red */
[data-direction="hardcore"] .va-stat-num { color: var(--accent); }

/* Trust card back gets the red treatment */
[data-direction="hardcore"] .va-stat-lbl { color: var(--ink-soft); }

/* No emoji in display anywhere */
.no-emoji { font-feature-settings: "ss01" on; }

/* ─────────────────────────────────────────────────────────────────────
   MICRO-ANIMATIONS — discreet, on-brand. Nothing bouncy.
   ───────────────────────────────────────────────────────────────────── */

/* 1) Hero headline — stagger reveal on load. Each line slides up from
      a clip-mask. Lives behind .va-hero-reveal > span. */
@keyframes va-rise {
  from { transform: translateY(110%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.va-hero-reveal {
  display: block;
  overflow: hidden;
}
.va-hero-reveal > span {
  display: inline-block;
  animation: va-rise 0.7s cubic-bezier(.2, .8, .2, 1) both;
}
.va-hero-reveal:nth-of-type(1) > span { animation-delay: 0.05s; }
.va-hero-reveal:nth-of-type(2) > span { animation-delay: 0.2s; }
.va-hero-reveal:nth-of-type(3) > span { animation-delay: 0.35s; }

/* 2) Regalia strikethrough — draws the line on intersection. The strike
      sits as a pseudo-element. JS toggles .is-struck. */
.va-regalia-item {
  position: relative;
  display: inline-block;
  color: var(--ink-soft);
}
.va-regalia-item::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; top: 55%;
  height: 3px;
  background: var(--accent);
  transition: right 0.6s cubic-bezier(.2, .8, .2, 1);
}
.va-regalia-item.is-struck::after { right: 0; }

/* Stagger via inline custom property; container applies the delay. */
.va-regalia-item { transition-delay: var(--vra-delay, 0s); }
.va-regalia-item.is-struck::after { transition-delay: var(--vra-delay, 0s); }

/* 3) Generic scroll-reveal — fade + tiny lift. Section headings opt in. */
.va-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(.2, .8, .2, 1), transform 0.7s cubic-bezier(.2, .8, .2, 1);
}
.va-reveal.is-in { opacity: 1; transform: translateY(0); }

/* 4) Number rolls — gently scale once when entering. */
@keyframes va-num-pop {
  0%   { transform: scale(0.92); }
  100% { transform: scale(1); }
}
.va-stat-num.is-in { animation: va-num-pop 0.5s cubic-bezier(.2, .8, .2, 1) both; }

/* 5) Filter X — pulse on hover */
.va-filter-x {
  display: inline-block;
  transition: transform 0.2s, color 0.2s;
}
.va-filter-row:hover .va-filter-x {
  transform: scale(1.4) rotate(8deg);
}

/* 6) KO stamps — slowly breathe so the eye doesn't lose track of them */
@keyframes va-stamp-breathe {
  0%, 100% { transform: rotate(-14deg) scale(1); }
  50%      { transform: rotate(-13.4deg) scale(1.015); }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .va-hero-reveal > span,
  .va-reveal,
  .va-stat-num.is-in { animation: none !important; transition: none !important; opacity: 1; transform: none; }
  .va-regalia-item::after { right: 0 !important; transition: none !important; }
}

/* Line draw animation for SVG charts */
@keyframes va-line-draw {
  from { stroke-dashoffset: var(--line-len, 1000); }
  to   { stroke-dashoffset: 0; }
}
