/* Premium executive profile — scoped to the MD/CEO page. */
.rs2-page--team-details {
  --rs-md-red: var(--rs2-red);
  --rs-md-ink: #111312;
  --rs-md-paper: #f8f6f1;
}

.rs-md-hero {
  position: relative;
  min-height: min(880px, calc(100svh - 1px));
  padding: clamp(118px, 13vw, 188px) 0 clamp(78px, 8vw, 120px);
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 32%, rgba(217, 6, 18, .13), transparent 29%),
    linear-gradient(125deg, #111312 0%, #191c1a 64%, #0d0f0e 100%);
  color: var(--rs2-white);
}

.rs-md-hero::before,
.rs-md-hero::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.rs-md-hero::before {
  top: 17%;
  right: 6vw;
  width: min(38vw, 590px);
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,.12);
  transform: rotate(45deg);
}

.rs-md-hero::after {
  right: 0;
  bottom: 13%;
  width: 38vw;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.38));
}

.rs-md-hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, .72fr);
  gap: clamp(64px, 9vw, 145px);
  align-items: center;
}

.rs-md-hero-copy { padding-top: 38px; }
.rs-md-hero-copy .rs2-breadcrumb { margin-bottom: clamp(58px, 7vw, 96px); }
.rs-md-hero-copy > .rs2-eyebrow { color: rgba(255,255,255,.58); }

.rs-md-hero h1 {
  max-width: 880px;
  margin-top: 27px;
  font-size: clamp(60px, 7vw, 108px);
  font-weight: 500;
  letter-spacing: -.065em;
  line-height: .91;
}

.rs-md-hero h1 span {
  display: block;
  color: rgba(255,255,255,.43);
  font-size: .54em;
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: 1.18;
}

.rs-md-role {
  display: grid;
  gap: 8px;
  margin-top: 39px;
  padding: 24px 0 0 28px;
  border-top: 1px solid rgba(255,255,255,.18);
  border-left: 3px solid var(--rs-md-red);
}

.rs-md-role strong { font-size: clamp(15px, 1.4vw, 19px); font-weight: 650; }
.rs-md-role span { color: rgba(255,255,255,.56); font-size: 13px; }

.rs-md-positioning {
  max-width: 720px;
  margin-top: 30px;
  color: rgba(255,255,255,.7);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .075em;
  line-height: 1.8;
  text-transform: uppercase;
}

.rs-md-positioning i { margin-inline: 8px; color: var(--rs-md-red); font-style: normal; }

.rs-md-portrait {
  position: relative;
  width: min(100%, 535px);
  justify-self: end;
  padding: 24px 24px 0 0;
}

.rs-md-portrait::before {
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  width: 76%;
  height: 68%;
  border-top: 1px solid rgba(255,255,255,.46);
  border-right: 1px solid rgba(255,255,255,.46);
  content: "";
}

.rs-md-portrait-frame {
  position: relative;
  aspect-ratio: .75;
  overflow: hidden;
  background: #282b29;
  box-shadow: 0 42px 90px rgba(0,0,0,.36);
}

.rs-md-portrait-frame::after {
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255,255,255,.25);
  content: "";
  pointer-events: none;
}

.rs-md-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 34%;
  filter: saturate(.74) contrast(1.05);
  transform: scale(1.025);
}

.rs-md-portrait-line {
  position: absolute;
  top: 20%;
  right: -44px;
  width: 88px;
  height: 3px;
  background: var(--rs-md-red);
}

.rs-md-portrait figcaption {
  position: relative;
  width: calc(100% - 34px);
  margin: -1px 0 0 auto;
  padding: 19px 22px;
  border-left: 1px solid rgba(255,255,255,.2);
  background: #1d201e;
}

.rs-md-portrait figcaption strong,
.rs-md-portrait figcaption span { display: block; }
.rs-md-portrait figcaption strong { font-size: 13px; }
.rs-md-portrait figcaption span { margin-top: 5px; color: rgba(255,255,255,.48); font-size: 11px; }

.rs-md-intro-layout {
  display: grid;
  grid-template-columns: minmax(300px, .68fr) minmax(0, 1.32fr);
  gap: clamp(64px, 10vw, 165px);
  align-items: start;
}

.rs-md-intro header { position: sticky; top: 150px; }
.rs-md-intro h2,
.rs-md-section-head h2,
.rs-md-impact h2 {
  margin-top: 24px;
  font-size: clamp(48px, 6vw, 88px);
  font-weight: 500;
  letter-spacing: -.058em;
  line-height: .97;
}

.rs-md-intro-copy {
  padding-top: 47px;
  border-top: 1px solid var(--rs2-line);
}

.rs-md-intro-copy p {
  max-width: 820px;
  color: var(--rs2-muted);
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.78;
}

.rs-md-intro-copy p:first-child { color: var(--rs2-ink); font-size: clamp(22px, 2vw, 29px); line-height: 1.52; }
.rs-md-intro-copy p + p { margin-top: 27px; }

.rs-md-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: clamp(55px, 9vw, 140px);
  align-items: end;
}

.rs-md-section-head .rs2-eyebrow { grid-column: 1 / -1; margin-bottom: -18px; }
.rs-md-section-head > p { max-width: 580px; color: var(--rs2-muted); font-size: 16px; line-height: 1.76; }

.rs-md-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(62px, 8vw, 112px);
  border-top: 1px solid var(--rs2-line);
  border-left: 1px solid var(--rs2-line);
}

.rs-md-pillars article {
  min-height: 360px;
  padding: clamp(32px, 3.4vw, 54px);
  border-right: 1px solid var(--rs2-line);
  border-bottom: 1px solid var(--rs2-line);
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,.32);
  transition: background 360ms var(--rs2-ease);
}

.rs-md-pillars article:hover { background: rgba(255,255,255,.8); }
.rs-md-pillar-mark { width: 44px; height: 44px; border-top: 2px solid var(--rs-md-red); border-left: 2px solid var(--rs-md-red); }
.rs-md-pillars h3 { margin-top: auto; font-size: clamp(31px, 3.3vw, 48px); font-weight: 500; letter-spacing: -.045em; }
.rs-md-pillars p { margin-top: 16px; color: var(--rs2-muted); font-size: 14px; line-height: 1.72; }

.rs-md-foundation-layout {
  display: grid;
  grid-template-columns: minmax(310px, .78fr) minmax(0, 1.22fr);
  gap: clamp(66px, 10vw, 160px);
  align-items: start;
}

.rs-md-foundation header h2 { max-width: 670px; margin-top: 25px; font-size: clamp(44px, 5.6vw, 78px); font-weight: 500; letter-spacing: -.055em; line-height: .98; }
.rs-md-foundation header > p:last-child { max-width: 580px; margin-top: 28px; color: rgba(255,255,255,.58); font-size: 16px; line-height: 1.74; }
.rs-md-credentials { position: relative; border-top: 1px solid rgba(255,255,255,.2); }
.rs-md-credentials::before { position: absolute; top: 0; bottom: 0; left: 7px; width: 1px; background: rgba(255,255,255,.18); content: ""; }

.rs-md-credentials article {
  position: relative;
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 25px;
  padding: 32px 0;
  border-bottom: 1px solid rgba(255,255,255,.16);
}

.rs-md-credentials article > span { z-index: 1; width: 15px; height: 15px; margin-top: 7px; border: 3px solid var(--rs-md-red); background: var(--rs-md-ink); transform: rotate(45deg); }
.rs-md-credentials h3 { font-size: clamp(21px, 2.3vw, 31px); font-weight: 550; letter-spacing: -.025em; }
.rs-md-credentials p { margin-top: 8px; color: rgba(255,255,255,.5); font-size: 13px; }

.rs-md-section-head--compact { grid-template-columns: minmax(0, 1fr); max-width: 900px; }
.rs-md-expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(60px, 8vw, 108px);
  border-top: 1px solid var(--rs2-line);
  border-left: 1px solid var(--rs2-line);
  list-style: none;
}

.rs-md-expertise-grid li {
  position: relative;
  min-height: 116px;
  padding: 29px 30px;
  border-right: 1px solid var(--rs2-line);
  border-bottom: 1px solid var(--rs2-line);
  display: flex;
  align-items: flex-end;
  gap: 18px;
  overflow: hidden;
}

.rs-md-expertise-grid li::after { position: absolute; right: 0; bottom: 0; left: 0; height: 2px; background: var(--rs-md-red); content: ""; transform: scaleX(0); transform-origin: left; transition: transform 420ms var(--rs2-ease); }
.rs-md-expertise-grid li:hover::after { transform: scaleX(1); }
.rs-md-expertise-grid li > span { width: 8px; height: 8px; flex: 0 0 auto; border: 2px solid var(--rs-md-red); }
.rs-md-expertise-grid strong { font-size: clamp(15px, 1.4vw, 19px); font-weight: 600; line-height: 1.28; }

.rs-md-global { position: relative; overflow: hidden; }
.rs-md-global-drawing { position: absolute; inset: 0; opacity: .6; pointer-events: none; }
.rs-md-global-drawing::before { position: absolute; top: -30%; right: -8%; width: min(70vw, 980px); aspect-ratio: 1; border: 1px solid rgba(21,23,22,.12); border-radius: 50%; content: ""; box-shadow: inset 0 0 0 110px rgba(21,23,22,.018), inset 0 0 0 230px rgba(21,23,22,.018); }
.rs-md-global-drawing::after { position: absolute; inset: 0; background-image: linear-gradient(rgba(21,23,22,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(21,23,22,.06) 1px, transparent 1px); background-size: 78px 78px; -webkit-mask-image: linear-gradient(90deg, transparent 22%, #000); mask-image: linear-gradient(90deg, transparent 22%, #000); content: ""; }
.rs-md-global-drawing span { position: absolute; z-index: 1; width: 9px; height: 9px; border: 2px solid var(--rs-md-red); border-radius: 50%; }
.rs-md-global-drawing span:first-child { top: 28%; right: 32%; }
.rs-md-global-drawing span:nth-child(2) { top: 56%; right: 19%; }
.rs-md-global-drawing span:nth-child(3) { right: 45%; bottom: 19%; }

.rs-md-global-layout { position: relative; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(320px, .88fr); gap: clamp(70px, 10vw, 160px); align-items: end; }
.rs-md-global h2 { max-width: 830px; margin-top: 25px; font-size: clamp(51px, 6.4vw, 92px); font-weight: 500; letter-spacing: -.06em; line-height: .94; }
.rs-md-global-layout > div:last-child { padding: 36px; border-top: 3px solid var(--rs-md-red); background: rgba(248,246,241,.82); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.rs-md-global-layout > div:last-child p { color: var(--rs2-muted); font-size: 16px; line-height: 1.76; }
.rs-md-global-layout > div:last-child p + p { margin-top: 22px; }

.rs-md-philosophy {
  position: relative;
  padding: clamp(105px, 12vw, 188px) 0;
  overflow: hidden;
  background: #101211;
  color: var(--rs2-white);
}

.rs-md-philosophy-lines { position: absolute; inset: 0; opacity: .5; background-image: linear-gradient(120deg, transparent 49.8%, rgba(255,255,255,.07) 50%, transparent 50.2%); background-size: 210px 210px; }
.rs-md-philosophy .rs2-container { position: relative; }
.rs-md-philosophy blockquote { margin-top: 50px; }
.rs-md-philosophy blockquote span { display: block; width: fit-content; font-size: clamp(51px, 7.2vw, 112px); font-weight: 500; letter-spacing: -.065em; line-height: .95; }
.rs-md-philosophy blockquote span:nth-child(even) { margin-left: 10vw; color: rgba(255,255,255,.5); }
.rs-md-philosophy blockquote span:last-child { color: var(--rs-md-red); }
.rs-md-philosophy .rs2-container > p:last-child { max-width: 720px; margin: 62px 0 0 auto; padding-top: 29px; border-top: 1px solid rgba(255,255,255,.18); color: rgba(255,255,255,.66); font-size: 18px; line-height: 1.75; }

.rs-md-impact-layout { display: grid; grid-template-columns: minmax(360px, .82fr) minmax(0, 1.18fr); gap: clamp(65px, 10vw, 155px); align-items: center; }
.rs-md-impact figure { position: relative; min-height: 660px; overflow: hidden; }
.rs-md-impact figure::after { position: absolute; inset: 18px; border: 1px solid rgba(255,255,255,.45); content: ""; }
.rs-md-impact figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.8) contrast(1.04); }
.rs-md-impact figcaption { position: absolute; z-index: 1; right: 0; bottom: 0; padding: 17px 20px; background: var(--rs-md-ink); color: rgba(255,255,255,.68); font-size: 10px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.rs-md-impact h2 { max-width: 710px; }
.rs-md-impact div > p:last-child { max-width: 720px; margin-top: 34px; color: var(--rs2-muted); font-size: 18px; line-height: 1.76; }

.rs-md-cta { position: relative; padding: clamp(80px, 9vw, 132px) 0; overflow: hidden; background: var(--rs-md-red); color: var(--rs2-white); }
.rs-md-cta::before { position: absolute; inset: 0; opacity: .25; background-image: linear-gradient(rgba(255,255,255,.2) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.2) 1px, transparent 1px); background-size: 74px 74px; -webkit-mask-image: linear-gradient(90deg, transparent, #000); mask-image: linear-gradient(90deg, transparent, #000); content: ""; }
.rs-md-cta-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 55px; align-items: end; }
.rs-md-cta .rs2-eyebrow { color: rgba(255,255,255,.72); }
.rs-md-cta h2 { max-width: 920px; margin-top: 22px; font-size: clamp(50px, 6.5vw, 94px); font-weight: 500; letter-spacing: -.062em; line-height: .94; }
.rs-md-cta p:last-child { max-width: 780px; margin-top: 25px; color: rgba(255,255,255,.76); font-size: 16px; line-height: 1.7; }
.rs-md-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.rs-md-cta .rs2-btn { background: #101211; }
.rs-md-cta .rs2-btn--line { border-color: rgba(255,255,255,.62); background: transparent; color: var(--rs2-white); }

/* Executive motion: visible by default, enabled only after JS has prepared the page. */
.rs-md-motion [data-rs-md-mask] img { clip-path: inset(0 100% 0 0); transform: scale(1.07); transition: clip-path 1050ms cubic-bezier(.2,.78,.2,1), transform 1250ms cubic-bezier(.2,.78,.2,1); }
.rs-md-motion [data-rs-md-mask].is-visible img { clip-path: inset(0); transform: scale(1.025); }
.rs-md-motion [data-rs-md-quote] span { opacity: 0; transform: translateY(42px); filter: blur(5px); transition: opacity 700ms var(--rs2-ease), transform 900ms var(--rs2-ease), filter 700ms ease; }
.rs-md-motion [data-rs-md-quote].is-visible span { opacity: 1; transform: none; filter: none; }
.rs-md-motion [data-rs-md-quote].is-visible span:nth-child(2) { transition-delay: 90ms; }
.rs-md-motion [data-rs-md-quote].is-visible span:nth-child(3) { transition-delay: 180ms; }
.rs-md-motion [data-rs-md-quote].is-visible span:nth-child(4) { transition-delay: 270ms; }

@media (max-width: 1050px) {
  .rs-md-hero-layout { grid-template-columns: minmax(0, 1fr) minmax(330px, .66fr); gap: 45px; }
  .rs-md-hero h1 { font-size: clamp(54px, 7.8vw, 82px); }
  .rs-md-section-head { grid-template-columns: 1fr; align-items: start; }
  .rs-md-pillars article { min-height: 320px; }
  .rs-md-expertise-grid { grid-template-columns: repeat(2, 1fr); }
  .rs-md-cta-inner { grid-template-columns: 1fr; align-items: start; }
  .rs-md-cta-actions { justify-content: flex-start; }
}

@media (max-width: 820px) {
  .rs-md-hero { min-height: 0; padding-top: 105px; }
  .rs-md-hero-layout,
  .rs-md-intro-layout,
  .rs-md-foundation-layout,
  .rs-md-global-layout,
  .rs-md-impact-layout { grid-template-columns: 1fr; }
  .rs-md-hero-copy { padding-top: 0; }
  .rs-md-hero-copy .rs2-breadcrumb { margin-bottom: 52px; }
  .rs-md-portrait { width: min(84%, 520px); justify-self: center; margin-top: 18px; }
  .rs-md-intro header { position: static; }
  .rs-md-intro-copy { padding-top: 0; border-top: 0; }
  .rs-md-pillars { grid-template-columns: 1fr; }
  .rs-md-pillars article { min-height: 280px; }
  .rs-md-global-layout { align-items: start; }
  .rs-md-philosophy blockquote span:nth-child(even) { margin-left: 5vw; }
  .rs-md-impact figure { min-height: min(720px, 112vw); }
}

@media (max-width: 560px) {
  .rs-md-hero { padding-top: 90px; }
  .rs-md-hero h1 { font-size: clamp(47px, 14vw, 65px); }
  .rs-md-role { padding-left: 20px; }
  .rs-md-positioning i { display: none; }
  .rs-md-positioning { display: grid; gap: 4px; }
  .rs-md-portrait { width: 100%; padding: 15px 15px 0 0; }
  .rs-md-portrait-line { right: -18px; width: 52px; }
  .rs-md-intro h2,
  .rs-md-section-head h2,
  .rs-md-impact h2 { font-size: clamp(41px, 12vw, 56px); }
  .rs-md-expertise-grid { grid-template-columns: 1fr; }
  .rs-md-expertise-grid li { min-height: 92px; padding: 23px; }
  .rs-md-global h2 { font-size: clamp(43px, 12vw, 59px); }
  .rs-md-global-layout > div:last-child { padding: 27px 22px; }
  .rs-md-philosophy blockquote span { font-size: clamp(42px, 12.8vw, 61px); }
  .rs-md-philosophy blockquote span:nth-child(even) { margin-left: 0; }
  .rs-md-philosophy .rs2-container > p:last-child { margin-top: 45px; font-size: 16px; }
  .rs-md-impact figure { min-height: 510px; }
  .rs-md-cta h2 { font-size: clamp(44px, 12vw, 61px); }
  .rs-md-cta-actions { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  .rs-md-motion [data-rs-md-mask] img,
  .rs-md-motion [data-rs-md-quote] span { opacity: 1; transform: none; filter: none; clip-path: none; }
}
