/* MotionBuild 7th improvement — consumer-first copy and stable visual system. */

/* The supplied portrait keeps its original 693×866 composition on every page. */
.home-rebuild .home-coach__portrait--stage,
.coach-page .coach-master-portrait {
  min-width: 0;
}

.home-rebuild .home-coach__portrait--stage .home-coach__photo-viewport,
.coach-page .coach-master-photo-viewport {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 693 / 866;
  background: #191817;
}

.home-rebuild .home-coach__portrait--stage .home-coach__photo-viewport::after {
  display: none;
}

.home-rebuild .home-coach__portrait--stage .home-coach__photo-viewport > img,
.coach-page .coach-master-photo-viewport > img {
  position: static;
  inset: auto;
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: 50% 50%;
  transform: none;
  transform-origin: center;
  filter: none;
}

/* Keep member case photos and documents fully visible in their card frames. */
.records-page .catalog-featured-visual,
.home-rebuild .catalog-featured-visual {
  aspect-ratio: 4 / 3;
  min-height: 0;
  background: #302a25;
}

.records-page .catalog-featured-visual .case-visual,
.home-rebuild .catalog-featured-visual .case-visual,
.records-page .catalog-folder-thumb .case-visual,
.home-rebuild .catalog-folder-thumb .case-visual {
  display: block;
  width: 100%;
  height: 100%;
}

.records-page .case-visual--photo,
.home-rebuild .case-visual--photo {
  object-fit: contain !important;
  object-position: center !important;
  background: #302a25;
}

.records-page .case-visual--document,
.home-rebuild .case-visual--document {
  object-fit: contain !important;
  object-position: center !important;
  padding: clamp(8px, 1.2vw, 16px);
  background: #302a25;
}

.records-page .catalog-folder-thumb,
.home-rebuild .catalog-folder-thumb {
  flex: 0 0 auto;
  width: 116px;
  aspect-ratio: 4 / 3;
  background: #302a25;
}

/* Coach evidence cards use the same photo/document distinction. */
.coach-page .coach-proof-grid summary img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  object-position: center;
  background: #2e2a25;
}

.coach-page .coach-proof-grid summary img.proof-document,
.coach-page .coach-proof-gallery img.proof-document {
  object-fit: contain;
  object-position: center;
  padding: 8px;
  background: #2e2a25;
}

.coach-page .coach-proof-grid summary img.proof-photo,
.coach-page .coach-proof-gallery img.proof-photo {
  object-fit: cover;
  object-position: center;
  padding: 0;
}

.coach-page .coach-proof-gallery figure {
  overflow: hidden;
}

.coach-page .coach-proof-gallery img {
  aspect-ratio: 4 / 3;
  height: auto;
}

.coach-page .coach-master-copy h1,
.home-rebuild .home-coach__copy h2 {
  text-wrap: balance;
  word-break: keep-all;
}

.coach-page .coach-master-description,
.coach-page .coach-proof-cards > header > p,
.coach-page .coach-field-story > p,
.coach-page .coach-field-index p,
.home-rebuild .home-coach__lead {
  word-break: keep-all;
}

.coach-page .coach-proof-grid summary small {
  line-height: 1.55;
}

.coach-page .coach-evidence-boundary {
  padding: 16px 18px;
  border: 1px solid rgba(92, 79, 65, .22);
  background: rgba(255, 255, 255, .32);
  line-height: 1.75;
}

/* Keep the homepage message readable over both video and poster fallbacks. */
.home-rebuild .home-film-hero__shade {
  background:
    linear-gradient(90deg, rgba(24, 18, 15, .96) 0%, rgba(24, 18, 15, .82) 44%, rgba(24, 18, 15, .22) 78%),
    linear-gradient(0deg, rgba(24, 18, 15, .82) 0%, rgba(24, 18, 15, .08) 54%);
}

.home-rebuild .home-film-hero__copy {
  max-width: 760px;
}

.home-rebuild .home-film-hero h1,
.home-rebuild .home-film-hero__eyebrow,
.home-rebuild .home-film-hero__lead,
.home-rebuild .home-film-hero__boundary {
  text-shadow: 0 2px 20px rgba(0, 0, 0, .82);
}

.home-rebuild .home-film-hero__lead,
.home-rebuild .home-film-hero__boundary {
  word-break: keep-all;
}

@media (max-width: 900px) {
  .coach-page .coach-master-hero {
    grid-template-columns: minmax(280px, .78fr) minmax(0, 1.22fr);
  }

  .coach-page .coach-proof-grid summary img {
    min-height: 200px;
  }
}

@media (max-width: 700px) {
  .home-rebuild .home-coach__portrait--stage,
  .coach-page .coach-master-portrait {
    width: min(100%, 520px);
    margin-inline: auto;
  }

  .coach-page .coach-master-hero {
    grid-template-columns: 1fr;
  }

  .coach-page .coach-master-copy h1 {
    font-size: clamp(29px, 8.1vw, 40px);
    line-height: 1.36;
  }

  .coach-page .coach-proof-grid summary {
    grid-template-columns: 112px minmax(0, 1fr);
    min-height: 176px;
  }

  .coach-page .coach-proof-grid summary img {
    min-height: 176px;
  }

  .coach-page .coach-proof-grid summary > span {
    padding: 17px;
  }

  .coach-page .coach-proof-grid summary strong {
    font-size: 18px;
    line-height: 1.45;
  }

  .coach-page .coach-proof-gallery img {
    aspect-ratio: 4 / 3;
    height: auto;
  }

  .records-page .catalog-folder-thumb,
  .home-rebuild .catalog-folder-thumb {
    width: 92px;
  }

  .records-page .case-visual--document,
  .home-rebuild .case-visual--document {
    padding: 7px;
  }

  .home-rebuild .home-film-hero__copy {
    width: 100%;
  }

  .home-rebuild .home-film-hero__shade {
    background:
      linear-gradient(180deg, rgba(24, 18, 15, .45) 4%, rgba(24, 18, 15, .72) 48%, rgba(24, 18, 15, .98) 100%),
      linear-gradient(90deg, rgba(24, 18, 15, .82), rgba(24, 18, 15, .18));
  }
}

@media (max-width: 390px) {
  .coach-page .coach-master-copy {
    padding-inline: 18px;
  }

  .coach-page .coach-proof-cards {
    width: calc(100% - 28px);
  }

  .coach-page .coach-proof-grid summary {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .coach-page .coach-proof-grid summary > span {
    padding: 15px;
  }

  .coach-page .coach-proof-grid summary small {
    margin-bottom: 8px;
    font-size: 10px;
  }

  .coach-page .coach-proof-grid summary em {
    margin-top: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .records-page .case-visual,
  .home-rebuild .case-visual {
    transition: none;
  }
}
