/* Motion for the original homepage. Layout and artwork live in app.css. */
.hs-motion #top .marquee-flex {
  animation-duration: 52s;
}

.hs-motion #top .hero-07-circle__image {
  transform: translate3d(0, var(--hero-image-y, 0px), 0) scale(var(--hero-image-scale, 1)) !important;
  opacity: var(--hero-image-opacity, 1) !important;
}

.hs-motion #top .hero-07-fade-out-scroll {
  transform: translate3d(0, var(--hero-label-y, 0px), 0) !important;
  opacity: var(--hero-label-opacity, 1) !important;
}

/* Keep the existing service cards in their grid during the reveal. */
.hs-motion #insights.hs-services.is-animated .hs-service-card {
  opacity: 1;
  transform: none;
  transition: none;
}

.hs-motion #projects .hs-featured-cover .hs-project-image {
  scale: var(--project-image-scale, 1);
  transform-origin: center;
}

.hs-motion #contact .promo-image-1 {
  translate: 0 var(--promo-front-y, 0px);
}
@media (prefers-reduced-motion: reduce) {
  #top .marquee-flex,
  #top .marquee__item {
    animation: none;
  }

  .hs-motion #top .hero-07-circle__image,
  .hs-motion #top .hero-07-fade-out-scroll {
    transform: none !important;
    opacity: 1 !important;
  }

  .hs-motion #projects .hs-featured-cover .hs-project-image { scale: 1; }
  .hs-motion #contact .promo-image-1 { translate: none; }
  html { scroll-behavior: auto; }
}

#top .hs-portrait,
#top .hs-portrait__lids {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#top .hero-07-circle__image { border-radius: 50%; }

@media (max-width: 767px) {
  #top .mxd-hero-07__circle {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    margin-inline: auto;
  }
}

@media (min-width: 1200px) {
  #top {
    --hero-circle-overhang: 140px;
    padding-bottom: var(--hero-circle-overhang);
  }

  #top .mxd-hero-07__circle {
    bottom: calc(-1 * var(--hero-circle-overhang));
  }
}

#top .hs-portrait__lids {
  object-fit: cover;
  pointer-events: none;
}

#top .hs-portrait__dark,
html[color-scheme="dark"] #top .hs-portrait__light {
  display: none;
}

html[color-scheme="dark"] #top .hs-portrait__dark {
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  #top .hs-portrait__lids { display: none; }
}

/* Scroll transition from the hero to the portfolio. */
.hs-statement {
  --statement-ink: #231233;
  --statement-accent: #551e86;
  --statement-base: var(--base, #faf7ff);
  --statement-violet: #dfc1ff;
  --statement-glow: #f3e6ff;
  --statement-crack-ink: #aa49e3;
  --statement-crack-core: #fff2ff;
  --statement-crack-halo: #b150ff80;
  position: relative;
  z-index: 1;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: start center;
  min-width: 0;
  min-height: clamp(155px, 25svh, 258px);
  padding: 0 clamp(20px, 6vw, 90px) clamp(22px, 3.1vw, 46px);
  overflow-x: clip;
  overflow-y: visible;
  color: var(--statement-ink);
  background: var(--statement-base);
}

.hs-statement::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: var(--statement-gradient-opacity, 1);
  background:
    linear-gradient(180deg, transparent 60%, var(--statement-base)),
    radial-gradient(ellipse at 70% 60%, var(--statement-violet), transparent 65%),
    radial-gradient(ellipse at 23% 25%, var(--statement-glow), transparent 62%);
}

html[color-scheme="dark"] .hs-statement {
  --statement-ink: #faf3ff;
  --statement-accent: #e7c5ff;
  --statement-base: var(--base, #11071b);
  --statement-violet: #511981;
  --statement-glow: #381059;
  --statement-crack-ink: #8d3ac3;
  --statement-crack-core: #fff2ff;
  --statement-crack-halo: #bf68ffb3;
}

.hs-statement .hs-statement__title {
  --statement-overlap: .455em;
  width: 100%;
  max-width: 1260px;
  margin: calc(-1 * var(--statement-overlap)) 0 0;
  color: inherit;
  font-family: var(--hs-font-display);
  font-size: clamp(23px, 7.1vw, 116px);
  font-weight: 400;
  line-height: 1.11;
  letter-spacing: -.035em;
}

.hs-statement__title > span {
  position: relative;
  display: block;
  white-space: nowrap;
}

.hs-statement__effect {
  margin-top: .14em;
  color: var(--statement-accent);
  text-align: right;
}

.hs-statement__ideas .hs-statement__ink {
  display: block;
}

@supports (background-clip: text) {
  .hs-statement__ideas :is(.hs-statement__ink, .hs-statement__shard),
  .hs-statement__ideas:not(:has(.hs-statement__ink)) {
    --statement-color-edge: calc(var(--statement-overlap) - var(--statement-shard-y, 0px));
    color: transparent;
    background: linear-gradient(to bottom, #faf3ff var(--statement-color-edge), var(--statement-ink) var(--statement-color-edge));
    background-clip: text;
  }
}

.hs-motion .hs-statement__ideas {
  translate: var(--statement-ideas-x, 0) 0;
  opacity: var(--statement-ideas-opacity, 1);
}

.hs-motion .hs-statement__effect {
  translate: var(--statement-effect-x, 0) 0;
  opacity: var(--statement-effect-opacity, 1);
}

.hs-statement__fragments {
  display: none;
  pointer-events: none;
  user-select: none;
}

.hs-statement__fragments,
.hs-statement__shard,
.hs-statement__trace,
.hs-statement__trace-ink {
  position: absolute;
  inset: 0;
  text-align: inherit;
}

.hs-statement__shard { display: block; }
.hs-statement__trace {
  color: var(--statement-crack-ink);
  filter: drop-shadow(0 0 3px var(--statement-crack-halo));
}

.hs-statement__trace-core {
  color: var(--statement-crack-core);
  opacity: var(--statement-crack-light, 0);
}
.is-fracturing .hs-statement__ink { opacity: 0; }
.is-fracturing .hs-statement__fragments { display: block; }

.hs-motion #projects .hs-projects-heading,
.hs-motion #projects .hs-first-project > :is(.hs-featured-cover, .masonry-promo) {
  translate: 0 var(--projects-intro-y, 0px);
  opacity: var(--projects-intro-opacity, 1);
}

.hs-motion #projects .hs-first-project:focus-within {
  --projects-intro-y: 0px !important;
  --projects-intro-opacity: 1 !important;
}

@media (prefers-reduced-motion: reduce) {
  .hs-motion .hs-statement::before { opacity: 1; }

  .hs-motion .hs-statement__title > span,
  .hs-motion #projects .hs-projects-heading,
  .hs-motion #projects .hs-first-project > :is(.hs-featured-cover, .masonry-promo) {
    translate: none;
    opacity: 1;
  }

  .is-fracturing .hs-statement__ink { opacity: 1; }
  .is-fracturing .hs-statement__fragments { display: none; }
}
