@import url("variables.css");
@import url("resets.css");
@import url("typography.css");

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  display: none;
  margin: 0;
  background-color: var(--background-color);
  color: var(--body-text-color);
  font-family: var(--body-font-family);
  font-size: var(--body-font-size);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  &.appear {
    display: block;
  }
}

header {
  height: var(--nav-height);
}

header .header,
footer .footer {
  visibility: hidden;

  &[data-block-status="loaded"] {
    visibility: visible;
  }
}

/* Target JSON offers (scripts/target-offers.js): a targetable block waits hidden until its
   offer is applied or ruled out, so the authored copy never shows before the variant. */
.target-prehide main [data-target-scope]:not([data-target-offer="applied"], [data-target-offer="none"]) {
  visibility: hidden;
}

input,
textarea,
select,
button {
  font: inherit;
}

/* buttons */
p.button-wrapper {
  margin: var(--spacing-sm) 0;
}


a.button[aria-disabled="true"],
button.button:disabled {
  cursor: not-allowed;
  pointer-events: none;
}

/* The style variants below are mutually exclusive classes, so the specificity order between
   them never matters; the rule only trips on the :is() groups. */
/* stylelint-disable no-descending-specificity */
.button {
  border: 2px solid;
  border-color: var(--button-color);
  border-radius: var(--button-border-radius);
  display: flex;
  align-items: center;
  font-weight: var(--button-font-weight);
  font-size: var(--button-font-size);
  justify-content: center;
  padding-inline: var(--button-padding-inline);
  height: var(--button-height);
  transition: all var(--transition-time-default) var(--transition-type-default);
  outline: 2px solid transparent;
  text-decoration: none;

  &:is(.primary, .primary-green, .primary-blue) {
    background-color: var(--button-color);
    color: var(--button-text-color);

    &:hover,
    &:focus,
    &:active {
      border-color: var(--button-color-hover);
      background-color: var(--button-color-hover);
      color: var(--button-text-color);
      text-decoration: none;
    }
  }

  &:is(.primary.green-alternate, .primary-green) {
    border-color: var(--button-primary-green-color);
    background-color: var(--button-primary-green-color);
    color: var(--neutral-900);

    &:hover,
    &:focus,
    &:active {
      background-color: var(--button-primary-green-hover-color);
      border-color: var(--button-primary-green-hover-color);
      color: var(--button-primary-green-hover-text-color);
    }
  }

  &:is(.primary.blue-alternate, .primary-blue) {
    border-color: var(--button-primary-blue-color);
    background-color: var(--button-primary-blue-color);
    color: var(--button-primary-blue-text-color, var(--color-white));

    &:hover,
    &:focus,
    &:active {
      background-color: var(--button-primary-blue-hover-color);
      border-color: var(--button-primary-blue-hover-color);
      color: var(--button-primary-blue-text-color, var(--color-white));
    }
  }

  &:is(.secondary, .secondary-green, .secondary-blue) {
    border-color: var(--button-color);
    background-color: var(--button-secondary-color);
    color: var(--button-secondary-text-color);

    &:hover,
    &:focus,
    &:active {
      border-color: var(--button-color-hover);
      background-color: var(--button-color-hover);
      color: var(--button-secondary-text-color-hover);
      text-decoration: none;
    }
  }

  &:is(.secondary.green-alternate, .secondary-green) {
    border-color: var(--button-secondary-green-color);

    &:hover,
    &:focus,
    &:active {
      border-color: var(--button-secondary-green-hover-color);
      background-color: var(--button-secondary-green-hover-color);
      color: var(--button-secondary-text-color-hover);
    }
  }

  &:is(.secondary.blue-alternate, .secondary-blue) {
    border-color: var(--button-secondary-blue-color);

    &:hover,
    &:focus,
    &:active {
      border-color: var(--button-secondary-blue-hover-color);
      background-color: var(--button-secondary-blue-hover-color);
      color: var(--button-secondary-text-color-hover);
    }
  }

  &:is(.tertiary, .tertiary-green, .tertiary-blue) {
    display: inline-flex;
    align-items: center;
    border: none;
    background: none;
    height: auto;
    padding: 0.4rem 0.2rem;
    gap: 0.8rem;
    color: var(--button-tertiary-color);

    &::after {
      content: '';
      display: block;
      flex-shrink: 0;
      width: 1.6rem;
      height: 1.6rem;
      mask: url('/icons/button-tertiary-arrow-right.svg') no-repeat center / contain;
      background-color: currentcolor;
    }

    &:hover,
    &:focus,
    &:active {
      --button-tertiary-color: var(--button-tertiary-hover-color);

      color: var(--button-tertiary-color);
      text-underline-offset: 3px;
      gap: 1.6rem;
    }

    &.disabled,
    &[aria-disabled="true"],
    &:disabled {
      --button-tertiary-color: var(--button-color-disabled);

      border: none;
      background: none;
    }
  }

  &:is(.tertiary.green-alternate, .tertiary-green) {
    --button-tertiary-color: var(--button-tertiary-green-color);

    &:hover,
    &:focus,
    &:active {
      --button-tertiary-color: var(--button-tertiary-green-hover-color);
    }
  }

  &:is(.tertiary.blue-alternate, .tertiary-blue) {
    --button-tertiary-color: var(--button-tertiary-blue-color);

    &:hover,
    &:focus,
    &:active {
      --button-tertiary-color: var(--button-tertiary-blue-hover-color);
    }
  }

  &.primary.disabled,
  &.primary[aria-disabled="true"],
  &.primary:disabled,
  &.primary-green.disabled,
  &.primary-green[aria-disabled="true"],
  &.primary-green:disabled,
  &.primary-blue.disabled,
  &.primary-blue[aria-disabled="true"],
  &.primary-blue:disabled {
    border-color: var(--button-color-disabled);
    background-color: var(--button-color-disabled);
    color: var(--button-disabled-text-color);
  }

  &.secondary.disabled,
  &.secondary[aria-disabled="true"],
  &.secondary:disabled,
  &.secondary-green.disabled,
  &.secondary-green[aria-disabled="true"],
  &.secondary-green:disabled,
  &.secondary-blue.disabled,
  &.secondary-blue[aria-disabled="true"],
  &.secondary-blue:disabled {
    border-color: var(--button-color-disabled);
    background-color: transparent;
    color: var(--button-color-disabled);
  }

  &:focus {
    outline: 2px solid var(--button-outline-color);
    outline-offset: 2px;
  }
}
/* stylelint-enable no-descending-specificity */

/* links */
a {
  color: var(--link-color);
  text-decoration: underline;
  overflow-wrap: break-word;

  &:hover {
    color: var(--link-hover-color);
    text-decoration: none;
  }
}

.button-wrapper {
  display: grid;
  gap: var(--gap);

  @media (width < 600px) {
    width: 100%;
  }

  @media (width >= 600px) {
    display: flex;
  }
}

main {
  & img {
    max-width: 100%;
    width: auto;
    height: auto;
  }

  & > .section {
    &:first-of-type {
      margin-top: 0;
    }
  }
}

/* The announcement banner splices a fragment page's already-decorated .section content in
   directly (see announcement-banner.js), outside of <main> -- included here alongside main
   so its authored section backgrounds/spacing/textAlign still apply. Still excludes
   header/footer, which is the reason this uses :where(...) instead of a bare "main .section"
   or ", .announcement-banner .section" (both would work, but this stays specificity-neutral). */
:where(main, .announcement-banner) .section {
  display: grid;
  gap: var(--block-gap);
  padding-block: var(--block-padding);

  /* Contained to sections that actually have a decorative image so other sections
     (e.g. ones relying on overflow for sticky-nav dropdowns) are unaffected. */
  &:has(.section-decorative-image) {
    position: relative;
    overflow: hidden;
  }

  &:has(> div:only-child) {
    gap: 0;
  }

  &[data-decorativeimageposition="background-texture"] {
    --section-texture: none;

    position: relative;
    isolation: isolate;

    &::before {
      content: "";
      position: absolute;
      inset: 0;
      z-index: -1;
      pointer-events: none;
      background: var(--section-texture) center top / 100rem auto repeat-y;

      @media (width >= 600px) {
        background-size: max(200rem, 100%) auto;
      }
    }
  }

  /* A Background Image or Background Swirl section can stack several eyebrow + title groups
     on one image (the homepage runs Comparison, Platform and Solutions on one background).
     splitSectionGroups (scripts.js) gives each group its own wrapper; each later group
     starts with the space two stacked sections would have. :first-of-type skips the
     decorative <img>. */
  &[data-decorativeimage="true"]:is([data-decorativeimageposition="background"], [data-decorativeimageposition="background-swirl"]) {
    & > .default-content-wrapper.section-group-start:not(:first-of-type) {
      margin-top: max(0px, calc(2 * var(--section-padding, var(--block-padding)) - var(--block-gap)));
    }
  }

  &[data-spacing="none"] {
    --section-padding: 0px;

    padding-block: var(--section-padding);
  }

  &[data-spacing="small"] {
    --section-padding: var(--spacing-sm);

    padding-block: var(--section-padding);
  }

  &[data-spacing="medium"] {
    --section-padding: var(--block-padding);

    padding-block: var(--section-padding);
  }

  /* Prism mobile layouts give every section 80px; 120px applies from the desktop breakpoint. */
  &[data-spacing="large"] {
    --section-padding: var(--spacing-xxl);

    padding-block: var(--section-padding);

    @media (width >= 1200px) {
      --section-padding: var(--spacing-xxxl);
    }
  }

  &.white {
    background-color: var(--white);

    --button-secondary-color: var(--color-white);
  }

  &.highlight {
    background-color: var(--blue-200);

    --button-secondary-color: var(--color-white);
  }

  &.cards-container:has(.cards.customer-ratings) {
    & > .default-content-wrapper > :last-child {
      margin-bottom: 0;
    }

    & > .default-content-wrapper :is(h1, h2) {
      color: var(--cards-rating-heading-color);
      letter-spacing: -0.01em;
    }

    &.highlight-gradient {
      background: var(--cards-rating-section-bg);
    }

    @media (width >= 1920px) {
      --block-gutter: var(--spacing-xxxl);
    }
  }

  &.highlight-gradient {
    background: var(--gradient-highlight);

    --button-secondary-color: var(--color-white);
  }

  &.dark,
  &.dark-gradient,
  &.dark-teal,
  &.bg-000203 {
    --bento-bg: var(--neutral-800);
    --button-text-color: var(--neutral-900);
    --button-color: var(--color-white);
    --button-color-hover: var(--color-lime);
    --button-secondary-color: var(--neutral-900);
    --button-secondary-text-color: var(--color-white);
    --button-tertiary-color: var(--color-white);
    --button-tertiary-hover-color: var(--color-lime);
    --button-primary-blue-color: var(--blue-400);
    --button-primary-blue-hover-color: var(--blue-300);
    --button-primary-blue-text-color: var(--neutral-900);
    --button-primary-green-hover-color: var(--color-lime);
    --button-primary-green-hover-text-color: var(--neutral-900);
    --button-secondary-green-hover-color: var(--color-lime);
    --button-secondary-blue-color: var(--blue-400);
    --button-secondary-blue-hover-color: var(--blue-300);
    --button-tertiary-blue-color: var(--blue-400);
    --button-tertiary-blue-hover-color: var(--blue-300);
    --button-tertiary-green-color: var(--color-veeam-primary-green);
    --button-tertiary-green-hover-color: var(--color-lime);
    --button-outline-color: var(--color-white);
    --eyebrow-text-color: var(--white);
    --heading-text-color: var(--white);
    --body-text-color: var(--color-white);
    --columns-stats-divider-color: var(--neutral-700);
    --columns-stats-compact-panel-bg: rgb(255 255 255 / 10%);
    --columns-stats-compact-panel-border: 1px solid rgb(255 255 255 / 18%);
    --columns-stats-compact-label-color: var(--neutral-300);
    --stats-list-value-color: var(--color-lime);
    --button-secondary-text-color-hover: var(--neutral-900);
    --coming-soon-title-color: var(--color-white);
    --coming-soon-label-color: var(--neutral-500);
    --coming-soon-image-filter: grayscale(1) brightness(0) invert(1);
    --card-inner-box-shadow: 0 8px 25px 0 var(--color-black);
    --stat-bento-card-bg: var(--stat-bento-card-bg-dark);
    --stat-bento-card-border-color: var(--stat-bento-card-border-color-dark);
    --stat-bento-divider-color: var(--stat-bento-divider-color-dark);
    --stat-bento-card-edge: var(--stat-bento-card-edge-dark);
    --stat-bento-card-shadow: var(--stat-bento-card-shadow-dark);
    --stat-bento-card-backdrop: var(--stat-bento-card-backdrop-dark);
    --stat-bento-gradient-sections: var(--stat-bento-gradient-sections-dark);
    --stat-bento-gradient-icons: var(--stat-bento-gradient-icons-dark);
    --stat-bento-gradient-generic: var(--stat-bento-gradient-generic-dark);
  }

  &.dark {
    background: var(--neutral-800);
  }

  &.dark-gradient {
    background: var(--gradient-dark-green), var(--neutral-900);
  }

  &.dark-teal {
    background: var(--gradient-dark-teal);
  }

  &.bg-000203 {
    background: #000203;
  }

  & > div {
    max-width: var(--max-width);
    margin: auto;
    padding-inline: var(--block-gutter);
    position: relative;
    width: 100%;

    &.default-content-wrapper {
      padding-inline: var(--block-gutter);
      position: relative;
    }

    &.solutions-explorer-container {
      background-color: var(--neutral-200);
    }
  }

  /* In Universal Editor, decorateRichtext (editor-support-rte.js) wraps the button-wrapper
     in a [data-aue-type="richtext"] div; :where() keeps that hop specificity-neutral.
     justify-items covers the grid used below 600px. */
  &[data-textalign="center"] {
    & > .default-content-wrapper {
      text-align: center;
    }

    /* Cap body copy at 1000px so long paragraphs don't span the full headline width
       (PRAEM-535). Descendant, not child, so it also reaches paragraphs inside the
       Universal Editor richtext wrapper div. Buttons and images keep their own width. */
    & > .default-content-wrapper p:not(.button-wrapper, :has(> picture)) {
      max-width: 100rem;
      margin-inline: auto;
    }

    & > .default-content-wrapper > .button-wrapper,
    & > .default-content-wrapper > :where([data-aue-type="richtext"]) > .button-wrapper {
      justify-content: center;
      justify-items: center;
    }
  }

  &[data-textalign="right"] {
    & > .default-content-wrapper {
      text-align: right;
    }

    & > .default-content-wrapper > .button-wrapper,
    & > .default-content-wrapper > :where([data-aue-type="richtext"]) > .button-wrapper {
      justify-content: flex-end;
      justify-items: end;
    }
  }

  /* The editor can set the paragraph back to display:block, which drops
     justify-content and stretches each button across the row. Keep the
     authored row a flex row. Left is the start of that row. */
  html.adobe-ue-edit &:not([data-textalign="cta-right"]) .default-content-wrapper .button-wrapper {
    display: flex;
    justify-content: flex-start;
  }

  /* Same stretch, on CTA Right Align: keep the buttons their own width and
     on the right, instead of full-width bars through the copy. */
  html.adobe-ue-edit &[data-textalign="cta-right"] .default-content-wrapper .button-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    width: max-content;
    max-width: 100%;
    margin-inline-start: auto;
  }

  html.adobe-ue-edit &[data-textalign="center"] .default-content-wrapper .button-wrapper {
    justify-content: center;
  }

  html.adobe-ue-edit &[data-textalign="right"] .default-content-wrapper .button-wrapper {
    justify-content: flex-end;
  }

  @media (width >= 900px) {
    /* decorateCtaRight (scripts.js) wraps everything but the button-wrapper into
       .cta-right-text -- CSS Grid can't span a sibling across an arbitrary, auto-placed
       number of text rows it doesn't own (grid-row: 1 / -1 resolves against the *explicit*
       grid, which has no declared row tracks here, so it collapses back to row 1 instead of
       growing with the content). With exactly two items, align-items: center on the grid
       naturally centers the shorter one against the taller one's row height. Only the
       wrapper that holds .cta-right-text gets the grid; other text in the section, or an
       intro with no CTA, stays in normal flow. */
    &[data-textalign="cta-right"] {
      & > .default-content-wrapper:has(> .cta-right-text) {
        display: grid;
        grid-template-columns: auto auto;
        align-items: center;
        column-gap: var(--block-gap);

        & > .cta-right-text {
          grid-column: 1 / 2;
        }

        & > :is(.button-wrapper, [data-aue-type="richtext"]:has(> .button-wrapper:only-child)) {
          grid-column: 2 / 3;
        }

        & > .button-wrapper,
        & > :where([data-aue-type="richtext"]) > .button-wrapper {
          gap: 1.6rem;
          margin: 0;
          display: grid;
          justify-items: flex-end;
        }
      }
    }

    /* Editor: the richtext field is one element, so the published two-item grid
       never sees the buttons. Explicit rows let the button row span the copy
       and center against it without moving nodes out of the field. */
    html.adobe-ue-edit &[data-textalign="cta-right"] {
      & > .default-content-wrapper:has([data-aue-type="richtext"]) {
        display: block;
      }

      & > .default-content-wrapper:not(:has([data-aue-type="richtext"])),
      & [data-aue-type="richtext"] {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-rows: repeat(16, auto);
        column-gap: var(--block-gap);

        & > :not(.button-wrapper) {
          grid-column: 1;
        }

        & > .button-wrapper {
          grid-column: 2;
          grid-row: 1 / -1;
          place-self: center end;
        }
      }
    }

    &[data-textalign="split"] {
      grid-template-columns: 1fr 1fr;
      justify-content: center;

      &.pricing-cards-container {
        padding-inline: var(--block-gutter);
      }

      /* Columns are counted without the auto breadcrumb (buildAutoBlocks in scripts.js
         prepends it to the first section whenever the page has an indexed parent).
         Counted as a column, it pushed the copy right and the form onto its own row. */
      & > div:not(.breadcrumbs-wrapper) {
        max-width: calc(var(--max-width) / 2 - var(--block-gutter) - 2.4rem);
        margin: 0;
        padding-inline: 0;

        &:nth-child(1 of :not(.breadcrumbs-wrapper)) {
          margin-inline-start: auto;
        }

        &:nth-child(2 of :not(.breadcrumbs-wrapper)) {
          margin-inline-end: auto;
        }

        &:nth-child(n+3 of :not(.breadcrumbs-wrapper)) {
          grid-column: 1 / -1;
          max-width: unset;
        }
      }

      /* Spans both columns, lined up with the outer edges of the copy and the form. */
      & > .breadcrumbs-wrapper {
        grid-column: 1 / -1;
        width: 100%;
        max-width: calc(var(--max-width) - 2 * var(--block-gutter) - 4.8rem + var(--block-gap));
        margin-inline: auto;
        padding-inline: 0;
      }
    }
  }

  &.sticky-nav-container,
  &.logo-bar-container {
    padding-block: 0;
  }

  &.customer-stories-container > div {
    min-width: 0;
  }

  &.stat-bento-container {
    gap: var(--spacing-md);

    & > .default-content-wrapper > :last-child {
      margin-block-end: 0;
    }

    @media (width >= 1440px) {
      gap: var(--block-gap);
    }
  }

  &.stats-list-container {
    gap: var(--spacing-md);

    @media (width >= 900px) {
      gap: var(--block-gap);
    }
  }

  &.hero-container {
    padding-block: 0 var(--block-padding);
  }

  /* Split Layout: the auto breadcrumb sits in the section's top padding, 16px below the
     nav, and takes no height. This applies at every width, since the empty wrapper
     otherwise still adds the section gap where the breadcrumb is hidden. From 1024px,
     where it shows, the padding is at least 64px so it clears the columns. An authored
     Breadcrumbs block keeps its place in the section, so authors can select it. */
  &[data-textalign="split"]:has(> .breadcrumbs-wrapper) {
    position: relative;

    & > .breadcrumbs-wrapper:not(:has(> .breadcrumbs:not([data-breadcrumb-mode="auto"]))) {
      position: absolute;
      z-index: 2;
      inset-block-start: 0;
      inset-inline: 0;

      @media (width >= 1024px) {
        .breadcrumbs {
          padding-block-end: 0;
        }

        li {
          line-height: 2.4rem;
        }
      }
    }

    @media (width >= 1024px) {
      &:has(> .breadcrumbs-wrapper > .breadcrumbs[data-breadcrumb-mode="auto"]:not([hidden])) {
        padding-block-start: max(var(--section-padding, var(--block-padding)), var(--size-64));
      }
    }
  }

  /* Sits flush under the header like hero. min-width on the wrapper keeps the grid item
     from taking its auto minimum from the slide media, which would otherwise floor the
     section's width above the viewport at narrow desktop sizes. */
  &.homepage-hero-container {
    padding-block: 0;
  }

  &.homepage-hero-container > div {
    min-width: 0;
    max-width: unset;
    padding-inline: 0;
  }

  /* Above a hero the auto breadcrumb sits in the hero's top padding, 16px below the nav, and
     takes no height (Figma: Workloads template). Its empty wrapper is out of flow too, or it
     adds the section gap. An authored Breadcrumbs block keeps its place in the section. The
     z-index keeps the links above .hero-wrapper. From 1024px, where the breadcrumb shows,
     the hero has at least 64px of top padding to clear it. */
  &.hero-container > .breadcrumbs-wrapper:has(+ .hero-wrapper):not(:has(> .breadcrumbs:not([data-breadcrumb-mode="auto"]))) {
    position: absolute;
    z-index: 2;
    inset-block-start: 0;
    inset-inline: 0;
    margin-inline: auto;

    @media (width >= 1024px) {
      .breadcrumbs {
        padding-block-end: 0;
      }

      li {
        line-height: 2.4rem;
      }

      &:has(> .breadcrumbs:not([hidden])) + .hero-wrapper > .hero.block {
        padding-block-start: max(var(--block-padding), var(--size-64));
      }
    }
  }
}

/* Optional decorative graphic set via section metadata (Decorative Image / Decorative
   Image Position) -- see decorateSectionDecorativeImage in scripts.js. Negative z-index,
   not 0, so it paints behind a section's ordinary in-flow content without requiring every
   block to declare its own stacking context. */
.section-decorative-image {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  display: none;

  /* Every position, including Background Image, is the same decorative image:
     buildDecorativeImage() gives it an empty alt and aria-hidden. It shows from
     900px up, the same breakpoint comparison-card uses for its decorative
     background. Section style backgrounds, the repeating texture, and block
     content images are different elements and stay visible at every width. */
  @media (width >= 900px) {
    &[data-position="background"] {
      display: block;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center;
    }

    &[data-position="background-swirl"] {
      display: block;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: bottom;
    }

    &[data-position="right"] {
      display: block;
      top: 45%;
      left: 52%;
      right: 0;
      width: auto;
      max-height: 80%;
      transform: translateY(-50%);
      object-fit: contain;
    }

    &[data-position="right-full"] {
      display: block;
      top: 50%;
      left: 50%;
      right: 0;
      width: auto;
      height: 100%;
      max-height: 50%;
      transform: translateY(-50%);
    }

    &[data-position="top-left"] {
      display: block;
      top: 0;
      left: 0;
      max-width: 45%;
      max-height: 60%;
      width: auto;
      height: auto;
    }

    &[data-position="top-right"] {
      display: block;
      top: 0;
      right: 0;
      max-width: 45%;
      max-height: 60%;
      width: auto;
      height: auto;
    }

    &[data-position="bottom-left"] {
      display: block;
      bottom: 0;
      left: 0;
      max-width: 45%;
      max-height: 60%;
      width: auto;
      height: auto;
    }

    &[data-position="bottom-right"] {
      display: block;
      bottom: 0;
      right: 0;
      max-width: 45%;
      max-height: 60%;
      width: auto;
      height: auto;
    }

    &[data-position="bottom-full-contained"] {
      display: block;
      bottom: 0;
      left: 0;
      width: 100%;
      height: auto;
    }

    &[data-position="bottom-full-overflow"] {
      display: block;
      bottom: 0;
      left: 0;
      width: 100%;
      height: auto;

      /* % is relative to the image's own rendered height, not the section --
         a fixed px offset (e.g. -200px) pushes a short/wide graphic entirely
         past the section's overflow:hidden edge, making it invisible instead
         of just cropped. */
      transform: translateY(50%);
    }

    &[data-position="behind-media"] {
      display: block;
      inset: 75px auto 0 48%;
      height: auto;
      width: auto;
      max-width: 76rem;
    }
  }
}

/* Positioned ancestor for a "Behind Media" decorative image (see SECTION_MEDIA_SELECTOR in
   scripts.js) -- keeps the real media above the graphic regardless of the host block's own
   CSS, since blocks don't all declare their own z-index. */
.has-decorative-image {
  position: relative;
  z-index: 1;
}

/* Removed from view but kept in the accessibility tree -- for live regions and any label
   a screen reader needs but the design doesn't show. Do not swap this for display: none,
   which would drop the content from the tree entirely. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

a.skip-to-main {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
  margin: var(--size-8);
  padding: var(--size-16);
  color: var(--header-link);
  background: var(--white);;
  font-weight: 600;
  transform: translateY(-120%);
  transition: transform 120ms ease-in-out;
}

.skip-to-main:focus,
.skip-to-main:focus-visible {
  transform: translateY(0);
  outline-offset: 2px;
}

.icon {
  display: inline-block;
  height: 24px;
  width: 24px;
}

.icon img {
  height: 100%;
  width: 100%;
}

/* Layout shared by every block built on scripts/media-utils.js (media-block, hero).
   Sizing belongs here rather than in one block's stylesheet: the utilities produce the
   same markup for all consumers, and a block that only styled its own copy left video
   and iframe elements at their intrinsic 300px default. */
.media-video-wrapper {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  border-radius: var(--border-radius-md);
}

/* Ambient video from createBackgroundVideo() -- fills its positioned container and never
   dictates layout, since the content sitting on top of it is what sets the height. */
.media-background-video {
  position: absolute;
  inset: 0;
}

.media-background-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-video-wrapper video,
.media-video-wrapper .media-iframe,
/* stylelint-disable-next-line selector-class-pattern -- Wistia's own class name */
.media-video-wrapper .wistia_embed {
  display: block;
  width: 100%;
  height: 100%;
  border: none;
}

.media-video-wrapper .media-video-thumbnail {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.media-html-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--border-radius-md);
}

.media-html-wrapper:has(dotlottie-player) {
  aspect-ratio: auto;
}

.text-image .text-image-media .media-html-wrapper:has(dotlottie-player) {
  aspect-ratio: auto;
}

.media-html-wrapper iframe,
.media-html-wrapper video,
.media-html-wrapper embed,
.media-html-wrapper object {
  display: block;
  width: 100%;
  height: 100%;
  border: none;
}

/* One glass rim for every foreground player: 8px of translucent padding and a 1px
   gradient edge. The player inside has the rim's radius less that padding, so the
   corners are concentric: a square player leaves a wedge of grey inside the curve,
   and a player rounded more than that opens the page through the glass. Only the
   player wrapper is rounded and clips; everything inside it stays square. Background
   video, the monitor bezel, and full-bleed media never get this class. A pasted
   snippet can still draw its own edge inside the iframe; that edge belongs to the
   vendor. */
.media-glass {
  position: relative;
  padding: var(--size-8);
  border-radius: var(--border-radius-md);
  background-color: var(--hero-video-frame-bg);
  box-shadow: var(--hero-video-frame-shadow);
  backdrop-filter: blur(3.25px);
}

.media-glass::after {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: var(--hero-video-frame-border);
  mask: linear-gradient(var(--white) 0 0) content-box, linear-gradient(var(--white) 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.media-glass > :is(.media-video-wrapper, .media-html-wrapper) {
  overflow: hidden;
  border-radius: var(--media-glass-player-radius);
  box-shadow: var(--hero-video-player-shadow);
}

.media-glass :is(video, iframe, embed, object, picture, .media-video-thumbnail) {
  border-radius: 0;
}

/* A pasted YouTube snippet is rewritten into a second player inside the HTML
   wrapper. That inner player fills the frame; it does not draw another one. */
.media-glass .media-html-wrapper > .media-video-wrapper {
  height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.media-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5.6rem;
  height: 5.2rem;
  padding: 0;
  border: none;
  border-radius: var(--border-radius-card);
  background: linear-gradient(225deg, var(--color-white) 0%, rgb(255 255 255 / 50%) 100%);
  color: var(--color-electric-azure);
  outline: 3px solid color-mix(in srgb, var(--color-electric-azure) 30%, transparent);
  outline-offset: -3px;
  backdrop-filter: blur(1.5px);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.media-play-btn[hidden] {
  display: none;
}

.media-play-btn svg {
  width: 100%;
  height: 100%;
}

.media-play-btn:hover,
.media-play-btn:focus-visible {
  transform: translate(-50%, -50%) scale(1.1);
}

.media-play-btn:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--color-electric-azure) 30%, transparent);
  outline-offset: -3px;
  box-shadow: 0 0 0 2px var(--color-veeam-primary-green);
}

@media (width >= 600px) {
  .media-play-btn {
    width: 7.8rem;
    height: 7.2rem;
  }
}

/* Below-the-fold sections fade in once. The script adds section-reveal only to sections that
   are still off screen, and never to the first section, so the hero can paint immediately. */
@media (prefers-reduced-motion: no-preference) {
  .section.section-reveal {
    opacity: 0;
    transition: opacity .3s ease;
  }

  .section.section-reveal.is-revealed {
    opacity: 1;
  }
}

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

  .media-play-btn:hover,
  .media-play-btn:focus-visible {
    transform: translate(-50%, -50%);
  }
}
