/* Homepage-only polish layer. Keep this after styles.css and brand-polish.css. */
.photo-hero {
  position: relative;
  overflow: hidden;
  background: #06111f;
  isolation: isolate;
}

.photo-hero::before,
.photo-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.photo-hero::before {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(5, 15, 28, 0.96) 0%, rgba(8, 25, 43, 0.88) 46%, rgba(8, 25, 43, 0.28) 100%),
    linear-gradient(180deg, rgba(5, 15, 28, 0.18), rgba(5, 15, 28, 0.58));
}

.photo-hero::after {
  z-index: 1;
  background:
    radial-gradient(circle at 26% 26%, rgba(181, 151, 94, 0.18), transparent 22rem),
    linear-gradient(180deg, transparent 62%, rgba(5, 15, 28, 0.7) 100%);
}

.photo-hero > .container {
  position: relative;
  z-index: 2;
}

.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #06111f;
}

.hero-slide {
  position: absolute;
  inset: -2%;
  background-image: var(--hero-image);
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1400ms ease, transform 7200ms ease;
  will-change: opacity, transform;
}

.hero-slide:nth-child(1) {
  background-image: url("../images/photography/tree-lined-neighborhood-sunset.jpeg");
}

.hero-slide:nth-child(2) {
  background-image: url("../images/photography/downtown-kalamazoo-aerial.jpeg");
}

.hero-slide:nth-child(3) {
  background-image: url("../images/photography/grand-rapids-aerial.jpeg");
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.photo-hero .institutional-hero-copy {
  text-shadow: 0 3px 22px rgba(0, 0, 0, 0.28);
}

.institutional-hero {
  min-height: 680px;
}

.institutional-hero-grid {
  min-height: 680px;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.68fr);
  gap: 44px;
}

.institutional-hero-copy {
  padding: 64px 0 78px;
}

.institutional-hero-copy h1 {
  max-width: 780px;
  font-size: clamp(3rem, 4.85vw, 5.2rem);
  line-height: 1;
  letter-spacing: 0;
}

.photo-hero .institutional-hero-proof {
  display: none;
}

.institutional-visual-system {
  min-height: 520px;
}

.visual-photo-panel {
  inset: 24px 0 42px 28px;
}

.valuation-dashboard-card {
  bottom: 58px;
  overflow: hidden;
  isolation: isolate;
}

.valuation-dashboard-card::before,
.valuation-dashboard-card::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
}

.valuation-dashboard-card::before {
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    radial-gradient(circle at 84% 18%, rgba(181, 151, 94, 0.2), transparent 8rem);
  background-size: 34px 34px, 34px 34px, auto;
  opacity: 0.72;
}

.valuation-dashboard-card::after {
  right: -42px;
  bottom: -58px;
  width: 190px;
  height: 190px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(60, 132, 178, 0.28), transparent 68%);
  filter: blur(3px);
}

.dashboard-report-graphic {
  position: relative;
  min-height: 112px;
  margin-top: 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.035)),
    rgba(9, 30, 51, 0.46);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.dashboard-report-grid {
  position: absolute;
  inset: 13px;
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 8px;
}

.dashboard-report-grid i {
  min-height: 19px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.dashboard-report-grid i:nth-child(1),
.dashboard-report-grid i:nth-child(4) {
  background: rgba(181, 151, 94, 0.18);
}

.dashboard-evidence-stack {
  position: absolute;
  left: 18px;
  right: 96px;
  bottom: 15px;
  display: grid;
  gap: 7px;
}

.dashboard-evidence-stack b {
  display: block;
  width: var(--bar);
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(181, 151, 94, 0.92), rgba(255, 255, 255, 0.48));
}

.dashboard-market-line {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 148px;
  max-width: 46%;
  height: auto;
  color: rgba(255, 255, 255, 0.78);
  opacity: 0.9;
}

.dashboard-market-line path,
.dashboard-market-line circle {
  fill: none;
  stroke: rgba(255, 255, 255, 0.74);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
  vector-effect: non-scaling-stroke;
}

.dashboard-market-line circle {
  fill: var(--gold);
  stroke: rgba(255, 255, 255, 0.82);
}

.dashboard-report-graphic + .dashboard-lines {
  margin-top: 14px;
}

.coverage-mini-card {
  top: 70px;
  right: -8px;
}

.review-mini-card {
  right: 22px;
  bottom: 18px;
}

.visual-photo {
  background:
    linear-gradient(135deg, rgba(7, 21, 34, 0.96), rgba(15, 45, 74, 0.86)),
    radial-gradient(circle at 20% 20%, rgba(181, 151, 94, 0.22), transparent 24rem);
  position: relative;
  overflow: hidden;
}

.visual-photo::before,
.visual-photo::after {
  content: "";
  position: absolute;
  inset: 40px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
}

.visual-photo::after {
  inset: auto 42px 46px 42px;
  height: 46%;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.84) 0 16%, transparent 16% 22%, rgba(255, 255, 255, 0.62) 22% 38%, transparent 38% 44%, rgba(181, 151, 94, 0.76) 44% 62%, transparent 62% 68%, rgba(255, 255, 255, 0.48) 68% 100%),
    repeating-linear-gradient(0deg, transparent 0 27px, rgba(255, 255, 255, 0.18) 27px 28px);
  clip-path: polygon(0 62%, 18% 48%, 34% 54%, 52% 28%, 70% 42%, 100% 12%, 100% 100%, 0 100%);
}

.pathway-card.image-card {
  background:
    radial-gradient(circle at 82% 14%, rgba(181, 151, 94, 0.24), transparent 24rem),
    linear-gradient(145deg, #071522, #12395a 58%, #0b2136);
  position: relative;
  overflow: hidden;
}

.pathway-card.image-card::after {
  content: "";
  position: absolute;
  inset: auto 30px 30px 30px;
  height: 42%;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.16) 0 1px, transparent 1px 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0 1px, transparent 1px 24%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(181, 151, 94, 0.18));
  background-size: 44px 44px, 44px 44px, auto;
  opacity: 0.86;
}

.operating-photo {
  background:
    linear-gradient(180deg, rgba(6, 17, 31, 0.06), rgba(6, 17, 31, 0.72)),
    url("../images/photography/traditional-executive-home.jpeg") center / cover no-repeat;
}

.visual-feature-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 8%, rgba(181, 151, 94, 0.14), transparent 28rem),
    linear-gradient(180deg, #ffffff 0%, #f7f5f0 100%);
}

.visual-carousel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.42fr);
  gap: 30px;
  align-items: stretch;
}

.visual-carousel-media {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(240px, 0.86fr);
  gap: 12px;
  min-height: 560px;
  overflow: hidden;
  padding: 12px;
  border: 1px solid rgba(222, 216, 207, 0.86);
  border-radius: 8px;
  background: #071522;
  box-shadow: 0 36px 92px rgba(7, 21, 34, 0.18);
}

.visual-slide {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  margin: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.visual-slide.is-featured {
  grid-row: span 2;
}

.visual-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.visual-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 21, 34, 0.05), rgba(7, 21, 34, 0.84)),
    linear-gradient(90deg, rgba(7, 21, 34, 0.14), transparent 55%);
}

.visual-slide figcaption {
  position: absolute;
  z-index: 1;
  left: 24px;
  right: 24px;
  bottom: 24px;
  max-width: 650px;
  color: #fff;
}

.visual-slide figcaption span,
.service-summary-card span,
.coverage-office-panel span {
  display: block;
  margin-bottom: 9px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.visual-slide figcaption strong {
  display: block;
  font-size: clamp(1.35rem, 2.6vw, 2.45rem);
  line-height: 1.05;
  text-wrap: balance;
}

.visual-carousel-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 36px;
  border: 1px solid rgba(222, 216, 207, 0.86);
  border-radius: 8px;
  background:
    radial-gradient(circle at 100% 0, rgba(181, 151, 94, 0.18), transparent 34%),
    #fff;
  box-shadow: 0 24px 64px rgba(15, 32, 56, 0.1);
}

.visual-carousel-content h3 {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.service-summary-card {
  position: relative;
}

.service-summary-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--gold), var(--red));
}

.service-summary-card a {
  display: inline-flex;
  margin-top: 14px;
  color: var(--navy);
  font-weight: 900;
  text-decoration: none;
  border-bottom: 2px solid var(--gold);
}

.coverage-office-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(222, 216, 207, 0.86);
  border-radius: 8px;
  background:
    radial-gradient(circle at 100% 0, rgba(181, 151, 94, 0.18), transparent 34%),
    linear-gradient(145deg, #ffffff, #edf4f8);
  box-shadow: 0 26px 70px rgba(15, 32, 56, 0.1);
}

.coverage-office-panel article {
  min-height: 130px;
  padding: 26px;
  border: 1px solid rgba(23, 74, 115, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
}

.coverage-office-panel strong {
  display: block;
  color: var(--navy);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.18;
}

@media (max-width: 920px) {
  .institutional-hero-grid {
    grid-template-columns: 1fr;
  }

  .institutional-hero-copy {
    padding-bottom: 24px;
  }

  .institutional-visual-system {
    min-height: 620px;
    margin-bottom: 84px;
  }

  .visual-carousel {
    grid-template-columns: 1fr;
  }

  .visual-carousel-media {
    grid-template-columns: 1fr 1fr;
    min-height: 460px;
  }

}

@media (max-width: 760px) {
  .photo-hero {
    background: #06111f;
  }

  .photo-hero::before {
    background:
      linear-gradient(180deg, rgba(5, 15, 28, 0.94) 0%, rgba(8, 25, 43, 0.86) 58%, rgba(8, 25, 43, 0.8) 100%);
  }

  .institutional-hero {
    min-height: auto;
  }

  .institutional-hero-grid {
    min-height: auto;
    gap: 24px;
  }

  .institutional-hero-copy {
    padding: 64px 0 12px;
  }

  .institutional-hero-copy h1 {
    font-size: clamp(3rem, 16vw, 4.6rem);
  }

  .institutional-visual-system {
    min-height: auto;
    margin-bottom: 54px;
  }

  .visual-photo-panel,
  .valuation-dashboard-card,
  .coverage-mini-card,
  .review-mini-card {
    position: relative;
    width: auto;
    inset: auto;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
  }

  .visual-photo-panel {
    min-height: 430px;
  }

  .valuation-dashboard-card,
  .coverage-mini-card,
  .review-mini-card {
    margin-top: -24px;
  }

  .visual-feature-section .section-head {
    text-align: left;
  }

  .visual-carousel-media {
    grid-template-columns: 1fr;
    min-height: 380px;
  }

  .visual-slide.is-featured {
    grid-row: auto;
  }

  .visual-slide figcaption {
    left: 22px;
    right: 22px;
    bottom: 22px;
  }

  .visual-carousel-content {
    padding: 24px;
  }

  .coverage-office-panel article {
    min-height: 0;
    padding: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    transition: none;
    transform: none;
  }
}
