/* ============================================================================
   Floom — the closing section
   ----------------------------------------------------------------------------
   The last section before the footer, on every product page and Resources
   (not the landing page, which ends on its questions): a dark panel with the
   page's last word on it, and someone on a sofa in front of it, their head
   just over its lower edge. The photograph is cropped through the sofa, so
   its foot fades into the page, and the section keeps a gap of its own
   before the footer rather than running into it.

   Everything is sized off --end-w, the photograph's width: the panel's own
   width, so the sofa keeps the panel's margins and never meets the window's
   edges, and never under 560px, so on a phone the person stays a person and the sofa's
   arms go off the sides instead. Percentages in it resolve against the
   section's width wherever it is used — width, margins and padding alike. The
   panel's foot is kept clear of the head (.0854 × --end-w) plus a gap, and the
   photograph rises .0924 × --end-w into it, which is where the top of the
   head sits.

   The panel takes the 12-column grid's width (--fl-wrap), so the section
   closes every page at the same edges the page itself keeps.
   ========================================================================== */
.fl-end{
  --end-w: max(560px, var(--fl-wrap));   /* the grid; the photograph never narrower than 560 */
  padding-top: round(clamp(96px, 12vw, 180px), 8px);
  padding-bottom: round(clamp(48px, 6vw, 96px), 8px);
  overflow: clip;
}
.fl-end-panel{
  box-sizing: border-box;
  width: var(--fl-wrap);   /* the 12-column grid */
  margin-inline: auto;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  aspect-ratio: 759 / 350;
  padding: round(clamp(48px, 6vw, 96px), 8px) round(clamp(20px, 4vw, 64px), 4px) round(calc(var(--end-w) * .0854 + clamp(28px, 4.3vw, 64px)), 4px);
  border-radius: clamp(10px, 1.1vw, 16px);
  background: var(--ap-ink);
  color: #FFFFFF;
  text-align: center;
}
.fl-end-h{
  margin: 0; max-width: 18em;
  font-family: var(--font-display); font-size: var(--fl-t-title1); font-weight: 700; line-height: 1;
  letter-spacing: -0.02em; text-transform: uppercase; text-wrap: balance;
  color: #FFFFFF;
}
.fl-end-sub{
  margin: var(--fl-gap-stand) 0 0; max-width: 64em;
  font-family: var(--font); font-size: clamp(12.41px, 1vw, 15.79px); font-weight: 450; line-height: 1.3;
  letter-spacing: 0.05em; text-transform: uppercase; text-wrap: balance;   /* two even lines, never a word left on its own */
  color: color-mix(in srgb, #FFFFFF 82%, transparent);
}
/* an address stays as it is written */
.fl-end-sub a{ color: #FFFFFF; text-transform: none; letter-spacing: 0; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.fl-end-cta{
  display: flex; flex-wrap: wrap; justify-content: center; gap: round(clamp(8px, 1.1vw, 16px), 4px);
  margin-top: round(clamp(24px, 2.8vw, 40px), 4px);
}
.fl-end .ap-btn:focus-visible{ outline: 2px solid var(--accent); outline-offset: 3px; }
.fl-end-img{
  position: relative; z-index: 1;
  display: block;
  width: var(--end-w); max-width: none; height: auto;
  margin: round(calc(var(--end-w) * -.0924), 4px) 0 0 round(calc(50% - var(--end-w) / 2), 4px);
  pointer-events: none;
  -webkit-user-select: none; user-select: none;
  /* the crop through the sofa fades out instead of ending on a hard line */
  -webkit-mask-image: linear-gradient(to bottom, #000000 72%, transparent);
          mask-image: linear-gradient(to bottom, #000000 72%, transparent);
}
