/* Owner-supplied full 16:9 video. Scope is only the existing homepage hero. */
html #main [data-owner-bernese] {
  --owner-film-bg: #f6fbf3;
  --owner-film-width: 65%;
  min-height: max(500px, 36.5625vw);
  height: auto;
  overflow: hidden;
  background: linear-gradient(0deg, var(--hc-page) 0%, transparent 22%),
    linear-gradient(90deg, var(--hc-page) 22%, var(--owner-film-bg) 72%);
}
html[data-portal-theme="dark"] #main [data-owner-bernese] {
  --owner-film-bg: var(--hc-page);
  background: var(--hc-page);
}
html[data-portal-theme="dark"] #main [data-owner-bernese] .osiris-hero-r3__stage {
  isolation: isolate;
  background: var(--hc-page);
}
/* The video's black maps to the page background, with shadows kept in the blend. */
html[data-portal-theme="dark"] #main [data-owner-bernese] :is(.osiris-hero-r3__video, .osiris-hero-r3__symbol) {
  mix-blend-mode: screen;
}
html #main [data-owner-bernese] .osiris-hero-r3__inner {
  width: min(100%, 1640px);
  min-height: inherit;
  padding: 32px clamp(20px, 6.75vw, 110px);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  z-index: 2;
}
html #main [data-owner-bernese] .osiris-hero-r3__copy {
  position: relative;
  inset: auto;
  width: 36%;
  max-width: 620px;
  transform: none;
  isolation: isolate;
  text-shadow: 0 1px 3px var(--hc-page), 0 0 12px var(--hc-page);
}
html #main [data-owner-bernese] .osiris-hero-r3__copy::before {
  content: "";
  position: absolute;
  inset: -12px -16px -12px -20px;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(90deg, var(--hc-page) 0%, var(--hc-page) 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 12px, #000 calc(100% - 12px), transparent);
  mask-image: linear-gradient(180deg, transparent, #000 12px, #000 calc(100% - 12px), transparent);
}
html #main [data-owner-bernese] .osiris-hero-r3__eyebrow { margin-bottom: 14px; }
html #main [data-owner-bernese] .osiris-hero-r3__copy h1 {
  font-size: clamp(52px, 5.9vw, 96px);
  line-height: 1.02;
}
html #main [data-owner-bernese] .osiris-hero-r3__lead {
  margin-top: 18px;
  max-width: 30ch;
  font-size: clamp(18px, 1.4vw, 24px);
  line-height: 1.45;
}
html #main [data-owner-bernese] .hc-hero-experience { margin-top: 20px; gap: 18px; }
html #main [data-owner-bernese] .hc-hero-experience .hc-experience-years > strong { font-size: 50px; }
html #main [data-owner-bernese] .hc-hero-experience .hc-experience-copy { font-size: 13px; }
html #main [data-owner-bernese] .osiris-hero-r3__stage {
  inset: auto 0 auto auto;
  top: 50%;
  width: var(--owner-film-width);
  height: auto;
  aspect-ratio: 16 / 9;
  transform: translateY(-50%);
  overflow: visible;
}
/* Fade the frame, not the controls. Do not crop, key, filter or recolour the dogs. */
html #main [data-owner-bernese] :is(.osiris-hero-r3__video, .osiris-hero-r3__symbol) {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  object-position: center;
  transform: none;
  clip-path: none;
  overflow: visible;
  pointer-events: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent), linear-gradient(180deg, transparent, #000 3%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent), linear-gradient(180deg, transparent, #000 3%, #000 94%, transparent);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
html #main [data-owner-bernese] .osiris-hero-r3__canvas { display: none; }
html #main [data-owner-bernese] .osiris-hero-r3__video { opacity: 0; }
html #main [data-owner-bernese] .osiris-hero-r3__symbol { opacity: 1; }
html #main [data-owner-bernese][data-frame-ready="true"] .osiris-hero-r3__video { opacity: 1; }
html #main [data-owner-bernese][data-frame-ready="true"] .osiris-hero-r3__symbol { opacity: 0; }
html #main [data-owner-bernese] .osiris-hero-r3__toggle {
  inset: 12px 12px auto auto;
  width: auto;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--hc-line);
  border-radius: 999px;
  background: var(--hc-surface);
  color: var(--hc-accent-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  z-index: 3;
  opacity: 1;
}
html #main [data-owner-bernese] .osiris-hero-r3__toggle > svg { width: 18px; height: 18px; flex: 0 0 18px; }
html #main [data-owner-bernese] .osiris-hero-r3__toggle > span { font-size: 12px; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
html #main [data-owner-bernese] .osiris-hero-r3__fallback { inset: auto 0 auto auto; top: 50%; width: 65%; height: auto; aspect-ratio: 16 / 9; transform: translateY(-50%); }
html #main [data-owner-bernese] .osiris-hero-r3__fallback img { object-fit: contain; }
@media (min-width: 691px) and (max-width: 1000px) {
  html #main [data-owner-bernese] { min-height: 440px; }
  html #main [data-owner-bernese] .osiris-hero-r3__copy { width: 44%; }
  html #main [data-owner-bernese] .osiris-hero-r3__copy h1 { font-size: clamp(40px, 5.4vw, 54px); }
  html #main [data-owner-bernese] .osiris-hero-r3__lead { font-size: 16px; }
  html #main [data-owner-bernese] .hc-hero-experience { gap: 12px; }
  html #main [data-owner-bernese] .hc-hero-experience .hc-experience-years > strong { font-size: 40px; }
  html #main [data-owner-bernese] .hc-hero-experience .hc-experience-copy { font-size: 11px; }
}
@media (max-width: 690px) {
  html #main [data-owner-bernese] {
    min-height: 0;
    background: linear-gradient(180deg, var(--owner-film-bg) 0%, var(--hc-page) 58%, var(--hc-page) 100%);
  }
  html #main [data-owner-bernese] .osiris-hero-r3__stage,
  html #main [data-owner-bernese] .osiris-hero-r3__fallback { inset: 0 0 auto; width: 100%; height: auto; aspect-ratio: 16 / 9; transform: none; }
  html #main [data-owner-bernese] .osiris-hero-r3__inner { min-height: 0; display: block; padding: calc(56.25vw - 6px) 20px 24px; }
  html #main [data-owner-bernese] .osiris-hero-r3__copy { width: 100%; max-width: none; }
  html #main [data-owner-bernese] .osiris-hero-r3__copy::before { inset: 0 -20px -24px; background: var(--hc-page); -webkit-mask-image: none; mask-image: none; }
  html #main [data-owner-bernese] .osiris-hero-r3__eyebrow { font-size: 10px; line-height: 1.5; margin-bottom: 8px; }
  html #main [data-owner-bernese] .osiris-hero-r3__copy h1 { font-size: clamp(32px, 9vw, 38px); line-height: 1.02; }
  html #main [data-owner-bernese] .osiris-hero-r3__lead { max-width: 30ch; margin-top: 10px; font-size: 16px; line-height: 1.4; }
  html #main [data-owner-bernese] .hc-hero-experience { margin-top: 12px; gap: 14px; }
  html #main [data-owner-bernese] .hc-hero-experience .hc-experience-years { gap: 5px; }
  html #main [data-owner-bernese] .hc-hero-experience .hc-experience-years > strong { font-size: 36px; }
  html #main [data-owner-bernese] .hc-hero-experience .hc-experience-years > span { font-size: 11px; }
  html #main [data-owner-bernese] .hc-hero-experience .hc-experience-copy { font-size: 12px; line-height: 1.4; }
  html #main [data-owner-bernese] .osiris-hero-r3__toggle { top: 12px; left: 12px; right: auto; bottom: auto; width: 44px; padding: 0; border-radius: 50%; }
  html #main [data-owner-bernese] .osiris-hero-r3__toggle > span { display: none; }
}
