/* t3_site residual styles — anything not yet covered by entropia.css. Kept thin. */

/* Scroll progress bar — driven by main.js */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-accent, #8B3326);
  transform-origin: left;
  transform: scaleX(0);
  z-index: 1000;
  pointer-events: none;
}

/* Split-text reveal — driven by main.js [data-split-reveal] */
.split-line-wrap {
  display: block;
  overflow: hidden;
  padding-bottom: 4px;
}

.split-line {
  display: block;
  transform: translateY(105%);
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.split-visible .split-line {
  transform: translateY(0);
}

/* Reveal variants — main.js queries .reveal, .reveal-left, .reveal-right, .reveal-scale.
   Plain .reveal lives in entropia.css; the directional variants live here. */
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Staggered children — main.js sets --i on each child of .stagger */
.stagger > * { transition-delay: calc(var(--i, 0) * 100ms); }

/* Hero brain — wireframe icosahedron, mounted by assets/js/anomalous-matter.js.
   Sits to the right of the hero H1, vertically centered. */
.hero-brain {
  position: absolute;
  top: 32%;
  right: clamp(-80px, -2vw, 0px);
  transform: translateY(-50%);
  width: min(900px, 62vw);
  height: min(900px, 62vw);
  z-index: 1;
  pointer-events: none;
  opacity: 0.92;
}

/* Compact hero is ~60vh (vs ~100vh on index). Reuse the index proportions
   but shrink the brain so it fits inside the shorter hero with comfortable
   air above (under the nav) and below — instead of clipping into the nav. */
.hero.hero-compact .hero-brain {
  top: 50%;
  width: min(880px, 76vw);
  height: min(880px, 76vw);
}

.hero-brain canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

@media (max-width: 1100px) {
  .hero-brain { top: 30%; right: -40px; width: min(560px, 70vw); height: min(560px, 70vw); }
  .hero.hero-compact .hero-brain { top: 50%; width: min(720px, 100vw); height: min(720px, 100vw); }
}

@media (max-width: 720px) {
  .hero-brain { display: none; }
}

/* Reduced-motion fallback for the rules above */
@media (prefers-reduced-motion: reduce) {
  .reveal-left,
  .reveal-right,
  .reveal-scale {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .scroll-progress {
    display: none;
  }
  .split-line {
    transform: none;
    transition: none;
  }
}
