.hhe-hero {
  position: relative;
  width: 100%;
  height: 650px;
  min-height: 420px;
  overflow: hidden;
  background: #101827;
  color: var(--hhe-text, #fff);
  font-family: inherit;
  isolation: isolate;
}

.hhe-hero * { box-sizing: border-box; }

/* A hero occupying its own top-level container behaves as a full-width section.
   Ignore Elementor editor helper nodes when checking for other content. */
.elementor .e-con:has(> .elementor-widget-hiperall_hero_elementor .hhe-fullwidth):not(:has(> .elementor-element:not(.elementor-widget-hiperall_hero_elementor):not(.elementor-widget-hsb-mascot-image):not(.elementor-widget-hsb-floating-element))),
.elementor .e-con:has(> .e-con-inner > .elementor-widget-hiperall_hero_elementor .hhe-fullwidth):not(:has(> .e-con-inner > .elementor-element:not(.elementor-widget-hiperall_hero_elementor):not(.elementor-widget-hsb-mascot-image):not(.elementor-widget-hsb-floating-element))) {
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
  gap: 0 !important;
}
.elementor .e-con > .e-con-inner:has(> .elementor-widget-hiperall_hero_elementor .hhe-fullwidth):not(:has(> .elementor-element:not(.elementor-widget-hiperall_hero_elementor):not(.elementor-widget-hsb-mascot-image):not(.elementor-widget-hsb-floating-element))) {
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
  gap: 0 !important;
}
.elementor-widget-hiperall_hero_elementor:has(.hhe-fullwidth) {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  align-self: stretch;
}
/* Classic Elementor sections also add a gutter to the single populated column. */
.elementor .elementor-section > .elementor-container:has(> .elementor-column:only-child > .elementor-element-populated > .elementor-widget-hiperall_hero_elementor .hhe-fullwidth):not(:has(> .elementor-column > .elementor-element-populated > .elementor-element:not(.elementor-widget-hiperall_hero_elementor):not(.elementor-widget-hsb-mascot-image):not(.elementor-widget-hsb-floating-element))) {
  width: 100%;
  max-width: none;
}
.elementor .elementor-column:only-child > .elementor-element-populated:has(> .elementor-widget-hiperall_hero_elementor .hhe-fullwidth):not(:has(> .elementor-element:not(.elementor-widget-hiperall_hero_elementor):not(.elementor-widget-hsb-mascot-image):not(.elementor-widget-hsb-floating-element))),
.elementor .elementor-widget-hiperall_hero_elementor > .elementor-widget-container:has(> .hhe-fullwidth) {
  padding: 0 !important;
  margin: 0 !important;
}

.hhe-fullwidth {
  width: 100%;
  max-width: 100%;
}

.hhe-track,
.hhe-slide,
.hhe-bg-video,
.hhe-bg-image,
.hhe-overlay,
.hhe-video-placeholder {
  position: absolute;
  inset: 0;
}

.hhe-slide {
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  z-index: 0;
  transition: opacity var(--hhe-transition-speed, 700ms) ease,
              visibility var(--hhe-transition-speed, 700ms) ease,
              transform var(--hhe-transition-speed, 700ms) ease;
}

.hhe-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.hhe-bg-image,
.hhe-bg-video {
  width: 100%;
  height: 100%;
}

.hhe-bg-image {
  background-repeat: no-repeat;
  background-position: var(--hhe-image-pos, center center);
  background-size: var(--hhe-image-size, cover);
  transform: scale(var(--hhe-image-scale, 1));
  transform-origin: center center;
  will-change: transform;
}

.hhe-bg-video {
  object-fit: cover;
  object-position: center center;
}

.hhe-bg-placeholder,
.hhe-video-placeholder {
  background: linear-gradient(120deg, #1c2938, #536578);
}

.hhe-overlay {
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(var(--hhe-slide-overlay-rgb, 7,17,31), var(--hhe-slide-overlay, .55)),
    rgba(var(--hhe-slide-overlay-rgb, 7,17,31), calc(var(--hhe-slide-overlay, .55) * .7)) 48%,
    transparent
  );
}

.hhe-inner {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 64px));
  height: 100%;
  margin: auto;
  display: flex;
  align-items: center;
  gap: clamp(24px, 5vw, 90px);
}

.hhe-content-left { justify-content: flex-start; }
.hhe-content-center { justify-content: center; }
.hhe-content-right { justify-content: flex-end; }

.hhe-copy { width: min(570px, 58%); }
.hhe-align-center .hhe-copy { text-align: center; }
.hhe-align-right .hhe-copy { text-align: right; }

.hhe-eyebrow {
  font-size: clamp(11px, .95vw, 14px);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0 0 12px;
}

.hhe-title,
.hhe-highlight {
  margin: 0;
  color: var(--hhe-text, #fff);
  font-weight: 850;
  line-height: .98;
  letter-spacing: -.035em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  paint-order: stroke fill;
}

.hhe-title { font-size: clamp(42px, 5.3vw, 76px); }
.hhe-highlight { font-size: clamp(40px, 5.1vw, 72px); color: var(--hhe-slide-accent, var(--hhe-accent, #e51d2a)); }

.hhe-description {
  font-size: clamp(15px, 1.3vw, 20px);
  line-height: 1.5;
  max-width: 560px;
  margin: 15px 0 20px;
}

.hhe-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.hhe-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  min-height: 58px;
  padding: 0 28px;
  border-radius: 999px;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: .025em;
  transition: transform .2s ease, background .2s ease;
}

.hhe-btn:hover { transform: translateY(-2px); }
.hhe-btn-1 { background: var(--hhe-slide-accent, var(--hhe-accent, #e51d2a)); color: var(--hhe-text, #fff) !important; }
.hhe-btn-2 { border: 2px solid rgba(255,255,255,.72); color: var(--hhe-text, #fff) !important; background: rgba(5,12,20,.15); }

/* Elementor button icons: supports Font Awesome icons and uploaded SVGs. */
.hhe-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  line-height: 1;
}

.hhe-btn-icon svg {
  display: block;
  width: 1em;
  height: 1em;
}

.hhe-btn-1 .hhe-btn-icon {
  font-size: 18px;
}

.hhe-play {
  display: inline-flex;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  color: #111;
  font-size: 11px;
}

.hhe-play svg {
  width: 15px;
  height: 15px;
}

.hhe-feature-carousel {
  position: absolute;
  z-index: 4;
  top: clamp(34px, 8%, 70px);
  right: clamp(32px, 5.5vw, 90px);
  width: min(330px, 30vw);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hhe-feature-track { position: relative; min-height: 58px; }

.hhe-feature-item {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 7px 18px 7px 9px;
  border-radius: 999px;
  background: rgba(5,12,20,.65);
  border: 1px solid rgba(255,255,255,.07);
  backdrop-filter: blur(8px);
  font-size: 15px;
  font-weight: 650;
  opacity: 0;
  transform: translateX(24px);
  visibility: hidden;
  transition: opacity var(--hhe-feature-speed, 500ms) ease,
              transform var(--hhe-feature-speed, 500ms) ease,
              visibility var(--hhe-feature-speed, 500ms);
}

.hhe-feature-item.is-feature-active {
  opacity: 1;
  transform: translateX(0);
  visibility: visible;
}

.hhe-feature-transition-fade .hhe-feature-item,
.hhe-feature-transition-fade .hhe-feature-item.is-feature-active {
  transform: none;
}

.hhe-feature-transition-scale .hhe-feature-item {
  transform: scale(.94);
}

.hhe-feature-transition-scale .hhe-feature-item.is-feature-active {
  transform: scale(1);
}

.hhe-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  padding: 9px;
  border-radius: 50%;
  background: #fff;
  color: #1b2936;
  line-height: 1;
}

.hhe-feature-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.hhe-feature-icon i {
  display: block;
  font-size: 20px;
}

.hhe-feature-dots { display: flex; justify-content: flex-end; gap: 6px; padding-right: 4px; }
.hhe-feature-dots button { width: 6px; height: 6px; border: 0; border-radius: 50%; padding: 0; background: rgba(255,255,255,.4); cursor: pointer; }
.hhe-feature-dots button.is-active { width: 20px; border-radius: 10px; background: #fff; }

.hhe-quote {
  position: absolute;
  z-index: 2;
  right: 4%;
  bottom: 8%;
  max-width: 280px;
  text-align: center;
  color: #fff;
  font-family: cursive;
  font-size: clamp(19px, 2vw, 28px);
  font-style: italic;
  line-height: 1.25;
  transform: rotate(-7deg);
  text-shadow: 0 2px 10px #000;
}

.hhe-arrow {
  position: absolute;
  z-index: 7;
  top: 50%;
  width: 52px;
  height: 52px;
  margin: 0;
  padding: 0;
  transform: translateY(-50%);
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 50%;
  background-color: rgba(7,17,31,.35);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 21px 21px;
  box-shadow: none;
  color: transparent;
  font-size: 0;
  line-height: 0;
  text-indent: -9999px;
  appearance: none;
  -webkit-appearance: none;
  overflow: hidden;
  cursor: pointer;
}

.hhe-prev {
  left: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15 5L8 12l7 7' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.hhe-next {
  right: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 5l7 7-7 7' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.hhe-arrow:hover { background-color: rgba(7,17,31,.68); }

.hhe-dots {
  position: absolute;
  z-index: 7;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hhe-dots button {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 99px;
  background: rgba(255,255,255,.5);
  padding: 0;
  cursor: pointer;
}

.hhe-dots button.is-active { width: 26px; background: #fff; }

.hhe-transition-slide .hhe-slide { transform: translateX(3%); }
.hhe-transition-slide .hhe-slide.is-active { transform: translateX(0); }
.hhe-transition-zoom .hhe-slide { transform: scale(1.035); }
.hhe-transition-zoom .hhe-slide.is-active { transform: scale(1); }

.hhe-anim-rise,
.hhe-anim-zoom,
.hhe-anim-fade { transition: transform .7s ease, opacity .7s ease; }

.hhe-slide:not(.is-active) .hhe-anim-rise { transform: translateY(22px); opacity: 0; }
.hhe-slide:not(.is-active) .hhe-anim-zoom { transform: scale(.96); opacity: 0; }
.hhe-slide:not(.is-active) .hhe-anim-fade { opacity: 0; }

.hhe-mode-video .hhe-bg-video { z-index: 0; }
.hhe-mode-video .hhe-overlay { z-index: 1; }
.hhe-mode-video .hhe-inner { z-index: 2; }
.hhe-mode-video .hhe-video-placeholder { display: none; z-index: 0; }
.hhe-mode-video.hhe-no-video .hhe-video-placeholder { display: block; }
.hhe-mode-video .hhe-copy { width: min(570px, 62%); }

@media (max-width: 1100px) {
  .hhe-feature-carousel { right: 28px; width: 280px; }
  .hhe-inner { width: calc(100% - 56px); gap: 20px; }
  .hhe-copy { width: min(560px, 62%); }
}

@media (max-width: 1024px) {
  .hhe-feature-carousel { top: 7%; right: 28px; width: 270px; }
  .hhe-feature-item { font-size: 13px; }
  .hhe-copy { width: min(560px, 60%); }
}

@media (max-width: 700px) {
  .hhe-hero { min-height: 500px; }
  .hhe-inner {
    width: calc(100% - 38px);
    height: 100%;
    align-items: center;
    justify-content: flex-end;
    flex-direction: column;
    gap: 12px;
    padding: 35px 0 70px;
  }
  .hhe-copy { width: 100%; max-width: 560px; }
  .hhe-title { font-size: clamp(37px, 10vw, 58px); }
  .hhe-highlight { font-size: clamp(35px, 9vw, 54px); }
  .hhe-description { font-size: 15px; line-height: 1.45; margin: 12px 0; }
  .hhe-actions { gap: 9px; margin-top: 15px; flex-wrap: nowrap; }
  .hhe-btn { min-height: 48px; padding: 0 14px; gap: 10px; font-size: 11px; white-space: nowrap; }
  .hhe-feature-carousel {
    position: absolute;
    top: auto;
    right: 19px;
    bottom: 58px;
    left: 19px;
    width: auto;
    margin: 0;
  }
  .hhe-feature-track { min-height: 52px; }
  .hhe-feature-item { min-height: 52px; width: 100%; font-size: 12px; padding: 5px 12px 5px 6px; transform: translateX(18px); }
  .hhe-feature-transition-fade .hhe-feature-item,
  .hhe-feature-transition-fade .hhe-feature-item.is-feature-active { transform: none; }
  .hhe-feature-transition-scale .hhe-feature-item { transform: scale(.94); }
  .hhe-feature-transition-scale .hhe-feature-item.is-feature-active { transform: scale(1); }
  .hhe-feature-icon { width: 38px; height: 38px; flex-basis: 38px; padding: 8px; }
  .hhe-feature-dots { justify-content: center; padding: 2px 0 0; }
  .hhe-quote { display: block; max-width: 240px; right: 50%; transform: translateX(50%) rotate(-7deg); bottom: 60px; font-size: 18px; }
  .hhe-arrow { width: 36px; height: 36px; min-width: 36px; min-height: 36px; top: auto; bottom: 12px; transform: none; background-size: 17px 17px; }
  .hhe-prev { left: calc(50% - 55px); right: auto; }
  .hhe-next { right: calc(50% - 55px); left: auto; }
  .hhe-dots { bottom: 27px; }
  .hhe-overlay {
    background: linear-gradient(0deg,
      rgba(var(--hhe-slide-overlay-rgb, 7,17,31), calc(var(--hhe-slide-overlay, .55) * .78)),
      rgba(var(--hhe-slide-overlay-rgb, 7,17,31), var(--hhe-slide-overlay, .55))
    );
  }
  .hhe-bg-image { background-position: var(--hhe-image-pos-mobile, var(--hhe-image-pos, center center)); }
  .hhe-mode-video .hhe-overlay { background: linear-gradient(0deg,
      rgba(var(--hhe-slide-overlay-rgb, 7,17,31), calc(var(--hhe-slide-overlay, .55) * .78)),
      rgba(var(--hhe-slide-overlay-rgb, 7,17,31), var(--hhe-slide-overlay, .55))
    ); }
  .hhe-mode-video .hhe-copy { width: 100%; max-width: 560px; }
  .hhe-mobile-hide-eyebrow .hhe-eyebrow,
  .hhe-mobile-hide-title .hhe-title,
  .hhe-mobile-hide-highlight .hhe-highlight,
  .hhe-mobile-hide-description .hhe-description,
  .hhe-mobile-hide-button1 .hhe-btn-1,
  .hhe-mobile-hide-button2 .hhe-btn-2,
  .hhe-mobile-hide-mini .hhe-feature-carousel,
  .hhe-mobile-hide-quote .hhe-quote { display: none !important; }
  .hhe-hide-dots-mobile > .hhe-dots { display: none !important; visibility: hidden !important; pointer-events: none !important; }
}

/* -------------------------------------------------------------
   Mini feature display modes
   Keep the animated slider as the default. The static-list rules are
   scoped to the selected breakpoint and do not affect the main slider.
-------------------------------------------------------------- */
@media (min-width: 701px) {
  .hhe-feature-carousel[data-desktop-mode="list"] .hhe-feature-track {
    position: static;
    display: flex;
    flex-direction: column;
    gap: var(--hhe-feature-gap, 10px);
    min-height: 0 !important;
  }

  .hhe-feature-carousel[data-desktop-mode="list"] .hhe-feature-item,
  .hhe-feature-carousel[data-desktop-mode="list"] .hhe-feature-item.is-feature-active {
    position: relative !important;
    inset: auto !important;
    display: flex;
    width: 100%;
    height: auto;
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
    transition: none !important;
    animation: none !important;
  }

  .hhe-feature-carousel[data-desktop-mode="list"] .hhe-feature-dots {
    display: none !important;
  }
}

@media (max-width: 700px) {
  .hhe-feature-carousel[data-mobile-mode="list"] {
    top: 18px;
    bottom: auto;
  }

  .hhe-feature-carousel[data-mobile-mode="list"] .hhe-feature-track {
    position: static;
    display: flex;
    flex-direction: column;
    gap: var(--hhe-feature-gap, 10px);
    min-height: 0 !important;
  }

  .hhe-feature-carousel[data-mobile-mode="list"] .hhe-feature-item,
  .hhe-feature-carousel[data-mobile-mode="list"] .hhe-feature-item.is-feature-active {
    position: relative !important;
    inset: auto !important;
    display: flex;
    width: 100%;
    height: auto;
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
    transition: none !important;
    animation: none !important;
  }

  .hhe-feature-carousel[data-mobile-mode="list"] .hhe-feature-dots {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hhe-hero * { transition: none !important; animation: none !important; }
}

/* Shared content slides sit above the continuous video and its overlay. */
.hhe-mode-video .hhe-track { z-index: 2; }

/* Per-slide accent takes precedence over widget-wide highlight/button colors. */
.elementor .elementor-widget-hiperall_hero_elementor .hhe-slide.hhe-custom-accent .hhe-highlight {
  color: var(--hhe-slide-accent);
}
.elementor .elementor-widget-hiperall_hero_elementor .hhe-slide.hhe-custom-accent .hhe-btn-1 {
  background-color: var(--hhe-slide-accent);
}
/* Entry animations also run on initial render and live editor refresh. */
@keyframes hhe-content-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes hhe-content-rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@keyframes hhe-content-zoom { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: scale(1); } }
.hhe-slide.is-active .hhe-anim-fade { animation: hhe-content-fade .7s ease both; }
.hhe-slide.is-active .hhe-anim-rise { animation: hhe-content-rise .7s ease both; }
.hhe-slide.is-active .hhe-anim-zoom { animation: hhe-content-zoom .7s ease both; }
.hhe-slide .hhe-anim-none { animation: none; transition: none; }
@media (prefers-reduced-motion: reduce) {
  .hhe-slide.is-active .hhe-copy { animation: none !important; transition: none !important; }
}
/* Feature design presets: structural skins share the same carousel and device modes. */
.hhe-feature-copy { min-width: 0; display: block; }
.hhe-feature-title { display: block; overflow-wrap: anywhere; }
.hhe-feature-description { display: block; margin-top: 5px; font-size: .78em; font-weight: 400; line-height: 1.4; opacity: .85; overflow-wrap: anywhere; }
.hhe-feature-icon svg:not([fill="none"]) { fill: currentColor; }
.hhe-feature-carousel:not([data-feature-style="classic"]) .hhe-feature-item { line-height: 1.25; }

/* Separate white ribbons with an angled leading edge. */
.hhe-feature-carousel[data-feature-style="ribbons"] .hhe-feature-track { min-height: 90px; }
.hhe-feature-carousel[data-feature-style="ribbons"] .hhe-feature-item {
  min-height: 90px; padding: 16px 18px 16px 38px; gap: 16px;
  border-radius: 0; border: 0; border-inline-end: 4px solid var(--hhe-accent, #e51d2a);
  clip-path: polygon(24px 0, 100% 0, 100% 100%, 0 100%);
  background: rgba(255,255,255,.95); color: #152130; backdrop-filter: blur(6px);
}
.hhe-feature-carousel[data-feature-style="ribbons"] .hhe-feature-icon { background: transparent; color: var(--hhe-accent); border-radius: 0; padding: 3px; }
.hhe-feature-carousel[data-feature-style="ribbons"] .hhe-feature-title { text-transform: uppercase; font-weight: 800; letter-spacing: .035em; }

/* One continuous light panel, with ruled rows rather than separate cards. */
.hhe-feature-carousel[data-feature-style="panel"] .hhe-feature-track {
  min-height: 102px; background: rgba(248,249,250,.95); border-inline-start: 3px solid var(--hhe-accent);
  box-shadow: 0 12px 35px rgba(0,0,0,.12);
}
.hhe-feature-carousel[data-feature-style="panel"] .hhe-feature-item {
  min-height: 102px; padding: 20px; border: 0; border-radius: 0;
  background: transparent; color: #172530; backdrop-filter: none;
}
.hhe-feature-carousel[data-feature-style="panel"] .hhe-feature-item + .hhe-feature-item { border-top: 1px solid rgba(23,37,48,.16); }
.hhe-feature-carousel[data-feature-style="panel"] .hhe-feature-icon { background: transparent; color: var(--hhe-accent); border-radius: 0; padding: 5px; }

/* Standalone round medallions with text directly over the hero. */
.hhe-feature-carousel[data-feature-style="medallions"] .hhe-feature-track { min-height: 80px; }
.hhe-feature-carousel[data-feature-style="medallions"] .hhe-feature-item {
  min-height: 80px; padding: 10px 0; gap: 18px; background: transparent; border: 0; border-radius: 0;
  color: #fff; backdrop-filter: none; text-shadow: 0 2px 8px rgba(0,0,0,.8);
}
.hhe-feature-carousel[data-feature-style="medallions"] .hhe-feature-icon {
  width: 60px; height: 60px; flex-basis: 60px; padding: 16px; background: #f8f4e8;
  color: var(--hhe-accent); border: 3px double currentColor; box-shadow: 0 4px 14px rgba(0,0,0,.2); text-shadow: none;
}
.hhe-feature-carousel[data-feature-style="medallions"] .hhe-feature-title { font-weight: 750; }

/* Dark squared plates, a solid icon block, and an accent baseline. */
.hhe-feature-carousel[data-feature-style="industrial"] .hhe-feature-track { min-height: 88px; }
.hhe-feature-carousel[data-feature-style="industrial"] .hhe-feature-item {
  min-height: 88px; padding: 0 18px 0 0; gap: 18px; border-radius: 2px; border: 1px solid rgba(255,255,255,.18);
  border-bottom: 3px solid var(--hhe-accent); background: rgba(13,22,29,.94); color: #fff;
  box-shadow: 5px 5px 0 rgba(0,0,0,.2); backdrop-filter: none;
}
.hhe-feature-carousel[data-feature-style="industrial"] .hhe-feature-icon {
  align-self: stretch; width: 66px; height: auto; min-height: 85px; flex-basis: 66px; padding: 20px;
  border-radius: 0; background: var(--hhe-accent); color: #fff;
}
.hhe-feature-carousel[data-feature-style="industrial"] .hhe-feature-title { text-transform: uppercase; letter-spacing: .04em; font-weight: 800; }

/* Centered trust seals: vertical composition with a large framed emblem. */
.hhe-feature-carousel[data-feature-style="seals"] .hhe-feature-track { min-height: 140px; }
.hhe-feature-carousel[data-feature-style="seals"] .hhe-feature-item {
  flex-direction: column; justify-content: center; text-align: center; gap: 10px; min-height: 140px;
  padding: 18px; border-radius: 14px; border: 1px solid rgba(255,255,255,.48);
  background: rgba(12,25,35,.64); color: #fff; box-shadow: inset 0 0 0 5px rgba(255,255,255,.05);
}
.hhe-feature-carousel[data-feature-style="seals"] .hhe-feature-icon {
  width: 58px; height: 58px; flex-basis: 58px; padding: 13px; border: 2px solid var(--hhe-accent);
  border-radius: 16px 16px 24px 24px; color: #fff; background: transparent;
}
.hhe-feature-carousel[data-feature-style="seals"] .hhe-feature-title { font-size: .93em; letter-spacing: .06em; text-transform: uppercase; }

/* A unified panel stays unified in static-list mode, including mobile. */
@media (min-width: 701px) {
  .hhe-feature-carousel[data-feature-style="panel"][data-desktop-mode="list"] .hhe-feature-track { gap: var(--hhe-feature-gap, 0px); }
}
@media (max-width: 700px) {
  .hhe-feature-carousel[data-feature-style="panel"][data-mobile-mode="list"] .hhe-feature-track { gap: var(--hhe-feature-gap, 0px); }
  .hhe-feature-carousel:not([data-feature-style="classic"]) .hhe-feature-item { max-width: 100%; }
  .hhe-feature-carousel[data-feature-style="ribbons"] .hhe-feature-item { min-height: 76px; padding: 12px 14px 12px 30px; }
  .hhe-feature-carousel[data-feature-style="medallions"] .hhe-feature-icon { width: 50px; height: 50px; flex-basis: 50px; padding: 12px; }
}
/* Overlapping grid cells size the animated track to the longest feature text. */
@media (min-width: 701px) {
  .hhe-feature-carousel:not([data-feature-style="classic"])[data-desktop-mode="slider"] .hhe-feature-track { display: grid; }
  .hhe-feature-carousel:not([data-feature-style="classic"])[data-desktop-mode="slider"] .hhe-feature-item { position: relative; inset: auto; grid-area: 1 / 1; width: 100%; }
}
@media (max-width: 700px) {
  .hhe-feature-carousel:not([data-feature-style="classic"])[data-mobile-mode="slider"] .hhe-feature-track { display: grid; }
  .hhe-feature-carousel:not([data-feature-style="classic"])[data-mobile-mode="slider"] .hhe-feature-item { position: relative; inset: auto; grid-area: 1 / 1; width: 100%; }
}
.hhe-feature-carousel[data-feature-style="ribbons"] .hhe-feature-icon i { font-size: 32px; }
.hhe-feature-carousel[data-feature-style="panel"] .hhe-feature-icon i { font-size: 28px; }
.hhe-feature-carousel[data-feature-style="medallions"] .hhe-feature-icon i { font-size: 26px; }
.hhe-feature-carousel[data-feature-style="industrial"] .hhe-feature-icon i { font-size: 26px; }
.hhe-feature-carousel[data-feature-style="seals"] .hhe-feature-icon i { font-size: 28px; }
@media (max-width: 700px) {
  .hhe-feature-carousel:not([data-feature-style="classic"])[data-mobile-mode="slider"] { top: 18px; bottom: auto; }
}
/* Horizontal List uses the same feature items and skins in a manual, static row. */
.hhe-feature-carousel[data-active-layout="horizontal"] {
  top: auto; bottom: 24px; right: 32px; left: auto;
  width: min(1240px, calc(100% - 64px));
}
.hhe-feature-carousel[data-active-layout="horizontal"] .hhe-feature-track {
  display: flex; flex-direction: row; align-items: stretch; gap: var(--hhe-feature-gap, 12px);
  min-height: 0; overflow-x: auto; overflow-y: hidden; padding-bottom: 8px;
  scroll-snap-type: x proximity; scrollbar-width: thin;
}
.hhe-feature-carousel[data-active-layout="horizontal"] .hhe-feature-item {
  position: relative; inset: auto; flex: 1 0 220px; width: auto; height: auto;
  opacity: 1; visibility: visible; transform: none; transition: none; animation: none;
  scroll-snap-align: start;
}
.hhe-feature-carousel[data-active-layout="horizontal"] .hhe-feature-dots { display: none !important; }
.hhe-feature-carousel[data-feature-style="panel"][data-active-layout="horizontal"] .hhe-feature-track { gap: var(--hhe-feature-gap, 0px); }
.hhe-feature-carousel[data-feature-style="panel"][data-active-layout="horizontal"] .hhe-feature-item + .hhe-feature-item {
  border-top: 0; border-inline-start: 1px solid rgba(23,37,48,.16);
}
@media (min-width: 701px) {
  .hhe-hero[data-hhe-feature-layout="horizontal"] .hhe-inner { height: calc(100% - var(--hhe-horizontal-reserve, 160px)); }
}
@media (max-width: 700px) {
  .hhe-feature-carousel[data-active-layout="horizontal"] { top: 18px; bottom: auto; right: 19px; left: 19px; width: auto; }
  .hhe-feature-carousel[data-active-layout="horizontal"] .hhe-feature-item { flex: 0 0 85%; }
}
/* Rotation preserves mobile centering and remains independent of content animations. */
.hhe-quote { color: var(--hhe-text, #fff); transform: translateX(var(--hhe-quote-x, 0%)) rotate(var(--hhe-quote-rotation, -7deg)); }
@media(max-width:700px) { .hhe-quote { --hhe-quote-x: 50%; } }
/* Feature border color stays visible even for presets with a borderless default. */

/* Let Elementor's height control remain live while accommodating long feature lists. */
.hhe-hero { min-height: max(420px, var(--hhe-required-height, 0px)); }
@media (max-width:700px) { .hhe-hero { min-height: max(500px, var(--hhe-required-height, 0px)); } }
/* Automatic mobile composition: compact features, readable copy, then the quote. */
.hhe-inner { padding: var(--hhe-padding-top, 0px) var(--hhe-padding-right, 0px) var(--hhe-padding-bottom, 0px) var(--hhe-padding-left, 0px); }
@media (max-width: 700px) {
  .hhe-inner {
    width: calc(100% - 36px); gap: 18px;
    padding: max(var(--hhe-mobile-feature-reserve, 24px), var(--hhe-padding-top, 0px)) var(--hhe-padding-right, 0px) max(64px, var(--hhe-padding-bottom, 0px)) var(--hhe-padding-left, 0px);
  }
  .hhe-copy { flex: 0 0 auto; min-width: 0; }
  .hhe-title { font-size: clamp(30px, 8.6vw, 42px); line-height: 1.04; }
  .hhe-highlight { font-size: clamp(29px, 8.3vw, 40px); line-height: 1.04; }
  .hhe-description { font-size: 14px; }
  .hhe-actions { flex-wrap: wrap; }
  .hhe-btn { min-height: 44px; padding: 0 13px; }
  .hhe-inner .hhe-quote {
    position: relative; inset: auto; flex: 0 0 auto; align-self: flex-end;
    width: 100%; max-width: 260px; margin: 0; text-align: right;
    font-size: 16px; line-height: 1.3;
    --hhe-quote-x: 0%; --hhe-quote-rotation: 0deg;
  }
  .hhe-feature-carousel,
  .hhe-feature-carousel[data-active-layout="horizontal"] { top: 18px; bottom: auto; left: 18px; right: 18px; width: auto; }
  .hhe-feature-carousel[data-feature-style] .hhe-feature-track { min-height: 0; }
  .hhe-feature-carousel[data-feature-style] .hhe-feature-item {
    min-height: 48px; padding: 7px 10px; gap: 9px; font-size: 11px; line-height: 1.25;
  }
  .hhe-feature-carousel[data-feature-style] .hhe-feature-icon {
    width: 30px; height: 30px; min-height: 30px; flex-basis: 30px; padding: 6px; align-self: center;
  }
  .hhe-feature-carousel[data-feature-style] .hhe-feature-icon i { font-size: 18px; }
  .hhe-feature-description { font-size: 10px; line-height: 1.3; margin-top: 3px; }
  .hhe-feature-carousel[data-mobile-mode="list"] .hhe-feature-track { gap: var(--hhe-feature-gap, 6px); }
  .hhe-feature-carousel[data-feature-style="ribbons"] .hhe-feature-item {
    min-height: 48px; padding: 7px 10px 7px 22px; gap: 8px;
    clip-path: polygon(15px 0, 100% 0, 100% 100%, 0 100%); border-inline-end-width: 3px;
  }
  .hhe-feature-carousel[data-feature-style="medallions"] .hhe-feature-icon { padding: 5px; }
  .hhe-feature-carousel[data-feature-style="industrial"] .hhe-feature-item { padding: 0 8px 0 0; }
  .hhe-feature-carousel[data-feature-style="industrial"] .hhe-feature-icon { min-height: 48px; align-self: stretch; height: auto; }
  .hhe-feature-carousel[data-feature-style="seals"] .hhe-feature-item { flex-direction: row; text-align: left; min-height: 52px; gap: 9px; }
  .hhe-feature-carousel[data-feature-style="seals"] .hhe-feature-icon { border-radius: 8px; padding: 4px; }
  .hhe-feature-carousel[data-active-layout="horizontal"] .hhe-feature-item { flex: 0 0 172px; }
  .hhe-feature-carousel[data-active-layout="horizontal"] .hhe-feature-track { padding-bottom: 5px; scrollbar-width: none; }
  .hhe-feature-carousel[data-active-layout="horizontal"] .hhe-feature-track::-webkit-scrollbar { display: none; }
}

/* Horizontal List is a single row of equally sized, concise features. */
.hhe-feature-carousel[data-active-layout="horizontal"] .hhe-feature-track {
  overflow: visible; padding-bottom: 0; flex-wrap: nowrap;
}
.hhe-feature-carousel[data-active-layout="horizontal"] .hhe-feature-item {
  flex: 1 1 0; min-width: 0; width: 0;
}
.hhe-feature-carousel[data-active-layout="horizontal"] .hhe-feature-description { display: none; }
@media (max-width: 700px) {
  .hhe-feature-carousel[data-feature-style][data-active-layout="horizontal"] .hhe-feature-track { gap: 5px; }
  .hhe-feature-carousel[data-feature-style][data-active-layout="horizontal"] .hhe-feature-item {
    flex: 1 1 0; width: 0; min-width: 0; min-height: 70px;
    flex-direction: column; justify-content: center; align-items: center;
    padding: 7px 5px; gap: 5px; text-align: center; font-size: 10px; line-height: 1.15;
  }
  .hhe-feature-carousel[data-feature-style][data-active-layout="horizontal"] .hhe-feature-title {
    font-size: 10px; line-height: 1.15; letter-spacing: 0; overflow-wrap: normal; hyphens: auto;
  }
  .hhe-feature-carousel[data-feature-style][data-active-layout="horizontal"] .hhe-feature-icon {
    width: 25px; height: 25px; min-height: 25px; flex: 0 0 25px;
    align-self: center; padding: 4px;
  }
  .hhe-feature-carousel[data-feature-style][data-active-layout="horizontal"] .hhe-feature-icon i { font-size: 16px; }
  .hhe-feature-carousel[data-feature-style="ribbons"][data-active-layout="horizontal"] .hhe-feature-item {
    clip-path: polygon(8px 0, 100% 0, 100% 100%, 0 100%); padding-inline-start: 10px;
  }
}

/* Stagger the feature contents without changing layout or carousel transitions. */
@keyframes hhe-feature-copy-enter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes hhe-feature-icon-enter {
  from { opacity: 0; transform: scale(.78) rotate(-10deg); }
  to { opacity: 1; transform: scale(1) rotate(0); }
}
@media (prefers-reduced-motion: no-preference) {
  .hhe-feature-item { --hhe-entry-delay: 120ms; }
  .hhe-feature-carousel:not([data-active-layout="slider"]) .hhe-feature-item:nth-child(2) { --hhe-entry-delay: 260ms; }
  .hhe-feature-carousel:not([data-active-layout="slider"]) .hhe-feature-item:nth-child(n+3) { --hhe-entry-delay: 400ms; }
  .hhe-feature-carousel:not([data-active-layout="slider"]) .hhe-feature-copy,
  .hhe-feature-carousel[data-active-layout="slider"] .is-feature-active .hhe-feature-copy {
    animation: hhe-feature-copy-enter 650ms cubic-bezier(.2,.7,.25,1) var(--hhe-entry-delay) both;
  }
  .hhe-feature-carousel:not([data-active-layout="slider"]) .hhe-feature-icon,
  .hhe-feature-carousel[data-active-layout="slider"] .is-feature-active .hhe-feature-icon {
    animation: hhe-feature-icon-enter 700ms cubic-bezier(.2,.7,.25,1) var(--hhe-entry-delay) both;
  }
}

/* On phones, the compact feature modes follow the slide content. */
@media (max-width: 700px) {
  .hhe-hero:is([data-hhe-feature-layout="slider"], [data-hhe-feature-layout="horizontal"]) .hhe-inner {
    padding-bottom: max(var(--hhe-mobile-feature-bottom-reserve, 64px), var(--hhe-padding-bottom, 0px));
  }
  .elementor .elementor-widget-hiperall_hero_elementor .hhe-hero:is([data-hhe-feature-layout="slider"], [data-hhe-feature-layout="horizontal"]) .hhe-feature-carousel {
    top: auto; bottom: 64px; transform: none;
  }
}

/* Equal mobile CTAs share one row, including the outlined button. */
@media (max-width: 700px) {
  .hhe-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 8px; }
  .hhe-actions:has(> .hhe-btn:only-child) { grid-template-columns: minmax(0, 1fr); }
  .hhe-actions .hhe-btn {
    flex: 1 1 0; min-width: 0; width: 100%; min-height: 44px;
    padding: 8px 9px; gap: 7px; font-size: 11px; line-height: 1.2;
    white-space: normal; text-align: center;
  }
  .hhe-actions .hhe-play { width: 24px; height: 24px; flex: 0 0 24px; font-size: 9px; }
  .hhe-actions .hhe-play svg { width: 12px; height: 12px; }
}

/* Presets share a fluid scene and a static, wrapping list of advantages. */
.hhe-hero.hhe-preset {
  --hhe-panel: var(--hhe-preset-surface, #132332);
  --hhe-ink: var(--hhe-preset-text, #fff);
  --hhe-mark: var(--hhe-preset-accent, #ffca76);
  --hhe-gutter: var(--hhe-inset, clamp(24px, 5vw, 80px));
  height: auto;
  min-height: 0;
  background: var(--hhe-panel);
  color: var(--hhe-ink);
}

.hhe-preset-stage { position: relative; isolation: isolate; overflow: hidden; }
.hhe-preset .hhe-track { position: relative; display: grid; }
.hhe-preset .hhe-slide {
  position: relative;
  grid-area: 1 / 1;
  min-width: 0;
  min-height: var(--hhe-stage-height, clamp(540px, 54vw, 800px));
  display: grid;
}
.hhe-preset .hhe-bg-image,
.hhe-preset .hhe-bg-video,
.hhe-preset .hhe-video-placeholder {
  inset: var(--hhe-media-inset, 0);
  width: auto;
  height: auto;
  border-radius: var(--hhe-media-radius, 0);
  transform: none;
}
.hhe-preset .hhe-bg-video {
  width: var(--hhe-media-width, 100%);
  height: var(--hhe-media-height, 100%);
  object-position: var(--hhe-focus-x, 50%) var(--hhe-focus-y, 50%);
}
.hhe-preset .hhe-bg-image {
  background-position: var(--hhe-focus-x, 50%) var(--hhe-focus-y, 50%);
}
.hhe-preset .hhe-overlay { display: none; }
.hhe-preset .hhe-inner {
  width: 100%;
  height: auto;
  margin: 0;
  display: grid;
  align-content: center;
  justify-content: stretch;
  gap: 20px;
  padding: var(--hhe-gutter);
}
.hhe-preset .hhe-copy {
  width: min(100%, 39rem);
  max-width: none;
  margin: 0;
  overflow-wrap: anywhere;
}
.hhe-preset .hhe-eyebrow {
  display: flex;
  align-items: center;
  gap: .75em;
}
.hhe-preset .hhe-eyebrow::before {
  content: "";
  width: 1.7em;
  height: 2px;
  background: var(--hhe-mark);
}
.hhe-preset .hhe-title,
.hhe-preset .hhe-highlight {
  color: var(--hhe-ink);
  font-size: var(--hhe-heading-size, clamp(38px, 5vw, 78px));
  line-height: 1.02;
  letter-spacing: -.05em;
  text-transform: none;
}
.hhe-preset .hhe-highlight { color: var(--hhe-mark); }
.hhe-preset .hhe-description { margin: 1em 0; max-width: 44ch; }
.hhe-preset .hhe-actions { justify-content: flex-start; gap: 10px; }
.hhe-preset .hhe-actions .hhe-btn {
  flex: 0 1 auto;
  width: auto;
  max-width: 100%;
  padding: 10px 18px;
  min-height: 44px;
  white-space: normal;
  text-align: center;
  border-radius: var(--hhe-button-radius, 6px);
}
.hhe-preset .hhe-actions .hhe-btn-1 {
  color: #131c24 !important;
  background: #fff;
  border: 1px solid #fff;
}
.hhe-preset .hhe-actions .hhe-btn-2 {
  color: var(--hhe-ink) !important;
  border: 1px solid currentColor;
  background: transparent;
}
.hhe-preset .hhe-inner .hhe-quote {
  position: relative;
  inset: auto;
  justify-self: start;
  transform: none;
  margin: 0;
  max-width: min(100%, 29ch);
  padding: .35em .75em;
  border-inline-start: 2px solid var(--hhe-mark);
  color: var(--hhe-ink);
  font: italic 500 clamp(15px, 1.6vw, 24px)/1.35 Georgia, serif;
  text-align: start;
  text-shadow: none;
  overflow-wrap: anywhere;
}
.hhe-preset-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 1px;
  list-style: none;
  padding: 1px 0 0;
  margin: 0;
  background: color-mix(in srgb, var(--hhe-ink) 22%, var(--hhe-panel));
}
.hhe-preset-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px clamp(14px, 3vw, 34px);
  background: var(--hhe-panel);
  overflow-wrap: anywhere;
}
.hhe-preset-features .hhe-feature-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  padding: 6px;
  background: transparent;
  color: var(--hhe-mark);
}
.hhe-preset .hhe-arrow {
  top: auto;
  bottom: 10px;
  transform: none;
  background-color: #152433;
}
.hhe-preset .hhe-dots { bottom: 20px; }

/* Editorial: side-by-side copy and uninterrupted full-height photography. */
.hhe-preset-editorial {
  --hhe-media-inset: 0 0 0 47%;
  --hhe-media-width: 53%;
}
.hhe-preset-editorial .hhe-inner { width: 47%; padding-bottom: calc(var(--hhe-gutter) + 36px); }
.hhe-preset-editorial .hhe-eyebrow { color: var(--hhe-mark); }

/* Curva: a soft, solid panel on the right with a sculpted inner edge. */
.hhe-hero.hhe-preset-curve {
  --hhe-panel: var(--hhe-preset-surface, #13362f);
  --hhe-mark: var(--hhe-preset-accent, #b3f2c6);
  --hhe-button-radius: 30px;
}
.hhe-preset-curve .hhe-inner {
  justify-self: end;
  width: min(54%, 790px);
  padding-inline-start: calc(var(--hhe-gutter) * 1.3);
  padding-bottom: calc(var(--hhe-gutter) + 32px);
  background: var(--hhe-panel);
  border-start-start-radius: 26% 44%;
  border-end-start-radius: 26% 44%;
}

/* Ventana: an inset photographic frame with room for the image edges. */
.hhe-hero.hhe-preset-window {
  --hhe-panel: var(--hhe-preset-surface, #35291f);
  --hhe-mark: var(--hhe-preset-accent, #ffd59d);
  --hhe-media-inset: var(--hhe-gutter) var(--hhe-gutter) calc(var(--hhe-gutter) + 25px) 49%;
  --hhe-media-width: calc(51% - var(--hhe-gutter));
  --hhe-media-height: calc(100% - var(--hhe-gutter) * 2 - 25px);
  --hhe-media-radius: 46% 46% 12px 12px / 28% 28% 12px 12px;
  --hhe-button-radius: 2px;
}
.hhe-preset-window .hhe-inner { width: 49%; padding-bottom: calc(var(--hhe-gutter) + 28px); }
.hhe-preset-window .hhe-title,
.hhe-preset-window .hhe-highlight { font-family: Georgia, serif; font-weight: 700; }

/* Marco abierto: open corner lines and a local gradient over a full image. */
.hhe-preset-open-frame { --hhe-button-radius: 2px; }
.hhe-preset-open-frame .hhe-inner {
  align-content: end;
  padding-bottom: calc(var(--hhe-gutter) + 36px);
  background: linear-gradient(90deg, var(--hhe-panel), color-mix(in srgb, var(--hhe-panel) 78%, transparent) 37%, transparent 79%);
}
.hhe-preset-open-frame .hhe-copy {
  position: relative;
  padding: 22px 0 0 22px;
  border-inline-start: 1px solid var(--hhe-mark);
}
.hhe-preset-open-frame .hhe-copy::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 64px;
  border-top: 1px solid var(--hhe-mark);
}

/* Franja inferior: separate image area over a wide horizontal caption. */
.hhe-hero.hhe-preset-bottom-band {
  --hhe-panel: var(--hhe-preset-surface, #222945);
  --hhe-mark: var(--hhe-preset-accent, #ffd483);
  --hhe-button-radius: 0;
}
.hhe-preset-bottom-band .hhe-slide { align-content: end; padding-top: clamp(280px, 34vw, 560px); }
.hhe-preset-bottom-band .hhe-inner {
  background: var(--hhe-panel);
  border-block-start: 3px solid var(--hhe-mark);
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  align-items: center;
  padding-block: var(--hhe-inset, clamp(24px, 3vw, 50px)) calc(var(--hhe-inset, clamp(24px, 3vw, 50px)) + 24px);
}
.hhe-preset-bottom-band .hhe-copy { width: 100%; }

@media (max-width: 1024px) {
  .hhe-hero.hhe-preset { --hhe-gutter: var(--hhe-inset, clamp(20px, 4vw, 42px)); }
}

@media (max-width: 767px) {
  .hhe-hero.hhe-preset {
    --hhe-gutter: var(--hhe-inset, 22px);
    --hhe-mobile-scene: var(--hhe-stage-height, clamp(270px, 76vw, 430px));
    --hhe-media-inset: 0 0 auto;
    --hhe-media-width: 100%;
    --hhe-media-height: var(--hhe-mobile-scene);
    --hhe-media-radius: 0;
  }
  .hhe-preset .hhe-slide {
    align-content: start;
    min-height: var(--hhe-mobile-scene);
    padding-top: var(--hhe-mobile-scene);
  }
  .hhe-preset .hhe-bg-image,
  .hhe-preset .hhe-video-placeholder { height: var(--hhe-mobile-scene); }
  .hhe-preset .hhe-inner {
    width: 100%;
    justify-self: stretch;
    grid-template-columns: minmax(0, 1fr);
    padding: var(--hhe-gutter) var(--hhe-gutter) calc(var(--hhe-gutter) + 32px);
    background: var(--hhe-panel);
  }
  .hhe-preset .hhe-title,
  .hhe-preset .hhe-highlight { font-size: var(--hhe-heading-size, clamp(32px, 8vw, 52px)); }
  .hhe-preset .hhe-copy { width: 100%; }
  .hhe-preset .hhe-feature-description { font-size: .83em; }
  .hhe-preset-curve .hhe-inner { border-radius: 36px 36px 0 0; }
  .hhe-preset-curve .hhe-slide { padding-top: calc(var(--hhe-mobile-scene) - 28px); }
  .hhe-preset.hhe-preset-window {
    --hhe-media-inset: 16px 16px auto;
    --hhe-media-width: calc(100% - 32px);
    --hhe-media-height: calc(var(--hhe-mobile-scene) - 16px);
    --hhe-media-radius: 32% 32% 8px 8px / 22% 22% 8px 8px;
  }
  .hhe-preset-window .hhe-bg-image,
  .hhe-preset-window .hhe-video-placeholder { height: var(--hhe-media-height); }
  .hhe-preset-open-frame .hhe-slide { padding-top: calc(var(--hhe-mobile-scene) * .72); }
  .hhe-preset-open-frame .hhe-inner {
    background: linear-gradient(180deg, transparent, var(--hhe-panel) calc(var(--hhe-mobile-scene) * .28));
    padding-top: calc(var(--hhe-mobile-scene) * .28);
  }
  .hhe-preset-bottom-band .hhe-inner { border-block-start-width: 5px; }
  .hhe-preset-bottom-band .hhe-inner .hhe-quote { justify-self: end; }
}


/* The panel overlay sits behind the copy and above the panel surface. */
.hhe-preset-open-frame .hhe-copy {
  isolation: isolate;
}

:is(.hhe-preset-editorial, .hhe-preset-window) .hhe-preset-stage::after,
:is(.hhe-preset-curve, .hhe-preset-bottom-band) .hhe-inner::after,
.hhe-preset-open-frame .hhe-copy::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  border-radius: inherit;
  transition: opacity .3s ease, background-color .3s ease;
}

@media (max-width: 767px) {
  :is(.hhe-preset-editorial, .hhe-preset-window) .hhe-inner { background-color: transparent; }
}

.hhe-preset-window :is(.hhe-bg-image, .hhe-bg-video, .hhe-video-placeholder) {
  border: 2px solid var(--hhe-window-frame-color, rgba(255, 255, 255, .55));
  box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
}

.hhe-preset-window .hhe-window-scene { position: relative; }
.hhe-preset-window .hhe-inner { position: static; }
.hhe-preset-window .hhe-inner .hhe-quote {
  position: absolute;
  inset: auto calc(var(--hhe-gutter) + 14px) calc(var(--hhe-gutter) + 39px) auto;
  max-width: min(37%, 28ch);
  background: rgba(12, 21, 34, .82);
  color: #fff;
  border-radius: 0 8px 8px 0;
}

@media (min-width: 1025px) {
  .hhe-preset-window .hhe-preset-features {
    position: relative;
    z-index: 3;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 145px), 1fr));
    width: 49%;
    gap: 10px;
    padding: 0 var(--hhe-gutter) 24px;
    background: transparent;
  }
}
.hhe-preset-window .hhe-preset-features li {
  padding: 9px 12px;
  border: 1px solid color-mix(in srgb, var(--hhe-ink) 25%, transparent);
  border-radius: 10px;
  background: color-mix(in srgb, var(--hhe-panel) 76%, transparent);
  box-shadow: 0 5px 18px rgba(0, 0, 0, .2);
}
@media (max-width: 1024px) {
  .hhe-preset-window .hhe-preset-features {
    position: relative;
    z-index: 3;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 0 var(--hhe-gutter) 20px;
    background: transparent;
  }
  .hhe-preset-window .hhe-preset-features li {
    flex: 1 1 145px;
    max-width: 220px;
    min-width: 0;
  }
}
@media (max-width: 767px) {
  .hhe-preset-window .hhe-inner .hhe-quote {
    inset: calc(var(--hhe-mobile-scene) - 12px) 28px auto auto;
    max-width: min(calc(100% - 56px), 28ch);
    transform: translateY(-100%);
  }
}

/* Share the desktop rows so the copy and static features align with the media. */
@supports (grid-template-rows: subgrid) {
  @media (min-width: 1025px) {
    .hhe-preset-window .hhe-preset-stage:has(> .hhe-preset-features) {
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      grid-template-rows: minmax(var(--hhe-gutter), 1fr) auto auto minmax(var(--hhe-gutter), 1fr);
      min-height: var(--hhe-stage-height, clamp(540px, 54vw, 800px));
    }
    .hhe-preset-window .hhe-preset-stage:has(> .hhe-preset-features) :is(.hhe-window-scene, .hhe-track, .hhe-slide) {
      display: grid;
      grid-template-rows: subgrid;
      grid-column: 1;
      grid-row: 1 / -1;
      min-height: 0;
    }
    .hhe-preset-window .hhe-preset-stage:has(> .hhe-preset-features) .hhe-inner {
      grid-row: 2;
      padding-block: 0 18px;
    }
    .hhe-preset-window .hhe-preset-stage > .hhe-preset-features {
      grid-column: 1;
      grid-row: 3;
      padding-bottom: 0;
    }
  }
}

