/* ─────────────────────────────────────────────────────────────────────────
   Section: Feature: Amenities and Reservations — Why It Matters
   (Figma 2225:2865 / 2225:2955)

   Photo band = Figma's "Frame 216" (1440x752): its image fill is drawn at
   w100% h125.95%, top -22.02% (Figma's own fill transform, not measured).
   Below lg (no Amenities mobile frame) the band is 360x250 with the image
   covering it.

   Highlight strokes are vertical exports (preserveAspectRatio="none"). Each
   is drawn at its export size (W x H) and rotated -90deg about its centre:
   left = boxLeft - (W-H)/2, top = boxTop - (H-W)/2. Figma's render draws
   both strokes 31 (their height) above the layer box y it reports; the
   offsets below follow the render (measured).
   ───────────────────────────────────────────────────────────────────────── */

.section-amen-why__photo {
  position: relative;
  aspect-ratio: 360 / 250;
  overflow: hidden;
}

.section-amen-why__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

/* Anchor for a stroke: it follows its word wherever the heading wraps */
.section-amen-why__word {
  position: relative;
  display: inline-block;
  isolation: isolate;
}

.section-amen-why__blob {
  position: absolute;
  z-index: -1;
  max-width: none;
  pointer-events: none;
  transform: rotate(-90deg);
}

@media (width >= 64rem) {
  .section-amen-why__photo {
    aspect-ratio: 1440 / 752;
  }

  .section-amen-why__photo img {
    inset: auto;
    top: -22.02%;
    left: 0;
    width: 100%;
    height: 125.95%;
    object-fit: fill;
  }

  /* At 1440 "works for" sits at heading x122 / y114 and "every role" at
     x0 / y171; Figma's strokes (render) sit at heading x104 / y144 and
     x-31 / y200 — 18 and 31 left of the words, 30 below each line's top. */

  /* Blob 7: export 31x297, box 297x31 at word x-18 / y30 */
  .section-amen-why__blob--first {
    width: 1.9375rem;
    height: 18.5625rem;
    left: 7.1875rem; /* -18 + 133 */
    top: -6.4375rem; /* 30 - 133 */
  }

  /* Blob 6: export 31x336, box 336x31 at word x-31 / y30 */
  .section-amen-why__blob--second {
    width: 1.9375rem;
    height: 21rem;
    left: 7.5938rem; /* -31 + 152.5 */
    top: -7.6563rem; /* 30 - 152.5 */
  }
}
