.page-title { display: none !important; }

#pitt-hero-bg > div,
#pitt-hero-bg .field,
#pitt-hero-bg .field__item,
#pitt-hero-bg .media,
#pitt-hero-bg picture,
#pitt-hero-bg img,
#pitt-hero-bg video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: 50% 21% !important;
  display: block !important;
}

/* Hero Video Container for YouTube/Vimeo */
.hero-video-container {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  overflow: hidden;
}

.hero-video-iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw; /* 16:9 aspect ratio */
  min-height: 100vh;
  min-width: 177.78vh; /* 16:9 aspect ratio */
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* ===== HOMEPAGE HERO GOLD PIXEL GROUPS ===== */
#pitt-hero-section .hero-pixels {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 50;
}

#pitt-hero-section .pixel-group {
  position: absolute;
  width: 130px;
  height: 140px;
}

#pitt-hero-section .pixel-group img {
  position: absolute;
  width: 30px;
  height: 30px;
  object-fit: contain;
}

/* Group 1 - Top left of hero */
#pitt-hero-section .pixel-group-1 {
  top: 85px;
  left: 2px;
}

#pitt-hero-section .pixel-group-1 .pixel-1 {
  top: 15px;
  left: 0;
}

#pitt-hero-section .pixel-group-1 .pixel-2 {
  top: 90px;
  left: 0;
}

#pitt-hero-section .pixel-group-1 .pixel-3 {
  top: 50px;
  left: 40px;
}

/* Group 2 - Inside right blue box */
#pitt-hero-section .pixel-group-2 {
  position: absolute;
  top: 60%;
  left: 10px;
  transform: translateY(-50%);
}

#pitt-hero-section .pixel-group-2 img {
  width: 30px;
  height: 30px;
}

#pitt-hero-section .pixel-group-2 .pixel-1 {
  top: 0;
  left: 32px;
}

#pitt-hero-section .pixel-group-2 .pixel-2 {
  top: 80px;
  left: 32px;
}

#pitt-hero-section .pixel-group-2 .pixel-3 {
  top: 42px;
  left: 74px;
}

/* --- SHIELD BOX --- */
.hero-shield-box {
  position: relative;
}

/* --- ANIMATION STATES --- */
.hero-from-left,
.hero-from-right,
.hero-from-bottom {
  opacity: 0;
  transition:
    opacity 0.8s ease-out,
    transform 0.8s ease-out;
  will-change: transform, opacity;
}

.hero-from-left {
  transform: translateX(-80px);
}

.hero-from-right {
  transform: translateX(80px);
}

.hero-from-bottom {
  transform: translateY(80px);
}

.hero-anim-in.hero-from-left {
  opacity: 1;
  transform: translateX(0);
}

.hero-anim-in.hero-from-right {
  opacity: 1;
  transform: translateX(0);
}

.hero-anim-in.hero-from-bottom {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive - hide pixels and corner on mobile */
@media (max-width: 1024px) {
  #pitt-hero-section .hero-pixels,
  #pitt-hero-section .pixel-group {
    display: none;
  }

  .hero-shield-box::before {
    display: none;
  }
}

/* Grid background pattern - using pseudo-element so content isn't limited */
.homepage-grid-bg {
  position: relative;
}

.homepage-grid-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1700px; /* Grid only covers this height */
  background-color: #fff;
  background-image:
    linear-gradient(to right, rgba(200, 210, 220, 0.4) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(200, 210, 220, 0.4) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
}

/* Ensure content stays above the grid */
.homepage-grid-bg > * {
  position: relative;
  z-index: 1;
}

/* Space between the hero and the first page-component paragraph.
   Restores the breathing room a previous paragraph used to provide
   so the news carousel doesn't butt up against the hero image. */
.homepage-page-components {
  padding-top: 32px;
}

@media (min-width: 768px) {
  .homepage-page-components {
    padding-top: 48px;
  }
}

@media (min-width: 1024px) {
  .homepage-page-components {
    padding-top: 64px;
  }
}