/* Corafter Phase 15 — portfolio hero clipping and wave removal.
   Fixes the white wave that overlapped the portfolio hero CTAs and keeps the full-bleed poster.
   This is an additive override so earlier phase files and styles remain available. */
body.page-portfolio .portfolio-hero {
  box-sizing: border-box !important;
  height: 100vh !important;
  height: 100svh !important;
  min-height: 620px !important;
  max-height: none !important;
  padding-top: var(--cora-header-offset, 82px) !important;
  padding-bottom: 0 !important;
  overflow: hidden !important;
  background-color: #061638 !important;
}

/* The old wave was a white, absolutely-positioned ellipse; it covered the bottom of the hero. */
body.page-portfolio .portfolio-hero > .wave,
body.page-portfolio .portfolio-hero .wave-dark {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Let the copy use the available hero content box without adding a second viewport of height. */
body.page-portfolio .portfolio-hero > .portfolio-hero-grid {
  box-sizing: border-box !important;
  width: min(1180px, calc(100% - 48px)) !important;
  height: 100% !important;
  min-height: 0 !important;
  margin-inline: auto !important;
  padding: clamp(18px, 3vh, 30px) 0 clamp(24px, 4vh, 42px) !important;
  display: flex !important;
  align-items: center !important;
}

body.page-portfolio .portfolio-hero-grid > div:first-child {
  width: min(700px, 64%) !important;
  max-width: 700px !important;
  min-width: 0 !important;
  margin: 0 !important;
}

body.page-portfolio .portfolio-hero .hero-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 12px !important;
  margin-top: clamp(22px, 3vh, 34px) !important;
}

body.page-portfolio .portfolio-hero::after {
  background-position: center, center, 64% center !important;
}

@media (max-width: 900px) {
  body.page-portfolio .portfolio-hero > .portfolio-hero-grid {
    width: min(760px, calc(100% - 40px)) !important;
  }
  body.page-portfolio .portfolio-hero-grid > div:first-child {
    width: min(76%, 680px) !important;
  }
}

@media (max-width: 600px) {
  body.page-portfolio .portfolio-hero {
    height: 100svh !important;
    min-height: 650px !important;
    padding-top: 78px !important;
    padding-bottom: 0 !important;
  }
  body.page-portfolio .portfolio-hero > .portfolio-hero-grid {
    width: calc(100% - 36px) !important;
    padding: 18px 0 30px !important;
  }
  body.page-portfolio .portfolio-hero-grid > div:first-child {
    width: 100% !important;
    max-width: 100% !important;
  }
  body.page-portfolio .portfolio-hero h1 {
    max-width: 12ch;
    font-size: clamp(2.45rem, 10.8vw, 3.6rem) !important;
    line-height: 1.02 !important;
  }
  body.page-portfolio .portfolio-hero p { max-width: 42ch; }
  body.page-portfolio .portfolio-hero::after {
    background-position: center, center, 62% center !important;
  }
}

@media (max-height: 760px) and (min-width: 901px) {
  body.page-portfolio .portfolio-hero h1 {
    font-size: clamp(2.7rem, 4.2vw, 4.5rem) !important;
  }
  body.page-portfolio .portfolio-hero > .portfolio-hero-grid {
    padding-top: 10px !important;
    padding-bottom: 18px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.page-portfolio .portfolio-hero *,
  body.page-portfolio .portfolio-hero::before,
  body.page-portfolio .portfolio-hero::after {
    animation: none !important;
    transition: none !important;
  }
}
