/* ============================================================
   BeMED Connect — Iteration 2 refinements
   Loaded after sections.css; overrides for sophistication,
   humanity, authority and less decoration.
   ============================================================ */

/* ---- AUTHORITY proof strip (credential band) ---- */
.cred-proof {
  margin-top: clamp(36px, 6vh, 64px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 48px);
  max-width: 1000px;
  margin-inline: auto;
}
.cred-proof .pf { text-align: center; }
.cred-proof .pn {
  display: block;
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 500; color: var(--gold); line-height: 1;
}
.cred-proof .pl {
  display: block; margin-top: 12px;
  font-size: 12.5px; line-height: 1.45; color: var(--grey); font-weight: 300;
  max-width: 22ch; margin-inline: auto;
}
@media (max-width: 760px) {
  .cred-proof { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
}

/* ---- HUMANITY: editorial desaturation on placeholder/mosaic imagery ---- */
/* Real warm assets (venue, hosts feature, gallery hero) keep full colour. */
.tile.photo image-slot,
.gal-grid .g-tall image-slot,
.gal-bottom .gw image-slot {
  filter: grayscale(1) contrast(1.05) brightness(0.9);
}
.tile.photo:hover image-slot,
.gal-grid .g-tall:hover image-slot,
.gal-bottom .gw:hover image-slot {
  filter: grayscale(0.2) contrast(1.05) brightness(1);
  transition: transform 1.1s var(--ease), filter 0.8s var(--ease);
}

/* ---- LESS DECORATION: stats band without box/divider lines ---- */
.stats-band .stats-grid { border: none; border-radius: 0; }
.stats-band .stats-grid .cell {
  border-right: none;
  padding: clamp(18px, 3vh, 32px) 14px;
  position: relative;
}
/* whisper-thin separators only between cells on desktop */
@media (min-width: 901px) {
  .stats-band .stats-grid .cell + .cell::before {
    content: ""; position: absolute; left: 0; top: 28%; bottom: 28%;
    width: 1px; background: var(--ink-line-soft);
  }
}

/* ---- LESS DECORATION: outcome cards borderless, space-led ---- */
.outcomes .out-grid {
  background: transparent; border: none; border-radius: 0;
  gap: clamp(26px, 3vw, 52px) clamp(28px, 4vw, 64px);
}
.outcomes .out-card {
  background: transparent; padding: 0; border-radius: 0;
}
.outcomes .out-card:hover { background: transparent; }
.outcomes .out-card .ic { margin-bottom: 18px; }

/* ---- MANU & LEE: enlarge to an editorial Forbes-style spread ---- */
.feature { padding-block: clamp(120px, 18vh, 220px); }
.feature .grid { grid-template-columns: 1.32fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: stretch; }
.feature-media { min-height: 440px; }
.feature-media image-slot { aspect-ratio: 3/4; }
.feature-media .frame-tag {
  font-size: 10.5px; letter-spacing: 0.3em;
  background: rgba(5,7,11,0.5); padding: 8px 14px; border-radius: 999px;
  backdrop-filter: blur(6px);
}
.feature h2 { font-size: clamp(26px, 2.9vw, 38px); margin-top: 18px; line-height: 1.12; }
.feature .pull {
  font-size: clamp(18px, 1.9vw, 23px); line-height: 1.36;
  margin: 26px 0; padding-left: 22px;
}
.feature .lede-intro {
  font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--grey-dim); margin-bottom: 6px; display: block;
}
.feature .sign { margin-top: 40px; }

@media (max-width: 900px) {
  .feature .grid { grid-template-columns: 1fr; }
  .feature-media { aspect-ratio: 4/4.4; }
}

/* ============================================================
   FIX — <image-slot> host has a default height; aspect-ratio on
   the slot alone collapses. Put the ratio on the WRAPPER and let
   the slot fill it (height:100%, aspect-ratio:auto).
   ============================================================ */
.feature-media {
  aspect-ratio: auto; position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
  gap: 12px;
  align-content: stretch;
}
.feature-media .fm-cell {
  position: relative; overflow: hidden; border-radius: 6px; min-height: 0;
}
.feature-media .fm-cell image-slot { width: 100%; height: 100%; aspect-ratio: auto; }
/* bias the crop to the top so faces are never cut */
.feature-media .fm-cell image-slot::part(image) {
  width: 100% !important; height: 100% !important;
  left: 0 !important; top: 0 !important; transform: none !important;
  object-fit: cover !important; object-position: 50% 16% !important;
}
.feature-media .fm-cell::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, rgba(5,7,11,0.7) 0%, transparent 26%);
}
.feature-media .fm-name {
  position: absolute; left: 14px; bottom: 12px; z-index: 2;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); font-weight: 500;
}

.tendal-grid .small { aspect-ratio: 16/11; }
.tendal-grid .big { aspect-ratio: 4/5; }
.tendal-grid .small image-slot,
.tendal-grid .big image-slot { height: 100%; aspect-ratio: auto; }

.gal-grid .g-tall { aspect-ratio: 3/4; }
.gal-grid .g-tall image-slot { height: 100%; aspect-ratio: auto; }
.gal-bottom .gw { aspect-ratio: 4/3; }
.gal-bottom .gw image-slot { height: 100%; aspect-ratio: auto; }

/* ============================================================
   TESTIMONIALS — quem já viveu a BeMED
   ============================================================ */
.testi-wrap { margin-top: clamp(64px, 10vh, 120px); }
.testi-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 56px);
}
.testi { margin: 0; position: relative; padding-top: 18px; }
.testi .tq {
  font-family: var(--serif); font-size: 64px; line-height: 0.7; color: var(--gold);
  display: block; height: 34px; opacity: 0.6;
}
.testi blockquote {
  margin: 0; font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; color: var(--silver);
  text-wrap: pretty;
}
.testi figcaption {
  margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--ink-line-soft);
  display: flex; flex-direction: column; gap: 4px;
}
.testi .tn { font-family: var(--sans); font-size: 15px; font-weight: 600; color: var(--white); letter-spacing: 0.01em; }
.testi .tr { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
@media (max-width: 900px) {
  .testi-grid { grid-template-columns: 1fr; gap: 0; }
  .testi { padding-block: 26px 4px; }
  .testi + .testi { border-top: 1px solid var(--ink-line-soft); }
}

/* ============================================================
   ITERATION 3 — high-precision refinements
   ============================================================ */

/* (3) More breath after the emotional WOW phrase */
.mesa-mosaic { padding-top: clamp(120px, 20vh, 220px); }

/* (5/Authority) Manu & Lee — facts that justify why they lead */
.feature .auth-facts {
  display: flex; gap: clamp(22px, 3.2vw, 46px); margin-top: 32px; flex-wrap: wrap;
}
.feature .auth-facts .af { display: flex; flex-direction: column; gap: 7px; }
.feature .auth-facts .afn {
  font-family: var(--serif); font-size: clamp(23px, 2.4vw, 32px);
  color: var(--gold); line-height: 1;
}
.feature .auth-facts .afl {
  font-size: 12.5px; color: var(--grey); font-weight: 300; line-height: 1.4; max-width: 17ch;
}

/* (7) Tendall — main photo ~18% larger */
.tendal-grid { grid-template-columns: 1.95fr 0.85fr; }
@media (max-width: 900px) {
  .tendal-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   FIX — head-cropping in people photos
   Force a standard cover crop biased to the top (object-position
   50% 18%) so faces are always kept. Overrides the component's
   centered manual geometry via the exposed ::part(image).
   ============================================================ */
.tile.photo image-slot::part(image),
.gal-grid image-slot::part(image),
.gal-bottom image-slot::part(image) {
  width: 100% !important;
  height: 100% !important;
  left: 0 !important;
  top: 0 !important;
  transform: none !important;
  object-fit: cover !important;
  object-position: 50% 18% !important;
}
