/* ZUGA better focus — two framed lifestyle shots with scribbles, copy and checklist. */

.zuga-focus {
  position: relative;
  padding: clamp(6rem, 8vw, 10rem) 0 clamp(8rem, 10vw, 13rem);
  background: var(--zuga-focus-bg, var(--zuga-cream));
  overflow-x: clip;
}

.zuga-focus__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(4rem, 6vw, 8rem);
  align-items: center;
}

.zuga-focus--media-right .zuga-focus__media {
  order: 2;
}

/* --------------------------------------------------------------------------
   Image collage
   -------------------------------------------------------------------------- */
.zuga-focus__media {
  position: relative;
}

.zuga-focus__card {
  position: relative;
  margin: 0;
}

.zuga-focus__card--main {
  z-index: 1;
  width: 52%;
  margin-left: 40%;
  aspect-ratio: 0.63;
}

.zuga-focus__card--side {
  position: absolute;
  z-index: 2;
  left: 2%;
  bottom: 0;
  width: 34%;
  aspect-ratio: 1.25;
}

.zuga-focus__frame,
.zuga-focus__photo {
  position: absolute;
  inset: 0;
  display: block;
  border-radius: 2rem;
}

.zuga-focus__frame {
  overflow: hidden;
  background: var(--zuga-focus-frame);
  transition: transform 0.6s var(--zuga-ease-spring);
}

.zuga-focus__photo {
  overflow: hidden;
  transition: transform 0.6s var(--zuga-ease-spring);
}

.zuga-focus__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Cut-out photos stand on the frame instead of filling it. */
.zuga-focus__card--cutout .zuga-focus__image {
  object-fit: contain;
  object-position: center bottom;
}

/* The small cut-out pops out above its frame; only the bottom corners clip. */
.zuga-focus__card--side.zuga-focus__card--cutout .zuga-focus__photo {
  top: -45%;
  overflow: visible;
  border-radius: 0;
  clip-path: inset(-50% 0 0 0 round 0 0 2rem 2rem);
}

/* Blank placeholders: just a dashed outline so the colourful frame shows. */
.zuga-focus .zuga-placeholder {
  background: transparent;
  border-color: rgba(232, 80, 28, 0.3);
}

@media (hover: hover) and (pointer: fine) {
  .zuga-focus__card:hover .zuga-focus__frame {
    transform: rotate(-2deg) scale(1.02);
  }
}

@media (hover: hover) and (pointer: fine) {
  .zuga-focus__card:hover .zuga-focus__photo {
    transform: translateY(-2%) scale(1.03);
  }
}

/* Yellow blobs inside the large frame drift slowly. */
.zuga-focus__blobs {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: var(--zuga-focus-blob);
}

.zuga-focus__blobs path {
  transform-box: fill-box;
  transform-origin: center;
  animation: zuga-blob-drift 9s ease-in-out infinite alternate;
}

.zuga-focus__blobs path + path {
  animation-duration: 11s;
  animation-delay: -4s;
}

@keyframes zuga-blob-drift {
  to {
    transform: translate(4%, 3%) scale(1.08) rotate(3deg);
  }
}

/* White brush-stroke image behind the cards. */
.zuga-focus__scribbles {
  position: absolute;
  z-index: 0;
  left: -18%;
  top: 24%;
  width: 118%;
  height: auto;
  max-width: none;
  pointer-events: none;
  opacity: 0.95;
}

/* Painted on: a soft-edged gradient mask slides off left to right as if the
   brush is moving. A mask, not clip-path: an element clipped to nothing can
   look invisible to lazy-loading and to the in-view observer, so it never
   loads or reveals. Gradient is 220% wide; position 100% = hidden, 0% = shown. */
.zuga-motion .zuga-focus__scribbles {
  -webkit-mask: linear-gradient(90deg, #000 45%, transparent 55%) 100% 0 / 220% 100% no-repeat;
  mask: linear-gradient(90deg, #000 45%, transparent 55%) 100% 0 / 220% 100% no-repeat;
  transition:
    -webkit-mask-position 1.6s var(--zuga-ease-out) 0.2s,
    mask-position 1.6s var(--zuga-ease-out) 0.2s;
}

.zuga-motion .zuga-focus__scribbles.is-inview {
  -webkit-mask-position: 0% 0;
  mask-position: 0% 0;
}

/* --------------------------------------------------------------------------
   Copy
   -------------------------------------------------------------------------- */
.zuga-focus__content {
  max-width: 50rem;
}

.zuga-focus__title {
  font-size: clamp(3.6rem, 4.6vw, 6.4rem);
}

.zuga-focus__text {
  margin: 2rem 0 2.4rem;
  font-size: 1.5rem;
  font-weight: 500;
}

.zuga-focus__text > :first-child {
  margin-top: 0;
}

.zuga-focus__text > :last-child {
  margin-bottom: 0;
}

.zuga-focus__points {
  display: grid;
  gap: 1rem;
  margin: 0 0 3.2rem;
  padding: 0;
  list-style: none;
}

.zuga-focus__point {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--zuga-font);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--zuga-text, var(--zuga-orange));
}

.zuga-focus__check {
  flex: none;
  width: 1.6rem;
  height: 1.6rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Each tick draws itself just after its row slides in. */
.zuga-motion .zuga-focus__check path {
  stroke-dasharray: 1 2;
  stroke-dashoffset: 1.01;
  transition: stroke-dashoffset 0.5s var(--zuga-ease-out);
  transition-delay: calc(var(--zuga-delay, 0s) + 0.35s);
}

.zuga-motion .zuga-focus__point.is-inview .zuga-focus__check path {
  stroke-dashoffset: 0;
}

/* --------------------------------------------------------------------------
   Mobile: images stack above the copy
   -------------------------------------------------------------------------- */
@media screen and (max-width: 749px) {
  .zuga-focus__grid {
    grid-template-columns: 1fr;
  }

  .zuga-focus--media-right .zuga-focus__media {
    order: 0;
  }

  .zuga-focus__card--main {
    width: 60%;
    margin-left: 36%;
  }

  .zuga-focus__card--side {
    left: 0;
    width: 42%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .zuga-focus__blobs path {
    animation: none;
  }

  .zuga-motion .zuga-focus__check path {
    stroke-dashoffset: 0;
    transition: none;
  }

  .zuga-motion .zuga-focus__scribbles {
    -webkit-mask: none;
    mask: none;
    transition: none;
  }

  .zuga-focus__frame,
  .zuga-focus__photo {
    transition: none;
  }
}
