/* ============================================
   ABOUT.CSS — scoped to /about only.
   Reuses existing tokens from medhaiq.css: --navy-deep, --navy-rich,
   --royal-blue, --blue-bright, --white, --text-muted, --text-faint,
   --light-surface, --max-w, --radius/-lg, --font-display, --font-body,
   --white-border, .mh-eyebrow, .mh-btn-primary. No global rule is
   modified here — every selector below is prefixed .mh-about- and
   lives only on this page's DOM.

   Deliberately compact (target ≈3–4 desktop viewport heights): section
   padding, card padding, and inter-section gaps are all tightened
   relative to the previous implementation. No element here starts at
   opacity:0 or depends on IntersectionObserver/JS to become visible —
   the page is fully readable with JavaScript disabled.
   ============================================ */

/* ---------- Masthead ---------- */
.mh-about-masthead {
  padding: 132px var(--section-pad-x) 40px;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.mh-about-masthead h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 4.5vw, 29px);
  line-height: 1.15;
  color: var(--white);
  letter-spacing: -0.03em;
  margin: 10px 0 0;
}
.mh-about-masthead-sub {
  margin: 14px auto 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 520px;
}

/* ---------- Shared section scaffolding ---------- */
.mh-about-section { padding: 60px var(--section-pad-x); }
.mh-about-inner { max-width: var(--max-w); margin: 0 auto; }

/* ============================================
   01 — OUR MISSION (light)
   ============================================ */
.mh-about-mission { background: var(--white); }
.mh-about-mission-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.mh-about-mission-copy .mh-eyebrow { color: var(--royal-blue); }
.mh-about-mission-statement {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 4vw, 26px); /* was identical to .mh-about-masthead h1's clamp(22,4.5vw,29px) — kept clearly under the masthead H1's ceiling so the page title remains the visually largest heading on the page */
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--navy-rich);
  margin: 10px 0 16px;
}
.mh-about-mission-copy p {
  font-size: 15.5px;
  line-height: 1.7;
  color: #52607A;
  margin-bottom: 12px;
}
.mh-about-mission-copy p:last-child { margin-bottom: 0; }

/* "Intelligence core" visual, matching the approved reference: a
   central gradient card carrying the real MedhaIQ mark, four elevated
   white icon-cards (Understand / Assess / Improve / Practice) placed
   around it, faint dashed orbit rings with dot accents, and a layered
   platform suggesting elevation beneath the core. Colors are drawn
   from the existing blue/purple brand family already used elsewhere
   on this page (Principles icons, Vision numerals) — no new palette
   introduced. No container border/panel — floats directly on the
   section's white background, matching the reference. */
.mh-about-mission-visual {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}
.mh-about-mv-stage {
  position: relative;
  aspect-ratio: 1274 / 876;
  width: 100%;
}
.mh-about-mv-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mh-about-mv-orbit { fill: none; stroke: #D8DDF3; stroke-width: 1.5; stroke-dasharray: 3 7; }
.mh-about-mv-dot { fill: #A8B3F0; }
.mh-about-mv-platform { fill: #DDE1F6; }
.mh-about-mv-platform-group {
  transform: skewX(-11deg) scaleX(0.93);
  transform-box: fill-box;
  transform-origin: center;
}

.mh-about-mv-core {
  position: absolute;
  left: 46.5%;
  top: 45.1%;
  width: 21.4%;
  height: 37.7%;
  transform: translate(-50%, -50%);
  /* perspective for the child's 3D rotation to be measured against */
  perspective: 900px;
}
.mh-about-mv-core-face {
  width: 100%;
  height: 100%;
  border-radius: 18%;
  /* Dark navy (reusing --navy-rich/--navy-deep) rather than a mid-blue
     fill — the MedhaIQ mark itself is blue, so it needs a genuinely
     dark background to read with real contrast. The soft highlight at
     top-left and the blue/purple glow rim keep the premium depth from
     the reference without lightening the fill itself. */
  background:
    radial-gradient(130% 130% at 20% 15%, rgba(88, 101, 191, 0.55) 0%, transparent 45%),
    linear-gradient(160deg, var(--navy-rich) 0%, var(--navy-deep) 100%);
  box-shadow:
    0 20px 44px -10px rgba(6, 8, 20, 0.55),
    0 0 0 10px rgba(59, 130, 246, 0.07),
    0 0 44px 6px rgba(124, 58, 237, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  /* Slight 3/4 side-facing tilt, matching the reference's perspective —
     same size/colors/shadow/glow as before, just rotated in 3D space. */
  transform: rotateY(-16deg) rotateX(4deg);
  transform-style: preserve-3d;
}
.mh-about-mv-core-mark { width: 36%; height: auto; }

.mh-about-mv-card {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 12px 28px -10px rgba(30, 41, 82, 0.14);
}
.mh-about-mv-card svg {
  width: 26%;
  height: 26%;
  color: #4F46E5;
  flex-shrink: 0;
}
.mh-about-mv-card span {
  font-size: 11px;
  font-weight: 600;
  color: #55607A;
  white-space: nowrap;
}

/* ============================================
   02 — THE ORIGIN (deep navy — authority section)
   ============================================ */
.mh-about-origin { background: var(--navy-deep); }
.mh-about-origin-top {
  display: grid;
  grid-template-columns: 38% 1fr;
  gap: 48px;
  margin-bottom: 32px;
}
.mh-about-origin-narrative .mh-eyebrow { color: var(--blue-bright); }
.mh-about-origin-headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 4vw, 26px); /* was 800/clamp(24,2.8vw,32px) — heavier and larger than the page's own H1, same collapsed-hierarchy issue already fixed on the Mission heading */
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 10px 0 16px;
}
.mh-about-origin-narrative p {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.mh-about-origin-narrative p:last-child { margin-bottom: 0; }

.mh-about-gaps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.mh-about-gap { display: flex; gap: 14px; align-items: flex-start; }
.mh-about-gap-mark {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.28);
  color: var(--blue-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11.5px;
  margin-top: 1px;
}
.mh-about-gap-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14.5px;
  color: var(--white);
  margin-bottom: 3px;
}
.mh-about-gap-text { font-size: 13.5px; line-height: 1.6; color: var(--text-muted); }

/* Founder byline — photo sized/positioned as before; LinkedIn icon
   unchanged. Quote added next to the photo, small and muted with
   italic styling, distinct from the section's regular body copy. */
.mh-about-byline {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--white-border);
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.mh-about-byline-photo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--white-border);
}
.mh-about-byline-text { display: flex; flex-direction: column; flex: 1; }
.mh-about-byline-quote {
  font-size: 13px;
  font-style: italic;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 10px;
}
.mh-about-byline-name { font-family: var(--font-display); font-weight: 700; font-size: 13.5px; color: var(--white); }
.mh-about-byline-role { font-size: 12px; color: var(--text-faint); margin-top: 1px; }
.mh-about-byline-linkedin {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--white-border);
  color: var(--text-muted);
  margin-left: auto;
  flex-shrink: 0;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.mh-about-byline-linkedin:hover,
.mh-about-byline-linkedin:focus-visible {
  color: var(--blue-bright);
  border-color: var(--blue-bright);
  background: rgba(59, 130, 246, 0.08);
}
.mh-about-byline-linkedin:focus-visible { outline: 2px solid var(--blue-bright); outline-offset: 2px; }

/* ============================================
   03 — OUR VISION (light)
   ============================================ */
.mh-about-vision { background: var(--light-surface); }
.mh-about-vision-top { max-width: 700px; margin-bottom: 32px; }
.mh-about-vision-top .mh-eyebrow { color: var(--royal-blue); }
.mh-about-vision-headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 4vw, 26px); /* was 800/clamp(24,3vw,32px) — same fix as Origin/Mission */
  color: var(--navy-rich);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 10px 0 14px;
}
.mh-about-vision-body p {
  font-size: 15px;
  line-height: 1.7;
  color: #52607A;
  margin-bottom: 10px;
}
.mh-about-vision-body p:last-child { margin-bottom: 0; }

.mh-about-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.mh-about-flow-node {
  border-top: 2px solid #DDD6FE;
  padding-top: 14px;
}
.mh-about-flow-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14.5px;
  color: var(--navy-rich);
  margin-bottom: 6px;
}
.mh-about-flow-title span {
  color: #7C3AED;
  font-weight: 700;
  margin-right: 4px;
}
.mh-about-flow-desc {
  font-size: 13px;
  line-height: 1.55;
  color: #64748B;
}

/* ============================================
   04 — OUR PRINCIPLES (light)
   ============================================ */
.mh-about-principles { background: var(--white); border-top: 1px solid #E7ECF3; }
.mh-about-principles-head { max-width: 620px; margin-bottom: 28px; }
.mh-about-principles-head .mh-eyebrow { color: var(--royal-blue); }
.mh-about-principles-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 4vw, 26px); /* was 800/clamp(22,2.8vw,30px) — same fix as Origin/Vision/Mission */
  line-height: 1.2;
  color: var(--navy-rich);
  letter-spacing: -0.03em;
  margin: 10px 0 0;
}
.mh-about-principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.mh-about-principle-card {
  background: var(--light-surface);
  border: 1px solid #E7ECF3;
  border-radius: var(--radius);
  padding: 22px 20px;
}
.mh-about-principle-icon {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.mh-about-principle-icon-rigor    { background: var(--blue-glow); color: var(--blue-bright); }
.mh-about-principle-icon-ai       { background: rgba(124, 58, 237, 0.12); color: #7C3AED; }
.mh-about-principle-icon-privacy  { background: var(--emerald-soft); color: var(--emerald); }
.mh-about-principle-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15.5px;
  color: var(--navy-rich);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.mh-about-principle-desc {
  font-size: 13.5px;
  line-height: 1.65;
  color: #52607A;
}
.mh-about-principles-privacy-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--royal-blue);
}
.mh-about-principles-privacy-link:hover { text-decoration: underline; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .mh-about-mission-grid { grid-template-columns: 1fr; gap: 36px; }
  .mh-about-mission-visual { max-width: 320px; }
  .mh-about-origin-top { grid-template-columns: 1fr; gap: 28px; }
  .mh-about-principles-grid { grid-template-columns: 1fr; }
  .mh-about-flow { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
}

@media (max-width: 640px) {
  .mh-about-masthead { padding: 116px 24px 32px; }
  .mh-about-section { padding: 44px 24px; }
  .mh-about-flow { grid-template-columns: 1fr; }
  .mh-about-gaps { gap: 16px; }
  .mh-about-byline { flex-wrap: wrap; }
  .mh-about-byline-linkedin { margin-left: 0; }
}
