/* Homepage office video. All rules are scoped to the new hero. */
.home.reference-theme .hero.hero-video {
  display: block;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0;
  padding: 0;
  background: #102a48;
}
.home.reference-theme .hero.hero-video::before { display: none !important; content: none !important; }
.hero-video .hero-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 80svh;
  overflow: hidden;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #102a48 url('fairwood-office-poster.jpg') center / cover no-repeat;
}
.hero-video .office-video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; border: 0; border-radius: 0; }
.hero-video .office-video[hidden] { display: none; }
.hero-video .hero-video-controls {
  position: absolute;
  z-index: 2;
  right: 14px;
  bottom: 10px;
  max-width: calc(100% - 28px);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 4px;
  padding: 0;
  background: transparent;
  color: #fff;
}
.hero-video .hero-video-controls[hidden] { display: none; }
.hero-video .hero-video-controls button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  min-height: 30px;
  padding: 6px;
  border: 0;
  border-radius: 50%;
  background: rgba(16,42,72,.48);
  color: #fff;
  font: 700 14px/1.4 Arial,sans-serif;
  backdrop-filter: blur(5px);
  cursor: pointer;
}
.hero-video .hero-video-controls button[hidden] { display: none; }
.hero-video .hero-video-controls button:hover { background: #14728a; }
.hero-video .hero-video-controls button:focus-visible { outline: 3px solid #91d1df; outline-offset: 3px; }
.hero-video .hero-video-controls button:disabled { opacity: .6; cursor: default; }
.hero-video .hero-video-status { flex-basis: 100%; text-align: right; font: 14px/1.5 Arial,sans-serif; background: rgba(16,42,72,.75); border-radius: 5px; padding: 5px 8px; }
.hero-video .hero-video-status:empty { display: none; }
.home.reference-theme .hero.hero-video .hero-message {
  position: relative !important;
  inset: auto !important;
  top: auto !important;
  bottom: auto !important;
  transform: none !important;
  max-width: none;
  margin: 0;
  padding: 24px 20px 30px;
  text-align: center;
  background: linear-gradient(120deg,#142f53,#1b5276 52%,#252f62);
}
.home.reference-theme .hero.hero-video .hero-message p { margin: 0 0 10px; }

.hero-video .hero-video-controls button svg { display: block; width: 18px; height: 18px; flex: none; }
.hero-video .hero-video-controls .video-icon-pause,
.hero-video .hero-video-controls .video-icon-audible { display: none; }
.hero-video .hero-video-controls button[data-playing="true"] .video-icon-play,
.hero-video .hero-video-controls button[aria-pressed="true"] .video-icon-muted { display: none; }
.hero-video .hero-video-controls button[data-playing="true"] .video-icon-pause,
.hero-video .hero-video-controls button[aria-pressed="true"] .video-icon-audible { display: block; }
/* Edge-to-edge, viewport-aware video banner, inspired by the reference site. */
@media(max-width:760px) {
  .hero-video .hero-video-frame { max-height: none; }
  .hero-video .hero-video-controls { right: 8px; bottom: 6px; max-width: calc(100% - 16px); justify-content: flex-end; padding: 0; }
  .hero-video .hero-video-controls button { flex: 0 0 44px; width: 44px; height: 44px; min-height: 44px; padding: 13px; }
  .hero-video .hero-video-status { text-align: center; }
  .home.reference-theme .hero.hero-video .hero-message { padding: 20px 16px 25px; }
}
