@media (prefers-reduced-motion: no-preference) {
  /* above the fold: plays on load, no JS involved */
  .ev-phero__bgclip {
    animation: ev-fade-in 1.6s ease-out backwards;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ev-phero__features::after {
    transition: none;
  }
}

/* layer group spanning the 1920 frame, centred in the viewport */
.ev-phero__layers {
  position: absolute;
  top: 0;
  left: calc(50% - 960 * var(--px));
  width: calc(1920 * var(--px));
  height: 100%;
  pointer-events: none;
}
/* --- Hero ---------------------------------------------------------------- */
.ev-phero {
  position: relative;
  isolation: isolate;
}
.ev-phero__bgclip {
  position: absolute;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  background: #080808;
}
@media (max-width: 900px) {
  .ev-phero__bgclip {
    -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 62%, transparent 100%);
  }
}

.ev-phero__bg {
  /* 3851×2004 interior, scaled as in the Figma frame (156.57% × 169.85% of 1920×921); --bg-top: vertical crop of a single page (Cove) */
  top: calc(var(--bg-top, -413) * var(--px));
  height: calc(1564 * var(--px));
  aspect-ratio: 3851 / 2004;
  translate: calc(-50% + 398 * var(--px)) 0;
}
.ev-phero__stage {
  position: relative;
  max-width: 1920px;
  height: calc(921 * var(--px));
  min-height: 600px;
  margin-inline: auto;
}
.ev-phero__layers {
  z-index: 1;
}
.ev-phero__content {
  position: absolute;
  z-index: 3;
  left: calc(1133 * var(--px));
  top: calc(250 * var(--px));
  width: calc(560 * var(--px));
  min-width: 380px;
  padding-top: 74px;
}
.ev-phero__crumbs {
  position: absolute;
  top: 0;
  left: 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  opacity: 0.5;
}
.ev-phero__crumbs ol {
  display: flex;
  gap: 0.35em;
}
.ev-phero__crumbs li + li::before {
  content: "/ ";
}
.ev-phero__eyebrow {
  position: absolute;
  top: 32px;
  left: 0;
}
.ev-phero__title {
  max-width: calc(var(--tw, 541) * var(--px) + 4px);
  font-size: var(--ev-fs-h2);
  font-weight: 400;
  line-height: 1.227;
}
/* Figma places the text box and the button by hand on every product: --text-top (from the title), --text-w / --text-h (the box) and --cta-gap (box to button) are set on .ev-phero__content, in px of the 1920 frame */
.ev-phero__text {
  max-width: calc(var(--text-w, 458) * 1px);
  min-height: calc(var(--text-h, 0) * 1px);
  margin-top: calc(var(--text-top, 26) * 1px);
  font-size: 15px;
  line-height: 1.8;
}
.ev-phero__cta {
  margin-top: calc(var(--cta-gap, 30) * 1px);
  padding-inline: 18px;
}
.ev-phero__features {
  position: absolute;
  z-index: 3;
  left: max(var(--ev-gutter), calc(188 * var(--px)));
  bottom: calc(60 * var(--px));
  display: flex;
}
.ev-phero__features li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  opacity: 0.7;
}
/* --gap: distance to the previous item (or to the left edge), per item as in the Figma frame */
.ev-phero__features li:first-child {
  margin-left: calc(var(--gap, 0) * var(--px));
}
.ev-phero__features li + li {
  margin-left: calc(var(--gap, 64) * var(--px));
}
.ev-phero__features span {
  font-size: 12px;
}
.ev-phero__features strong {
  font-size: clamp(14px, 0.9375vw, 18px);
  font-weight: 400;
}
/* the rule under the features grows from 53 px to the container width once in view (global: [data-ev-line]) */
.ev-phero__features {
  --ev-line-full: calc(1544 * var(--px));
}
.ev-phero__features[data-ev-line] {
  --ev-line-w: var(--ev-line-full);
}
.ev-js .ev-phero__features[data-ev-line]:not(.is-in) {
  --ev-line-w: 53px;
}
.ev-phero__features::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -24px;
  width: var(--ev-line-w, 53px);
  height: 1px;
  background: rgba(255, 255, 255, 0.3);
  transition: width 2s ease-out 1s;
}
@media (max-width: 900px) {
  .ev-phero__crumbs a {
    padding-block: 9px;
  }
  /* product: layer groups are cropped to their product bounding box (--fx/--fy/--fw/--fh) and stacked */
  .ev-phero__layers {
    --px: min(calc((100vw - 2 * var(--ev-gutter)) / var(--fw)), 0.7px);
    position: relative;
    left: auto;
    width: auto;
    height: calc(var(--fh) * var(--px));
  }
  .ev-phero__layers > .ev-layer {
    translate: calc(-1 * var(--fx) * var(--px)) calc(-1 * var(--fy) * var(--px));
  }
  .ev-phero__layers > .ev-layer--full {
    display: none;
  }
  .ev-phero__stage {
    height: auto;
    min-height: 0;
    padding: 110px var(--ev-gutter) 72px;
  }
  .ev-phero__bg {
    top: 0;
    height: 620px;
    translate: -50% 0;
  }
  .ev-phero__content {
    position: relative;
    left: auto;
    top: auto;
    width: auto;
    min-width: 0;
    margin-top: 24px;
  }
  .ev-phero__title {
    max-width: none;
  }
  .ev-phero__text {
    max-width: none;
    min-height: 0;
    margin-top: 26px;
  }
  .ev-phero__cta {
    margin-top: 30px;
  }
  .ev-phero__features {
    position: relative;
    left: auto;
    bottom: auto;
    flex-direction: column;
    gap: 10px;
    margin-top: 48px;
  }
  .ev-phero__features li:first-child,
  .ev-phero__features li + li {
    margin-left: 0;
  }
  .ev-phero__features::after {
    display: none;
  }
}

/* --- Purchase: products for sale (not in the Figma file) -------------------
   Price and add to cart take the place of the single quote button. The stage grows by the height
   they add (112 px block − 42 px button), so the feature row keeps its distance; the 53 px rule
   repeats the motif of the page. */
.ev-phero--buy .ev-phero__stage {
  height: calc(921 * var(--px) + 70px);
  min-height: 670px;
}
.ev-phero__buy {
  max-width: 460px;
  margin-top: calc(var(--cta-gap, 30) * 1px);
}
.ev-phero__buy::before {
  content: "";
  display: block;
  width: 53px;
  height: 1px;
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.3);
}

/* --- Product without a layered composition: its WooCommerce image on the left --- */
.ev-phero__photo {
  position: absolute;
  z-index: 1;
  left: max(var(--ev-gutter), calc(188 * var(--px)));
  top: calc(190 * var(--px));
  width: calc(840 * var(--px));
  height: calc(600 * var(--px));
}
.ev-phero__photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 50% 50%;
}

/* --- Products with options: WooCommerce's form in a panel under the hero --- */
.ev-phero__options {
  margin-bottom: clamp(48px, 5vw, 96px);
  padding: clamp(24px, 2.9vw, 56px);
  border-radius: var(--ev-radius-panel);
  background: var(--ev-bg-2);
  scroll-margin-top: 100px;
}
.ev-phero__options-title {
  margin-bottom: 28px;
  font-size: var(--ev-fs-h3);
  font-weight: 500;
  line-height: 1.35;
}
.ev-notices {
  padding-block: 24px;
}

@media (max-width: 900px) {
  .ev-phero--buy .ev-phero__stage {
    height: auto;
    min-height: 0;
  }
  .ev-phero__buy {
    max-width: none;
    margin-top: 30px;
  }
  .ev-phero__photo {
    position: relative;
    left: auto;
    top: auto;
    width: auto;
    height: auto;
    aspect-ratio: 4 / 3;
  }
}
