/* =============================================
   LEGACY — Figma 175:3769 "Frame 2147224957" (1920×1080)
   Paradise Group collage on the left, headline + copy + link on the
   right, corner photo flush with the bottom-right corner.
   Every measurement is Figma px × --dpx (see CONVENTIONS).
   The CSS holds the FINAL (revealed) state; js/sections/legacy.js
   animates the blocks in once the section enters the viewport.
   ============================================= */

.sec-legacy .sec-canvas {
  height: calc(1080 * var(--dpx));
}

/* ---- Watermark rings — Figma 175:3778 (210 @ -56,-154) / 175:3777 (258 @ -80,932).
        The 12% gold fill lives inside the SVGs; the canvas clips the overhang. ---- */
.sec-legacy .legacy-mark {
  position: absolute;
  max-width: none;
  pointer-events: none;
  user-select: none;
}

.sec-legacy .legacy-mark--top {
  left: calc(-56 * var(--dpx));
  top: calc(-154 * var(--dpx));
  width: calc(210 * var(--dpx));
  height: calc(210 * var(--dpx));
}

.sec-legacy .legacy-mark--bottom {
  left: calc(-80 * var(--dpx));
  top: calc(932 * var(--dpx));
  width: calc(258 * var(--dpx));
  height: calc(258 * var(--dpx));
}

/* ---- Collage — Figma 175:3770: 842×698 @ 83,100 (photo is exactly 842×698, anchored bottom) ---- */
.sec-legacy .legacy-collage {
  position: absolute;
  left: calc(83 * var(--dpx));
  top: calc(100 * var(--dpx));
  width: calc(842 * var(--dpx));
  height: calc(698 * var(--dpx));
  margin: 0;
  overflow: hidden;
  background: var(--cream-dark);
  will-change: transform;
}

.sec-legacy .legacy-collage .sec-img {
  object-position: center bottom;
}

/* ---- Title — Figma 175:3773: 801 wide @ 1041,135, Loren Blake 64/82 (.sec-title) ---- */
.sec-legacy .legacy-title {
  position: absolute;
  left: calc(1041 * var(--dpx));
  top: calc(135 * var(--dpx));
  width: calc(801 * var(--dpx));
}

/* ---- Body — Figma 175:3774: 635 wide @ 1138,437, Neue Haas 45 Light 16/24, tracking 0.8, #3c3c3a ---- */
.sec-legacy .legacy-body {
  position: absolute;
  left: calc(1138 * var(--dpx));
  top: calc(437 * var(--dpx));
  width: calc(635 * var(--dpx));
  font-size: max(calc(16 * var(--dpx)), 12px);
  line-height: 1.5;
  letter-spacing: calc(0.8 * var(--dpx));
  color: var(--text-muted);
}

.sec-legacy .legacy-body p {
  margin: 0;
}

/* Figma separates the paragraphs with one empty 24px line */
.sec-legacy .legacy-body p + p {
  margin-top: calc(24 * var(--dpx));
}

/* ---- Link — Figma 175:3775 "Frame 4": 220×35 @ 1138,695, padding 8px 0, centred,
        Neue Haas 45 Light 16 tracking 0.8 uppercase gold, 0.6px gold bottom rule ---- */
.sec-legacy .legacy-link {
  position: absolute;
  left: calc(1138 * var(--dpx));
  top: calc(695 * var(--dpx));
  width: calc(220 * var(--dpx));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(8 * var(--dpx)) 0;
  border-bottom: max(1px, calc(0.6 * var(--dpx))) solid var(--gold);
  font-family: var(--font-body);
  font-weight: var(--fw-light);
  font-size: max(calc(16 * var(--dpx)), 12px);
  line-height: normal;
  letter-spacing: calc(0.8 * var(--dpx));
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
  text-decoration: none;
  transition:
    color 0.3s var(--ease-out),
    border-color 0.3s var(--ease-out);
}

.sec-legacy .legacy-link:hover,
.sec-legacy .legacy-link:focus-visible {
  color: var(--dark);
  border-bottom-color: var(--dark);
}

/* ---- Corner photo — Figma 175:3772: 325×301 @ 1463,779 (bottom edge = frame bottom).
        The photo covers this near-square box, centred. ---- */
.sec-legacy .legacy-photo {
  position: absolute;
  left: calc(1463 * var(--dpx));
  top: calc(779 * var(--dpx));
  width: calc(325 * var(--dpx));
  height: calc(301 * var(--dpx));
  margin: 0;
  overflow: hidden;
  background: var(--cream-dark);
}

.sec-legacy .legacy-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

/* =============================================
   RESPONSIVE — below the scaled canvas (<992px)
   Stack in reading order: title, collage, copy, link, photo.
   ============================================= */

@media (max-width: 991px) {
  .sec-legacy .sec-canvas {
    height: auto;
    padding: 64px 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .sec-legacy .legacy-mark {
    display: none;
  }

  .sec-legacy .legacy-title,
  .sec-legacy .legacy-collage,
  .sec-legacy .legacy-body,
  .sec-legacy .legacy-link,
  .sec-legacy .legacy-photo {
    position: relative;
    left: auto;
    top: auto;
  }

  .sec-legacy .legacy-title {
    width: 100%;
  }

  .sec-legacy .legacy-collage {
    width: 100%;
    height: auto;
    aspect-ratio: 842 / 698;
    will-change: auto;
  }

  .sec-legacy .legacy-body {
    width: 100%;
    max-width: 640px;
    font-size: 1rem;
    line-height: 1.5;
    letter-spacing: 0.04em;
  }

  .sec-legacy .legacy-body p + p {
    margin-top: 1.5rem;
  }

  .sec-legacy .legacy-link {
    width: auto;
    min-width: 220px;
    padding: 8px 0;
    border-bottom-width: 1px;
    font-size: 0.875rem;
    letter-spacing: 0.06em;
  }

  /* sits bottom-right on desktop, so keep it on the right edge here too */
  .sec-legacy .legacy-photo {
    width: 60%;
    max-width: 60%;
    height: auto;
    aspect-ratio: 325 / 301;
    align-self: flex-end;
  }
}

@media (max-width: 767px) {
  .sec-legacy .sec-canvas {
    padding: 48px 20px;
    gap: 20px;
  }

  .sec-legacy .legacy-photo {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 325 / 301;
    align-self: center;
  }
}

/* The Figma variant renders (the in-page states) show no watermark here — hidden to match. */
.sec-legacy .legacy-mark {
  display: none;
}
