.intellectum-page .intellectum-hero {
  isolation: isolate;
}

.thought-trail {
  position: absolute;
  z-index: 4;
  top: clamp(5.5rem, 12vh, 9rem);
  right: clamp(1rem, 5vw, 6rem);
  width: min(31rem, 37vw);
  aspect-ratio: 440 / 190;
  pointer-events: none;
  opacity: 0.92;
}

.thought-trail svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 7px 10px rgba(25, 27, 83, 0.18));
}

.thought-trail path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.88);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 2 14;
  animation: thought-path-travel 14s linear infinite;
}

.thought-piece {
  position: absolute;
  display: block;
  filter: drop-shadow(0 8px 8px rgba(22, 24, 78, 0.22));
  animation: thought-piece-float 4.6s ease-in-out infinite;
}

.thought-piece--dot {
  left: 0;
  bottom: 10%;
  width: clamp(1.1rem, 2.2vw, 2rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fbbc1b;
}

.thought-piece--square {
  left: 43%;
  bottom: 0;
  width: clamp(1rem, 2vw, 1.8rem);
  aspect-ratio: 1;
  border-radius: 28%;
  background: #b56aff;
  rotate: 16deg;
  animation-delay: -1.3s;
}

.thought-piece--triangle {
  right: 29%;
  top: 48%;
  width: 0;
  height: 0;
  border-left: clamp(0.55rem, 1.2vw, 1rem) solid transparent;
  border-right: clamp(0.55rem, 1.2vw, 1rem) solid transparent;
  border-bottom: clamp(1rem, 2.1vw, 1.85rem) solid #ff6a6b;
  animation-delay: -2.5s;
}

.thought-piece--ring {
  right: 0;
  top: 8%;
  width: clamp(1.1rem, 2.3vw, 2.1rem);
  aspect-ratio: 1;
  border: clamp(0.28rem, 0.55vw, 0.5rem) solid #16c0d7;
  border-radius: 50%;
  animation-delay: -3.2s;
}

.mobile-site-menu {
  display: none;
}

@keyframes thought-path-travel {
  to { stroke-dashoffset: -160; }
}

@keyframes thought-piece-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -0.75rem; }
}

@media (max-width: 980px) {
  .thought-trail {
    top: 7.5rem;
    right: -2rem;
    width: 48vw;
    opacity: 0.7;
  }
}

@media (max-width: 680px) {
  .site-chrome .site-nav {
    display: none;
  }

  .bloom-page.is-nav-merged .site-chrome {
    top: max(0.55rem, env(safe-area-inset-top));
    width: calc(100% - 1rem);
    max-width: none;
    justify-content: space-between;
    gap: 0.35rem;
    padding: 0.32rem 0.38rem;
  }

  .bloom-page.is-nav-merged .site-brand {
    min-width: 0;
    padding: 0.08rem 0.25rem;
    border-right: 0;
  }

  .bloom-page.is-nav-merged .site-brand .brand-text {
    display: inline-block;
    overflow: hidden;
    font-size: 0.9rem;
    text-overflow: ellipsis;
  }

  .mobile-site-menu {
    position: relative;
    display: block;
    color: var(--panel-text-color, #fff);
  }

  .mobile-site-menu summary {
    display: flex;
    min-height: 2.45rem;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    background: color-mix(in srgb, currentColor 10%, transparent);
    cursor: pointer;
    font-family: "Manrope", sans-serif;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    list-style: none;
    text-transform: uppercase;
  }

  .mobile-site-menu summary::-webkit-details-marker {
    display: none;
  }

  .mobile-site-menu summary svg {
    width: 1.05rem;
    height: 1.05rem;
    transition: rotate 180ms ease;
  }

  .mobile-site-menu[open] summary svg {
    rotate: 90deg;
  }

  .mobile-site-menu__panel {
    position: absolute;
    top: calc(100% + 0.55rem);
    right: 0;
    display: grid;
    width: min(13rem, calc(100vw - 2rem));
    gap: 0.2rem;
    padding: 0.55rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 1rem;
    background: rgba(20, 23, 56, 0.94);
    box-shadow: 0 1rem 2.5rem rgba(8, 10, 35, 0.32);
    backdrop-filter: blur(18px);
  }

  .mobile-site-menu__panel a {
    padding: 0.75rem 0.85rem;
    border-radius: 0.7rem;
    color: #fff;
    font-family: "Manrope", sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
  }

  .mobile-site-menu__panel a:active {
    background: rgba(255, 255, 255, 0.12);
  }

  .thought-trail {
    top: auto;
    right: -2.5rem;
    bottom: 4.5rem;
    width: 70vw;
    opacity: 0.72;
  }
}

@media (prefers-reduced-motion: reduce) {
  .thought-trail path,
  .thought-piece { animation: none; }
}
