.video-hero {
  --video-hero-glass-border: var(--color-border-overlay);
  --video-hero-glass-surface: var(--color-surface-glass);
  --video-hero-layout-bottom-default: 3.5rem;
  --video-hero-layout-bottom-spacing: var(--video-hero-layout-bottom-default);

  position: relative;
  overflow: hidden;
  background-color: var(--color-surface-subtle);
  color: var(--color-text-default);
}

.video-hero--layout-bottom-none {
  --video-hero-layout-bottom-spacing: 0rem;
}

.video-hero--layout-bottom-compact {
  --video-hero-layout-bottom-spacing: clamp(1rem, 3vw, 1.5rem);
}

.video-hero--layout-bottom-generous {
  --video-hero-layout-bottom-spacing: clamp(4.5rem, 8vw, 6rem);
}

.video-hero--layout-bottom-overlap {
  --video-hero-layout-bottom-spacing: 0rem;
  --video-hero-layout-overlap: clamp(2rem, 4vw, 4.5rem);
  --video-hero-layout-overlap-clearance: clamp(1rem, 1.25vw, 1.5rem);

  z-index: 1;
  overflow: visible;
  margin-bottom: calc(
    var(--video-hero-layout-overlap)
    + var(--video-hero-layout-overlap-clearance)
  );
}

.video-hero__media {
  position: relative;
  height: clamp(20rem, 78vw, 27rem);
  overflow: hidden;
  background-color: #050609;
  isolation: isolate;
}

.video-hero__media::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(to bottom, rgb(3 5 10 / 4%) 48%, rgb(3 5 10 / 48%) 100%),
    linear-gradient(to right, rgb(3 5 10 / 12%), transparent 58%);
  content: "";
  pointer-events: none;
}

.video-hero__video,
.video-hero__poster,
.video-hero__placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.video-hero__video,
.video-hero__poster {
  object-fit: cover;
  object-position: center;
}

.video-hero__video {
  pointer-events: none;
}

.video-hero__placeholder {
  display: block;
  background:
    radial-gradient(circle at 72% 28%, rgb(0 183 189 / 28%), transparent 30%),
    linear-gradient(135deg, #050609 0%, #10156b 58%, #171c8f 100%);
}

.video-hero__inner {
  position: relative;
  z-index: 2;
  width: min(100%, 144rem);
  padding: 0 1rem var(--video-hero-layout-bottom-spacing);
  margin: -3.5rem auto 0;
}

.video-hero__layout {
  display: grid;
  align-items: stretch;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--video-hero-glass-border);
  border-radius: 1.5rem;
  background-color: var(--video-hero-glass-surface);
  background-image:
    radial-gradient(ellipse 80% 42% at 14% 0%, rgb(255 255 255 / 76%), transparent 68%),
    linear-gradient(145deg, rgb(255 255 255 / 48%), rgb(218 237 240 / 24%));
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 92%),
    inset 0 -1px 0 rgb(119 151 158 / 18%),
    0 1.25rem 3.5rem rgb(11 19 31 / 20%);
  -webkit-backdrop-filter: blur(24px) saturate(155%) contrast(1.02);
  backdrop-filter: blur(24px) saturate(155%) contrast(1.02);
}

.video-hero--layout-bottom-overlap .video-hero__layout {
  transform: translateY(var(--video-hero-layout-overlap));
}

.video-hero__panel {
  position: relative;
  padding: 1.5rem 1.25rem;
  isolation: isolate;
}

.video-hero__panel::after {
  position: absolute;
  z-index: -1;
  right: -4rem;
  bottom: -6rem;
  width: 14rem;
  border-radius: 50%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgb(0 183 189 / 18%), transparent 68%);
  content: "";
  filter: blur(0.75rem);
  pointer-events: none;
}

.video-hero__content {
  max-width: 49rem;
}

.video-hero__eyebrow {
  margin: 0 0 0.75rem;
  color: var(--color-text-default);
  font-size: var(--font-size-label);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.3;
  text-transform: uppercase;
}

.video-hero__title {
  margin: 0;
  color: var(--color-text-heading);
  font-size: clamp(2.375rem, 11vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.02;
  text-wrap: balance;
}

.video-hero__summary {
  display: grid;
  align-items: center;
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border-muted);
  margin-top: 1.25rem;
}

.video-hero__body {
  max-width: 42rem;
  margin: 0;
  color: var(--color-text-default);
  font-size: 1rem;
  line-height: 1.5;
  text-wrap: pretty;
}

.video-hero__cta {
  width: 100%;
}

.video-hero__actions {
  padding: 1.5rem 1.25rem;
  border-top: 1px solid var(--color-border-muted);
}

.video-hero__actions-heading {
  margin: 0 0 0.5rem;
  color: var(--color-text-default);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.3;
  text-transform: uppercase;
}

.video-hero__action-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.video-hero__action-item + .video-hero__action-item {
  border-top: 1px solid var(--color-border-muted);
}

.video-hero__action {
  display: grid;
  min-height: 3.25rem;
  align-items: center;
  padding: 0.5rem 0;
  color: var(--color-text-default);
  column-gap: 0.625rem;
  grid-template-columns: 1.5rem minmax(0, 1fr) auto;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease;
}

.video-hero__action-icon {
  display: grid;
  width: 1.5rem;
  height: 1.5rem;
  color: var(--color-interactive);
  place-items: center;
}

.video-hero__action-icon svg {
  width: 1.125rem;
  height: 1.125rem;
  fill: none;
  stroke: currentcolor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
}

.video-hero__action-label {
  min-width: 0;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.25;
}

.video-hero__action-arrow {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentcolor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  transition: transform 180ms ease;
}

.video-hero__cta:focus-visible,
.video-hero__action:focus-visible {
  outline: 3px solid var(--color-state-info);
  outline-offset: -3px;
}

@media (min-width: 600px) {
  .video-hero__media {
    height: 34rem;
  }
}

@media (min-width: 600px) {
  .video-hero__inner {
    padding-inline: clamp(1.5rem, 5.25vw, 4rem);
    margin-top: -5rem;
  }
}

@media (min-width: 600px) {
  .video-hero__panel {
    padding: clamp(2rem, 4vw, 3rem);
  }
}

@media (min-width: 600px) {
  .video-hero__title {
    font-size: clamp(2.75rem, 6vw, 3.5rem);
  }
}

@media (min-width: 600px) {
  .video-hero__body {
    font-size: 1.125rem;
  }
}

@media (min-width: 600px) {
  .video-hero__cta {
    width: auto;
    min-width: 11rem;
  }
}

@media (min-width: 900px) {
  .video-hero {
    --video-hero-layout-bottom-default: clamp(3rem, 5vw, 5rem);

    min-height: clamp(43rem, 54vw, 58rem);
    background-color: #050609;
  }
}

@media (min-width: 900px) {
  .video-hero__media {
    position: absolute;
    height: 100%;
    inset: 0;
  }
}

@media (min-width: 900px) {
  .video-hero__media::after {
    background:
      linear-gradient(to top, rgb(3 5 10 / 56%) 0%, transparent 56%),
      linear-gradient(to right, rgb(3 5 10 / 22%), transparent 62%);
  }
}

@media (min-width: 900px) {
  .video-hero__inner {
    display: flex;
    min-height: inherit;
    align-items: flex-end;
    padding-top: clamp(3rem, 5vw, 5rem);
    margin-top: 0;
  }
}

@media (min-width: 900px) {
  .video-hero__layout {
    width: 100%;
    min-height: clamp(20rem, 21.3vw, 23rem);
    align-items: stretch;
    grid-template-columns: minmax(0, 3fr) minmax(18rem, 2fr);
  }
}

@media (min-width: 900px) {
  .video-hero__panel {
    padding: clamp(2rem, 2.7vw, 2.875rem);
  }
}

@media (min-width: 900px) {
  .video-hero__title {
    font-size: clamp(3rem, 3.3vw, 3.5rem);
  }
}

@media (min-width: 900px) {
  .video-hero__actions {
    padding: clamp(2rem, 2.7vw, 2.875rem);
    border-top: 0;
    border-left: 1px solid rgb(51 51 51 / 18%);
  }
}

@media (min-width: 900px) {
  .video-hero__summary {
    align-items: end;
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

@media (min-width: 900px) {
  .video-hero__body {
    font-size: 1rem;
  }
}

@media (min-width: 900px) {
  .residential-page .video-hero {
    --video-hero-layout-bottom-default: clamp(2rem, 3vw, 3rem);

    min-height: clamp(34rem, 45vw, 46rem);
  }
}

@media (min-width: 900px) {
  .residential-page .video-hero__inner {
    padding-top: clamp(2rem, 3vw, 3rem);
  }
}

@media (min-width: 900px) {
  .residential-page .video-hero__layout {
    min-height: clamp(18rem, 21vw, 21rem);
  }
}

@media (min-width: 1200px) {
  .video-hero__inner {
    padding-inline: clamp(3rem, 6.5vw, 7.75rem);
  }
}

@media (hover: hover) {
  .video-hero__action:hover {
    background-color: rgb(255 255 255 / 68%);
    color: var(--color-interactive);
  }
}

@media (hover: hover) {
  .video-hero__action:hover .video-hero__action-arrow {
    transform: translateX(0.2rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .video-hero__cta {
    transition: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .video-hero__action {
    transition: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .video-hero__action-arrow {
    transition: none;
  }
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .video-hero__layout {
    background-color: rgb(245 248 249 / 96%);
  }
}

/* An interactive player needs an unobscured frame and native provider controls. */
.video-hero--player {
  min-height: 0;
  background-color: var(--color-surface-subtle);
}

.video-hero--player .video-hero__media {
  position: relative;
  height: auto;
  max-width: 80rem;
  margin-inline: auto;
  aspect-ratio: 16 / 9;
}

.video-hero--player .video-hero__media::after {
  content: none;
}

.video-hero--player .video-hero__inner {
  min-height: 0;
  margin-top: 0;
  padding-top: 1.5rem;
}
