.profile-mark {
  padding: 0;
  overflow: hidden;
}

.profile-photo,
.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 24%;
}

.profile-photo {
  filter: saturate(.88) contrast(1.04);
}

.profile-caption {
  display: flex;
}

.profile-caption strong { display: none; }

.credential-strip > div { max-width: 1080px; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 10px; }
.cert-badge { height: 96px; margin: 0; padding: 8px; display: grid; place-items: center; overflow: hidden; background: #f7f8f9; border-top: 3px solid var(--cert-color); box-shadow: 0 6px 14px rgba(19,24,21,.12); }
.cert-badge img { width: 100%; height: 100%; display: block; object-fit: contain; }
.cert-cissp { --cert-color: #0e775c; }
.cert-cisa { --cert-color: #ed1739; }
.cert-cism { --cert-color: #61b33b; }
.cert-crisc { --cert-color: #f8ad28; }
.cert-cgeit { --cert-color: #06a5df; }
.cert-cdpse { --cert-color: #176c9d; }

@media (max-width: 760px) {
  .credential-strip > div { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .cert-badge { height: 90px; padding: 7px; }
}

@media (max-width: 480px) {
  .credential-strip > div { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .cert-badge { height: 86px; }
}

.portrait-card {
  width: min(68%, 340px);
  height: auto;
  aspect-ratio: 1 / 1;
  padding: 0;
  display: block;
  overflow: hidden;
}

.about-photo {
  object-fit: contain;
  object-position: center;
  filter: saturate(.84) contrast(1.04);
}

.photo-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 62px 22px 18px;
  background: linear-gradient(transparent, rgba(5, 9, 7, .94));
}

.photo-label p {
  margin: 0;
  font: 1.7rem/1.05 'Libre Caslon Display', serif;
}

.photo-label small {
  color: var(--gold);
  font-size: .66rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.advisory-gallery {
  position: relative;
  display: grid;
  grid-template-columns: 1.55fr .85fr;
  gap: 8px;
  min-height: 410px;
  margin: 72px 0 0;
  border: 1px solid rgba(199, 163, 77, .34);
  background: #0d1511;
  overflow: hidden;
}

.advisory-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.88) contrast(1.03);
}

.advisory-main,
.advisory-side {
  min-height: 410px;
}

.advisory-gallery figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  min-width: 54%;
  padding: 20px 24px;
  background: rgba(7, 12, 9, .9);
  display: flex;
  flex-direction: column;
}

.advisory-gallery figcaption b {
  color: var(--gold);
  font-size: .7rem;
  letter-spacing: .15em;
}

.advisory-gallery figcaption span {
  margin-top: 5px;
  color: var(--cream);
}

@media (max-width: 760px) {
  .advisory-gallery {
    grid-template-columns: 1fr;
  }
  .advisory-side { display: none; }
  .advisory-gallery figcaption { min-width: 100%; }
}

.contact { max-width: 1180px; display: grid; grid-template-columns: .82fr 1.38fr; gap: 48px; text-align: left; }
.contact h2 { margin: 15px 0 20px; font-size: clamp(3.2rem,5vw,5rem); }
.contact > .contact-intro > p:not(.kicker) { max-width: 480px; color: var(--muted); }
.enquiry-form { padding-left: 48px; border-left: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 26px 20px; align-content: start; }
.enquiry-form label { display: flex; flex-direction: column; gap: 10px; color: #adb1ad; font-size: .72rem; letter-spacing: .13em; text-transform: uppercase; }
.enquiry-form label b { color: var(--gold); }
.enquiry-form input,.enquiry-form select,.enquiry-form textarea { width: 100%; border: 1px solid #3a413c; border-radius: 0; background: #151c18; color: var(--cream); padding: 15px 14px; font: 1rem/1.35 Inter,sans-serif; letter-spacing: 0; text-transform: none; outline: none; }
.enquiry-form input:focus,.enquiry-form select:focus,.enquiry-form textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.enquiry-form textarea { resize: vertical; min-height: 165px; }
.enquiry-form select { appearance: auto; }
.form-wide { grid-column: 1/-1; }
.form-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form-actions .gold-button { border: 0; cursor: pointer; margin: 0; }
.form-actions p { margin: 0; color: #777d78; font-size: .76rem; max-width: 310px; }

.profile-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; padding-top: 26px; border-top: 1px solid var(--line); }
.profile-links a { display: inline-flex; align-items: center; gap: 12px; padding: 11px 16px; border: 1px solid #39413b; color: var(--cream); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; transition: .2s; }
.profile-links a span { color: var(--gold); }
.profile-links a:hover,.profile-links a:focus-visible { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

@media (max-width: 900px) {
  .contact { grid-template-columns: 1fr; }
  .enquiry-form { padding: 38px 0 0; border-left: 0; border-top: 1px solid var(--line); }
}

@media (max-width: 560px) {
  .enquiry-form { grid-template-columns: 1fr; }
  .enquiry-form label { grid-column: 1; }
  .contact h2 { font-size: 3rem; }
}

.credential-feature {
  max-width: 1180px;
  margin: 0 auto;
  padding: 95px 28px 110px;
}

.credential-feature-copy {
  max-width: 760px;
  margin-bottom: 42px;
}

.credential-feature h2 {
  margin: 14px 0 20px;
  font: 3.4rem/1.04 'Libre Caslon Display', serif;
}

.credential-feature-copy > p:last-child {
  color: var(--muted);
}

.credential-photos {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 8px;
  height: 440px;
  border: 1px solid rgba(199, 163, 77, .34);
  overflow: hidden;
}

.credential-photos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.88) contrast(1.03);
}

.credential-caption {
  display: flex;
  flex-direction: column;
  width: max-content;
  max-width: 100%;
  margin: -74px 0 0;
  padding: 18px 22px;
  position: relative;
  background: rgba(7, 12, 9, .92);
}

.credential-caption b {
  color: var(--gold);
  font-size: .7rem;
  letter-spacing: .14em;
}

.credential-caption span { margin-top: 5px; }

.expertise-photo {
  position: relative;
  width: min(620px, 100%);
  margin: 52px 0 0 auto;
  border: 1px solid rgba(199, 163, 77, .34);
  overflow: hidden;
}

.expertise-photo img { width: 100%; display: block; filter: saturate(.88) contrast(1.03); }
.expertise-photo figcaption { position: absolute; left: 0; bottom: 0; padding: 18px 22px; background: rgba(7, 12, 9, .9); display: flex; flex-direction: column; }
.expertise-photo b { color: var(--gold); font-size: .7rem; letter-spacing: .14em; }
.expertise-photo span { margin-top: 5px; }

.stage-card { display: grid; grid-template-columns: minmax(0,2.25fr) minmax(210px,.75fr); align-items: stretch; justify-content: stretch; background: #0b110d; }
.stage-main,.stage-side { min-width: 0; height: 100%; overflow: hidden; }
.stage-main img,.stage-side img { width: 100%; height: 100%; display: block; object-fit: cover; }
.stage-side img { object-position: center 20%; }
.stage-side { border-left: 3px solid var(--bg); }
.stage-card .stage-caption { z-index: 2; }

.gallery { border-top: 1px solid rgba(199, 163, 77, .18); }
.gallery-carousel { position: relative; width: min(980px, 100%); height: clamp(420px, 58vw, 650px); margin-top: 42px; overflow: hidden; border: 1px solid rgba(199, 163, 77, .34); background: #0b110d; }
.gallery-track,.gallery-slide { width: 100%; height: 100%; }
.gallery-slide { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transition: opacity .7s ease; }
.gallery-slide.is-active { opacity: 1; visibility: visible; }
.gallery-slide img { width: 100%; height: 100%; display: block; object-fit: cover; }
.gallery-slide:first-child img { object-position: center 40%; }
.gallery-slide:nth-child(2) img { object-position: 62% 70%; }
.gallery-slide figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 70px 82px 24px; background: linear-gradient(transparent,rgba(5,9,7,.94)); color: #fff; font-family: 'Libre Caslon Display',serif; font-size: 1.25rem; }
.gallery-control { position: absolute; z-index: 3; top: 50%; width: 46px; height: 46px; border: 1px solid rgba(199,163,77,.6); border-radius: 50%; transform: translateY(-50%); background: rgba(5,9,7,.78); color: var(--gold); font-size: 1.25rem; cursor: pointer; }
.gallery-control:hover,.gallery-control:focus-visible { background: var(--gold); color: #070b08; }
.gallery-prev { left: 20px; }
.gallery-next { right: 20px; }
.gallery-dots { position: absolute; z-index: 3; right: 24px; bottom: 27px; display: flex; gap: 9px; }
.gallery-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.45); cursor: pointer; }
.gallery-dots button.is-active { width: 26px; border-radius: 8px; background: var(--gold); }

@media (prefers-reduced-motion: reduce) { .gallery-slide { transition: none; } }

@media (max-width: 760px) {
  .credential-feature { padding: 72px 24px 85px; }
  .credential-feature h2 { font-size: 2.6rem; }
  .credential-photos { grid-template-columns: 1fr; height: 360px; }
  .credential-photos img:last-child { display: none; }
  .stage-card { grid-template-columns: 1fr; }
  .stage-side { display: none; }
  .gallery-carousel { height: 430px; }
  .gallery-slide figcaption { padding: 60px 58px 20px; font-size: 1rem; }
  .gallery-control { width: 40px; height: 40px; }
  .gallery-prev { left: 12px; }
  .gallery-next { right: 12px; }
}
