/* ═══════════════════════════════════════════════════════════════
   MIRRORFRACTAL.COM · Styles v1.1.0
   Changelog:
     - Contrast boost: bone-dim raised, no dim greys on dark bg
     - Logo elements used as decorative markers throughout
     - Richer fractal ornaments around sections
     - Gradient glows under key headlines
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* Dark theme */
  --obsidian: #0A0A10;
  --obsidian-soft: #13131D;
  --obsidian-lift: #1A1A26;

  /* Text palette — pushed brighter for legibility */
  --bone: #ECE8DC;
  --bone-dim: #D8D3C4;        /* brighter than v1.0 */
  --bone-soft: #B4AE9E;        /* for long body copy */
  --faint: #A6A296;
  --dim: #8A8578;

  --line: rgba(236, 232, 220, 0.1);
  --line-strong: rgba(236, 232, 220, 0.22);

  --gold: #D4A74A;
  --gold-bright: #F0C566;
  --gold-soft: rgba(212, 167, 74, 0.14);
  --gold-line: rgba(212, 167, 74, 0.38);
  --gold-glow: rgba(212, 167, 74, 0.5);

  --ink-bg: var(--obsidian);
  --ink-surface: var(--obsidian-soft);
  --ink-lift: var(--obsidian-lift);
  --ink-text: var(--bone);
  --ink-text-dim: var(--bone-dim);
  --ink-text-soft: var(--bone-soft);

  --serif: "Fraunces", ui-serif, Georgia, serif;
  --mono: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-slow: cubic-bezier(0.16, 1, 0.3, 1);

  --max: 1440px;
  --gutter: clamp(20px, 5vw, 80px);
  --nav-h: 64px;
}

[data-theme="light"] {
  --ink-bg: #F3EFE4;
  --ink-surface: #EAE5D6;
  --ink-lift: #E0DAC8;
  --ink-text: #12121A;
  --ink-text-dim: #2A2A36;
  --ink-text-soft: #4A4A56;
  --bone: #12121A;
  --bone-dim: #2A2A36;
  --bone-soft: #4A4A56;
  --faint: #5A5A66;
  --dim: #6A6A76;
  --line: rgba(18, 18, 26, 0.12);
  --line-strong: rgba(18, 18, 26, 0.24);
}

/* ───────── Reset ───────── */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink-bg);
  color: var(--ink-text);
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
  transition: background 0.6s var(--ease), color 0.6s var(--ease);
}
a { color: inherit; text-decoration: none; }
button { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }

body::before {
  content: "";
  position: fixed; inset: 0; z-index: 100;
  pointer-events: none;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
}

::selection { background: var(--gold); color: var(--obsidian); }

/* ───────── Background canvases ───────── */
#bg-canvas, #particle-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
#bg-canvas { opacity: 0.55; }
#particle-canvas { opacity: 0.7; mix-blend-mode: screen; }

[data-theme="light"] #particle-canvas { mix-blend-mode: multiply; opacity: 0.22; }
[data-theme="light"] #bg-canvas { opacity: 0.32; }

/* ═══════════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════════ */
nav.main-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: var(--nav-h);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  background: color-mix(in srgb, var(--ink-bg) 72%, transparent);
  border-bottom: 1px solid var(--line);
  transition: all 0.3s var(--ease);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-text);
  cursor: pointer;
}
.nav-brand svg { width: 36px; height: 36px; flex-shrink: 0; }
.nav-brand .sub { color: var(--faint); display: none; }
@media (min-width: 720px) { .nav-brand .sub { display: inline; } }
.nav-links {
  display: none;
  gap: 28px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.nav-links a {
  color: var(--bone-dim);
  transition: color 0.3s var(--ease);
  position: relative;
  padding: 6px 0;
  cursor: pointer;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.nav-links a:hover { color: var(--ink-text); }
.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}
.nav-links a.active { color: var(--gold); }
@media (min-width: 960px) { .nav-links { display: flex; } }
.nav-right { display: flex; gap: 10px; align-items: center; }
.theme-toggle {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-text);
  transition: all 0.3s var(--ease);
  cursor: pointer;
}
.theme-toggle:hover { border-color: var(--gold); color: var(--gold); transform: rotate(15deg); }
.theme-toggle svg { width: 14px; height: 14px; }
.nav-burger { display: flex; align-items: center; justify-content: center; }
@media (min-width: 960px) { .nav-burger { display: none !important; } }
.nav-burger svg { width: 22px; height: 22px; }
.mobile-drawer {
  position: fixed;
  top: 0; right: 0;
  width: min(320px, 85vw);
  height: 100vh;
  z-index: 200;
  background: var(--ink-bg);
  border-left: 1px solid var(--line);
  transform: translateX(100%);
  transition: transform 0.5s var(--ease-slow);
  padding: 80px 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.mobile-drawer.open { transform: translateX(0); }
.mobile-drawer a {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-text-dim);
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: color 0.3s var(--ease);
}
.mobile-drawer a:hover, .mobile-drawer a.active { color: var(--gold); }
.drawer-close {
  position: absolute;
  top: 20px; right: 20px;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(10, 10, 16, 0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.drawer-overlay.on { opacity: 1; pointer-events: auto; }

/* ═══════════════════════════════════════════════════════════════
   PAGE TRANSITIONS
   ═══════════════════════════════════════════════════════════════ */
.page {
  padding-top: var(--nav-h);
  min-height: 100vh;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s var(--ease-slow), transform 0.6s var(--ease-slow);
  position: relative;
  z-index: 2;
}
.page.active { opacity: 1; transform: translateY(0); }
.page:not(.active) { display: none; }

/* ═══════════════════════════════════════════════════════════════
   HERO — с фоновым ромб-ореолом
   ═══════════════════════════════════════════════════════════════ */
.hero {
  min-height: calc(100vh - var(--nav-h));
  padding: clamp(24px, 5vh, 56px) var(--gutter) 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
}
.hero::before {
  content: "";
  position: absolute;
  top: 18%;
  right: 8%;
  width: 420px;
  height: 420px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><g fill='none' stroke='%23D4A74A' stroke-width='0.4' stroke-opacity='0.5'><line x1='100' y1='10' x2='100' y2='190'/><path d='M100 20 L180 100 L100 180 L20 100 Z'/><path d='M100 40 L160 100 L100 160 L40 100 Z'/><path d='M100 60 L140 100 L100 140 L60 100 Z'/><path d='M100 80 L120 100 L100 120 L80 100 Z'/></g><circle cx='100' cy='100' r='3' fill='%23D4A74A' opacity='0.8'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 1;
  animation: rotate-slow 120s linear infinite;
}
@media (max-width: 720px) { .hero::before { width: 260px; height: 260px; right: -10%; opacity: 0.5; } }

.hero-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--bone-dim);
  text-transform: uppercase;
  margin-bottom: 40px;
  opacity: 0;
  animation: fade-in 0.8s var(--ease) 0.2s forwards;
  position: relative;
  z-index: 2;
}
.hero-meta .dot { color: var(--gold); margin: 0 8px; }
.hero-meta .tag-right { text-align: right; }
.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #7fe080;
}
.live-indicator::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #7fe080;
  box-shadow: 0 0 10px #7fe080;
  animation: pulse-dot 2s ease-in-out infinite;
}

.hero-title {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 0;
  font-size: clamp(48px, 11vw, 160px);
  line-height: 0.92;
  font-weight: 300;
  letter-spacing: -0.03em;
  position: relative;
  z-index: 2;
}
.hero-title .line { display: block; overflow: hidden; padding: 4px 0; }
.hero-title .line > span {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  animation: reveal-up 1s var(--ease-slow) forwards;
}
.hero-title .line:nth-child(1) > span { animation-delay: 0.3s; }
.hero-title .line:nth-child(2) > span { animation-delay: 0.5s; }
.hero-title .line:nth-child(3) > span { animation-delay: 0.7s; }
.hero-title em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  color: var(--gold);
  font-weight: 300;
  position: relative;
}
.hero-title em::after {
  content: "";
  position: absolute;
  bottom: 0.1em; left: 0; right: 0;
  height: 4px;
  background: radial-gradient(ellipse at center, var(--gold-glow), transparent 60%);
  filter: blur(8px);
  z-index: -1;
}
.hero-tag {
  margin-top: clamp(36px, 5vh, 56px);
  max-width: 560px;
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.65;
  color: var(--bone-dim);
  font-weight: 300;
  opacity: 0;
  animation: fade-in 0.8s var(--ease) 0.9s forwards;
  position: relative;
  z-index: 2;
}
.hero-bottom {
  margin-top: clamp(48px, 8vh, 96px);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fade-in 0.8s var(--ease) 1.1s forwards;
  position: relative;
  z-index: 2;
}
.cta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-text);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 6px;
  transition: all 0.3s var(--ease);
  cursor: pointer;
  display: inline-block;
}
.cta:hover { color: var(--gold); letter-spacing: 0.28em; }
.scroll-hint {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--bone-dim);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}
.scroll-hint .line-h {
  display: inline-block;
  width: 40px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold));
  animation: slide-hint 2s ease-in-out infinite;
}

/* ═══════════════════════════════════════════════════════════════
   MARQUEE
   ═══════════════════════════════════════════════════════════════ */
.marquee {
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  padding: 26px 0;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.32em;
  color: var(--bone-dim);
  text-transform: uppercase;
  position: relative;
  z-index: 2;
  background: color-mix(in srgb, var(--ink-bg) 88%, transparent);
}
.marquee-track {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  animation: marquee 50s linear infinite;
  will-change: transform;
}
.marquee-track span { display: inline-flex; align-items: center; gap: 60px; flex-shrink: 0; }
.marquee-track .d {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
  box-shadow: 0 0 8px var(--gold-glow);
}

/* ═══════════════════════════════════════════════════════════════
   SECTION LABEL (с лого-ромбом)
   ═══════════════════════════════════════════════════════════════ */
.section-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.section-label::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
  flex-shrink: 0;
  box-shadow: 0 0 8px var(--gold-glow);
}

/* ═══════════════════════════════════════════════════════════════
   THESIS
   ═══════════════════════════════════════════════════════════════ */
.thesis {
  padding: clamp(100px, 15vh, 180px) var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  position: relative;
}
@media (min-width: 900px) { .thesis { grid-template-columns: 300px 1fr; gap: 100px; } }
.thesis-text {
  font-family: var(--serif);
  font-variation-settings: "opsz" 48, "SOFT" 50;
  font-size: clamp(23px, 2.4vw, 36px);
  line-height: 1.38;
  font-weight: 300;
  letter-spacing: -0.01em;
  max-width: 820px;
  color: var(--ink-text);
}
.thesis-text em {
  font-style: italic;
  font-variation-settings: "opsz" 48, "SOFT" 100, "WONK" 1;
  color: var(--gold);
}
.thesis-text .drop {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "SOFT" 30;
  font-size: 1.8em;
  line-height: 0.85;
  float: left;
  padding: 0.12em 0.1em 0 0;
  color: var(--gold);
}

/* ═══════════════════════════════════════════════════════════════
   PROJECTS GRID
   ═══════════════════════════════════════════════════════════════ */
.projects {
  padding: clamp(80px, 10vh, 140px) var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
}
.projects-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line-strong);
  margin-bottom: 60px;
  flex-wrap: wrap;
}
.projects-head h2 {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "SOFT" 30;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 0.95;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--ink-text);
}
.projects-head h2 em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  color: var(--gold);
}
.projects-head .count {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--bone-dim);
  text-transform: uppercase;
}
.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 720px) { .project-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
@media (min-width: 1100px) { .project-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
.project {
  position: relative;
  padding: 32px 28px 28px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--ink-surface);
  overflow: hidden;
  transition: all 0.5s var(--ease);
  min-height: 360px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  isolation: isolate;
}
.project > .bg-ornament {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 140px;
  height: 140px;
  opacity: 0.08;
  pointer-events: none;
  transition: opacity 0.5s var(--ease), transform 0.8s var(--ease);
  transform: rotate(10deg);
  z-index: 0;
}
.project:hover > .bg-ornament { opacity: 0.22; transform: rotate(0deg) scale(1.15); }
.project::after {
  content: "";
  position: absolute;
  inset: -2px;
  background: radial-gradient(400px at var(--mx, 50%) var(--my, 50%), var(--gold-soft), transparent 70%);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
  z-index: -1;
}
.project:hover { border-color: var(--gold-line); background: var(--ink-lift); transform: translateY(-4px); }
.project:hover::after { opacity: 1; }
.project::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  transform: translateX(-100%);
  transition: transform 0.8s var(--ease);
  z-index: 2;
}
.project:hover::before { transform: translateX(100%); }
.project-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 36px;
  position: relative;
  z-index: 1;
}
.project-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--gold);
  text-transform: uppercase;
}
.project-status {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--bone-dim);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 99px;
}
.project-status::before {
  content: "";
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--bone-dim);
}
.project-status.live::before { background: #7fe080; box-shadow: 0 0 8px #7fe080; animation: pulse-dot 2s ease-in-out infinite; }
.project-status.live { color: #7fe080; border-color: rgba(127, 224, 128, 0.4); }
.project-name {
  font-family: var(--serif);
  font-variation-settings: "opsz" 72, "SOFT" 30;
  font-size: 38px;
  line-height: 1;
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--ink-text);
  position: relative;
  z-index: 1;
}
.project-name em {
  font-style: italic;
  font-variation-settings: "opsz" 72, "SOFT" 100, "WONK" 1;
  color: var(--gold);
}
.project-full {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--bone-dim);
  text-transform: uppercase;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}
.project-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--bone-dim);
  font-weight: 300;
  flex-grow: 1;
  position: relative;
  z-index: 1;
}
.project-foot {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line-strong);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}
.project-dom {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--bone-dim);
}
.project-arrow {
  width: 24px; height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  transition: transform 0.4s var(--ease);
}
.project:hover .project-arrow { transform: translate(4px, -4px); }
.project.featured {
  background: linear-gradient(180deg, rgba(212, 167, 74, 0.07) 0%, var(--ink-surface) 60%);
  border-color: var(--gold-line);
}
@media (min-width: 1100px) { .project.featured { grid-column: span 2; } }
.project.featured .project-name { font-size: clamp(42px, 5vw, 56px); }
.project.soon { opacity: 0.6; cursor: default; }
.project.soon:hover {
  opacity: 0.88;
  transform: none;
  border-color: var(--line-strong);
  background: var(--ink-surface);
}
.project.soon:hover::after { opacity: 0; }
.project.soon::before { display: none; }

/* ═══════════════════════════════════════════════════════════════
   RESEARCH FACTS
   ═══════════════════════════════════════════════════════════════ */
.research {
  padding: clamp(80px, 12vh, 140px) var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
  border-top: 1px solid var(--line-strong);
  position: relative;
}
.research-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
@media (min-width: 900px) { .research-grid { grid-template-columns: 1.2fr 1fr; gap: 80px; align-items: center; } }
.research-text h2 {
  font-family: var(--serif);
  font-variation-settings: "opsz" 96, "SOFT" 30;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.05;
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  color: var(--ink-text);
}
.research-text h2 em {
  font-style: italic;
  font-variation-settings: "opsz" 96, "SOFT" 100, "WONK" 1;
  color: var(--gold);
}
.research-text p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--bone-dim);
  margin-bottom: 20px;
  max-width: 540px;
  font-weight: 300;
}
.research-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid var(--gold-line);
  padding: 6px 0;
  transition: all 0.3s var(--ease);
  margin-top: 8px;
  cursor: pointer;
}
.research-link:hover { border-color: var(--gold); gap: 16px; }
.research-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line-strong);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  overflow: hidden;
}
.fact {
  padding: 28px 24px;
  background: var(--ink-bg);
  min-height: 140px;
  transition: background 0.4s var(--ease);
  position: relative;
}
.fact:hover { background: var(--ink-surface); }
.fact::after {
  content: "";
  position: absolute;
  top: 22px;
  right: 22px;
  width: 5px;
  height: 5px;
  background: var(--gold);
  transform: rotate(45deg);
  box-shadow: 0 0 6px var(--gold-glow);
  opacity: 0.6;
}
.fact-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.28em;
  color: var(--bone-dim);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.fact-value {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "SOFT" 30;
  font-size: 44px;
  line-height: 1;
  font-weight: 300;
  letter-spacing: -0.03em;
  color: var(--ink-text);
}
.fact-value .unit {
  font-size: 14px;
  color: var(--bone-dim);
  margin-left: 4px;
  font-family: var(--mono);
  letter-spacing: 0;
}
.fact-value em {
  font-style: italic;
  color: var(--gold);
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
}
.fact-sub {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--bone-dim);
  letter-spacing: 0.1em;
}

/* ═══════════════════════════════════════════════════════════════
   MANIFESTO — с огромным ромбом-ореолом
   ═══════════════════════════════════════════════════════════════ */
.manifesto {
  padding: clamp(80px, 12vh, 140px) var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
  border-top: 1px solid var(--line-strong);
  position: relative;
  overflow: hidden;
}
.manifesto::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 500px;
  height: 500px;
  transform: translate(-50%, -50%) rotate(45deg);
  border: 1px solid var(--gold-line);
  opacity: 0.25;
  pointer-events: none;
  animation: rotate-slow 200s linear infinite;
}
.manifesto::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  height: 300px;
  transform: translate(-50%, -50%) rotate(45deg);
  border: 1px solid var(--gold-line);
  opacity: 0.25;
  pointer-events: none;
  animation: rotate-slow 150s linear infinite reverse;
}
.manifesto .mark {
  display: block;
  width: 64px;
  height: 64px;
  margin: 0 auto 40px;
  opacity: 1;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 20px var(--gold-glow));
}
.manifesto blockquote {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "SOFT" 30;
  font-size: clamp(28px, 4vw, 56px);
  line-height: 1.2;
  font-weight: 300;
  letter-spacing: -0.02em;
  max-width: 900px;
  margin: 0 auto;
  color: var(--ink-text);
  position: relative;
  z-index: 1;
}
.manifesto blockquote em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  color: var(--gold);
}
.manifesto cite {
  display: block;
  margin-top: 40px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--bone-dim);
  text-transform: uppercase;
  font-style: normal;
  position: relative;
  z-index: 1;
}

/* ═══════════════════════════════════════════════════════════════
   PAGE HEADERS
   ═══════════════════════════════════════════════════════════════ */
.page-header {
  padding: clamp(32px, 6vh, 72px) var(--gutter) clamp(60px, 8vh, 100px);
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: "";
  position: absolute;
  top: 25%;
  right: 3%;
  width: 420px;
  height: 420px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><g fill='none' stroke='%23D4A74A' stroke-width='0.4' stroke-opacity='0.5'><line x1='100' y1='10' x2='100' y2='190'/><path d='M100 20 L180 100 L100 180 L20 100 Z'/><path d='M100 50 L150 100 L100 150 L50 100 Z'/><path d='M100 75 L125 100 L100 125 L75 100 Z'/></g><circle cx='100' cy='100' r='3' fill='%23D4A74A' opacity='0.8'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
  animation: rotate-slow 180s linear infinite;
  opacity: 0.7;
}
@media (max-width: 720px) { .page-header::before { width: 260px; height: 260px; right: -5%; opacity: 0.5; } }
.page-header .crumb {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 2;
}
.page-header .crumb::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
  box-shadow: 0 0 8px var(--gold-glow);
}
.page-header h1 {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "SOFT" 30;
  font-size: clamp(52px, 10vw, 140px);
  line-height: 0.9;
  font-weight: 300;
  letter-spacing: -0.03em;
  max-width: 1200px;
  color: var(--ink-text);
  position: relative;
  z-index: 2;
}
.page-header h1 em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  color: var(--gold);
  position: relative;
}
.page-header h1 em::after {
  content: "";
  position: absolute;
  bottom: 0.1em; left: 0; right: 0;
  height: 6px;
  background: radial-gradient(ellipse at center, var(--gold-glow), transparent 60%);
  filter: blur(10px);
  z-index: -1;
}
.page-header .subtitle {
  margin-top: 36px;
  font-size: clamp(17px, 1.4vw, 22px);
  line-height: 1.6;
  color: var(--bone-dim);
  max-width: 620px;
  font-weight: 300;
  position: relative;
  z-index: 2;
}

/* ═══════════════════════════════════════════════════════════════
   ABOUT PAGE
   ═══════════════════════════════════════════════════════════════ */
.about-grid {
  padding: clamp(40px, 6vh, 80px) var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 720px) { .about-grid { grid-template-columns: repeat(2, 1fr); gap: 48px; } }
@media (min-width: 1100px) { .about-grid { grid-template-columns: repeat(3, 1fr); } }
.principle {
  padding: 40px 32px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--ink-surface);
  transition: all 0.5s var(--ease);
  position: relative;
  overflow: hidden;
}
.principle::after {
  content: "";
  position: absolute;
  top: 20px;
  right: 20px;
  width: 16px;
  height: 16px;
  border: 1px solid var(--gold-line);
  transform: rotate(45deg);
  transition: all 0.6s var(--ease);
}
.principle:hover::after {
  background: var(--gold);
  box-shadow: 0 0 20px var(--gold-glow);
}
.principle::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 40px;
  height: 1px;
  background: var(--gold);
  transition: width 0.6s var(--ease);
}
.principle:hover { background: var(--ink-lift); transform: translateY(-2px); }
.principle:hover::before { width: 100%; }
.principle-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.principle h3 {
  font-family: var(--serif);
  font-variation-settings: "opsz" 96, "SOFT" 30;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1;
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: var(--ink-text);
  max-width: 85%;
}
.principle h3 em {
  font-style: italic;
  font-variation-settings: "opsz" 96, "SOFT" 100, "WONK" 1;
  color: var(--gold);
}
.principle p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--bone-dim);
  font-weight: 300;
}

/* Team */
.team {
  padding: clamp(80px, 10vh, 120px) var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
  border-top: 1px solid var(--line-strong);
  position: relative;
}
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 700px) { .team-grid { grid-template-columns: 300px 1fr; gap: 80px; align-items: start; } }
.team-member {
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 28px;
  background: var(--ink-surface);
  position: relative;
}
.team-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-bright) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 32px;
  color: var(--obsidian);
  font-weight: 300;
  font-style: italic;
  margin-bottom: 20px;
  box-shadow: 0 4px 24px var(--gold-glow);
}
.team-member h4 {
  font-family: var(--serif);
  font-variation-settings: "opsz" 72, "SOFT" 30;
  font-size: 26px;
  line-height: 1.1;
  font-weight: 300;
  margin-bottom: 6px;
  color: var(--ink-text);
}
.team-role {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.team-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--bone-dim);
  margin-bottom: 18px;
}
.team-links { display: flex; gap: 10px; flex-wrap: wrap; }
.team-link {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--bone-dim);
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  transition: all 0.3s var(--ease);
  cursor: pointer;
}
.team-link:hover { border-color: var(--gold); color: var(--gold); }
.team-story h3 {
  font-family: var(--serif);
  font-variation-settings: "opsz" 96, "SOFT" 30;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.1;
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  color: var(--ink-text);
}
.team-story h3 em {
  font-style: italic;
  font-variation-settings: "opsz" 96, "SOFT" 100, "WONK" 1;
  color: var(--gold);
}
.team-story p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--bone-dim);
  margin-bottom: 20px;
  font-weight: 300;
}

/* ═══════════════════════════════════════════════════════════════
   TIMELINE
   ═══════════════════════════════════════════════════════════════ */
.timeline {
  padding: clamp(60px, 8vh, 100px) var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
}
.timeline-inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}
.timeline-inner::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: linear-gradient(to bottom, var(--gold), transparent);
}
.timeline-item {
  position: relative;
  padding: 0 0 48px 48px;
  display: block;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 5px;
  width: 14px;
  height: 14px;
  background: var(--gold);
  transform: rotate(45deg);
  box-shadow: 0 0 0 4px var(--ink-bg), 0 0 14px var(--gold-glow);
  transition: all 0.3s var(--ease);
}
.timeline-item:hover::before {
  transform: rotate(135deg) scale(1.2);
  background: var(--gold-bright);
}
.timeline-item .date {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.timeline-item h4 {
  font-family: var(--serif);
  font-variation-settings: "opsz" 72, "SOFT" 30;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.2;
  font-weight: 300;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  color: var(--ink-text);
}
.timeline-item h4 em {
  font-style: italic;
  font-variation-settings: "opsz" 72, "SOFT" 100, "WONK" 1;
  color: var(--gold);
}
.timeline-item p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--bone-dim);
  font-weight: 300;
  margin-bottom: 12px;
}
.timeline-item p code {
  font-family: var(--mono);
  font-size: 0.9em;
  color: var(--gold);
  background: var(--gold-soft);
  padding: 2px 6px;
  border-radius: 4px;
}
.timeline-item .meta { display: flex; gap: 10px; flex-wrap: wrap; }
.tag {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--bone-dim);
  padding: 4px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  text-transform: uppercase;
}
.tag.gold { color: var(--gold); border-color: var(--gold-line); }
.tag.green { color: #7fe080; border-color: rgba(127, 224, 128, 0.4); }

/* ═══════════════════════════════════════════════════════════════
   CONTACT PAGE
   ═══════════════════════════════════════════════════════════════ */
.contact-layout {
  padding: clamp(60px, 8vh, 120px) var(--gutter) 40px;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
@media (min-width: 900px) { .contact-layout { grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; } }
.contact-form { display: flex; flex-direction: column; gap: 24px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--bone-dim);
  text-transform: uppercase;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-strong);
  color: var(--ink-text);
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 300;
  transition: border-color 0.3s var(--ease);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: var(--gold); }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--bone-soft); opacity: 1; }
.form-group textarea { min-height: 140px; resize: vertical; }
.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12'><path d='M2 4 L6 8 L10 4' stroke='%23D4A74A' stroke-width='1.5' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position: right 4px center;
  cursor: pointer;
}
.form-group select option { background: var(--ink-bg); color: var(--ink-text); }
.form-submit {
  margin-top: 16px;
  padding: 18px 32px;
  background: var(--gold);
  color: var(--obsidian);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  border-radius: 99px;
  cursor: pointer;
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}
.form-submit:hover {
  background: var(--gold-bright);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--gold-glow);
}
.form-submit:active { transform: translateY(0); }
.form-message {
  padding: 16px 20px;
  border: 1px solid var(--gold-line);
  border-radius: 8px;
  background: var(--gold-soft);
  color: var(--gold);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  opacity: 0;
  transform: translateY(-8px);
  transition: all 0.4s var(--ease);
  pointer-events: none;
}
.form-message.show { opacity: 1; transform: translateY(0); }
.form-message[data-kind="success"] {
  border-color: rgba(127, 224, 128, 0.5);
  background: rgba(127, 224, 128, 0.08);
  color: #7fe080;
}
.form-message[data-kind="error"] {
  border-color: rgba(255, 107, 107, 0.5);
  background: rgba(255, 107, 107, 0.08);
  color: #ff8a8a;
}
.newsletter-form { position: relative; }
.contact-form { position: relative; }
.cf-turnstile:empty { display: none; }
.contact-side h3 {
  font-family: var(--serif);
  font-variation-settings: "opsz" 96, "SOFT" 30;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.1;
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  color: var(--ink-text);
}
.contact-side h3 em {
  font-style: italic;
  font-variation-settings: "opsz" 96, "SOFT" 100, "WONK" 1;
  color: var(--gold);
}
.contact-side p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--bone-dim);
  margin-bottom: 36px;
  max-width: 420px;
}
.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid var(--line-strong);
  padding-top: 28px;
}
.contact-list li {
  display: grid;
  grid-template-columns: 120px 1fr;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  gap: 20px;
  align-items: baseline;
}
.contact-list .k {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--bone-dim);
  text-transform: uppercase;
}
.contact-list .v a {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-text);
  transition: color 0.3s var(--ease);
  letter-spacing: 0.05em;
}
.contact-list .v a:hover { color: var(--gold); }
.newsletter-block {
  margin-top: 48px;
  padding: 32px;
  border: 1px solid var(--gold-line);
  border-radius: 14px;
  background: var(--gold-soft);
  position: relative;
  overflow: hidden;
}
.newsletter-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px at 80% 20%, var(--gold-soft), transparent 70%);
  pointer-events: none;
}
.newsletter-block h4 {
  font-family: var(--serif);
  font-variation-settings: "opsz" 72, "SOFT" 30;
  font-size: 26px;
  font-weight: 300;
  margin-bottom: 8px;
  color: var(--ink-text);
}
.newsletter-block h4 em {
  font-style: italic;
  font-variation-settings: "opsz" 72, "SOFT" 100, "WONK" 1;
  color: var(--gold);
}
.newsletter-block p {
  font-size: 13px;
  color: var(--bone-dim);
  margin-bottom: 20px;
  max-width: 380px;
}
.newsletter-form { display: flex; gap: 8px; align-items: stretch; }
.newsletter-form input {
  flex-grow: 1;
  padding: 12px 16px;
  background: var(--ink-bg);
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  color: var(--ink-text);
  font-family: var(--mono);
  font-size: 12px;
  transition: border-color 0.3s var(--ease);
}
.newsletter-form input:focus { outline: none; border-color: var(--gold); }
.newsletter-form input::placeholder { color: var(--bone-dim); }
.newsletter-form button {
  padding: 12px 22px;
  background: var(--gold);
  color: var(--obsidian);
  border-radius: 99px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
  font-weight: 500;
}
.newsletter-form button:hover { background: var(--gold-bright); }

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
footer {
  padding: 40px var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
  border-top: 1px solid var(--line-strong);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--bone-dim);
  text-transform: uppercase;
  position: relative;
  z-index: 2;
}
footer .dot {
  margin: 0 8px;
  display: inline-block;
  width: 5px; height: 5px;
  background: var(--gold);
  transform: rotate(45deg);
  vertical-align: middle;
}

/* ═══════════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════════ */
@keyframes reveal-up { to { transform: translateY(0); opacity: 1; } }
@keyframes fade-in { to { opacity: 1; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes slide-hint {
  0%, 100% { transform: translateX(0); opacity: 0.5; }
  50% { transform: translateX(6px); opacity: 1; }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.35); }
}
@keyframes rotate-slow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease-slow), transform 1s var(--ease-slow); }
.reveal.on { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  #bg-canvas, #particle-canvas { display: none; }
}
