:root {
  --bg: #09090b;
  --panel: rgba(255, 255, 255, 0.04);
  --text: #fafafa;
  --muted: #a1a1aa;
  --cyan: #67e8f9;
  --violet: #c4b5fd;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at 20% 20%, rgba(103, 232, 249, 0.09), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(139, 92, 246, 0.1), transparent 30%),
    radial-gradient(circle at 50% 78%, rgba(255, 255, 255, 0.04), transparent 42%),
    var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

body {
  display: grid;
  place-items: center;
  padding: 32px;
}

.mohr-splash {
  width: min(1200px, 100%);
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(320px, 1fr);
  gap: 32px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(14px);
  border-radius: 32px;
  padding: 32px;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.35);
}

.splash-copy {
  max-width: 28rem;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #d4d4d8;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.splash-copy h1 {
  margin: 0 0 14px;
  font-size: clamp(2.25rem, 4vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.splash-copy p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted);
}

.splash-graphic {
  min-height: 560px;
  display: grid;
  place-items: center;
}

#mohrSvg {
  width: min(100%, 760px);
  height: auto;
  overflow: visible;
}

.label {
  fill: rgba(255, 255, 255, 0.92);
  font-size: 22px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.label-top,
.label-center {
  font-size: 20px;
}

.sublabel {
  fill: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.ring-main {
  animation: ringPulse 7s ease-in-out infinite;
  transform-origin: 450px 450px;
}

.ring-dash {
  animation: dashSpin 18s linear infinite;
  transform-origin: 450px 450px;
}

.flow-left {
  animation: driftLeft 6.2s ease-in-out infinite;
}

.flow-right {
  animation: driftRight 6.2s ease-in-out infinite;
}

.flow-center-a,
.flow-center-b {
  animation: fadeBreath 5s ease-in-out infinite;
}

#axisGroup {
  animation: axisBreath 4.8s ease-in-out infinite;
}

.node-group {
  transition: transform 180ms ease, opacity 180ms ease;
  transform-origin: 450px 450px;
}

#dctGroup:hover,
#luxGroup:hover,
#mohrGroup:hover {
  cursor: default;
}

.is-dct #dctGroup,
.is-lux #luxGroup,
.is-mohr #mohrGroup {
  transform: scale(1.045);
}

.is-dct #luxGroup,
.is-dct #mohrGroup,
.is-lux #dctGroup,
.is-lux #mohrGroup {
  opacity: 0.68;
}

.is-mohr #dctGroup,
.is-mohr #luxGroup {
  opacity: 0.96;
}

.is-dct .flow-left {
  stroke: rgba(103, 232, 249, 0.85);
}

.is-lux .flow-right {
  stroke: rgba(196, 181, 253, 0.85);
}

.is-mohr .ring-main {
  stroke-width: 12;
}

@keyframes ringPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.92;
  }
  50% {
    transform: scale(1.02);
    opacity: 1;
  }
}

@keyframes dashSpin {
  from {
    stroke-dashoffset: 0;
  }
  to {
    stroke-dashoffset: -160;
  }
}

@keyframes driftLeft {
  0%, 100% {
    transform: translateX(0px);
    opacity: 0.65;
  }
  50% {
    transform: translateX(-6px);
    opacity: 1;
  }
}

@keyframes driftRight {
  0%, 100% {
    transform: translateX(0px);
    opacity: 0.65;
  }
  50% {
    transform: translateX(6px);
    opacity: 1;
  }
}

@keyframes fadeBreath {
  0%, 100% {
    opacity: 0.35;
  }
  50% {
    opacity: 0.85;
  }
}

@keyframes axisBreath {
  0%, 100% {
    opacity: 0.75;
  }
  50% {
    opacity: 1;
  }
}

@media (max-width: 900px) {
  .mohr-splash {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .splash-copy {
    max-width: none;
  }

  .splash-graphic {
    min-height: auto;
  }
}