:root {
  --space-inline: 100%;
  --space-block: 100dvh;
  --space-visual-inline: 100%;
  --space-visual-block: 100dvh;
}

html,
body,
#app {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

html,
body {
  overflow-x: clip;
  overscroll-behavior-x: none;
}

body {
  min-height: var(--space-block);
}

#app {
  position: relative;
  isolation: isolate;
  overflow-x: clip;
}

.entity-field {
  position: fixed;
  inset: 0;
  width: var(--space-inline);
  height: var(--space-block);
  z-index: -2;
  overflow: clip;
  pointer-events: none;
}

.entity-field::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 56% 48%, transparent 0 18%, rgba(9, 10, 12, 0.12) 42%, rgba(9, 10, 12, 0.86) 78%),
    linear-gradient(180deg, rgba(9, 10, 12, 0.08), rgba(9, 10, 12, 0.78));
}

.shell-intro {
  position: relative;
  isolation: isolate;
  min-height: min(calc(var(--space-block) * 0.72), 49rem);
  align-content: center;
}

.shell-intro::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 9% -4% 5%;
  border-radius: 50%;
  background: radial-gradient(circle at 28% 40%, color-mix(in srgb, var(--accent), transparent 88%), transparent 48%);
  filter: blur(18px);
}

.shell-intro h1 {
  position: relative;
  color: transparent;
  background:
    linear-gradient(180deg, #fff 0%, #eceef4 58%, color-mix(in srgb, var(--accent), #a0a5b0 62%) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18),
    0 18px 60px color-mix(in srgb, var(--accent), transparent 82%);
  transform: perspective(900px) rotateX(0.8deg) translateZ(0);
}

.shell-intro h1::after {
  content: "";
  position: absolute;
  left: 0.05em;
  bottom: -0.11em;
  width: min(2.4em, calc(var(--space-inline) * 0.64));
  height: 0.04em;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0.48;
  filter: blur(1px);
}

.topbar {
  border-bottom-color: transparent;
}

.graph-section {
  border-top-color: color-mix(in srgb, var(--border), transparent 38%);
}

@keyframes entity-core {
  0%, 100% { transform: scale(0.9); opacity: 0.72; }
  50% { transform: scale(1.16); opacity: 1; }
}

@media (min-width: 760px) {
  .entity-field__core,
  .entity-field__label {
    left: 64%;
  }

  .shell-intro {
    min-height: min(calc(var(--space-block) * 0.78), 54rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .entity-field__core {
    animation: none;
  }
}
