/* ==========================================================================
   MHI London – holding page
   Values are taken from the XD "MHI - Home – 2" artboard (1920px wide) and
   scale down fluidly; the stacked mobile layout follows "MHI - Home - V2".
   ========================================================================== */

:root {
  /* Colour */
  --navy-900: #00142B;   /* page, hero, footer */
  --navy-800: #101A31;   /* image overlays */
  --navy-700: #101932;   /* dark text */
  --navy-600: #1D2A42;   /* "featured by" panel */
  --slate:    #5F749B;   /* rules + chevrons on light panels */
  --gold:     #DBA12D;
  --gold-dark:#C48C1D;
  --cream:    #F3EEE6;
  --sand:     #E2D5C6;
  --ivory:    #F5F2EB;
  --white:    #FFFFFF;

  /* Type. "Nuance" is the design font; Prata is the closest free fallback. */
  --font-display: "Nuance", "Prata", Georgia, "Times New Roman", serif;
  --font-body: "Be Vietnam Pro", "Helvetica Neue", Arial, sans-serif;

  --fs-hero:    clamp(2rem, 1.2rem + 3.4vw, 5rem);           /* 80px @1920 */
  --fs-h2:      clamp(1.75rem, 1rem + 2.6vw, 4.0625rem);     /* 65px @1920 */
  --fs-list:    clamp(1.25rem, 1rem + 0.75vw, 1.875rem);     /* 30px @1920 */
  --fs-num:     clamp(1.625rem, 1.2rem + 0.8vw, 2.1875rem);  /* 35px @1920 */
  --fs-body:    clamp(1rem, 0.55rem + 0.75vw, 1.4375rem);    /* 23px @1920 */
  --fs-small:   1rem;                                        /* 16px */
  --tracking-display: 0.03em;

  /* Layout */
  --gutter: clamp(1.5rem, 3.5vw, 4.1875rem);                 /* 67px @1920 */
  --section-y: clamp(3.5rem, 9.2vw, 11rem);                  /* 177px @1920 */
}

/* Reset ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--navy-900);
  color: var(--navy-700);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.52;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
address { font-style: normal; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Buttons ----------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.1em;
  min-height: 3.5625rem;                 /* 57px */
  padding: 0 1.6em;
  border: 3px solid var(--gold);
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  color: var(--white);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn--solid { background: var(--gold); }
.btn--solid:hover { background: var(--gold-dark); border-color: var(--gold-dark); }
.btn--outline { background: transparent; }
.btn--outline:hover { background: var(--gold); }
.btn--arrow::after {
  content: "";
  width: 7px;
  height: 12px;
  background: currentColor;
  -webkit-mask: var(--chevron) no-repeat center / contain;
          mask: var(--chevron) no-repeat center / contain;
}

:root {
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6.961 11.733'%3E%3Cpath d='M24.741,38.277,18.9,44.143,17.78,43.027l4.006-3.918.827-.832-.827-.832L17.78,33.526,18.9,32.41Z' transform='translate(-17.78 -32.41)'/%3E%3C/svg%3E");
}

/* Header ------------------------------------------------------------------ */
.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(0.875rem, 1vw, 1.125rem) var(--gutter);
}
.site-header__logo { display: block; flex-shrink: 0; }
.site-header__logo img { width: clamp(8.5rem, 14vw, 16.875rem); }   /* 270px @1920 */

/* Hero -------------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(40rem, 56vw, 67rem);                        /* 1072px @1920 */
  padding: clamp(8rem, 12vw, 14rem) var(--gutter) clamp(4rem, 6vw, 7rem);
  overflow: hidden;
  background: var(--navy-900);
  color: var(--ivory);
}
.hero__media {
  position: absolute;
  inset: 0;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 82% 30%;
}
/* Solid navy on the left, fading out across the middle of the image */
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    var(--navy-900) 0%,
    var(--navy-900) 39%,
    rgb(0 20 43 / 0) 73%);
}
.hero__content {
  position: relative;
  z-index: 1;
  max-width: 53.25rem;                                          /* 852px */
}
.hero__title {
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  font-weight: 400;
  line-height: 1.125;
  letter-spacing: var(--tracking-display);
  color: var(--ivory);
}
.hero__title-accent { color: var(--gold); }
.hero__eyebrow {
  display: inline-block;
  margin-top: clamp(1.75rem, 2.3vw, 2.75rem);
  padding-bottom: 0.65em;
  background: linear-gradient(var(--gold), var(--gold)) left bottom / 2.75rem 1px no-repeat;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--gold);
}
.hero__text {
  max-width: min(51.75rem, 46vw);                               /* 828px @1920 */
  margin-top: clamp(1rem, 1.1vw, 1.25rem);
  line-height: 1.52;
}
.hero .btn { margin-top: clamp(2rem, 2.9vw, 3.5rem); }

/* Intro ------------------------------------------------------------------- */
.intro {
  background: var(--cream);
  padding: var(--section-y) var(--gutter);
}
.intro__inner {
  display: grid;
  grid-template-columns: minmax(0, 59.375rem) minmax(0, 34.6875rem);   /* 950px / 555px */
  column-gap: clamp(2.5rem, 4.85vw, 5.8rem);
  row-gap: 2.5rem;
  align-items: start;
}
.intro__title {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 400;
  line-height: 1.23;
  letter-spacing: var(--tracking-display);
  color: var(--navy-700);
}

/* Chevron lists ----------------------------------------------------------- */
.chevron-list > li {
  position: relative;
  padding-left: 2.2rem;
}
.chevron-list > li + li { border-top: 1px solid var(--rule); }
.chevron-list > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(var(--item-pad-top, 0px) + 0.5lh - 6px);
  width: 7px;
  height: 12px;
  background: var(--rule);
  -webkit-mask: var(--chevron) no-repeat center / contain;
          mask: var(--chevron) no-repeat center / contain;
}
.chevron-list--slate { --rule: var(--slate); }
.chevron-list--gold  { --rule: var(--gold); }

.intro__list {
  max-width: 34.6875rem;
  font-size: var(--fs-body);
  line-height: 1.52;
  line-height: round(1.52em, 1px);     /* whole-pixel rows keep the 1px rules crisp */
}
.intro__list > li { --item-pad-top: 1.5rem; padding-top: 1.5rem; padding-bottom: 1.625rem; }
.intro__list > li:first-child { --item-pad-top: 0px; padding-top: 0; }
.intro__list > li:last-child { padding-bottom: 0; }
.intro__list strong { font-weight: 700; }

/* Best practice + founders ------------------------------------------------ */
.practice { background: var(--navy-900); color: var(--white); }
.practice__banner {
  position: relative;
  min-height: clamp(20rem, 39.85vw, 47.8rem);                  /* 765px @1920 */
  padding: clamp(2.5rem, 11.25vw, 13.5rem) var(--gutter) clamp(2.5rem, 5vw, 6rem);
  overflow: hidden;
}
.practice__banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.practice__banner::after {
  content: "";
  position: absolute;
  inset: 0 20% 0 0;                                             /* 1529px of 1920px */
  background: linear-gradient(64deg, var(--navy-800) 32%, rgb(0 20 43 / 0) 82%);
}
.practice__title {
  position: relative;
  z-index: 1;
  max-width: 54.6875rem;                                        /* 875px */
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 400;
  line-height: 1.23;
  letter-spacing: var(--tracking-display);
}
.practice__founders {
  padding: clamp(3rem, 5.3vw, 6.375rem) var(--gutter) clamp(3.5rem, 7.7vw, 9.25rem);
}
.practice__subtitle {
  font-size: var(--fs-body);
  font-weight: 700;
  line-height: 1.52;
  text-align: center;
}
.founders-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(2.5rem, 3.5vw, 4.25rem);
}
.founders-list > li {
  display: flex;
  align-items: baseline;
  gap: clamp(0.75rem, 0.9vw, 1.1rem);
  padding: 1.2rem clamp(0.75rem, 1.2vw, 1.9rem) 1.6rem clamp(1rem, 1.6vw, 2.25rem);
  font-size: clamp(1rem, 1.2vw, 1.4375rem);
  line-height: 1.52;
}
.founders-list > li:first-child { padding-left: 0; }
.founders-list > li:last-child { padding-right: 0; }
.founders-list > li + li { border-left: 1px solid var(--gold); }
.founders-list__num {
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-size: var(--fs-num);
  line-height: 1;
  color: var(--gold);
}

/* Research + media -------------------------------------------------------- */
.recognition {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.recognition__panel {
  padding: clamp(2.5rem, 3.6vw, 4.3rem) var(--gutter) clamp(3rem, 4.8vw, 5.75rem);
}
.recognition__panel--light { background: var(--sand); color: var(--navy-700); }
.recognition__panel--dark  { background: var(--navy-600); color: var(--white); }
.recognition__title {
  font-size: var(--fs-body);
  font-weight: 700;
  line-height: 1.52;
}
.recognition__list {
  max-width: 51.375rem;                                         /* 822px rule length */
  margin-top: clamp(1.25rem, 2vw, 2.4rem);
  font-family: var(--font-display);
  font-size: var(--fs-list);
  line-height: 1.17;
  line-height: round(1.17em, 1px);
  letter-spacing: var(--tracking-display);
}
.recognition__list > li { --item-pad-top: 0.875rem; padding-top: 0.875rem; padding-bottom: 0.875rem; }
.recognition__list > li:last-child { padding-bottom: 0; }

/* Footer ------------------------------------------------------------------ */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2.5rem 4rem;
  padding: clamp(3rem, 4vw, 4.8rem) var(--gutter) clamp(3rem, 3.6vw, 4.25rem);
  background: var(--navy-900);
  color: var(--white);
  font-size: var(--fs-small);
  line-height: 1.5625;                                          /* 25px */
}
.site-footer__brand { max-width: 36.75rem; }                    /* 588px */
.site-footer__logo { width: 10.9375rem; }                       /* 175px */
.site-footer__legal { margin-top: 2rem; }
.site-footer__contact dl {
  display: grid;
  grid-template-columns: auto auto;
  column-gap: 0.75rem;
}
.site-footer__contact a { text-decoration: none; }
.site-footer__contact a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Responsive -------------------------------------------------------------- */
@media (max-width: 75em) {          /* 1200px */
  .founders-list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.5rem; }
  .founders-list > li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .founders-list > li:nth-child(even) { padding-right: 0; }
}

@media (max-width: 62em) {          /* 992px */
  .intro__inner { grid-template-columns: minmax(0, 1fr); }
  .recognition { grid-template-columns: minmax(0, 1fr); }
}

/* Stacked hero: photo on top, copy on navy below */
@media (max-width: 56.25em) {       /* 900px */
  .hero {
    display: block;
    min-height: 0;
    padding: 0;
  }
  .hero__media {
    position: relative;
    height: clamp(20rem, 85vw, 34rem);
  }
  .hero__media img { object-position: 74% 30%; }
  .hero__media::after {
    background:
      linear-gradient(180deg, rgb(0 20 43 / 0.75) 0%, rgb(0 20 43 / 0) 32%),
      linear-gradient(0deg, var(--navy-900) 0%, rgb(0 20 43 / 0) 30%);
  }
  .hero__content {
    max-width: none;
    padding: 0.5rem var(--gutter) 3.5rem;
  }
  .hero__text { max-width: 40rem; }
  .practice__banner::after {
    inset: 0;
    background: linear-gradient(64deg, var(--navy-800) 25%, rgb(0 20 43 / 0.35) 100%);
  }
}

@media (max-width: 40em) {          /* 640px */
  .site-header .btn { min-height: 2.75rem; padding: 0 1.1em; gap: 0.8em; font-size: 0.8125rem; border-width: 2px; }
  .hero .btn { width: 100%; }
  .founders-list { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .founders-list > li,
  .founders-list > li + li { padding: 1.1rem 0; border-left: 0; }
  .founders-list > li + li { border-top: 1px solid rgb(219 161 45 / 0.5); }
}

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