/* About page: department banner and principal profiles.
   Banner follows the "About the Department" design: navy copy panel, a gold diagonal
   rule, and a local-business photograph cut on the same diagonal. */

.about-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(460px, 36vw, 580px);
  display: grid;
  align-content: center;
  color: #fff;
  background:
    linear-gradient(112deg, transparent 0 30%, rgba(255, 255, 255, .045) 30% 44%, transparent 44%),
    linear-gradient(158deg, #0d3a86 0%, #0a2c6b 52%, #07214f 100%);
}

.about-hero-media {
  position: absolute;
  inset: 0 0 0 34%;
  z-index: 0;
}

.about-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 64% 18%;
  clip-path: polygon(38% 0, 100% 0, 100% 100%, 14% 100%);
}

.about-hero-stripe {
  position: absolute;
  inset: 0 0 0 34%;
  z-index: 0;
  background: #f7c21b;
  clip-path: polygon(33% 0, 36.2% 0, 12.2% 100%, 9% 100%);
  pointer-events: none;
}

.about-hero-inner {
  position: relative;
  z-index: 1;
  padding-top: 56px;
  padding-bottom: 60px;
}

.about-hero-copy { max-width: min(560px, 41%); }

.about-hero .eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  color: #ffce49;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.about-hero .eyebrow::before {
  content: "";
  width: 30px;
  height: 3px;
  border-radius: 2px;
  background: #f7c21b;
}

.about-hero-title {
  margin: 0 0 22px;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 3.9vw, 62px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.02em;
  text-wrap: balance;
}

.about-hero-dot { color: #f7c21b; }

.about-hero-note {
  margin: 0 0 30px;
  max-width: 48ch;
  color: #e3edf9;
  font-size: 17px;
  line-height: 1.6;
}

.about-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.about-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 0 26px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}

.about-hero-btn-gold { background: #f7c21b; color: #0a2456; border: 2px solid #f7c21b; }
.about-hero-btn-gold:hover, .about-hero-btn-gold:focus-visible { background: #ffd54f; border-color: #ffd54f; color: #0a2456; }
.about-hero-btn-ghost { border: 2px solid rgba(255, 255, 255, .9); color: #fff; }
.about-hero-btn-ghost:hover, .about-hero-btn-ghost:focus-visible { background: #fff; color: #0a2456; }
.about-hero-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

@media (max-width: 1100px) {
  .about-hero-copy { max-width: 50%; }
  .about-hero-media, .about-hero-stripe { left: 40%; }
}

@media (max-width: 860px) {
  .about-hero { display: block; min-height: 0; }
  .about-hero-media { position: relative; inset: auto; height: clamp(240px, 58vw, 380px); border-bottom: 5px solid #f7c21b; }
  .about-hero-media img { clip-path: none; object-position: 72% 20%; }
  .about-hero-stripe { display: none; }
  .about-hero-inner { padding-top: 36px; padding-bottom: 44px; }
  .about-hero-copy { max-width: none; }
}

@media (max-width: 480px) {
  .about-hero-btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .about-hero-btn { transition: none; }
}

/* ---------- profiles ---------- */

.about-leadership {
  padding: 64px 0 72px;
  background: linear-gradient(180deg, #f4f8fc 0%, #fff 100%);
  border-top: 1px solid #dce7f1;
}

.about-leadership-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.about-leadership-head h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -.02em;
}

.about-leadership-link {
  font-size: 14px;
  font-weight: 700;
  color: #0a4c8f;
  text-decoration: none;
  border-bottom: 2px solid #ffce49;
  padding-bottom: 2px;
}

.about-leadership-link:hover,
.about-leadership-link:focus-visible { color: #062a55; }

.about-leadership-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.about-profile {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 22px;
  padding: 22px;
  background: #fff;
  border: 1px solid #d9e5f0;
  border-top: 3px solid #0a4c8f;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(10, 43, 84, .07);
}

.about-profile:last-child { border-top-color: #c9a227; }

.about-profile-portrait {
  width: 100%;
  height: 100%;
  min-height: 176px;
  object-fit: cover;
  object-position: 50% 12%;
  border-radius: 6px;
  background: #e8eff6;
}

.about-profile-body { min-width: 0; }

.about-profile-role {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #8a6b12;
}

.about-profile-name {
  margin: 0 0 12px;
  font-size: 23px;
  line-height: 1.15;
  letter-spacing: -.015em;
}

.about-profile-body p {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.65;
  color: #3d5169;
  max-width: 58ch;
}

.about-profile-contact {
  display: inline-block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 700;
  color: #0a4c8f;
  text-decoration: none;
  border-bottom: 1px solid #b9d0e6;
  padding-bottom: 2px;
}

.about-profile-contact:hover,
.about-profile-contact:focus-visible {
  color: #062a55;
  border-bottom-color: #ffce49;
}

@media (hover: hover) and (pointer: fine) {
  .about-profile { transition: transform .2s cubic-bezier(.23, 1, .32, 1), box-shadow .2s cubic-bezier(.23, 1, .32, 1); }
  .about-profile:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(10, 43, 84, .12); }
}

@media (prefers-reduced-motion: reduce) {
  .about-profile { transition: none; }
  .about-profile:hover { transform: none; }
}

@media (max-width: 760px) {
  .about-leadership-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .about-leadership { padding: 44px 0 48px; }
  .about-profile { grid-template-columns: 1fr; gap: 16px; padding: 18px; }
  .about-profile-portrait { min-height: 0; aspect-ratio: 4 / 3; object-position: 50% 18%; }
}

/* Leadership under the opening text: the Ministers and the Permanent Secretary, portrait first, profile below. */
.about-leaders { margin: 54px 0 12px; }
.about-leaders-head { max-width: 760px; margin-bottom: 26px; }
.about-leaders-head h2 { margin: 6px 0 8px; }
.about-leaders-head p { margin: 0; color: var(--bb-muted, #53627a); font-size: 18px; }
.about-leaders-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 28px; align-items: stretch; }
.about-leader { display: grid; grid-template-rows: auto 1fr; margin: 0; overflow: hidden; border: 1px solid var(--bb-line, #dde6f0); border-top: 5px solid var(--bb-gold, #f7c21b); background: #fff; box-shadow: 0 18px 44px rgba(6, 27, 68, .1); transition: transform .25s var(--bb-ease, ease), box-shadow .25s ease; }
.about-leader:hover { transform: translateY(-4px); box-shadow: 0 26px 56px rgba(6, 27, 68, .16); }
.about-leader-photo { margin: 0; background: #0a2c6b; aspect-ratio: 2 / 3; overflow: hidden; }
.about-leader-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.about-leader-body { padding: 24px 26px 28px; }
.about-leader-body .about-leader-role { margin: 0 0 6px; color: var(--bb-gold-ink, #8a5d00); font-size: 12px; font-weight: 800; letter-spacing: .12em; line-height: 1.4; text-transform: uppercase; }
.about-leader-body h3 { margin: 0 0 12px; color: var(--bb-navy, #0a2c6b); font-size: clamp(22px, 2.2vw, 28px); }
.about-leader-body h3::after { content: "."; color: var(--bb-gold, #f7c21b); }
.about-leader-body p:not(.about-leader-role) { margin: 0 0 12px; color: #435166; font-size: 16px; line-height: 1.65; }
.about-leader-body p:last-child { margin-bottom: 0; }
@media (prefers-reduced-motion: reduce) { .about-leader { transition: none; } }
