/*
  Hero → services visual bridge.
  Keeps both sections on one continuous canvas, removes the old ticker seam,
  lets the supplied graph panels cross the section boundary, and adds the
  slow falling star/snow motion from the reference.
*/

html {
  overflow-x: hidden !important;
}

body {
  width: 100% !important;
  max-width: 100vw !important;
  overflow-x: hidden !important;
}

:root {
  --bridge-bg: #09090b;
  --bridge-purple: #8e6cff;
  --bridge-purple-soft: rgba(142,108,255,.28);
}

/* One continuous dark canvas, with no visible bar/seam between sections. */
.auregon-hero,
.auregon-replacement {
  background-color: var(--bridge-bg) !important;
  color: #fff !important;
}

.auregon-hero {
  z-index: 3 !important;
  overflow: visible !important;
  isolation: isolate;
}

.auregon-replacement {
  z-index: 1;
  border-top: 0 !important;
  border-bottom-color: rgba(165,132,255,.12) !important;
  isolation: isolate;
}

/* Shared animated falling points. The layers use different speeds/sizes so
   the background feels deep rather than like one repeating texture. */
.auregon-hero::after,
.auregon-replacement::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.82) 0 .8px, transparent 1.15px),
    radial-gradient(circle, rgba(206,193,255,.68) 0 .75px, transparent 1.1px),
    radial-gradient(circle, rgba(255,255,255,.48) 0 .6px, transparent 1px),
    radial-gradient(circle, rgba(158,130,255,.7) 0 .75px, transparent 1.1px);
  background-repeat: repeat;
  background-size: 230px 290px, 370px 430px, 510px 620px, 760px 710px;
  background-position: 20px -280px, 110px -460px, -80px -620px, 230px -720px;
  animation: bridgeSnowfall 18s linear infinite;
}

.auregon-hero::after {
  z-index: 1 !important;
  opacity: .7 !important;
  mix-blend-mode: screen;
}

.auregon-replacement::before {
  z-index: 0 !important;
  opacity: .7 !important;
  mask-image: linear-gradient(to bottom, transparent 0, black 5%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, black 5%, black 92%, transparent 100%);
}

/* Remove the old #111 seam from the showcase's half-circle overlay too. */
.auregon-replacement::after {
  background: linear-gradient(180deg, transparent 0%, rgba(9,9,11,.04) 48%, var(--bridge-bg) 90%) !important;
}

.auregon-replacement .ar-showcase::before {
  background: linear-gradient(180deg, transparent 0%, rgba(9,9,11,.08) 67%, var(--bridge-bg) 97%), url("assets/auregon-half-circle.png") center calc(100% + 110px) / cover no-repeat !important;
}

/* Keep the content and graph panels above the animated points. */
.auregon-hero .hero-wrap,
.auregon-hero .hero-art,
.auregon-replacement .ar-heading,
.auregon-replacement .ar-showcase {
  position: relative;
}

.auregon-hero .hero-wrap { z-index: 3 !important; }
.auregon-hero .hero-art { z-index: 4 !important; }
.auregon-replacement .ar-heading { z-index: 2 !important; }
.auregon-replacement .ar-showcase { z-index: 1 !important; }

/* The old ticker is removed from the layout completely. */
.auregon-hero .ticker { display: none !important; }

/* Supplied graph panels: half in the hero and half over the services top. */
.auregon-hero .hero-art {
  inset: auto 0 -150px !important;
  height: 300px !important;
  pointer-events: none;
}

.auregon-hero .hero-panel {
  bottom: 0 !important;
  width: 340px !important;
  height: 300px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
  opacity: 1 !important;
  visibility: visible !important;
  will-change: transform;
}

.auregon-hero .hero-panel-left {
  left: 150px !important;
  transform: rotate(-8deg) !important;
}

.auregon-hero .hero-panel-right {
  right: 20px !important;
  transform: rotate(8deg) !important;
}

.auregon-hero .hero-panel img {
  position: absolute !important;
  left: 50% !important;
  top: 100% !important;
  inset: auto !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  opacity: 1 !important;
  filter: none !important;
  transform: translate3d(-50%, -10%, 0);
  transform-origin: center;
  will-change: transform;
}

.auregon-hero .hero-panel-left img {
  animation: graphFloatLeft 6.8s ease-in-out infinite;
}

.auregon-hero .hero-panel-right img {
  animation: graphFloatRight 7.4s ease-in-out -.9s infinite;
}

/* Give the overlap enough breathing room without changing card behavior. */
.auregon-replacement {
  padding-top: 108px !important;
}

@keyframes bridgeSnowfall {
  from {
    background-position: 20px -280px, 110px -460px, -80px -620px, 230px -720px;
  }
  to {
    background-position: 82px 720px, 250px 980px, -150px 1220px, 360px 1340px;
  }
}

@keyframes graphFloatLeft {
  0%, 100% { transform: translate3d(-50%, -10%, 0) rotate(-1.2deg); }
  50% { transform: translate3d(calc(-50% - 9px), calc(-10% - 15px), 0) rotate(1.5deg); }
}

@keyframes graphFloatRight {
  0%, 100% { transform: translate3d(-50%, -10%, 0) rotate(1.1deg); }
  50% { transform: translate3d(calc(-50% + 10px), calc(-10% - 13px), 0) rotate(-1.4deg); }
}

@media (max-width: 1050px) {
  .auregon-hero .hero-art {
    inset: auto 0 -112px !important;
    height: 224px !important;
  }

  .auregon-hero .hero-panel {
    width: 275px !important;
    height: 224px !important;
  }

  .auregon-hero .hero-panel-left { left: 0 !important; }
  .auregon-hero .hero-panel-right { right: 0 !important; }
}

@media (max-width: 650px) {
  html,
  body {
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  .auregon-hero {
    min-height: 840px !important;
    height: 840px !important;
  }

  .auregon-hero .hero-art {
    inset: auto 0 -105px !important;
    height: 210px !important;
  }

  .auregon-hero .hero-panel {
    width: 205px !important;
    height: 210px !important;
  }

  .auregon-hero .hero-panel-left { left: 130px !important; }
  .auregon-hero .hero-panel-right { right: 38px !important; }

  .auregon-replacement {
    min-height: 770px !important;
    padding-top: 86px !important;
  }

  .auregon-replacement::before,
  .auregon-hero::after {
    opacity: .58 !important;
    background-size: 170px 230px, 290px 360px, 420px 520px, 600px 620px;
  }

  @keyframes graphFloatLeft {
    0%, 100% { transform: translate3d(-50%, -10%, 0) rotate(-.8deg); }
    50% { transform: translate3d(calc(-50% - 5px), calc(-10% - 8px), 0) rotate(.8deg); }
  }

  @keyframes graphFloatRight {
    0%, 100% { transform: translate3d(-50%, -10%, 0) rotate(.8deg); }
    50% { transform: translate3d(calc(-50% + 6px), calc(-10% - 7px), 0) rotate(-.8deg); }
  }
}

@media (prefers-reduced-motion: reduce) {
  .auregon-hero::after,
  .auregon-replacement::before,
  .auregon-hero .hero-panel img {
    animation: none !important;
  }
}
