/* ========================================================================
   Universa Media Group — design tokens & global styles
   ======================================================================== */

:root {
  /* Brand */
  --brand-500: #8b5cf6;
  --brand-400: #a78bfa;
  --brand-600: #7c3aed;
  --brand-700: #6d28d9;
  --brand-300: #c4b5fd;
  --brand-glow: rgba(139, 92, 246, 0.55);

  /* Type */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;

  /* Radii */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 28px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* Dark theme (default) */
html[data-theme="dark"] {
  --bg-0: #08060d;
  --bg-1: #0c0913;
  --bg-2: #14101e;
  --bg-3: #1c1729;
  --line: rgba(196, 181, 253, 0.10);
  --line-strong: rgba(196, 181, 253, 0.22);
  --fg-0: #f4f1fb;
  --fg-1: rgba(244, 241, 251, 0.74);
  --fg-2: rgba(244, 241, 251, 0.52);
  --fg-3: rgba(244, 241, 251, 0.32);
  --card-bg: rgba(20, 16, 30, 0.62);
  --card-bg-strong: rgba(28, 23, 41, 0.92);
  --surface-blur: blur(18px);
  color-scheme: dark;
}

/* Light theme */
html[data-theme="light"] {
  --bg-0: #fbfaff;
  --bg-1: #f3f0fb;
  --bg-2: #ece6f8;
  --bg-3: #e2dcf2;
  --line: rgba(64, 30, 124, 0.10);
  --line-strong: rgba(64, 30, 124, 0.22);
  --fg-0: #14101e;
  --fg-1: rgba(20, 16, 30, 0.78);
  --fg-2: rgba(20, 16, 30, 0.58);
  --fg-3: rgba(20, 16, 30, 0.38);
  --card-bg: rgba(255, 255, 255, 0.72);
  --card-bg-strong: rgba(255, 255, 255, 0.96);
  --surface-blur: blur(20px);
  color-scheme: light;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg-0);
  color: var(--fg-0);
  font-family: var(--font-display);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  cursor: none;
}
@media (max-width: 900px), (pointer: coarse) {
  body { cursor: auto; }
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img, svg { display: block; max-width: 100%; }

::selection { background: var(--brand-500); color: #fff; }

/* ============= Layout ============= */
.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
}

main { position: relative; z-index: 1; }

section { position: relative; }

/* ============= Custom cursor ============= */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: opacity .2s;
}
.cursor-ring {
  width: 34px; height: 34px;
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width .25s var(--ease-out), height .25s var(--ease-out),
              border-color .25s, background .25s, opacity .2s;
}
.cursor-ring[data-state="hover"] {
  width: 64px; height: 64px;
  background: rgba(139, 92, 246, 0.18);
  border-color: rgba(196, 181, 253, 0.9);
}
.cursor-ring[data-state="press"] {
  width: 26px; height: 26px;
}
@media (max-width: 900px), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ============= Nav ============= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 18px clamp(20px, 4vw, 56px);
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  transition: background .35s, border-color .35s, backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: color-mix(in oklab, var(--bg-0) 78%, transparent);
  backdrop-filter: var(--surface-blur);
  -webkit-backdrop-filter: var(--surface-blur);
  border-bottom-color: var(--line);
}
.nav-links {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
}
.nav-links a {
  padding: 9px 14px;
  color: var(--fg-1);
  border-radius: 999px;
  border: 1px solid transparent;
  transition: color .2s, border-color .2s, background .2s;
}
.nav-links a:hover { color: var(--fg-0); border-color: var(--line-strong); }
.nav-right { display: flex; align-items: center; gap: 8px; }
@media (max-width: 800px) {
  .nav-links { display: none; }
}

/* Pill toggle (theme/lang) */
.pill {
  display: inline-flex; align-items: center; gap: 2px;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  backdrop-filter: var(--surface-blur);
  -webkit-backdrop-filter: var(--surface-blur);
}
.pill button {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-2);
  padding: 6px 10px;
  border-radius: 999px;
  transition: color .2s, background .2s;
  position: relative;
}
.pill button[aria-pressed="true"] {
  color: #fff;
  background: var(--brand-600);
}
html[data-theme="light"] .pill button[aria-pressed="true"] {
  background: var(--brand-600);
  color: #fff;
}

/* CTA button */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--fg-0);
  transition: transform .25s var(--ease-out), background .25s, border-color .25s, box-shadow .25s;
  position: relative;
  overflow: hidden;
}
.btn:hover {
  border-color: var(--brand-400);
  background: color-mix(in oklab, var(--brand-500) 12%, transparent);
  transform: translateY(-1px);
}
.btn.primary {
  background: var(--brand-600);
  border-color: var(--brand-500);
  color: #fff;
  box-shadow: 0 10px 40px -10px var(--brand-glow);
}
.btn.primary:hover {
  background: var(--brand-500);
  box-shadow: 0 14px 50px -8px var(--brand-glow);
}
.btn .arrow { transition: transform .25s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }

/* Mono label */
.mono-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-2);
  display: inline-flex; align-items: center; gap: 8px;
}
.mono-label::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand-500);
  box-shadow: 0 0 12px var(--brand-glow);
}

/* Section header */
.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-bottom: 56px;
  align-items: end;
}
@media (min-width: 900px) {
  .section-head { grid-template-columns: 1fr 1fr; gap: 40px; }
}
.section-head h2 {
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 500;
  margin: 0;
  text-wrap: balance;
}
.section-head p {
  color: var(--fg-1);
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.55;
  margin: 0;
  max-width: 52ch;
}

/* ============= Mesh background (fixed) ============= */
.mesh-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Focused radial glow behind hero */
.mesh-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 110vmax;
  height: 110vmax;
  border-radius: 50%;
  background: radial-gradient(circle,
    color-mix(in oklab, var(--brand-500) 22%, transparent) 0%,
    color-mix(in oklab, var(--brand-700) 10%, transparent) 28%,
    transparent 55%);
  filter: blur(40px);
  opacity: 1;
}
.mesh-glow-2 {
  top: auto;
  bottom: -50%;
  width: 130vmax; height: 130vmax;
  background: radial-gradient(circle,
    color-mix(in oklab, #6d28d9 18%, transparent) 0%,
    transparent 50%);
  opacity: 0.65;
}
html[data-theme="light"] .mesh-glow { opacity: 0.55; }
html[data-theme="light"] .mesh-glow-2 { opacity: 0.35; }

/* Dotted texture (much subtler than a grid) */
.mesh-dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, currentColor 1px, transparent 1.4px);
  color: var(--line-strong);
  background-size: 32px 32px;
  background-position: 0 0;
  opacity: 0.7;
  mask-image: radial-gradient(ellipse 130% 80% at 50% 30%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 130% 80% at 50% 30%, black 30%, transparent 75%);
}
html[data-theme="dark"] .mesh-dots { opacity: 0.55; }

/* Faint scan lines — CRT vibe */
.mesh-scan {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 2px,
    rgba(255, 255, 255, 0.018) 2px,
    rgba(255, 255, 255, 0.018) 3px
  );
  mix-blend-mode: overlay;
}
html[data-theme="light"] .mesh-scan { opacity: 0; }

/* Edge vignette to focus attention to center */
.mesh-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 50%,
    transparent 50%,
    var(--bg-0) 100%);
  opacity: 0.55;
}
html[data-theme="light"] .mesh-vignette { opacity: 0.4; }

@media (prefers-reduced-motion: reduce) {
  .mesh-blob { animation: none !important; }
}

/* ============= Orb stage (particle morph canvas) ============= */
.orb-stage {
  position: relative;
  width: clamp(380px, 60vw, 720px);
  aspect-ratio: 1;
}
.dot-sphere {
  width: 100%; height: 100%;
  display: block;
}

/* ============= Hero ============= */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  position: relative;
  display: flex;
  align-items: center;
  padding: 140px 0 100px;
  overflow: hidden;
}
.hero-grid {
  /* Now handled by global .mesh-grid — kept as a no-op anchor */
  display: none;
}
.hero-orb-wrap {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
  z-index: 0;
}
.hero-orb {
  width: clamp(380px, 60vw, 720px);
  aspect-ratio: 1;
  position: relative;
  filter: blur(0.5px);
}
.hero-orb svg { width: 100%; height: 100%; }
.hero-content {
  position: relative;
  z-index: 2;
  text-align: left;
}
.hero-headline {
  font-size: clamp(46px, 9.5vw, 148px);
  line-height: 0.92;
  letter-spacing: -0.045em;
  font-weight: 500;
  margin: 28px 0 32px;
  text-wrap: balance;
}
.hero-headline .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-right: 0.18em;
}
.hero-headline .word span {
  display: inline-block;
  transform: translateY(120%);
  animation: word-rise 1.1s var(--ease-out) forwards;
}
@keyframes word-rise {
  to { transform: translateY(0); }
}
.hero-headline em {
  font-style: normal;
  background: linear-gradient(120deg, var(--brand-400), var(--brand-500) 55%, #f0abfc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
}
.hero-sub {
  font-size: clamp(15px, 1.5vw, 19px);
  line-height: 1.5;
  color: var(--fg-1);
  max-width: 56ch;
  margin: 0 0 40px;
  font-weight: 300;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero ticker */
.hero-ticker {
  position: absolute;
  left: 0; right: 0;
  bottom: 28px;
  display: flex;
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}
.hero-ticker-track {
  display: inline-flex;
  gap: 36px;
  padding-right: 36px;
  animation: ticker 38s linear infinite;
}
.hero-ticker-track span svg { width: 12px; height: 12px; display: inline-block; margin: 0 8px -1px; opacity: 0.6; }
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Hero stats */
.hero-stats {
  position: relative;
  z-index: 2;
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.hero-stat {
  padding: 22px 24px 22px 0;
  border-right: 1px solid var(--line);
}
.hero-stat:last-child { border-right: 0; }
.hero-stat .v {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--fg-0);
}
.hero-stat .k {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-2);
  margin-top: 6px;
}
@media (max-width: 760px) {
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stat:nth-child(2) { border-right: 0; }
  .hero-stat:nth-child(1), .hero-stat:nth-child(2) { border-bottom: 1px solid var(--line); }
}

/* ============= Services ============= */
.services {
  padding: 140px 0 80px;
  position: relative;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
@media (max-width: 760px) {
  .services-grid { grid-template-columns: 1fr; }
}
.service-cell {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 36px 32px 32px;
  position: relative;
  transition: background .3s;
  overflow: hidden;
  isolation: isolate;
}
.service-cell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%),
    color-mix(in oklab, var(--brand-500) 12%, transparent) 0%,
    transparent 50%);
  opacity: 0;
  transition: opacity .35s;
  z-index: -1;
}
.service-cell:hover::before { opacity: 1; }
.service-cell .num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-3);
  letter-spacing: 0.1em;
  margin-bottom: 24px;
  display: flex; justify-content: space-between; align-items: center;
}
.service-cell .num .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand-500);
  box-shadow: 0 0 10px var(--brand-glow);
}
.service-cell h3 {
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0 0 14px;
  line-height: 1.1;
}
.service-cell p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg-1);
  margin: 0 0 26px;
  font-weight: 300;
  max-width: 44ch;
}
.service-cell .tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: auto;
}
.service-cell .tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--fg-1);
  background: var(--card-bg);
}

/* ============= Cases ============= */
.cases {
  padding: 80px 0 120px;
}
.case-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}
.case-row {
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background .3s;
  position: relative;
}
.case-row:hover {
  background: color-mix(in oklab, var(--brand-500) 4%, transparent);
}
.case-head {
  display: grid;
  grid-template-columns: 56px 1.4fr 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 32px 4px 32px 8px;
}
@media (max-width: 760px) {
  .case-head { grid-template-columns: 36px 1fr auto; gap: 14px; padding: 22px 4px; }
  .case-head .case-meta { display: none; }
}
.case-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-3);
}
.case-title {
  display: flex; flex-direction: column; gap: 6px;
}
.case-title .client {
  font-size: clamp(22px, 2.4vw, 34px);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.05;
  transition: transform .35s var(--ease-out);
}
.case-row:hover .case-title .client { transform: translateX(6px); }
.case-title .kind {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--fg-2);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.case-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-2);
  letter-spacing: 0.04em;
}
.case-toggle {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  transition: background .25s, border-color .25s, transform .35s;
}
.case-row[data-open="true"] .case-toggle {
  background: var(--brand-600);
  border-color: var(--brand-500);
  transform: rotate(45deg);
  color: #fff;
}
.case-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .55s var(--ease-out);
}
.case-row[data-open="true"] .case-body { max-height: 800px; }
.case-body-inner {
  padding: 0 8px 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
@media (max-width: 760px) {
  .case-body-inner { grid-template-columns: 1fr; gap: 24px; padding-bottom: 28px; }
}
.case-block {
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.case-block .label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--brand-400);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.case-block p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg-1);
  font-weight: 300;
}
.case-result {
  display: flex; flex-direction: column; gap: 12px;
}
.case-result .metric {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.02em;
  font-weight: 500;
  color: var(--brand-400);
  line-height: 1;
}
.case-result .metric small {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-2);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-left: 6px;
}

/* ============= Process ============= */
.process {
  padding: 120px 0;
  position: relative;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, color-mix(in oklab, var(--brand-500) 14%, transparent), transparent 70%);
}
.process-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.process-step {
  display: grid;
  grid-template-columns: 80px 1fr 1.2fr;
  align-items: start;
  gap: 32px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left .4s var(--ease-out);
  position: relative;
}
.process-step::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 0;
  height: 1px;
  background: var(--brand-500);
  transition: width .6s var(--ease-out);
}
.process-step:hover::after { width: 100%; }
.process-step:hover { padding-left: 12px; }
@media (max-width: 760px) {
  .process-step { grid-template-columns: 1fr; gap: 8px; padding: 26px 0; }
}
.process-step .step-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--brand-400);
  letter-spacing: 0.06em;
}
.process-step h4 {
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0;
  line-height: 1.1;
}
.process-step p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg-1);
  font-weight: 300;
  max-width: 56ch;
}
.process-step .step-meta {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-2);
  letter-spacing: 0.06em;
}

/* ============= Quiz ============= */
.quiz {
  padding: 120px 0;
}
.quiz-card {
  border: 1px solid var(--line);
  background: var(--card-bg);
  backdrop-filter: var(--surface-blur);
  -webkit-backdrop-filter: var(--surface-blur);
  border-radius: var(--r-xl);
  padding: clamp(28px, 4vw, 56px);
  position: relative;
  overflow: hidden;
}
.quiz-card::before {
  content: "";
  position: absolute;
  top: -40%; left: -10%;
  width: 60%; height: 80%;
  background: radial-gradient(circle, var(--brand-glow), transparent 60%);
  filter: blur(60px);
  pointer-events: none;
  opacity: 0.55;
}
.quiz-progress {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 36px;
  position: relative;
  z-index: 1;
}
.quiz-steps {
  display: flex; gap: 6px;
}
.quiz-step-pill {
  width: 36px; height: 4px;
  border-radius: 999px;
  background: var(--line-strong);
  transition: background .3s, width .3s;
}
.quiz-step-pill[data-active="true"] { background: var(--brand-500); width: 52px; }
.quiz-step-pill[data-done="true"]   { background: var(--brand-700); }
.quiz-step-counter {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-2);
  letter-spacing: 0.04em;
}
.quiz-q {
  position: relative; z-index: 1;
  min-height: 380px;
  display: flex; flex-direction: column;
}
.quiz-q h3 {
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  line-height: 1.08;
}
.quiz-q .quiz-sub {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-2);
  letter-spacing: 0.06em;
  margin-bottom: 28px;
}
.quiz-options {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 600px) {
  .quiz-options { grid-template-columns: 1fr; }
}
.quiz-options.single { grid-template-columns: 1fr; }
.quiz-option {
  text-align: left;
  padding: 18px 20px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--card-bg-strong);
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  transition: border-color .2s, background .2s, transform .2s;
}
.quiz-option:hover { border-color: var(--brand-400); transform: translateY(-1px); }
.quiz-option[aria-pressed="true"] {
  border-color: var(--brand-500);
  background: color-mix(in oklab, var(--brand-500) 12%, var(--card-bg-strong));
}
.quiz-option .opt-label {
  font-size: 15px;
  font-weight: 400;
  letter-spacing: -0.005em;
}
.quiz-option .opt-mono {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-2);
  letter-spacing: 0.06em;
}
.quiz-option .check {
  width: 18px; height: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.quiz-option[aria-pressed="true"] .check {
  background: var(--brand-500);
  border-color: var(--brand-500);
}
.quiz-option[aria-pressed="true"] .check svg { opacity: 1; }
.quiz-option .check svg { width: 11px; height: 11px; color: #fff; opacity: 0; }

.quiz-input {
  width: 100%;
  padding: 18px 20px;
  font-family: var(--font-mono);
  font-size: 16px;
  background: var(--card-bg-strong);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  color: var(--fg-0);
  transition: border-color .2s;
}
.quiz-input:focus { outline: none; border-color: var(--brand-500); }

.quiz-footer {
  margin-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  z-index: 1;
}

/* Quiz final */
.quiz-final {
  text-align: center;
  padding: 40px 12px;
}
.quiz-final .check-big {
  width: 64px; height: 64px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--brand-600);
  display: grid; place-items: center;
  box-shadow: 0 0 60px var(--brand-glow);
}
.quiz-final h3 {
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}
.quiz-final p {
  color: var(--fg-1);
  font-size: 16px;
  max-width: 50ch;
  margin: 0 auto 26px;
  line-height: 1.55;
}

/* ============= Contact / Footer ============= */
.contact {
  padding: 100px 0 60px;
  border-top: 1px solid var(--line);
  position: relative;
}
.contact-big {
  font-size: clamp(56px, 12vw, 200px);
  line-height: 0.9;
  letter-spacing: -0.05em;
  font-weight: 500;
  margin: 0;
  text-wrap: balance;
}
.contact-big a {
  background: linear-gradient(120deg, var(--brand-400), var(--brand-500), #f0abfc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
  position: relative;
  display: inline-block;
}
.contact-big a:hover { animation: hue 4s linear infinite; }

/* Кликабельная «бегущая строка» вокруг слова «менеджером» —
   яркий градиент-бегунок + светящееся подчёркивание-полоска. */
.contact-shimmer-link {
  text-decoration: none;
  display: inline-block;
  position: relative;
  padding-bottom: 0.04em;
  cursor: pointer;
}
.contact-shimmer {
  background: linear-gradient(
    90deg,
    #f0abfc 0%,
    var(--brand-300) 18%,
    var(--brand-500) 36%,
    #f0abfc 54%,
    var(--brand-300) 72%,
    var(--brand-500) 90%,
    #f0abfc 100%
  );
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  white-space: nowrap;
  animation: contact-shimmer-flow 1.8s linear infinite;
  filter: drop-shadow(0 0 18px rgba(167, 139, 250, 0.45));
  transition: filter 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}
.contact-shimmer-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.02em;
  height: 0.06em;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--brand-400) 18%,
    #f0abfc 50%,
    var(--brand-400) 82%,
    transparent 100%
  );
  background-size: 220% 100%;
  animation: contact-shimmer-underline 1.8s linear infinite;
  opacity: 0.9;
}
.contact-shimmer-link:hover .contact-shimmer {
  filter: drop-shadow(0 0 32px var(--brand-glow));
  transform: translateY(-0.01em);
  animation-duration: 1.1s;
}
.contact-shimmer-link:hover::after { animation-duration: 1.1s; opacity: 1; }

@keyframes contact-shimmer-flow {
  0%   { background-position: 0% 50%; }
  100% { background-position: -300% 50%; }
}
@keyframes contact-shimmer-underline {
  0%   { background-position: 0% 50%; }
  100% { background-position: 220% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .contact-shimmer { animation: none; background-position: 50% 50%; }
  .contact-shimmer-link::after { animation: none; }
}
@keyframes hue {
  to { filter: hue-rotate(360deg); }
}
.contact-meta {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-2);
  letter-spacing: 0.04em;
}
@media (max-width: 760px) {
  .contact-meta { grid-template-columns: 1fr 1fr; }
}
.contact-meta .k {
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 6px;
  font-size: 10.5px;
}
.contact-meta .v { color: var(--fg-0); font-size: 14px; }

.footer {
  padding: 32px 0 28px;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-3);
  letter-spacing: 0.06em;
}
@media (max-width: 700px) {
  .footer { flex-direction: column; align-items: flex-start; gap: 14px; }
}

/* ============= Reveal ============= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ============= Logo ============= */
.logo {
  display: inline-flex; align-items: baseline; gap: 4px;
  text-decoration: none;
}
.logo-text {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--fg-0);
  line-height: 1;
}
.logo-dot {
  color: var(--brand-400);
  margin-left: 1px;
}

/* ============= Section number (corner) ============= */
.section-tag {
  position: absolute;
  top: 28px;
  right: clamp(20px, 4vw, 56px);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-3);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Sparkle / connector dots utility */
.spark {
  display: inline-block;
  width: 4px; height: 4px;
  background: var(--brand-500);
  border-radius: 50%;
  margin: 0 12px;
  vertical-align: middle;
  opacity: 0.6;
}

/* Marquee section before contact */
.marquee {
  padding: 60px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.marquee-track {
  display: flex;
  gap: 60px;
  font-size: clamp(48px, 9vw, 140px);
  font-weight: 500;
  letter-spacing: -0.04em;
  white-space: nowrap;
  animation: ticker 16s linear infinite;
  color: var(--fg-0);
}
.marquee-track .accent {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--brand-500);
}
.marquee-track .dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--brand-500);
  align-self: center;
  flex-shrink: 0;
}

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