/* ============================================================
   TREATMENTS - imagery-led editorial mosaic
   Full-bleed tiles, text set over each photo, asymmetric.
   ============================================================ */
.treatments {
  background: var(--color-ivory);
  padding: var(--space-xl) 0;
}
.treatments__intro {
  margin-bottom: var(--space-lg);
}
.treatments__heading {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-h2);
  line-height: 1.04;
  letter-spacing: var(--ls-tight);
  color: var(--color-charcoal);
  margin-top: var(--space-sm);
}
.treatments__lead {
  font-family: var(--font-sans);
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--color-charcoal-soft);
  max-width: 54ch;
  margin-top: var(--space-md);
}

.treatments__mosaic {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(5px, 0.5vw, 10px);
}

.t-tile {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: clamp(360px, 58vh, 520px);
  text-decoration: none;
  background: var(--color-cream);
}

/* --- Per-tile image crop tuning (object-position) ---
   Mobile values here; desktop framing is overridden in the 760px block below. */
/* Machine Hairstrokes (lead): nudge up on mobile so the brow at the foot of the frame shows */
.t-tile[href="/treatments/machine-hairstrokes/"] img { object-position: center 56%; }

.t-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}
.t-tile__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(20, 14, 10, 0.84) 0%,
    rgba(20, 14, 10, 0.36) 42%,
    rgba(20, 14, 10, 0) 70%);
}
.t-tile__text {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  padding: var(--space-lg);
  max-width: 46ch;
  color: var(--color-ivory);
}
.t-tile__name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-h3);
  line-height: 1.05;
  letter-spacing: var(--ls-tight);
  text-wrap: balance;
}
.t-tile__line {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.45;
  color: rgba(243, 233, 217, 0.88);
  max-width: 34ch;
}
.t-tile__go {
  margin-top: 0.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--color-ivory);
}
.t-tile__go svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--color-champagne-soft);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--dur-med) var(--ease-out);
}

@media (hover: hover) {
  .t-tile:hover img { transform: scale(1.05); }
  .t-tile:hover .t-tile__go svg { transform: translateX(5px); }
}
.t-tile:focus-visible {
  outline: 2px solid var(--color-champagne);
  outline-offset: -4px;
}

@media (min-width: 760px) {
  .treatments__mosaic { grid-template-columns: 1fr 1fr; }
  .t-tile { min-height: clamp(380px, 46vh, 480px); }
  .t-tile__text { padding: var(--space-xl); }

  /* per-tile crop tuning (desktop framing differs from mobile) */
  .t-tile[href="/treatments/machine-hairstrokes/"] img { object-position: center 58%; } /* up: reveal more bottom */
  .t-tile[href="/treatments/ombre-brows/"] img         { object-position: center 32%; } /* down: reveal more top */
  .t-tile[href="/treatments/combination-brows/"] img   { object-position: center 32%; } /* down: reveal more top */
  .t-tile[href="/treatments/brow-correction/"] img     { object-position: center 76%; } /* up: reveal more bottom */
}

@media (prefers-reduced-motion: reduce) {
  .t-tile img,
  .t-tile__go svg { transition: none; }
}