/* ============================================================================
   martinvelez.ravencorex.com — Profile skin (v4)
   MINIMAL layer over the site design system. Only profile-specific pieces:
   minimal navbar, full-bleed banner, overlapping avatar, identity block,
   stats band, experience accordion, recommendation quotes, education, CTA.
   Everything else reuses real rcx-* classes (container, section, card, chip,
   btn, overline, bg-alt/dark, logo-strip). Hard rules kept: radius 0, no
   box-shadow, azure/carbón, tokens only.
   ============================================================================ */

/* ---- Minimal navbar (logo + back link) ------------------------------------- */
.mv-nav {
  height: 64px;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(16px);
          backdrop-filter: blur(16px);
  border-bottom: var(--icon-stroke) solid var(--color-border);
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
}
.mv-nav__in {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
@media (min-width: 1024px) { .mv-nav__in { padding-inline: var(--space-xl); } }
@media (min-width: 1280px) { .mv-nav__in { padding-inline: var(--margin); } }
.mv-nav__logo { display: block; height: 28px; width: auto; }

/* Right-side group: language switcher (reuses site's .rcx-lang) + back link. */
.mv-nav__actions { display: flex; align-items: center; gap: var(--space-sm); }
/* Visible keyboard focus on the language switcher links. */
.mv-nav .rcx-lang a:focus-visible {
  outline: 2px solid var(--color-azure-500);
  outline-offset: 2px;
}
/* On narrow phones the switcher takes priority; the back link is redundant
   (the logo already links home), so it drops to prevent the bar from cramping. */
@media (max-width: 430px) {
  .mv-nav__actions { gap: var(--space-2xs); }
  .mv-nav__back { display: none; }
}
.mv-nav__back {
  font-family: var(--font-body);
  font-size: var(--text-body-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text-secondary);
  transition: color var(--duration-hover) var(--easing-out);
}
.mv-nav__back:hover { color: var(--color-azure-500); }

/* ---- Full-bleed banner ------------------------------------------------------ */
/* Baked image (logo + headline + photo). Shown WHOLE, never cropped:
   width:100%, height:auto keeps the 4:1 ratio. Never object-fit:cover. */
.mv-banner {
  display: block;
  width: 100%;
  height: auto;
}

/* ---- Intro / identity ------------------------------------------------------- */
/* No top padding so the avatar can pull up over the banner bottom. */
.mv-intro { padding-top: 0; }

/* Horizontal layout: avatar on the left, identity block filling the space to
   its right (top-aligned). Collapses to a column on mobile. */
.mv-intro__row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xl);
}

.mv-avatar {
  display: block;
  flex: 0 0 auto;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  border: 6px solid var(--color-surface);
  margin-top: calc(240px / -2.4);
  position: relative;
  z-index: 2;
}

/* Identity block: sits to the right of the avatar, pushed down so the name lands
   around the mid/lower part of the avatar (more air off the banner). */
.mv-id { flex: 1 1 auto; min-width: 0; padding-top: var(--space-xl); }

.mv-id__name {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: clamp(1.9rem, 1.2rem + 2.2vw, 2.75rem);
  line-height: var(--leading-h2);
  letter-spacing: var(--tracking-h1);
  color: var(--color-text);
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.mv-id__verified { width: 26px; height: 26px; flex: 0 0 26px; }

/* SEO title suffix inside H1 — sits on its own line, styled like the role line
   so the big name + badge stay on line 1 and the design reads as before. */
.mv-id__title {
  flex-basis: 100%;
  font-family: var(--font-display);
  font-size: var(--text-h5);
  font-weight: var(--weight-semibold);
  color: var(--color-text);
  letter-spacing: normal;
  line-height: var(--leading-h4);
  margin-top: var(--space-3xs);
}

.mv-id__role {
  font-family: var(--font-display);
  font-size: var(--text-h5);
  font-weight: var(--weight-semibold);
  color: var(--color-text);
  margin-top: var(--space-3xs);
}
.mv-id__sub {
  font-size: var(--text-body);
  color: var(--color-text-secondary);
  margin-top: var(--space-2xs);
  max-width: 62ch;
}
.mv-id__meta {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: var(--tracking-caption);
  color: var(--color-text-muted);
  margin-top: var(--space-sm);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3xs) var(--space-sm);
  align-items: center;
}
.mv-id__meta a { color: var(--color-azure-700); }
.mv-id__track {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: var(--tracking-caption);
  color: var(--color-azure-700);
  margin-top: var(--space-2xs);
}
.mv-id__accent { margin-top: var(--space-md); }
.mv-id__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-md);
  align-items: center;
}

/* ---- Stats band (bordered cells) ------------------------------------------- */
.mv-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: var(--icon-stroke) solid var(--color-border);
  background: var(--color-surface);
}
.mv-stat {
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  border-right: var(--icon-stroke) solid var(--color-border);
}
.mv-stat:last-child { border-right: none; }
.mv-stat__v {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: var(--text-h3);
  line-height: 1.05;
  color: var(--color-azure-500);
}
.mv-stat__l {
  font-size: var(--text-body-sm);
  color: var(--color-text-secondary);
  margin-top: var(--space-2xs);
}
.mv-stat__s {
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  color: var(--color-text-muted);
  margin-top: var(--space-3xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-overline);
}

/* ---- About / prose ---------------------------------------------------------- */
/* Centered reading column so the section fills the width intentionally instead
   of hugging the left edge with dead space on the right. Text stays left-aligned
   inside the column; only the column is centered. On mobile (column narrower than
   68ch) margin-inline:auto is a no-op and it renders full-width as usual. */
.mv-about { max-width: 68ch; margin-inline: auto; }
.mv-prose { max-width: 70ch; }
.mv-prose p { font-size: var(--text-body-lg); line-height: var(--leading-body); color: var(--color-text-secondary); }
.mv-prose p + p { margin-top: var(--space-md); }
.mv-prose strong { color: var(--color-text); font-weight: var(--weight-semibold); }
.mv-prose a { color: var(--color-azure-700); font-weight: var(--weight-semibold); }

/* ---- What we ship — Level 1: the 3 units (primary cards) -------------------- */
.mv-units {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}
@media (min-width: 768px) { .mv-units { grid-template-columns: repeat(3, 1fr); } }
.mv-unit__name {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: var(--text-h4);
  line-height: var(--leading-h4);
  color: var(--color-text);
}
.mv-unit__desc { font-size: var(--text-body-sm); color: var(--color-text-secondary); line-height: var(--leading-body-sm); }
.mv-unit__link { align-self: flex-start; margin-top: auto; }

/* ---- Results I deliver (outcome list) --------------------------------------- */
.mv-results {
  border: var(--icon-stroke) solid var(--color-border);
  border-top: 4px solid var(--color-azure-500);
  background: var(--color-surface);
}
.mv-results__i {
  padding: var(--space-md);
  border-bottom: var(--icon-stroke) solid var(--color-border);
}
.mv-results__i:last-child { border-bottom: none; }
.mv-results__impact {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: var(--text-h5);
  line-height: var(--leading-h4);
  color: var(--color-text);
}
.mv-results__impact .mv-metric { color: var(--color-azure-500); }
.mv-results__d {
  font-size: var(--text-body-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-body-sm);
  margin-top: var(--space-3xs);
}

/* ---- What I do — types of work (grid) --------------------------------------- */
.mv-work {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}
@media (min-width: 640px) { .mv-work { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .mv-work { grid-template-columns: repeat(3, 1fr); } }
.mv-work__i {
  border: var(--icon-stroke) solid var(--color-border);
  border-top: 4px solid var(--color-azure-500);
  background: var(--color-surface);
  padding: var(--space-md);
}
.mv-work__t {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: var(--text-h5);
  line-height: var(--leading-h4);
  color: var(--color-text);
}
.mv-work__d {
  font-size: var(--text-body-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-body-sm);
  margin-top: var(--space-2xs);
}
.mv-work__cta { margin-top: var(--space-lg); }

/* ---- Skills chips ----------------------------------------------------------- */
.mv-chips { display: flex; flex-wrap: wrap; gap: var(--space-2xs); }

/* Secondary "Hands-on with" line under the high-level expertise chips. */
.mv-skills__handson-label {
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  text-transform: uppercase;
  letter-spacing: var(--tracking-overline);
  color: var(--color-text-muted);
  margin-top: var(--space-lg);
}
.mv-skills__handson {
  font-family: var(--font-mono);
  font-size: var(--text-body-sm);
  line-height: var(--leading-body);
  color: var(--color-text-secondary);
  margin-top: var(--space-2xs);
  max-width: 74ch;
}

/* ---- Courses & training (bordered list) ------------------------------------- */
.mv-courses {
  border: var(--icon-stroke) solid var(--color-border);
  background: var(--color-surface);
}
.mv-courses__i {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  padding: var(--space-md);
  border-bottom: var(--icon-stroke) solid var(--color-border);
  font-size: var(--text-body);
  color: var(--color-text);
}
.mv-courses__i:last-child { border-bottom: none; }
.mv-courses__i::before {
  content: "▸";
  color: var(--color-azure-500);
  font-size: var(--text-body-sm);
  flex: 0 0 auto;
}
.mv-courses__note {
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  color: var(--color-text-muted);
  margin-top: var(--space-sm);
}

/* ---- Recommendations (dark) ------------------------------------------------- */
.mv-recs { display: flex; flex-direction: column; gap: var(--space-lg); margin-top: var(--space-sm); }
.mv-rec {
  border-left: 4px solid var(--color-azure-300);
  padding: var(--space-3xs) 0 var(--space-3xs) var(--space-md);
}
.mv-rec__q {
  font-size: var(--text-body-lg);
  color: var(--color-neutral-200);
  font-style: italic;
  line-height: var(--leading-body);
  margin: 0;
}
.mv-rec__signal { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-2xs); margin-top: var(--space-sm); }
.mv-rec__stars { color: #F59E0B; letter-spacing: 2px; }
.mv-rec__badge {
  display: inline-flex;
  font-family: var(--font-body);
  font-weight: var(--weight-semibold);
  font-size: var(--text-label);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-overline);
  text-transform: uppercase;
  color: var(--color-malibu-300);
  border: var(--icon-stroke) solid var(--color-malibu-700);
  padding: var(--space-3xs) var(--space-2xs);
}
.mv-rec__m {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--color-neutral-300);
  letter-spacing: var(--tracking-caption);
}

/* ---- Education -------------------------------------------------------------- */
.mv-edu {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}
@media (min-width: 768px) { .mv-edu { grid-template-columns: repeat(2, 1fr); } }
.mv-edu__i {
  border: var(--icon-stroke) solid var(--color-border);
  padding: var(--space-md);
}
.mv-edu__s { font-family: var(--font-display); font-weight: var(--weight-semibold); font-size: var(--text-h5); color: var(--color-text); }
.mv-edu__d { font-size: var(--text-body-sm); color: var(--color-text-secondary); margin-top: var(--space-3xs); }
.mv-edu__m { font-family: var(--font-mono); font-size: var(--text-caption); color: var(--color-text-muted); margin-top: var(--space-2xs); }

/* ---- CTA final (dark + gradient wash) -------------------------------------- */
.mv-cta { position: relative; overflow: hidden; }
.mv-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-firmado);
  opacity: .08;
  pointer-events: none;
}
.mv-cta > .rcx-container { position: relative; }
.mv-cta__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}
@media (min-width: 768px) { .mv-cta__grid { grid-template-columns: 1fr 1fr; } }
.mv-cta__card {
  border: var(--icon-stroke) solid var(--color-neutral-700);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.mv-cta__t { font-family: var(--font-display); font-weight: var(--weight-bold); font-size: var(--text-h4); color: var(--color-neutral-0); }
.mv-cta__d { font-size: var(--text-body-sm); color: var(--color-neutral-200); }
.mv-cta__card .rcx-btn { align-self: flex-start; margin-top: auto; }

/* ---- Minimal footer --------------------------------------------------------- */
.mv-foot { background: var(--color-bg-darkest); padding: var(--space-xl) var(--space-sm); }
.mv-foot__in {
  max-width: var(--container-max);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: center;
  text-align: center;
}
.mv-foot__links { display: flex; gap: var(--space-md); flex-wrap: wrap; justify-content: center; }
.mv-foot__links a { color: var(--color-neutral-500); font-size: var(--text-body-sm); transition: color var(--duration-hover) var(--easing-out); }
.mv-foot__links a:hover { color: var(--color-neutral-0); }
.mv-foot__c { font-family: var(--font-mono); font-size: var(--text-caption); color: var(--color-neutral-700); }

/* ---- Mobile ----------------------------------------------------------------- */
/* Intro collapses to a column (avatar over identity) and the avatar shrinks. */
@media (max-width: 720px) {
  .mv-intro__row { flex-direction: column; gap: var(--space-sm); }
  .mv-avatar { width: 140px; height: 140px; margin-top: calc(140px / -2.4); }
  /* Column layout: no push-down (that only applies to the desktop side-by-side row). */
  .mv-id { padding-top: 0; }
}

@media (max-width: 640px) {
  .mv-stats { grid-template-columns: repeat(2, 1fr); }
  .mv-stat:nth-child(2) { border-right: none; }
  .mv-stat:nth-child(-n+2) { border-bottom: var(--icon-stroke) solid var(--color-border); }
}
