/* 1. Global Reset */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box; 
}

/* 2. Main Parent Section (The Layout Stack) */
.steinberg-hero-wrapper {
  position: relative;
  width: 100%;
  height: 85vh; 
  min-height: 550px; 
  background-color: #ffffff;
  overflow: hidden;
  
  display: grid;
  grid-template-areas: "heroStack";
  align-items: center;
}

/* 3. Bottom Layer (The Graphic Asset Frame) */
.hero-image-layer {
  grid-area: heroStack;
  z-index: 1; 
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  
  /* FIXED: Changed from 'right' to '85%'. This forces the browser to crop 
     from the right edge as the screen narrows, protecting the main plugin asset. */
  object-position: 85% center;
  transition: width 0.3s cubic-bezier(0.5, 0.25, 0, 1);
}

/* 4. Top Layer (The Text Overlay) */
.hero-text-layer {
  grid-area: heroStack;
  z-index: 2; 
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 8vw; 
  pointer-events: none; 
  position: absolute;
  
  /* FIXED: Locks the left side pivot point and prepares for high vertical clearance */
  transform-origin: left bottom;
  margin-top: -5rem; /* Pulls the baseline upward to ensure clearance over the graphic elements */
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-text-layer h1 {
  font-family: 'Work Sans', sans-serif;
  font-weight: 800;
  font-size: clamp(2.5rem, 5vw, 5rem);
  line-height: 1.1;
  color: #ffffff; 
  text-align: left;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

/* --- INTERMEDIATE SQUEEZE BREAKPOINTS FOR UPWARD ROTATION --- */

/* As the monitor compresses below standard desktop boundaries */
@media (max-width: 1200px) {
  .hero-text-layer {
    /* FIXED: Slants the text upward, raising the trailing right edge safely over the plugins */
    transform: rotate(-3deg) translateY(-2rem); 
  }
}

/* As the viewport shrinks further down to tablet landscape layouts */
@media (max-width: 992px) {
  .hero-text-layer {
    /* FIXED: Increases the angle and lifts it higher as the image compresses inward */
    transform: rotate(-6deg) translateY(-4rem); 
  }
}

/* --- MOBILE BREAKPOINT --- */
@media (max-width: 1200px) {
  .steinberg-hero-wrapper {
    display: flex;
    flex-direction: column; 
    height: auto;
  }

  /* Mobile text area sits flat above the image window */
  .hero-text-layer {
    position: relative; 
    width: 100%;
    padding: 3.5rem 1.5rem 2rem;
    margin: 0; /* Clears desktop negative height margins entirely */
    background-color: #ffffff; 
    transform: rotate(0deg) translateY(0); /* Returns to normal baseline alignment */
  }
  
  .hero-text-layer h1 {
    font-size: 2.5rem;
    color: #101010; 
    text-shadow: none;
  }

  /* Mobile Graphic Pane Window */
  .hero-image-layer {
    width: 100vw;
    height: 380px; 
  }

  .hero-image {
    height: 100%;
    width: 190%; 
    max-width: none;
    object-fit: cover;
    object-position: center center; 
  }
}
