/** management-team **/
/* Board and leadership profiles.
   Deliberately restrained: corporate governance pages are read, not browsed.
   Portrait beside prose, thin rules, small radii, brand colour used only as
   an accent. Square portraits because every supplied photograph is 1:1. */

.mt {
  background: var(--background-primary);
  color: var(--text-primary);
}

.mt__inner {
  width: min(100% - 2.5rem, 1180px);
  margin-inline: auto;
}

.mt__eyebrow {
  margin: 0;
  font-family: var(--text-font);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--hrv-orange);
}

/* ── Hero ─────────────────────────────────────────────────────────────── */
/* Layered rather than a flat slab: brand square motif bleeding off the right,
   a fine vertical rule texture for structure, and a brand strip along the
   bottom edge. The motif is HRV's own logo geometry, not stock imagery. */
.mt-hero {
  position: relative;
  padding: clamp(6.5rem, 13vw, 9rem) 0 clamp(4rem, 7vw, 5.5rem);
  background:
    linear-gradient(90deg, #EF721F 0%, #FFAE2F 100%) bottom left / 100% 3px no-repeat,
    radial-gradient(78rem 34rem at 74% -16%, rgba(0, 126, 204, 0.42), transparent 62%),
    linear-gradient(135deg, #001B33 0%, #00315E 48%, #004277 100%);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

/* Brand square motif tiled as a fine texture. Scaled up as a single mark it
   just read as a few stray blocks; at this size it registers as the logo's
   pixel geometry. Faded towards the headline so type stays clean. */
.mt-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("../../../images/v_shape.svg") repeat 0 0 / 132px 132px;
  opacity: 0.1;
  mask-image: linear-gradient(105deg, transparent 18%, rgba(0, 0, 0, 0.35) 44%, #000 100%);
  -webkit-mask-image: linear-gradient(105deg, transparent 18%, rgba(0, 0, 0, 0.35) 44%, #000 100%);
  pointer-events: none;
  z-index: -1;
}

/* Fine vertical rules - structure without noise */
.mt-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 76px 100%;
  mask-image: linear-gradient(to bottom, transparent, #000 50%, rgba(0, 0, 0, 0.25));
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 50%, rgba(0, 0, 0, 0.25));
  pointer-events: none;
  z-index: -1;
}

.mt-hero__eyebrow { color: rgba(255, 255, 255, 0.6); }

.mt-hero__title {
  margin: clamp(0.85rem, 2vw, 1.2rem) 0 0;
  font-family: var(--title-font);
  font-size: clamp(2rem, 4.8vw, 3.2rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.022em;
  color: #fff;
}

/* ── Sections ─────────────────────────────────────────────────────────── */
.mt-group { padding: clamp(3.25rem, 6vw, 5rem) 0; }

.mt-group--board {
  background: var(--background-secondary);
  border-top: 1px solid var(--border-color);
}

.mt-group__head {
  margin-bottom: clamp(1.75rem, 3.5vw, 2.5rem);
  padding-bottom: 0.9rem;
  border-bottom: 2px solid var(--hrv-orange);
}

.mt-group__title {
  margin: 0;
  font-family: var(--title-font);
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--text-primary);
}

/* ── Profiles ─────────────────────────────────────────────────────────── */
.mt-list {
  display: flex;
  flex-direction: column;
}

.mt-person {
  display: grid;
  grid-template-columns: clamp(11rem, 20vw, 16rem) minmax(0, 1fr);
  gap: clamp(1.75rem, 3.5vw, 3rem);
  align-items: start;
  padding: clamp(1.75rem, 3.5vw, 2.75rem) 0;
  border-top: 1px solid var(--border-color);
}

.mt-person:first-child {
  border-top: 0;
  padding-top: 0;
}

.mt-person__body { max-width: 70ch; }

.mt-person__portrait {
  margin: 0;
  aspect-ratio: 1 / 1;
  border-radius: 4px;
  overflow: hidden;
  background: var(--background-secondary);
  border: 1px solid var(--border-color);
}

.mt-person__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Initials stand in for directors whose photograph we do not hold. Muted on
   purpose so an absent portrait does not draw the eye. */
.mt-person__monogram {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: var(--background-secondary);
  font-family: var(--title-font);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: color-mix(in srgb, var(--hrv-blue-dark) 50%, var(--text-muted));
  user-select: none;
}

[data-theme="dark"] .mt-person__monogram { color: #5F93C4; }

.mt-person__role {
  margin: 0 0 0.4rem;
  font-family: var(--text-font);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.mt-person__name {
  margin: 0 0 0.9rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--border-color);
  font-family: var(--title-font);
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.008em;
  color: var(--text-primary);
}

.mt-person__bio {
  margin: 0;
  font-family: var(--text-font);
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-muted);
}

/* ── Careers note ─────────────────────────────────────────────────────── */
.mt-cta {
  padding: clamp(2.75rem, 5vw, 4rem) 0;
  border-top: 1px solid var(--border-color);
  background: var(--background-primary);
}

.mt-cta__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1rem, 3vw, 2.5rem);
}

.mt-cta__title {
  margin: 0.5rem 0 0.4rem;
  font-family: var(--title-font);
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.mt-cta__text {
  max-width: 52ch;
}

.mt-cta__text p {
  margin: 0;
  font-family: var(--text-font);
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.mt-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  background: var(--hrv-orange);
  color: #fff;
  font-family: var(--text-font);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: background .25s ease;
}

.mt-btn:hover,
.mt-btn:focus-visible { background: var(--hrv-orange-dark); color: #fff; }

.mt a:focus-visible,
.mt-btn:focus-visible {
  outline: 2px solid var(--hrv-orange);
  outline-offset: 3px;
}

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 767px) {
  .mt-person { grid-template-columns: 9rem minmax(0, 1fr); gap: 1.5rem; }
}

@media (max-width: 575px) {
  .mt__inner { width: min(100% - 1.75rem, 1180px); }
  /* Stack on phones: a large portrait beside the text would squeeze the bio
     into a narrow column, so the portrait sits above it instead. */
  .mt-person { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .mt-person__portrait { width: min(100%, 15rem); }
  .mt-cta__inner { flex-direction: column; align-items: flex-start; }
}
