/* =========================================================
   MURKEZ ABOUT PAGE — SPECIFIC STYLES
   Story timeline, leadership cards, bio-expand interactions.
   Design system inherited from root styles.css — this file
   only adds About-specific components and overrides.
   ========================================================= */

/* ---------------------------------------------------------
   SECTION 1 — HERO
   Matches homepage hero exactly; only the second headline
   line differs. Padding + entrance choreography kept in sync
   with the root hero so the pages read as one family.
   --------------------------------------------------------- */
.hero-accent-text {
  display: block;
  font-size: clamp(40px, 6.5vw, 80px);
  font-weight: 800;
  line-height: 1.1;
  background: linear-gradient(100deg, #7CE6FF, var(--hero-accent) 60%, #0FB8DE);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-top: 4px;
  /* Same staggered fade-up as the homepage rotator line */
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.4s forwards;
}

/* Static line resized to match the rotator's proportions (was 22-32px
   against the rotator's much larger scale — client asked for parity). */
.hero--about {
  height: 78vh;
  justify-content: center;
}
.hero--about::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url('/assets/hero-bg.webp');
  background-size: cover;
  background-position: center;
  transform: scaleX(-1);
}
.hero--about .hero__content {
  padding-top: 150px;
  padding-bottom: 110px;
}
.hero--about .hero__headline-static {
  font-size: clamp(28px, 3.6vw, 48px);
  font-weight: 500;
  margin-bottom: 12px;
}
.hero--about .hero__headline-static--accent {
  color: var(--cyan-400);
  font-weight: 700;
}
.hero__rotator--about {
  max-width: 22ch;
}
/* Hero on this page has far less content above the CTA than the
   homepage (no tagline/lead line) — the homepage's larger CTA margin
   reads as an oversized gap here, so scope a smaller one. */
.hero--about .hero__ctas { margin-top: 32px; }

/* ---------------------------------------------------------
   SECTION 2 — OUR STORY (split narrative + timeline)
   --------------------------------------------------------- */
.story-section {
  background: var(--white);
  padding: 88px 0 72px;
}
.story-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: start;
}
.story__headline {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 700;
  color: var(--ink-900);
  line-height: 1.25;
  margin-bottom: 28px;
}
.story__copy {
  font-size: 16.5px;
  color: var(--slate);
  line-height: 1.7;
  margin-bottom: 20px;
}
.story__copy:last-child { margin-bottom: 0; }

/* Premium timeline visualization */
.story-timeline {
  position: relative;
  padding-left: 34px;
  display: flex;
  flex-direction: column;
  gap: 38px;
}
.timeline__line {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 7px;
  width: 2px;
  background: linear-gradient(180deg, var(--blue) 0%, var(--blue) 55%, var(--border-light) 100%);
}
.timeline-node {
  position: relative;
  display: flex;
  align-items: flex-start;
}
.node__bullet {
  position: absolute;
  left: -34px;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--blue);
  box-shadow: 0 0 0 4px var(--blue-light);
}
.node__year {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--blue-600);
  margin-bottom: 6px;
}
.node__title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: 8px;
}
.node__desc {
  font-size: 14.5px;
  color: var(--slate);
  line-height: 1.6;
}

/* ---------------------------------------------------------
   SECTION 3 — PROVEN IN PRACTICE (metrics)
   Only alters the section rule; base .impact padding + the
   .impact .container top padding (from root) are the single
   source of vertical rhythm. No compounded padding here.
   --------------------------------------------------------- */
.impact--about {
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

/* ---------------------------------------------------------
   SECTION 4 — LEADERSHIP
   --------------------------------------------------------- */
.leadership-section {
  background: var(--off-white);
  padding: 80px 0;
}
.section-header.center {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}
.section-header.center .eyebrow {
  margin-left: auto;
  margin-right: auto;
}
.section-header.center .eyebrow::after {
  left: 50%;
  transform: translateX(-50%);
}
.section-header--spaced {
  margin-top: 64px;
  padding-top: 56px;
  border-top: 1px solid var(--border);
}
.leadership__main-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 800;
  color: var(--ink-900);
}
.leadership__sub-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 700;
  color: var(--ink-900);
}

/* Executive grid — large premium cards */
.exec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: start;
}

/* Base card */
.leader-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 32px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform var(--dur-med) var(--ease-out),
              box-shadow var(--dur-med) var(--ease-out),
              border-color var(--dur-med) var(--ease-out);
}
/* Premium cyan accent bar — reveals on hover */
.leader-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--hero-accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-med) var(--ease-out);
}
.leader-card:hover,
.leader-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px -12px rgba(13, 27, 75, 0.14);
  border-color: transparent;
}
.leader-card:hover::before,
.leader-card:focus-within::before {
  transform: scaleX(1);
}

.leader-card--exec {
  flex-direction: column;
  align-items: stretch;
  align-self: start;
  height: auto;
}
.leader__info { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; flex: 1; }
.leader__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 12px;
}
.leader__name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
  line-height: 1.25;
}
.leader__title {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-600);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}
.leader__linkedin {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--dur-fast);
}
.leader__linkedin img { width: 100%; height: 100%; display: block; }
.leader__linkedin:hover {
  transform: translateY(-2px);
}
.leader__linkedin:hover { color: var(--blue); transform: translateY(-1px); }
.leader__linkedin--placeholder {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}
.leader__summary {
  font-size: 14.5px;
  color: var(--slate);
  line-height: 1.6;
  margin-bottom: 16px;
}

/* Bio-expand interaction */
.bio-toggle {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 16px;
  background: none;
  border: none;
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--blue);
  cursor: pointer;
  transition: opacity var(--dur-fast);
}
.bio-toggle:hover { opacity: 0.8; }
.bio-toggle__icon { transition: transform var(--dur-fast) var(--ease-out); }
.bio-toggle[aria-expanded="true"] .bio-toggle__icon { transform: rotate(180deg); }
.leader__bio-expand {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
  font-size: 14px;
  color: var(--charcoal);
  line-height: 1.65;
  animation: fadeIn 0.3s ease-in;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Operational grid — smaller cards, same design language */
.op-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: start;
}
.leader-card--op { padding: 26px; align-self: start; height: auto; }
.leader-card--op .leader__name { font-size: 18px; }
/* Anchor summary text to a fixed height so "Read Bio" aligns across all
   4 cards regardless of summary length (longest summary sets the baseline). */
.leader-card--op .leader__summary { min-height: 96px; }

/* ---------------------------------------------------------
   RESPONSIVE
   Breakpoints intentionally mirror the root stylesheet:
   1100 (grid reflow), 860 (nav + carousels), 560 (stack CTAs).
   Plus a 1024 checkpoint for the executive grid so laptop /
   iPad-landscape get deliberate treatment, not an accident.
   --------------------------------------------------------- */

/* Laptop / large tablet */
@media (max-width: 1100px) {
  .story-grid { grid-template-columns: 1fr; gap: 48px; }
  .op-grid { grid-template-columns: repeat(2, 1fr); }
}

/* iPad landscape and below — execs stack early for breathing room */
@media (max-width: 1024px) {
  .exec-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* Tablet portrait / large phone */
@media (max-width: 860px) {
  .hero--about { height: auto; min-height: auto; }
  .hero--about .hero__content { padding-top: 120px; padding-bottom: 56px; }
  .story-section { padding: 72px 0 64px; }
  .leadership-section { padding: 72px 0; }

  /* Operational cards stack vertically on mobile (matches root) */
  .op-grid {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
    gap: 16px;
  }
  .leader-card--op {
    width: 100%;
  }

  .section-header--spaced { margin-top: 56px; padding-top: 40px; }
}

/* Small phones */
@media (max-width: 560px) {
  .story-section { padding: 56px 0 48px; }
  .leadership-section { padding: 56px 0; }
  .story-timeline { gap: 30px; }
  .leader-card { padding: 26px; }
}

/* =========================================================
   LEADERSHIP CARDS — EQUAL HEIGHT + BUTTON ALIGNMENT V5
   Keep this block at the very end of about.css.
   ========================================================= */

/* Remove the separator below Executive Leadership. */
.section-header--spaced {
  border-top: 0 !important;
}

/* Equal-width columns. */
.exec-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  align-items: start !important;
}

.op-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  align-items: start !important;
}

.exec-grid > .leader-card,
.op-grid > .leader-card {
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box !important;
  align-self: start !important;
}

/*
 * Each grid has its own measured height:
 * --murkez-exec-card-height for Executive Leadership
 * --murkez-op-card-height for Operational Leadership
 */
.exec-grid > .leader-card:not(.is-bio-open) {
  height: var(--murkez-exec-card-height, auto) !important;
  min-height: var(--murkez-exec-card-height, 0px) !important;
}

.op-grid > .leader-card:not(.is-bio-open) {
  height: var(--murkez-op-card-height, auto) !important;
  min-height: var(--murkez-op-card-height, 0px) !important;
}

/* Only the opened card may grow. */
.exec-grid > .leader-card.is-bio-open {
  height: auto !important;
  min-height: var(--murkez-exec-card-height, 0px) !important;
}

.op-grid > .leader-card.is-bio-open {
  height: auto !important;
  min-height: var(--murkez-op-card-height, 0px) !important;
}

/* Natural height while JavaScript measures. */
.exec-grid.is-measuring > .leader-card,
.op-grid.is-measuring > .leader-card {
  height: auto !important;
  min-height: 0 !important;
}

/* Executive cards: stretch the inner wrapper to the card height. */
.leader-card--exec .leader__info {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  width: 100% !important;
  min-height: 0 !important;
}

/*
 * Align Read Bio buttons across every row.
 * margin-top:auto consumes only the variable middle space, while the
 * normal card padding remains as the small, consistent gap underneath.
 */
.leader-card .bio-toggle {
  margin-top: auto !important;
  padding-top: 12px !important;
  padding-bottom: 0 !important;
}

/* Remove old summary spacers. */
.leader-card--exec .leader__summary,
.leader-card--op .leader__summary {
  min-height: 0 !important;
  margin-bottom: 0 !important;
}

/* Operational cards are already flex containers; keep that behavior. */
.leader-card--op {
  display: flex !important;
  flex-direction: column !important;
}

/* Tablet layouts. */
@media (max-width: 1100px) {
  .op-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 1024px) {
  .exec-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* Mobile: one card per row, still equal within each leadership group. */
@media (max-width: 860px) {
  .exec-grid,
  .op-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px !important;
  }

  .exec-grid > .leader-card,
  .op-grid > .leader-card {
    width: 100% !important;
  }
}

/* =========================================================
   MEET THE LEADERSHIP — DIRECT SCROLL V11
   Native anchors are intentionally not used.
   ========================================================= */
.leadership-scroll-button {
  appearance: none !important;
  -webkit-appearance: none !important;
  border: 0 !important;
  font: inherit !important;
  cursor: pointer !important;
}

.executive-leadership-start {
  display: block !important;
  width: 100% !important;
  height: 1px !important;
  min-height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  pointer-events: none !important;
}

@media (max-width: 860px) {
  .executive-leadership-start {
    height: 30px !important;
    min-height: 30px !important;
    background: var(--off-white, #f3f4f6) !important;
  }
}

/* =========================================================
   SINGLE MEET THE LEADERSHIP BUTTON — V12
   Hide controls left behind by previous cached/generated versions.
   ========================================================= */
.hero--about .hero__ctas > a[href="#leadership"],
.hero--about .hero__ctas > a[href="#executive-leadership-heading"],
.hero--about .hero__ctas > a[href="#executive-leadership-anchor"],
.hero--about .hero__ctas > a[href="#mobile-executive-leadership-anchor"],
.hero--about .hero__ctas > a[href="#mobile-executive-leadership-section"],
.hero--about .hero__ctas > .leadership-link--desktop,
.hero--about .hero__ctas > .leadership-link--mobile,
.hero--about .hero__ctas > .js-leadership-link {
  display: none !important;
}

.hero--about .hero__ctas > #meetLeadershipButton {
  display: inline-flex !important;
}

