/*
 * IntentHaus Phase 1 V4 | Spacious desktop layouts
 * Fixes: content/illustration collisions, restrictive shell, and cramped overlay stack.
 * Intentional overlap is restricted to elements within the illustration canvas.
 * Loaded after branding.css. No live site assets or scripts are modified.
 */

/* Use available desktop width, without stretching long-form copy to unreadable lengths. */
body.phase1-v2 .shell {
  max-width: 1600px;
  padding-left: clamp(23px, 4.35vw, 76px);
  padding-right: clamp(23px, 4.35vw, 76px);
}

/* Desktop: two independent columns and a visibly wider illustration canvas. */
@media (min-width: 1321px) {
  .home-hero-grid {
    grid-template-columns: minmax(0, .97fr) minmax(0, 1.03fr);
    gap: clamp(62px, 5.3vw, 96px);
    min-height: 790px;
    padding-top: 85px;
    padding-bottom: 68px;
  }
  .hero-content, .service-intro { min-width: 0; }
  .hero-content h1 {
    font-size: clamp(56px, 4.27vw, 71px);
    line-height: 1.1;
    letter-spacing: -.069em;
    max-width: 100%;
    margin: 27px 0 28px;
    text-wrap: pretty;
  }
  .hero-content > p { max-width: 550px; font-size: clamp(17px, 1.28vw, 20px); }
  .hero-proof { margin-top: 49px; }
  .hero-art {
    width: 100%;
    height: 630px;
    margin: 0;
  }
  .display-browser {
    left: 5%;
    top: 4%;
    width: 91%;
    height: 65%;
    transform: rotate(-2deg);
  }
  .metric-overlay {
    left: 0;
    bottom: 3%;
    width: 43%;
    height: 164px;
    padding: 15px 16px 10px;
    transform: rotate(-1deg);
  }
  .metric-overlay svg { height: 58px; }
  .assistant-overlay {
    right: 0;
    bottom: 1.4%;
    width: 49%;
    min-height: 162px;
    transform: rotate(1deg);
  }
  .orbit-one { right: 3%; top: 0; }
  .orbit-two { right: -9%; top: -9%; }
  .art-bottom-label { display: none; }

  /* Website Design has the same deliberate column spacing. */
  .service-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(62px, 5.3vw, 96px);
    min-height: 790px;
    padding-top: 85px;
    padding-bottom: 68px;
  }
  .service-intro h1 {
    font-size: clamp(56px, 4.35vw, 72px);
    line-height: 1.095;
    letter-spacing: -.069em;
    max-width: 100%;
    margin: 27px 0 28px;
    text-wrap: pretty;
  }
  .service-intro > p { max-width: 560px; }
  .service-hero-foot { margin-top: 52px; }
  .web-art { width: 100%; height: 600px; margin: 0; }
  .web-desktop { left: 3%; top: 6%; width: 88%; height: 72%; transform: rotate(-2deg); }
  .web-phone { right: 0; bottom: 3%; transform: rotate(4deg); }
}

/* Laptop/tablet: switch to the intended editorial stack BEFORE columns collide. */
@media (min-width: 601px) and (max-width: 1320px) {
  .home-hero-grid, .service-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 35px;
    min-height: 0;
    padding-top: 84px;
    padding-bottom: 55px;
  }
  .hero-content, .service-intro { min-width: 0; }
  .hero-content h1, .service-intro h1 {
    font-size: clamp(53px, 6.5vw, 82px);
    line-height: 1.09;
    max-width: 890px;
    margin: 27px 0 26px;
    letter-spacing: -.068em;
    text-wrap: pretty;
  }
  .hero-content > p, .service-intro > p { max-width: 660px; }
  .hero-proof { margin-top: 43px; }
  .service-hero-foot { margin-top: 40px; }
  .hero-art {
    width: min(820px, 100%);
    height: 615px;
    margin: 10px auto 0;
  }
  .display-browser { top: 5%; left: 5%; width: 90%; height: 65%; transform: rotate(-2deg); }
  .metric-overlay { width: 44%; left: 0; bottom: 2%; height: 168px; transform: rotate(-1deg); }
  .metric-overlay svg { height: 59px; }
  .assistant-overlay { width: 49%; right: 0; bottom: 1.5%; transform: rotate(1deg); }
  .art-bottom-label { display: none; }
  .web-art { width: min(820px, 100%); height: 570px; margin: 8px auto 0; }
  .web-desktop { top: 6%; left: 3%; width: 88%; height: 73%; transform: rotate(-2deg); }
  .web-phone { right: 0; bottom: 2%; transform: rotate(4deg); }
}

/* Small screens retain the approved single-column composition and readable copy. */
@media (max-width: 600px) {
  body.phase1-v2 .shell { padding-left: 23px; padding-right: 23px; }
  .hero-content h1, .service-intro h1 { margin-right: 0; max-width: 100%; }
  .art-bottom-label { display: none; }
}
