/* Visual polish pass requested from the annotated screenshots. */

/* Hero graphs: move the right graph toward the highlighted right-side area and
   make the float a little faster and more visible. */
@media (min-width: 1051px) {
  .auregon-hero .hero-panel-right {
    right: -110px !important;
  }
}

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

.auregon-hero .hero-panel-right img {
  animation: graphFloatRight 5.1s ease-in-out -.7s infinite !important;
}

@keyframes graphFloatLeft {
  0%, 100% { transform: translate3d(-50%, -10%, 0) rotate(-1.2deg); }
  50% { transform: translate3d(calc(-50% - 12px), calc(-10% - 27px), 0) rotate(1.8deg); }
}

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

/* Approach section: animated snow, brighter/cleaner circular image, and a
   guaranteed two-line heading. */
body section.s3-scale:before {
  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) !important;
  background-repeat: repeat !important;
  background-size: 230px 290px, 370px 430px, 510px 620px, 760px 710px !important;
  background-position: 20px -280px, 110px -460px, -80px -620px, 230px -720px !important;
  animation: bridgeSnowfall 18s linear infinite !important;
  opacity: .6 !important;
}

.s3-scale .s3-round-image {
  background: #f2f3f6 !important;
  box-shadow: 0 0 0 17px rgba(117,104,255,.1), 0 0 65px rgba(255,255,255,.16) !important;
}

.s3-scale .s3-round-image img {
  filter: brightness(1.22) saturate(.72) contrast(1.08) !important;
}

.s3-scale .s3-balanced-heading > span,
.s3-scale .s3-balanced-heading > em {
  display: block !important;
  white-space: nowrap !important;
}

.s3-scale .s3-balanced-heading {
  font-size: clamp(42px, 3.5vw, 58px) !important;
  line-height: .94 !important;
}

/* Why Us: restore visible motion through the main phone frame and add the
   same falling-snow atmosphere without re-enabling the old hidden cards. */
.s4-why {
  isolation: isolate;
}

.s4-why::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .42;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.76) 0 .8px, transparent 1.15px),
    radial-gradient(circle, rgba(206,193,255,.58) 0 .75px, transparent 1.1px),
    radial-gradient(circle, rgba(158,130,255,.54) 0 .7px, transparent 1.1px);
  background-size: 250px 320px, 420px 510px, 690px 680px;
  background-position: 30px -320px, 120px -520px, -80px -700px;
  animation: bridgeSnowfall 20s linear infinite;
}

.s4-wrap {
  z-index: 1 !important;
}

.s4-frame {
  animation: s4PhoneFloat 6.2s ease-in-out infinite !important;
  will-change: translate;
}

.s4-frame img {
  animation: s4ImageBreath 7s ease-in-out infinite alternate;
  will-change: transform, filter;
}

@keyframes s4PhoneFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}

@keyframes s4ImageBreath {
  from { transform: scale(1); filter: saturate(.9) contrast(1.05) brightness(1); }
  to { transform: scale(1.025); filter: saturate(1) contrast(1.08) brightness(1.04); }
}

/* Capability cards: two-line left heading, clean images, no black number
   tile, and no colored active dot above the body copy. */
.s6-video-cards {
  grid-template-columns: minmax(0, 41%) minmax(0, 1fr) !important;
}

.s6-video-cards .s6-case-head h2 {
  max-width: 680px !important;
  font-size: clamp(42px, 3.1vw, 56px) !important;
  line-height: .98 !important;
  letter-spacing: -.07em !important;
}

.s6-video-cards .s6-case-head h2 em {
  display: inline !important;
  white-space: nowrap !important;
}

.s6-video-cards .s6-accordion .s6-case .s6-case-count,
.s6-video-cards .s6-accordion .s6-case .s6-active-dot,
.s6-video-cards .s6-accordion .s6-case .s6-vertical {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

.s6-video-cards .s6-accordion .s6-case .s6-case-count::before,
.s6-video-cards .s6-accordion .s6-case .s6-case-count::after {
  display: none !important;
  content: none !important;
}

.s6-video-cards .s6-case-content,
.s6-video-cards .s6-case.active .s6-case-content {
  grid-template-columns: 1fr !important;
}

/* CTA content fills the annotated box more confidently on wide screens. */
.s6-final .s6-reveal {
  width: min(1120px, calc(100% - 48px)) !important;
  max-width: 1120px !important;
}

.s6-final h2 {
  max-width: 1080px !important;
  font-size: clamp(58px, 5.6vw, 86px) !important;
  line-height: .94 !important;
}

.s6-final .final-subtitle {
  max-width: 820px !important;
  font-size: 17px !important;
}

@media (max-width: 1050px) {
  .s6-video-cards {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .s6-video-cards .s6-case-head h2 {
    font-size: clamp(38px, 6vw, 56px) !important;
  }
}

@media (max-width: 650px) {
  .auregon-hero .hero-panel-right {
    right: 38px !important;
  }

  .auregon-hero .hero-panel-left img,
  .auregon-hero .hero-panel-right img {
    animation-duration: 4.5s !important;
  }

  .s3-scale .s3-balanced-heading {
    font-size: clamp(31px, 7.7vw, 42px) !important;
    letter-spacing: -.07em !important;
  }

  .s3-scale .s3-balanced-heading > span,
  .s3-scale .s3-balanced-heading > em {
    white-space: nowrap !important;
  }

  .s6-video-cards .s6-case-head h2 {
    font-size: clamp(30px, 7.7vw, 43px) !important;
    line-height: .98 !important;
  }

  .s6-video-cards .s6-case-head h2 em {
    white-space: nowrap !important;
  }

  .s6-final .s6-reveal {
    width: calc(100% - 32px) !important;
  }

  .s6-final h2 {
    font-size: clamp(43px, 11.5vw, 62px) !important;
  }

  .s6-final .final-subtitle {
    font-size: 14px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body section.s3-scale:before,
  .s4-why::after,
  .s4-frame,
  .s4-frame img,
  .auregon-hero .hero-panel-left img,
  .auregon-hero .hero-panel-right img {
    animation: none !important;
  }
}

/* Resources section — keep the video-style sticky heading and give each
   stacked capability card enough width for its image and copy. */
@media (min-width: 1051px) {
  .s6-video-cards {
    grid-template-columns: minmax(0, 37%) minmax(0, 1fr) !important;
  }

  .s6-video-cards .s6-case-head {
    position: sticky !important;
    top: 132px !important;
    height: max-content !important;
    align-self: start !important;
  }

  .s6-video-cards .s6-case-head h2 {
    font-size: clamp(48px, 3.65vw, 60px) !important;
    line-height: .98 !important;
    max-width: 520px !important;
  }

  .s6-video-cards .s6-case-head h2 > span,
  .s6-video-cards .s6-case-head h2 > em {
    display: block !important;
    white-space: nowrap !important;
  }

  .s6-video-cards .s6-case {
    grid-template-columns: 42% 58% !important;
  }
}

/* Restore the earlier scroll-in motion for every card without changing the
   card content, click/hover behavior, or any other section. */
@media (min-width: 901px) {
  .s6-video-cards .s6-case {
    opacity: 1 !important;
    transform: translate3d(0, 30px, 0) !important;
    transition: opacity .72s ease, transform .82s cubic-bezier(.16, 1, .3, 1), border-color .4s !important;
  }

  .s6-video-cards .s6-case.is-in {
    opacity: 1 !important;
    transform: translate3d(0, 0, 0) !important;
  }

  .s6-video-cards .s6-case.is-in:hover {
    transform: translate3d(0, -5px, 0) !important;
  }
}

@media (max-width: 1050px) and (min-width: 651px) {
  .s6-video-cards .s6-case-head h2 > span,
  .s6-video-cards .s6-case-head h2 > em {
    display: block !important;
  }
}

@media (max-width: 650px) {
  .s6-video-cards .s6-case-head h2 > span,
  .s6-video-cards .s6-case-head h2 > em {
    display: block !important;
    white-space: normal !important;
  }

  .s6-video-cards .s6-case-head h2 {
    font-size: clamp(34px, 9.6vw, 43px) !important;
    line-height: .98 !important;
  }

  .s6-video-cards .s6-accordion {
    width: min(92vw, 520px) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .s6-video-cards .s6-case,
  .s6-video-cards .s6-case.is-in,
  .s6-video-cards .s6-case.is-in:hover {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Mobile correction: the final desktop card rule left the copy on grid row 1,
   creating an empty image column. Keep the image above the copy on phones. */
@media (max-width: 700px) {
  .s6-video-cards .s6-case,
  .s6-video-cards .s6-case.active {
    grid-template-columns: 1fr !important;
    grid-template-rows: 46% 54% !important;
  }

  .s6-video-cards .s6-case-media,
  .s6-video-cards .s6-case.active .s6-case-media {
    grid-column: 1 !important;
    grid-row: 1 !important;
  }

  .s6-video-cards .s6-case-content,
  .s6-video-cards .s6-case.active .s6-case-content {
    grid-column: 1 !important;
    grid-row: 2 !important;
    padding: 24px !important;
  }
}

/* Reliable desktop pin/park states for the resources heading. */
@media (min-width: 1051px) {
  .s6-video-cards .s6-case-head.s6-head-pinned {
    position: fixed !important;
    top: 132px !important;
    left: var(--s6-head-left) !important;
    width: var(--s6-head-width) !important;
    margin: 0 !important;
    z-index: 20 !important;
  }

  .s6-video-cards .s6-case-head.s6-head-parked {
    position: absolute !important;
    top: var(--s6-head-park-top) !important;
    left: var(--s6-head-flow-left) !important;
    width: var(--s6-head-width) !important;
    margin: 0 !important;
    z-index: 5 !important;
  }
}
