/* Scoped to the Our Story section; natural height preserves text at large zoom. */
.brokerage-story.story-video-panel {
  --story-video-position: 50% 50%;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  width: 100%;
  max-width: none;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  padding: 0;
  color: #fff;
  background: #17211e;
}
.story-video-panel .story-video-poster,
.story-video-panel .story-video,
.story-video-panel .story-video-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.brokerage-story.story-video-panel .story-video-poster img {
  width: 100%;
  height: 100%;
  max-height: none;
  aspect-ratio: auto;
  border-radius: 0;
  object-fit: cover;
  object-position: var(--story-video-position);
}
.story-video-panel .story-video {
  object-fit: cover;
  object-position: var(--story-video-position);
  opacity: 0;
  transition: opacity .3s ease;
}
.story-video-panel.is-playing .story-video { opacity: 1; }
.story-video-panel .story-video-shade {
  background: linear-gradient(90deg, rgba(5, 17, 14, .84) 0%, rgba(5, 17, 14, .75) 48%, rgba(5, 17, 14, .34) 100%),
    linear-gradient(0deg, rgba(5, 17, 14, .72), transparent 35%);
}
.story-video-panel .story-video-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  padding-block: clamp(72px, 11vh, 144px) 64px;
}
.story-video-panel .story-video-copy { width: min(100%, 720px); }
.story-video-panel .story-video-copy .eyebrow { color: #e8efe8; margin: 0 0 24px; }
.brokerage-story.story-video-panel h2 {
  color: #fff;
  font-size: clamp(46px, 5.6vw, 86px);
  line-height: 1.04;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.brokerage-story.story-video-panel .story-video-copy p:not(.eyebrow) {
  max-width: 59ch;
  color: #fff;
  font-size: 17px;
  line-height: 1.8;
  margin-top: 24px;
}
.brokerage-story.story-video-panel .story-video-copy .text-link {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-height: 44px;
  margin-top: 26px;
  color: #fff;
  border-color: #fff;
}
.story-video-panel .story-video-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px 32px;
  min-width: 0;
  padding-block: 20px 28px;
}
.brokerage-story.story-video-panel .story-footage-note {
  flex: 1 1 380px;
  max-width: 760px;
  margin: 0;
  font-size: 12px;
  line-height: 1.75;
  color: #f1f4f1;
}
.story-video-panel .story-footage-note a {
  display: inline-block;
  padding-block: 6px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.story-video-panel .story-video-toggle {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 2px;
  background: rgba(5, 17, 14, .85);
  color: #fff;
  font: 500 13px/1.5 var(--sans);
}
.story-video-panel .story-video-toggle:hover:not(:disabled) { background: #173d2c; }
.story-video-panel .story-video-toggle:disabled { opacity: .85; cursor: default; }
.story-video-panel a:focus-visible,
.story-video-panel button:focus-visible { outline: 3px solid #fff; outline-offset: 5px; }
.brokerage-story.story-video-panel .story-video-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
@media (min-width: 701px) and (max-width: 1100px) {
  /* The copy spans more of the frame on tablets, so shade its full width. */
  .story-video-panel .story-video-shade {
    background: linear-gradient(180deg, rgba(5, 17, 14, .75), rgba(5, 17, 14, .82));
  }
}
@media (max-width: 700px) {
  .story-video-panel .story-video-shade {
    background: linear-gradient(180deg, rgba(5, 17, 14, .73), rgba(5, 17, 14, .78) 70%, rgba(5, 17, 14, .9));
  }
  .story-video-panel .story-video-content { padding-block: 64px 34px; }
  .brokerage-story.story-video-panel h2 { font-size: clamp(39px, 10vw, 56px); }
  .brokerage-story.story-video-panel .story-video-copy p:not(.eyebrow) { font-size: 16px; line-height: 1.75; }
  .story-video-panel .story-video-footer { align-items: flex-start; gap: 16px; padding-block: 14px 24px; }
  .brokerage-story.story-video-panel .story-footage-note { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .story-video-panel .story-video { transition: none; }
}
