/* ==========================================================================
   Niyi Akande — Professional Website
   Design system: Corporate navy & gold
   ========================================================================== */

:root {
  --navy-900: #0a1f38;
  --navy-800: #0f2a4a;
  --navy-700: #16375e;
  --navy-600: #1e4878;
  --navy-100: #e7edf5;
  --navy-050: #f4f7fb;

  --gold-600: #a9821a;
  --gold-500: #c9a227;
  --gold-400: #d9b743;
  --gold-100: #f6eecf;

  --ink: #12202f;
  --body: #46586d;
  --muted: #7a8ba0;
  --line: #dfe6ee;
  --white: #ffffff;
  --bg: #f7f9fc;

  --ok: #1f9d63;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 10px rgba(15, 42, 74, 0.06);
  --shadow: 0 14px 40px rgba(15, 42, 74, 0.10);
  --shadow-lg: 0 30px 70px rgba(10, 31, 56, 0.18);

  --font-head: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;

  --container: 1160px;
  --header-h: 78px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--white);
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy-900);
  line-height: 1.15;
  font-weight: 700;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

p { margin: 0 0 1rem; }

a { color: var(--navy-600); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--gold-600); }

img { max-width: 100%; display: block; }

ul { margin: 0 0 1rem; padding-left: 1.15rem; }
li { margin-bottom: .4rem; }

::selection { background: var(--gold-400); color: var(--navy-900); }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--tight { padding: clamp(40px, 5vw, 64px) 0; }
.section--alt { background: var(--navy-050); }
.section--navy { background: var(--navy-900); color: #c7d4e4; }
.section--navy h1, .section--navy h2, .section--navy h3 { color: var(--white); }

.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.lead { font-size: 1.15rem; color: var(--body); }
.section--navy .lead { color: #aebfd3; }
.measure { max-width: 62ch; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--gold-500);
  display: inline-block;
}
.section--navy .eyebrow { color: var(--gold-400); }

.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .98rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--gold-500); color: var(--navy-900); box-shadow: 0 10px 24px rgba(201, 162, 39, .35); }
.btn--primary:hover { background: var(--gold-400); color: var(--navy-900); }
.btn--navy { background: var(--navy-800); color: var(--white); }
.btn--navy:hover { background: var(--navy-700); color: var(--white); }
.btn--ghost { background: transparent; color: var(--navy-800); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--navy-600); color: var(--navy-800); }
.section--navy .btn--ghost { color: var(--white); border-color: rgba(255,255,255,.28); }
.section--navy .btn--ghost:hover { border-color: var(--gold-400); color: var(--gold-400); }
.btn--lg { padding: 16px 34px; font-size: 1.02rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 100;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); border-bottom-color: var(--line); }

.nav { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 20px; }

.brand { display: flex; align-items: center; gap: 12px; color: var(--navy-900); }
.brand__mark { width: 42px; height: 42px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--font-head); font-weight: 700; font-size: 1.12rem; color: var(--navy-900); }
.brand__tag { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-600); font-weight: 600; }

.nav__links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  display: block;
  padding: 9px 15px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  color: var(--navy-800);
}
.nav__links a:hover { color: var(--navy-900); background: var(--navy-100); }
.nav__links a.is-active { color: var(--gold-600); }
.nav__cta { margin-left: 8px; }

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
  position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 20px; height: 2px;
  background: var(--navy-800);
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.nav-toggle span::before { transform: translate(-50%, -7px); }
.nav-toggle span::after { transform: translate(-50%, 7px); }
.nav-toggle.is-open span { background: transparent; }
.nav-toggle.is-open span::before { transform: translate(-50%, 0) rotate(45deg); }
.nav-toggle.is-open span::after { transform: translate(-50%, 0) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 70px) 0 80px;
  background:
    radial-gradient(1100px 520px at 88% -8%, rgba(201,162,39,.16), transparent 60%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
  color: #cdd9e7;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(900px 480px at 20% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(900px 480px at 20% 0%, #000 20%, transparent 78%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 { color: var(--white); }
.hero h1 .accent { color: var(--gold-400); }
.hero .eyebrow { color: var(--gold-400); }
.hero p.lead { color: #b4c3d6; margin-bottom: 28px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 34px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.12); }
.hero__meta div strong { display: block; font-family: var(--font-head); font-size: 1.5rem; color: var(--white); }
.hero__meta div span { font-size: .84rem; color: #9db0c6; letter-spacing: .04em; }

.hero__card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-lg);
  padding: 30px;
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow-lg);
}
.hero__card h3 { color: var(--white); font-size: 1.15rem; }
.hero__roles { list-style: none; margin: 0; padding: 0; }
.hero__roles li {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
  color: #d7e1ee;
  margin: 0;
}
.hero__roles li:last-child { border-bottom: 0; }
.hero__roles .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold-400); flex: none; box-shadow: 0 0 0 4px rgba(217,183,67,.18); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding: calc(var(--header-h) + 66px) 0 62px;
  background:
    radial-gradient(760px 380px at 82% -30%, rgba(201,162,39,.18), transparent 62%),
    linear-gradient(160deg, var(--navy-900), var(--navy-800));
  color: #c2d0e0;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(700px 340px at 85% 0%, #000 20%, transparent 76%);
  -webkit-mask-image: radial-gradient(700px 340px at 85% 0%, #000 20%, transparent 76%);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: var(--white); }
.page-hero p { color: #b4c3d6; max-width: 60ch; margin: 0; }
.crumbs { font-size: .85rem; color: #8ea2ba; margin-bottom: 16px; }
.crumbs a { color: #b4c3d6; }
.crumbs a:hover { color: var(--gold-400); }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 26px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
  height: 100%;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #cbd8e6; }
.card h3 { margin-bottom: .4rem; }
.card p:last-child { margin-bottom: 0; }

.icon-badge {
  width: 54px; height: 54px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: var(--navy-050);
  color: var(--navy-700);
  border: 1px solid var(--line);
  margin-bottom: 18px;
}
.icon-badge svg { width: 26px; height: 26px; }
.card--gold .icon-badge { background: var(--gold-100); color: var(--gold-600); border-color: #ecdfb0; }

.card__num {
  font-family: var(--font-head);
  font-size: 1.1rem;
  color: var(--gold-600);
  font-weight: 700;
}

/* Company cards */
.company-card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  overflow: hidden;
  height: 100%;
}
.company-card::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 5px;
  background: linear-gradient(var(--gold-400), var(--gold-600));
  opacity: .0;
  transition: opacity .25s var(--ease);
}
.company-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.company-card:hover::before { opacity: 1; }
.company-card h3 { font-size: 1.28rem; }
.company-card .tag {
  align-self: flex-start;
  font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--navy-700);
  background: var(--navy-050);
  border: 1px solid var(--line);
  padding: 5px 12px; border-radius: 999px;
  margin-bottom: 16px;
}
.company-card ul { list-style: none; padding: 0; margin: 14px 0 0; }
.company-card ul li { position: relative; padding-left: 22px; font-size: .95rem; }
.company-card ul li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 8px; height: 8px; border-radius: 2px;
  background: var(--gold-500); transform: rotate(45deg);
}

/* ---------- Stats band ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; padding: 22px 14px; border-radius: var(--radius); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); }
.stat strong { display: block; font-family: var(--font-head); font-size: clamp(1.8rem, 3vw, 2.5rem); color: var(--gold-400); }
.stat span { font-size: .86rem; color: #a9bbd1; }

/* ---------- Split / feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split--media-first { direction: rtl; }
.split--media-first > * { direction: ltr; }
.media-panel {
  border-radius: var(--radius-lg);
  min-height: 340px;
  background:
    radial-gradient(500px 260px at 20% 10%, rgba(201,162,39,.3), transparent 60%),
    linear-gradient(150deg, var(--navy-800), var(--navy-900));
  display: grid; place-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.08);
}
.media-panel::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.16) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: .5;
}
.media-panel__mono {
  position: relative; z-index: 2;
  font-family: var(--font-head);
  font-size: clamp(4rem, 12vw, 7rem);
  color: rgba(255,255,255,.9);
  letter-spacing: .04em;
  text-shadow: 0 10px 40px rgba(0,0,0,.35);
}
.media-panel__mono span { color: var(--gold-400); }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 26px 42px; margin: 0; }
.timeline li::before {
  content: ""; position: absolute; left: 2px; top: 5px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--white); border: 3px solid var(--gold-500);
}
.timeline strong { display: block; color: var(--navy-900); font-family: var(--font-head); font-size: 1.08rem; }
.timeline .when { font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-600); font-weight: 700; }

/* ---------- Books ---------- */
.book {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 28px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.book:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.book__cover {
  aspect-ratio: 3 / 4.2;
  border-radius: 8px 12px 12px 8px;
  background: linear-gradient(150deg, var(--navy-800), var(--navy-900));
  color: var(--white);
  padding: 20px;
  display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.book__cover::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: var(--gold-500); }
.book__cover::after { content: ""; position: absolute; right: -30px; top: -30px; width: 120px; height: 120px; border-radius: 50%; background: rgba(201,162,39,.18); }
.book__cover .t { font-family: var(--font-head); font-size: 1.05rem; line-height: 1.2; position: relative; z-index: 1; }
.book__cover .a { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-400); position: relative; z-index: 1; }
.book h3 { margin-bottom: .3rem; }
.book .meta { font-size: .82rem; color: var(--muted); margin-bottom: 10px; }

/* ---------- Pill list ---------- */
.pills { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 20px 0 0; }
.pills li {
  margin: 0;
  font-size: .88rem; font-weight: 600;
  color: var(--navy-800);
  background: var(--navy-050);
  border: 1px solid var(--line);
  padding: 8px 15px; border-radius: 999px;
}
.section--navy .pills li { color: #d7e1ee; background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(700px 300px at 10% 120%, rgba(201,162,39,.28), transparent 60%),
    linear-gradient(135deg, var(--navy-800), var(--navy-900));
  color: #cdd9e7;
  border-radius: var(--radius-lg);
  padding: clamp(36px, 5vw, 60px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: var(--white); margin-bottom: .3rem; }
.cta-band p { margin: 0; max-width: 46ch; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); margin: 0; }
.info-list .icon-badge { margin: 0; flex: none; width: 46px; height: 46px; }
.info-list .icon-badge svg { width: 22px; height: 22px; }
.info-list strong { display: block; color: var(--navy-900); font-family: var(--font-head); }
.info-list a { font-weight: 600; }

.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; color: var(--navy-900); font-size: .9rem; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--navy-050);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold-500);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(201,162,39,.16);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #9fb1c7; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer h4 { color: var(--white); font-family: var(--font-body); font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer a { color: #9fb1c7; }
.site-footer a:hover { color: var(--gold-400); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: .55rem; }
.footer-brand .brand__name { color: var(--white); }
.footer-brand p { font-size: .94rem; margin-top: 16px; max-width: 34ch; }
.footer-bottom {
  margin-top: 48px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-size: .86rem;
}
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.16); }
.footer-social a:hover { border-color: var(--gold-400); }
.footer-social svg { width: 18px; height: 18px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .split, .split--media-first { grid-template-columns: 1fr; direction: ltr; gap: 34px; }
  .contact-grid { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav__links {
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--white);
    padding: 16px 20px 26px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .nav__links.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav__links a { padding: 13px 14px; border-radius: 10px; }
  .nav__cta { margin: 10px 0 0; }
  .grid--3 { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .grid--2, .grid--4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .book { grid-template-columns: 1fr; }
  .book__cover { max-width: 190px; }
  .field-row { grid-template-columns: 1fr; }
  .hero__meta { gap: 20px; }
  .brand__tag { display: none; }
}

/* ==========================================================================
   IMAGES & SLIDESHOW
   ========================================================================== */

/* Photos inside media panels */
.media-panel--photo { padding: 0; display: block; }
.media-panel--photo::after { display: none; }
.media-panel--photo > img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  display: block;
}

/* Portrait frame */
.portrait-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
}
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.portrait-frame__badge {
  position: absolute; left: 18px; bottom: 18px;
  background: rgba(10, 31, 56, .82);
  color: #dbe5f0;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 14px;
  padding: 11px 16px;
  font-size: .82rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.portrait-frame__badge strong { display: block; font-family: var(--font-head); font-size: 1.05rem; color: var(--white); }

/* Company cards with a header image */
.company-card--img { padding: 0; }
.company-card--img .company-card__img { height: 190px; overflow: hidden; }
.company-card--img .company-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.company-card--img:hover .company-card__img img { transform: scale(1.06); }
.company-card--img .company-card__body { padding: 26px 30px 30px; }
.company-card--img .tag { margin-top: 2px; }

/* Area-of-practice pills on the dark hero */
.hero .pills li { color: #d7e1ee; background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); }

/* Hero slideshow */
.hero__media { position: relative; }
.slideshow {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,.14);
  background: var(--navy-900);
  aspect-ratio: 5 / 6;
}
.slideshow--wide { aspect-ratio: 16 / 9; }
.slideshow__track { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s var(--ease); }
.slide.is-active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide.is-active img { animation: kenburns 9s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.03); } to { transform: scale(1.13); } }
.slide__caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 64px 22px 20px;
  background: linear-gradient(transparent, rgba(10,31,56,.9));
  color: #e7eef7;
  font-size: .95rem;
}
.slide__tag {
  display: block;
  font-size: .7rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-400); font-weight: 700; margin-bottom: 3px;
}
.slideshow__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.32);
  background: rgba(10,31,56,.5);
  color: #fff; cursor: pointer;
  display: grid; place-items: center;
  font-size: 1.5rem; line-height: 1;
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
  z-index: 3;
  padding: 0 0 3px;
}
.slideshow__nav:hover { background: rgba(10,31,56,.85); border-color: var(--gold-400); color: var(--gold-400); }
.slideshow__nav--prev { left: 14px; }
.slideshow__nav--next { right: 14px; }
.slideshow__dots { position: absolute; bottom: 16px; right: 18px; display: flex; gap: 8px; z-index: 3; }
.slideshow__dot {
  width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0;
  background: rgba(255,255,255,.45); cursor: pointer;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.slideshow__dot.is-active { background: var(--gold-400); transform: scale(1.3); }

/* Wide gallery slideshow wrapper */
.gallery-slideshow { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }

/* Inline image banner */
.img-band {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  aspect-ratio: 21 / 8;
}
.img-band img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Company logo panels (light backdrop so logos stay crisp) */
.logo-panel {
  min-height: 340px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid; place-items: center;
  padding: 42px;
}
.logo-panel img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

/* Compact company contact card */
.contact-mini {
  display: grid;
  gap: 10px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: .96rem;
}
.contact-mini strong {
  font-family: var(--font-head);
  font-size: .92rem;
  letter-spacing: .03em;
  color: var(--navy-900);
}
.contact-mini ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.contact-mini li { position: relative; padding-left: 22px; }
.contact-mini li::before {
  content: "";
  position: absolute; left: 3px; top: .52em;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold-500, var(--gold-400));
}
.contact-mini a { color: inherit; }

@media (max-width: 1000px) {
  .slideshow { aspect-ratio: 16 / 11; }
}
