/* Projects page hero — same full-bleed layout as the About page hero. */

body:has(.apexx-about-hero-clone) #main [data-framer-name="Projects hero"],
body:has(.apexx-about-hero-clone)
  #main
  [data-framer-name="Projects hero"]
  > [data-framer-name="Content container"] {
  padding-top: 0 !important;
}

body:has(.apexx-about-hero-clone)
  #main
  [data-framer-name="Projects hero"]
  > [data-framer-name="Content container"]
  > [data-framer-name="Heading section"] {
  display: none !important;
}

.apexx-about-hero-slot {
  position: relative;
  width: calc(100% + (var(--apexx-section-pad-x) * 2));
  height: 100vh;
  min-height: 640px;
  margin-top: calc(-1 * var(--apexx-section-pad-y));
  margin-left: calc(-1 * var(--apexx-section-pad-x));
  flex: none;
}

.apexx-about-hero-clone {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #1a1a1a;
  color: #fff;
}

.apexx-about-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.apexx-about-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.apexx-about-hero-shade {
  position: absolute;
  inset: 0;
  background: #1a1a1a;
  opacity: 0.5;
}

.apexx-about-hero-title {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
  padding: 0 24px;
  box-sizing: border-box;
  text-align: center;
}

.apexx-about-hero-title p,
.apexx-about-hero-lead {
  margin: 0;
  font-family: var(--apexx-font-body, "PP Neue Montreal Book", Arial, sans-serif);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: #fff;
}

.apexx-about-hero-title h1 {
  margin: 0;
  max-width: 680px;
  font-family: var(--apexx-font-body, "PP Neue Montreal Book", Arial, sans-serif);
  font-weight: 400;
  font-size: 60px;
  line-height: 66px;
  letter-spacing: -0.1px;
  color: #fff;
  text-align: center;
}

.apexx-about-hero-lead {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 99px;
  transform: translateX(-50%);
  width: 700px;
  max-width: calc(100% - 48px);
  text-align: center;
  hyphens: manual;
}

@media (max-width: 1199.98px) {
  .apexx-about-hero-title h1 {
    font-size: clamp(36px, 5vw, 52px);
    line-height: 1.1;
  }
}

@media (max-width: 809.98px) {
  .apexx-about-hero-slot {
    height: auto;
    min-height: 100svh;
  }

  .apexx-about-hero-clone {
    position: relative;
    height: auto;
    min-height: 100svh;
    justify-content: center;
    gap: 16px;
    padding: 108px 20px 48px;
    box-sizing: border-box;
  }

  .apexx-about-hero-title {
    gap: 16px;
    padding: 0;
  }

  .apexx-about-hero-title p {
    font-size: 14px;
  }

  .apexx-about-hero-title h1 {
    max-width: 18ch;
    font-size: clamp(30px, 8.5vw, 40px);
    line-height: 1.12;
  }

  .apexx-about-hero-lead {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    width: 100%;
    max-width: 34ch;
    font-size: 16px;
    line-height: 1.55;
  }
}

/* Match the About header: white logo and links over the photo, solid bar after scroll. */
body:has(.apexx-about-hero-clone):not(.apexx-projects-hero-scrolled) nav {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

body:has(.apexx-about-hero-clone):not(.apexx-projects-hero-scrolled) nav .item_block span {
  color: #fff !important;
}

body:has(.apexx-about-hero-clone):not(.apexx-projects-hero-scrolled) nav .item_block-line {
  background-color: #fff !important;
}

body:has(.apexx-about-hero-clone):not(.apexx-projects-hero-scrolled)
  [data-framer-name="Header Brand Mark"] {
  background-image: url("/storage/images/SXElscjzfOB41ooqgu4JOxdoc39fc.png") !important;
  background-repeat: no-repeat !important;
  background-position: left center !important;
  background-size: contain !important;
}

body:has(.apexx-about-hero-clone):not(.apexx-projects-hero-scrolled)
  [data-framer-name="Header Brand Mark"]
  img {
  opacity: 0 !important;
}

body:has(.apexx-about-hero-clone):not(.apexx-projects-hero-scrolled) nav svg,
body:has(.apexx-about-hero-clone):not(.apexx-projects-hero-scrolled) nav path {
  fill: #fff !important;
}
