/* WinnPharma's visual layer. Authored film frames remain complete at 16:9. */
.media-hero .hero-grid {
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(32px, 4vw, 62px);
  padding-block: 62px;
  min-height: 0;
}
.media-hero .hero-copy h1 { font-size: clamp(2.75rem, 3.8vw, 3.7rem); line-height: 1.09; }
.media-hero .hero-copy > p.hero-brand-name { font-size: 2.2rem; margin-top: 0; }
.media-hero .hero-copy > p:not(.eyebrow):not(.hero-brand-name) { font-size: 1.0625rem; }
.media-hero .hero-proof { gap: 22px; margin-top: 32px; }
.media-hero::before { width: 18%; opacity: .95; }
.media-hero .media-stage { max-width: none; width: 100%; justify-self: stretch; margin: 0; }
.media-stage .portrait-caption {
  width: 100%; margin: 0; padding: 23px 25px; border: 1px solid #6a8a9d;
  border-top: 0; border-left: 3px solid var(--orange); border-radius: 0 0 12px 12px;
  background: var(--brand-deep); box-shadow: 0 18px 35px #021d3320;
}
.media-stage .portrait-caption strong { font-size: 1.125rem; }
.media-stage .portrait-caption p { font-size: .875rem; line-height: 1.7; }
.media-stage .winn-film { border-radius: 14px 14px 0 0; }

.winn-film {
  position: relative; margin: 0; min-width: 0; overflow: hidden;
  background: #fff; border: 1px solid #b9cbd7; border-top: 3px solid var(--orange);
  border-radius: 12px; box-shadow: 0 16px 42px #082c4312;
}
.media-hero .winn-film { border-color: #7895a8; border-top-color: var(--orange); box-shadow: 0 20px 45px #021d3330; }
.winn-film-stage { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; isolation: isolate; background: #edf2f5; }
.winn-film-poster, .winn-film-video {
  display: block; position: absolute; inset: 0; width: 100%; height: 100%; max-width: 100%;
  object-fit: contain; object-position: center; border-radius: 0;
}
.winn-film-poster { z-index: 0; }
.winn-film-video { z-index: 1; opacity: 0; background: transparent; }
.winn-film[data-film-ready="true"] .winn-film-video { opacity: 1; }
/* The only persistent control is an accessible pause/play button over the film. */
.winn-film-caption { position: absolute; inset: 12px 12px auto auto; z-index: 3; padding: 0; border: 0; background: transparent; }
.winn-film-caption > div:first-child, .winn-film .sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}
.winn-film-actions { display: flex; align-items: center; gap: 8px; }
.winn-film-actions button, .winn-film-open {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  border: 1px solid #ffffff8a; border-radius: 7px; background: #082c43eb; color: #fff;
  box-shadow: 0 2px 10px #0003; font-size: .875rem; font-weight: 650; line-height: 1.5;
}
.winn-film-toggle { width: 44px; padding: 0; opacity: .8; }
.winn-film-toggle:hover, .winn-film-toggle:focus-visible { opacity: 1; }
.winn-film-open { padding: 10px 13px; gap: 7px; }
.winn-film[data-film-enhanced="true"] .winn-film-open, .winn-film [data-film-fullscreen] { display: none; }
.winn-film[data-motion-state="error"] .winn-film-open { display: inline-flex; }
.winn-film-actions button:focus-visible, .winn-film-open:focus-visible { outline: 3px solid #ffad70; outline-offset: 3px; }
.winn-film-actions button:disabled { cursor: wait; opacity: .65; }
.winn-film-status:not([hidden]) { position: absolute; inset: auto 0 0; z-index: 4; margin: 0; padding: 12px 16px; background: #fff; color: #415e74; font-size: .875rem; }
.winn-film [hidden] { display: none !important; }

/* Existing service text and calls to action stay together beneath each image. */
.visual-services { gap: 25px; }
.visual-services > .card { padding: 0; overflow: hidden; border: 1px solid #c5d5df; border-bottom: 3px solid var(--orange); background: #fff; border-radius: 10px; box-shadow: 0 8px 26px #082c4308; }
.service-card-image { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 1px solid #d1dfe7; }
.service-card-copy { padding: 26px; display: flex; flex-direction: column; flex: 1; align-items: flex-start; }
.service-card-copy .num { margin-bottom: 18px; }
.service-card-copy h3 { font-size: 1.35rem; line-height: 1.25; }
.service-card-copy p { font-size: .9375rem; line-height: 1.75; }
.service-card-copy .text-link { margin-top: auto; }
.visual-services > .card:hover { border-color: #c78050; border-bottom-color: var(--orange); }
.personal-grid .working-photo { height: auto; aspect-ratio: 16 / 11; object-fit: cover; object-position: center; border-radius: 12px; box-shadow: 0 14px 35px #082c4312; }

.page-hero:has(.media-intro-grid) { background: linear-gradient(115deg, #edf4f9, #f8fafc); border-bottom: 1px solid #c4d4df; padding-bottom: 52px; }
.page-hero:has(.media-intro-grid) h1 { color: var(--navy); }
.page-hero:has(.media-intro-grid) .lead { color: var(--muted); }
.page-hero:has(.media-intro-grid) .eyebrow { color: var(--orange-dark); }
.page-hero:has(.media-intro-grid) .breadcrumbs { color: var(--muted); }
.page-hero:has(.media-intro-grid) .breadcrumbs a { color: var(--navy); }
.media-intro-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: center; gap: clamp(32px, 4vw, 62px); padding-top: 35px; }
.media-intro-grid .intro { padding: 0; min-width: 0; }
.media-intro-grid h1 { font-size: clamp(2.35rem, 3.6vw, 3.4rem); }
.media-intro-grid .lead { font-size: 1.075rem; line-height: 1.75; }
.winn-scene { position: relative; margin: 0; overflow: hidden; border-radius: 12px; border-bottom: 3px solid var(--orange); background: #dceaf5; box-shadow: 0 14px 35px #082c4312; }
.winn-scene img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.winn-scene figcaption { position: absolute; bottom: 12px; right: 12px; margin-left: 12px; padding: 6px 10px; border-radius: 4px; background: #082c43e8; color: white; font-size: .6875rem; }

@media (max-width: 1050px) {
  .media-hero .hero-grid { gap: 32px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .media-hero .hero-copy h1 { font-size: 2.85rem; }
  .media-hero .hero-proof { gap: 16px; }
  .media-intro-grid { gap: 32px; }
  .media-intro-grid h1 { font-size: 2.6rem; }
}
@media (max-width: 900px) {
  .media-hero .hero-grid, .media-intro-grid { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .media-hero .hero-grid { max-width: 720px; padding-block: 44px; }
  .media-hero .hero-copy h1 { font-size: clamp(2.7rem, 6vw, 3.7rem); max-width: 650px; }
  .media-hero .hero-copy > p:not(.eyebrow):not(.hero-brand-name) { max-width: 620px; }
  .media-hero .hero-proof { flex-wrap: nowrap; justify-content: space-between; }
  .media-hero .hero-proof div:last-child { display: block; }
  .media-intro-grid .intro { max-width: 690px; }
  .media-intro-grid h1 { font-size: clamp(2.5rem, 5vw, 3.3rem); }
}
@media (max-width: 680px) {
  .media-hero .hero-grid { gap: 28px; padding-block: 34px; }
  .media-hero .hero-copy > p.hero-brand-name { font-size: 1.9rem; }
  .media-hero .hero-copy h1 { font-size: clamp(2.4rem, 9.8vw, 3.2rem); }
  .media-hero .hero-proof { gap: 14px; }
  .media-hero .hero-proof div { max-width: none; flex: 1; }
  .media-hero .hero-proof strong { font-size: .75rem; }
  .media-hero .hero-proof small { font-size: .6875rem; }
  .media-stage .portrait-caption { padding: 18px 21px; }
  .winn-film-caption { inset: 8px 8px auto auto; }
  .service-card-copy { padding: 24px; }
  .personal-grid .working-photo { aspect-ratio: 16 / 10; }
  .media-intro-grid { padding-top: 28px; gap: 26px; }
  .media-intro-grid h1 { font-size: clamp(2.25rem, 9vw, 2.8rem); }
  .page-hero:has(.media-intro-grid) { padding-bottom: 34px; }
  .winn-scene img { aspect-ratio: 16 / 9; }
}
@media (prefers-reduced-motion: reduce) {
  .winn-film, .winn-film *, .visual-services * { transition: none !important; animation: none !important; }
}
