.landing {
  position: relative;
  max-width: none;
  margin: 0;
  padding: 0;
  height: calc(100vh - var(--nav-height));
  overflow: hidden;
}

.phrase {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 0 var(--space-6);
  pointer-events: none;
  z-index: 2;
  transition: opacity 300ms ease;
}

body.phrase-hidden .phrase {
  opacity: 0;
}

body.phrase-fade-in .phrase {
  transition-duration: 1000ms;
}

.phrase > div {
  padding: 0.75rem 1.25rem;
  background: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.08));
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  max-width: min(720px, calc(100vw - (var(--space-6) * 2)));
}

html[data-theme="dark"] .phrase > div {
  background: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.15));
}

.phrase-text {
  display: block;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  margin-bottom: 0.25rem;
}

.phrase-by {
  display: block;
  font-size: clamp(0.75rem, 2vw, 0.875rem);
  color: var(--muted);
  margin-top: 0;
}

.web {
  position: relative;
  height: 100%;
  width: 100%;
  border-radius: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
  transition: opacity 260ms ease, filter 260ms ease;
}

.web::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.05), transparent 25%),
    radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.03), transparent 20%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.02), transparent 20%);
  opacity: 0.75;
  pointer-events: none;
}

.web.dim {
  opacity: 0.12;
  filter: blur(2px);
  pointer-events: none;
}

body.container-mode .web.dim {
  pointer-events: auto;
  opacity: 1;
  filter: none;
}

body.container-mode .thread,
body.container-mode .particle {
  opacity: 0;
  pointer-events: none;
}

.node-dot {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--thread-questions);
  color: var(--thread-questions);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow-md);
  transition: transform 240ms ease, box-shadow 240ms ease, background 240ms ease, filter 240ms ease, left 520ms ease, top 520ms ease, opacity 260ms ease;
  will-change: transform, left, top;
}

.node-dot[data-type="music"] {
  background: var(--thread-music);
  color: var(--thread-music);
}

.node-dot[data-type="movement"] {
  background: var(--thread-movement);
  color: var(--thread-movement);
}

.node-dot[data-type="curiosity"] {
  background: var(--thread-curiosity);
  color: var(--thread-curiosity);
}

body.container-mode .node-dot {
  animation: none;
}

body.container-mode .node-dot.container-nav {
  opacity: 1;
  transform: scale(1.2);
  cursor: pointer;
}

body.container-mode .node-dot.container-nav {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

body.container-mode .node-dot.container-nav {
  opacity: 0.78;
  background: transparent;
  filter: none;
  border: none;
  box-shadow: none;
}

body.container-mode .node-dot.container-hidden {
  opacity: 0;
  background: transparent;
  filter: none;
  border: none;
  box-shadow: none;
}

body.container-mode .node-dot.container-active.container-hidden {
  opacity: 0;
}

body.container-mode .node-dot.container-active {
  opacity: 1;
  transform: scale(1.25);
}

.node-dot:hover {
  cursor: pointer;
  transform: scale(1.1);
}

.thread.visible {
  opacity: 0.85;
}

.node-dot[data-type="music"] {
  color: var(--thread-music);
  background: var(--thread-music);
  filter: drop-shadow(0 0 12px rgba(255, 122, 158, 0.4));
}

.node-dot[data-type="movement"] {
  color: var(--thread-movement);
  background: var(--thread-movement);
  filter: drop-shadow(0 0 12px rgba(79, 209, 197, 0.35));
}

.node-dot[data-type="curiosity"] {
  color: var(--thread-curiosity);
  background: var(--thread-curiosity);
  filter: drop-shadow(0 0 12px rgba(96, 165, 250, 0.45));
}

.node-dot[data-type="essay"] {
  color: var(--thread-essay);
  background: var(--thread-essay);
  filter: drop-shadow(0 0 12px rgba(139, 92, 246, 0.45));
}

.node-dot[data-type="durational"] {
  color: var(--thread-durational);
  background: var(--thread-durational);
  filter: drop-shadow(0 0 12px rgba(236, 72, 153, 0.45));
}

/* Bio node - black in light mode, white in dark mode */
.node-dot[data-type="bio"] {
  background: var(--fg);
  color: var(--fg);
  border: none;
  filter: none;
  box-shadow: none;
  opacity: 0.7;
  cursor: default;
  transition: transform 240ms ease, opacity 240ms ease, left 520ms ease, top 520ms ease;
}

.node-dot[data-type="bio"]:hover {
  opacity: 1;
  transform: scale(1.15);
  cursor: default;
}

/* Hide bio node when in container mode */
body.container-mode .node-dot[data-type="bio"] {
  opacity: 0;
  pointer-events: none;
}

.curiosity-stage {
  position: relative;
  width: 100%;
  height: min(520px, 52vh);
  margin-top: 0;
  border-radius: var(--radius);
}

body.container-mode .curiosity-stage {
  height: calc(100% - 140px);
  min-height: 420px;
}

.container-overlay.is-curiosity.container-mode .curiosity-stage {
  flex: 1;
  min-height: 0;
  height: auto;
}

.curiosity-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.curiosity-lines line {
  stroke: rgba(0, 0, 0, 0.18);
}

html[data-theme="dark"] .curiosity-lines line {
  stroke: rgba(255, 255, 255, 0.16);
}

.curiosity-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  text-align: center;
  gap: 0.5rem;
}

.curiosity-center-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 999px;
  padding: 0.38rem 1rem;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

html[data-theme="dark"] .curiosity-center-pill {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
}

.curiosity-item {
  position: absolute;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 999px;
  padding: 0.34rem 0.85rem;
  color: var(--fg);
  font: inherit;
  cursor: default;
}

html[data-theme="dark"] .curiosity-item {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
}

.curiosity-item .curiosity-label {
  font-size: var(--size-md);
  color: var(--fg);
  opacity: 0.85;
  max-width: 260px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Linked curiosity items - clickable */
.curiosity-item-linked {
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.curiosity-item-linked:hover {
  transform: translate(-50%, -50%) scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.85);
}

.curiosity-item-linked .curiosity-label {
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-underline-offset: 2px;
  opacity: 1;
}

html[data-theme="dark"] .curiosity-item-linked:hover {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.web {
  position: relative;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-4px);
  }
  100% {
    transform: translateY(0px);
  }
}

.node-dot.brownian {
  animation: none;
  will-change: left, top;
}

.thread {
  position: absolute;
  height: 2px;
  background: none;
  opacity: 0;
  overflow: visible;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  filter: blur(0.3px);
  will-change: transform, opacity;
}

@keyframes particleFlow {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  15% {
    opacity: 0.7;
    transform: scale(1);
  }
  85% {
    opacity: 0.7;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.3);
  }
}

.thread[data-thread="music"] {
  background: linear-gradient(90deg, var(--thread-music), var(--thread-music));
}

.thread[data-thread="movement"] {
  background: linear-gradient(90deg, var(--thread-movement), var(--thread-movement));
}

.thread[data-thread="questions"] {
  background: linear-gradient(90deg, var(--thread-questions), var(--thread-questions));
}

@keyframes pulse {
  0% { opacity: 0.3; }
  50% { opacity: 0.9; }
  100% { opacity: 0.3; }
}

@media (max-width: 640px) {
  .landing {
    padding: var(--space-6) var(--space-4);
  }

  .phrase {
    font-size: var(--size-xl);
  }

  .web {
    min-height: 320px;
  }
}
