/* stuck backround section */
:root {
  --nav-height: 74px;
  --stuck-gap: 24px;
  --resize-distance: 50dvh;
  --stuck-scale: 0.94;
}

.stuck-bg-track {
  height: calc(100dvh + var(--resize-distance) + 50dvh);
}

.stuck-bg {
  top: calc(var(--nav-height) + var(--stuck-gap));
  height: calc(100dvh - var(--nav-height) - (var(--stuck-gap) * 2));
  background: url("https://wip.interactivesolutions.ca/image-uploads/hero-1st.jpg") center center no-repeat;
  background-size: cover;
  transform-origin: center;
  will-change: transform;
  z-index: 1;
}

.stuck-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #000;
  opacity: var(--stuck-tint, 0);
  pointer-events: none;
}

.stuck-resize-space {
  height: var(--resize-distance);
  margin-top: calc(-100dvh + var(--nav-height) + (var(--stuck-gap) * 2));
}

.stuck-trigger-space {
  height: 100dvh;
}

.stuck-reveal {
  z-index: 2;
  min-height: 60dvh;
  margin-top: -60dvh;
}

@media (max-width: 991.98px) {
  :root {
    --nav-height: 64px;
    --stuck-gap: 12px;
    --resize-distance: 40dvh;
  }

  /* min-height must equal the negative margin, or the sticky photo spills over the next section */
  .stuck-reveal {
    min-height: 70dvh;
    margin-top: -70dvh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stuck-bg {
    transform: none !important;
  }
}

/* stuck section stats: one connected strip of flat colour blocks over the photo */
.stat-bar {
  display: flex;
  border-radius: 24px;
  overflow: hidden;
}
.stat-card {
  flex: 1 1 0;
  padding: 28px;
  background: var(--paper);
  color: var(--ink);
}
.stat-card-acid {
  background: var(--acid);
}
.stat-card-blue {
  background: var(--blue);
  color: #fff;
}
.stat-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 32px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 18px;
}
.stat-card-acid .stat-icon {
  color: var(--acid);
}
.stat-card-blue .stat-icon {
  background: #fff;
  color: var(--blue);
}
.stat-label {
  display: block;
  font-family: var(--heading-font);
  font-size: clamp(26px, 2.4vw, 38px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.stat-text {
  margin: 14px 0 0;
  font-family: var(--body-font);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--muted);
}
.stat-card-acid .stat-text {
  color: #31351b;
}
.stat-card-blue .stat-text {
  color: #dde3ff;
}
/* stagger the blocks as they reveal */
.stat-bar > .reveal:nth-child(2) {
  transition-delay: 0.12s;
}
.stat-bar > .reveal:nth-child(3) {
  transition-delay: 0.24s;
}
/* tablet and below: compact so the strip sits inside the photo */
@media (max-width: 1024px) {
  .stat-card {
    padding: 20px;
  }
  .stat-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 16px;
    font-size: 14px;
  }
  .stat-label {
    font-size: clamp(17px, 2.4vw, 24px);
  }
  .stat-text {
    margin-top: 6px;
    font-size: 13px;
  }
  /* outline style instead of solid colour blocks */
  .stat-bar {
    border: 1.5px solid rgba(255, 255, 255, 0.75);
  }
  .stat-bar .stat-card {
    background: transparent;
    color: #fff;
  }
  .stat-bar .stat-card + .stat-card {
    border-left: 1.5px solid rgba(255, 255, 255, 0.75);
  }
  .stat-bar .stat-icon {
    border: 1.5px solid var(--acid);
    background: transparent;
    color: var(--acid);
  }
  .stat-bar .stat-text {
    color: rgba(255, 255, 255, 0.8);
  }
}
/* phones: stack into three short rows, icon beside the text */
@media (max-width: 575.98px) {
  .stat-bar {
    flex-direction: column;
    border-radius: 18px;
  }
  .stat-card {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 14px;
    align-items: center;
    padding: 14px 16px;
  }
  .stat-icon {
    grid-row: span 2;
    margin: 0;
  }
  .stat-text {
    margin-top: 4px;
  }
  .stat-bar .stat-card + .stat-card {
    border-left: 0;
    border-top: 1.5px solid rgba(255, 255, 255, 0.75);
  }
}

.statement-copy p {
  font-size: 20px;
  line-height: 1.75;
  color: var(--muted);
  margin: 0;
}

.visual-grid figure {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #ddd;
}
.visual-feature {
  height: 636px;
}

.visual-small {
  height: 310px;
}

.visual-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.visual-grid figure:hover img {
  transform: scale(1.025);
}
.visual-grid figure:after {
  content: "";
  position: absolute;
  inset: 52% 0 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
}
.visual-grid figcaption {
  position: absolute;
  z-index: 2;
  left: 22px;
  right: 22px;
  bottom: 20px;
  color: white;
}
.visual-grid figcaption small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 7px;
}
.visual-grid figcaption strong {
  font-size: 24px;
}

.builderq {
  background: var(--paper);
}
.builderq-copy h2 {
  margin: 10px 0 20px;
}
.builderq-copy p {
  color: var(--muted);
  line-height: 1.75;
}
.builderq-pills {
  margin-top: 22px;
}

.builderq-pills span {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  background-color: white;
}
.builderq-stage {
  position: relative;
  background: var(--bg);
  border-radius: 28px;
  padding: 26px;
}
.builderq-window {
  background: white;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 26px 64px rgba(0, 0, 0, 0.08);
}
.bq-top {
  height: 24px;
  border-bottom: 1px solid #e5e7e9;
  margin-bottom: 14px;
}
.bq-metric {
  background: #f3f5f7;
  border-radius: 8px;
  padding: 11px;
}
.bq-metric small {
  display: block;
  font-size: 8px;
  color: #7e858c;
}
.bq-metric b {
  display: block;
  font-size: 22px;
  margin-top: 5px;
}
.bq-bars {
  height: 210px;
  background: #f3f5f7;
  border-radius: 9px;
  margin-top: 10px;
  padding: 16px;
  display: flex;
  align-items: end;
  gap: 10px;
}
.bq-bars i {
  flex: 1;
  background: var(--blue);
  border-radius: 2px 2px 0 0;
}
.bq-bars i:nth-child(1) {
  height: 18%;
}
.bq-bars i:nth-child(2) {
  height: 30%;
}
.bq-bars i:nth-child(3) {
  height: 46%;
}
.bq-bars i:nth-child(4) {
  height: 60%;
}
.bq-bars i:nth-child(5) {
  height: 78%;
}
.bq-bars i:nth-child(6) {
  height: 95%;
}

.journey h2 {
  margin: 0 0 20px;
  text-transform: uppercase;
  max-width: 900px;
}
.journey p {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.75;
}
.journey-grid {
  margin-top: 42px;
}

.builders h2 {
  margin: 0 0 28px;
  text-transform: uppercase;
}

.cta-box {
  background: var(--blue);
  color: white;
  border-radius: 32px;
  padding-inline: 48px;
}
.cta-box h2 {
  margin: 0 0 12px;
  text-transform: uppercase;
}

@media (max-width: 980px) {
  .visual-feature {
    height: 420px;
  }
  .visual-small {
    height: 280px;
  }
}
@media (max-width: 650px) {
  .hero-home h1 {
    font-size: var(--h1-mobile);
  }
}

/* Filled-in photography */
.home-feature {
  background: var(--paper);
}
.home-feature-frame {
  position: relative;
  height: 540px;
  overflow: hidden;
  border-radius: 30px;
}
.home-feature-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  display: block;
}
.home-feature-frame:after {
  content: "";
  position: absolute;
  inset: 35% 0 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.68));
}
.home-feature-copy {
  position: absolute;
  z-index: 2;
  left: 34px;
  bottom: 32px;
  max-width: 700px;
  color: #fff;
}
.home-feature-copy small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.17em;
  margin-bottom: 10px;
  opacity: 0.72;
}
.home-feature-copy strong {
  display: block;
  font-size: var(--h3);
  line-height: 0.94;
  letter-spacing: -0.035em;
}
@media (max-width: 650px) {
  .home-feature-frame {
    height: 440px;
    border-radius: 22px;
  }
  .home-feature-copy {
    left: 22px;
    right: 22px;
    bottom: 22px;
  }
}

/* logo marquee */
.logo-marquee {
  --logo-speed: 35s;
  --logo-width: 160px;
  --logo-gap: 40px;
}

.logo-track {
  width: max-content;
  animation: logo-scroll var(--logo-speed) linear infinite;
}

.logo-group {
  flex: 0 0 auto;
  gap: var(--logo-gap);
  padding-right: var(--logo-gap);
}

.logo-group img {
  width: var(--logo-width);
  height: 100px;
  object-fit: contain;
}

@keyframes logo-scroll {
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-track {
    animation: none;
  }
}

/* Hero */
@media (min-width: 992px) {
  .hero-home {
    height: 100dvh;
    padding: 0;
  }
}

/* layout (position, size, poster cover, dark fallback) is on the markup as utilities,
   since this file loads after the page HTML in the CMS */
.hero-video {
  z-index: 0;
  pointer-events: none;
}

.hero-video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

body:has(.ids-site-header.header-transparent) main > .hero-home:first-child {
  height: auto;
  min-height: 100dvh;
  padding-bottom: 88px;
}
