/* Optional hero polish, independent of heading fitting and showcase motion.
   Remove this stylesheet and hero-effects.js to restore the previous hero. */
/* A quiet 300px halo follows the stationary logo wrapper, not its hover scale.
   At the smallest breathing scale the clear core still clears the hover logo.
   No blur can leak inward; breathing never exceeds the original outer size.
   Header's existing stacking context keeps this behind its logo and popover. */
.brand-preview::after {
  --logo-halo-clear: 36px;
  content: '';
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  transform: translate(-50%,-50%);
  pointer-events: none;
  background: radial-gradient(circle 150px at center,
    transparent 0px,transparent var(--logo-halo-clear),
    rgb(var(--accent-rgb) / 3.6%) 64px,
    rgb(var(--accent-rgb) / 1.2%) 100px,transparent 150px);
  animation: logo-halo-breathe 10s ease-in-out infinite;
  animation-play-state: paused;
}
.brand-preview.is-halo-running::after {
  animation-play-state: running;
  will-change: transform;
}
@keyframes logo-halo-breathe {
  0%,100% { transform: translate(-50%,-50%) scale(1); }
  50% { transform: translate(-50%,-50%) scale(.9); }
}
@media (max-width: 720px) {
  .brand-preview::after { --logo-halo-clear: 28px; }
}
@media (forced-colors: active) {
  .brand-preview::after { display: none; }
}
.hero-title-emphasis {
  --hero-gradient-size: clamp(280px,45vw,860px);
  color: var(--accent);
}
/* Background-clip:text paints only inside the line's own background box.
   Preserve room for Geologica's ink overhang and the lower tail of у in
   the second headline line. The larger bottom guard protects the descender.
   Grid prevents margin collapse; the compensated padding keeps both the
   text's original origin and the .13em interline spacing unchanged. */
#hero-title.fit-heading { display: grid; }
#hero-title > .hero-title-emphasis {
  padding: .08em .07em .20em;
  margin: .05em -.07em -.20em;
}
@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  .hero-title-emphasis {
    /* A square tile has two complete cycles along its 45deg gradient line.
       Crossing either tile edge advances exactly one cycle: no tiling seams. */
    background-image: repeating-linear-gradient(45deg,
      #0CFCFB 0%,#23DB9E 12.5%,#5E9FE8 25%,#8C7FEA 37.5%,#0CFCFB 50%);
    background-size: var(--hero-gradient-size) var(--hero-gradient-size);
    background-repeat: repeat;
    background-position: 0px 0px;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: hero-spectrum 8s linear infinite;
    animation-play-state: paused;
  }
  .hero-layout.is-gradient-running .hero-title-emphasis { animation-play-state: running; }
}
@keyframes hero-spectrum {
  from { background-position: 0px 0px; }
  /* Half a tile right and half a tile up = exactly one palette period.
     The last frame equals the first over the entire line, not just one pixel. */
  to { background-position: calc(var(--hero-gradient-size) / 2) calc(var(--hero-gradient-size) / -2); }
}
@media (max-width: 1000px) {
  .hero-title-emphasis { --hero-gradient-size: clamp(280px,82vw,760px); }
}
@media (min-width: 1001px) and (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  #hero-title > [data-fit-line]:first-child {
    transform: translate3d(var(--hero-title-x,0px),var(--hero-title-y,0px),0);
    transition: transform 680ms cubic-bezier(.22,.61,.36,1);
  }
  #hero-title > .hero-title-emphasis {
    transform: translate3d(var(--hero-accent-x,0px),var(--hero-accent-y,0px),0);
    transition: transform 780ms cubic-bezier(.22,.61,.36,1);
  }
  .hero-description {
    transform: translate3d(var(--hero-description-x,0px),var(--hero-description-y,0px),0);
    transition: transform 880ms cubic-bezier(.22,.61,.36,1);
  }
  .hero-layout.is-text-parallax-active #hero-title > [data-fit-line],
  .hero-layout.is-text-parallax-active .hero-description { will-change: transform; }
}
@media (prefers-reduced-motion: reduce) {
  .brand-preview::after { animation: none; }
  .hero-title-emphasis { animation: none; }
}
@media (forced-colors: active) {
  .hero-title-emphasis { background: none; color: CanvasText; -webkit-text-fill-color: CanvasText; animation: none; }
}
