/* ==========================================================================
   Equiti Partners LLC
   Carbon-led palette. Navy is reserved exclusively for the EHP Capital block.
   ========================================================================== */

:root {
  --carbon:     #2f2f2f;
  --navy:       #18223b;
  --off-white:  #f7f7f7;
  --soft-gray:  #d8d8d8;

  /* Two tinted Carbons carry the secondary-text hierarchy. They are the only
     values outside the four brand colours, and exist so small type still
     clears WCAG AA (--muted is 6.4:1 on Off-White). */
  --muted:      #5a5a5a;
  --rule:       var(--soft-gray);  /* hairlines use the approved Soft Gray */

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --gutter: 24px;
  --measure: 720px;
}

/* --- Reset ---------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--off-white);
  color: var(--carbon);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, p { margin: 0; }

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

a { color: inherit; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10;
  padding: 12px 20px;
  background: var(--carbon);
  color: var(--off-white);
  font-size: 15px;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

/* --- Layout --------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* One container width for every section, so all content shares a left edge.
   Reading width is controlled per-element via --measure, not by narrowing
   the container. */

/* --- Logo ----------------------------------------------------------------- */

/* Source lockup is 509.188 x 415.535 — aspect ratio 1.2254. */
.logo {
  color: var(--carbon);
  flex: none;
}

/* Horizontal lockup, aspect 4.167:1. At 60px tall the "PARTNERS" line
   renders ~10px, which is the floor for it staying readable. */
.logo--header { width: 250px; height: 60px; }

/* Footer has room for the full stacked lockup at a size where the
   "PARTNERS" line still reads. */
.logo--footer {
  width: 172px;
  height: 140px;
  color: var(--off-white);
}

/* --- Buttons -------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 14px 24px;
  border: 1px solid transparent;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn span { transition: transform 0.15s ease; }

/* Header: Carbon fill on the off-white page. */
.btn--carbon {
  background: var(--carbon);
  color: var(--off-white);
  border-color: var(--carbon);
}

/* Inside the navy block: off-white fill (primary) and outline (secondary). */
.btn--solid {
  background: var(--off-white);
  color: var(--navy);
  border-color: var(--off-white);
}

.btn--outline {
  background: transparent;
  color: var(--off-white);
  border-color: rgba(247, 247, 247, 0.55);
}

/* Hover effects only where a real pointer exists — on touch these otherwise
   stick to the last-tapped control after navigation. */
@media (hover: hover) {
  .btn:hover span { transform: translateX(3px); }
  .btn--carbon:hover { background: #454545; border-color: #454545; }
  .btn--solid:hover { background: #ffffff; border-color: #ffffff; }
  .btn--outline:hover { border-color: var(--off-white); background: rgba(247, 247, 247, 0.08); }
  .bio__link a:hover .bio__link-text { border-bottom-width: 2px; }
  .contact__email a:hover { border-bottom-color: var(--carbon); }
}

/* --- Header --------------------------------------------------------------- */

.site-header {
  border-bottom: 1px solid var(--rule);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 24px;
  padding-bottom: 24px;
}

/* --- Hero ----------------------------------------------------------------- */

.hero {
  padding: 104px 0 96px;
}

.hero h1 {
  max-width: 15ch;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(44px, 7.2vw, 84px);
  line-height: 1.06;
  letter-spacing: -0.005em;
}

.hero__lede {
  max-width: var(--measure);
  margin-top: 32px;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.65;
  color: var(--muted);
}

/* --- EHP Capital block (the only navy on the page) ------------------------ */

.ehp {
  background: var(--navy);
  color: var(--off-white);
  padding: 88px 0;
}

.ehp h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.1;
}

.ehp p {
  max-width: var(--measure);
  margin-top: 24px;
  color: var(--soft-gray);
}

.ehp p:first-of-type { margin-top: 28px; }

.ehp__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 44px;
}

/* --- Generic sections ----------------------------------------------------- */

.section { padding: 88px 0; }

/* The background shift alone separates this section — no rules needed. */
.section--alt { background: var(--soft-gray); }

.badge {
  display: inline-block;
  margin-bottom: 28px;
  padding: 7px 14px;
  background: var(--carbon);
  color: var(--off-white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.section__title {
  max-width: 20ch;
  margin-bottom: 28px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.15;
}

.section p + p { margin-top: 20px; }

.section .wrap > p:not(.badge) { max-width: var(--measure); }

/* --- Bernard Pierson ------------------------------------------------------ */

.bio {
  display: flex;
  align-items: flex-start;
  gap: 48px;
}

.bio__aside { flex: none; }

.bio__photo {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 3px solid var(--carbon);
  object-fit: cover;
}

.bio__body {
  min-width: 0;
  max-width: 640px;
}

.bio__name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(30px, 3.4vw, 40px);
  line-height: 1.15;
}

.bio__title {
  margin-top: 6px;
  margin-bottom: 26px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  /* Darker than --muted: this sits on Soft Gray, where --muted would only
     reach 4.8:1 at 11px. This lands at 6.2:1. */
  color: #4a4a4a;
}

.bio__body p + p { margin-top: 20px; }

.bio__link { margin-top: 28px; }

/* min-height gives a 44px touch target; the rule stays tight to the text
   because it lives on the inner span, not on the padded anchor. */
.bio__link a {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  min-height: 44px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
}

.bio__link-text {
  border-bottom: 1px solid var(--carbon);
  padding-bottom: 3px;
}

/* --- Contact -------------------------------------------------------------- */

.contact__email {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.3;
}

/* inline-block + padding lifts this past the 44px touch-target minimum. */
.contact__email a {
  display: inline-block;
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding: 4px 0 8px;
}

/* --- Footer --------------------------------------------------------------- */

.site-footer {
  background: var(--carbon);
  color: var(--off-white);
  padding: 56px 0;
}

.site-footer__inner {
  display: flex;
  align-items: flex-start;
  gap: 48px;
}

.site-footer__text { min-width: 0; }

.site-footer__copy {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.disclaimer {
  margin-top: 18px;
  max-width: 760px;
  font-size: 12px;
  line-height: 1.75;
  color: var(--soft-gray);
}

.disclaimer a { color: var(--off-white); }

/* --- Mobile --------------------------------------------------------------- */

@media (max-width: 768px) {
  :root { --gutter: 20px; }

  body { font-size: 16px; }

  .site-header__inner {
    padding-top: 20px;
    padding-bottom: 20px;
    gap: 16px;
  }

  /* The lockup and the button cannot share a row at 375px without shrinking
     the wordmark back into illegibility, so the header stacks. */
  .site-header__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .logo--header { width: 233px; height: 56px; }

  .btn {
    padding: 12px 16px;
    font-size: 12px;
    letter-spacing: 0.05em;
  }

  .hero { padding: 64px 0 56px; }
  .hero__lede { margin-top: 24px; }

  .ehp { padding: 56px 0; }

  .ehp__actions {
    margin-top: 36px;
    flex-direction: column;
    align-items: stretch;
  }

  .ehp__actions .btn { justify-content: center; }

  .section { padding: 56px 0; }

  .bio {
    flex-direction: column;
    gap: 28px;
  }

  .bio__photo { width: 168px; height: 168px; }

  .site-footer {
    padding: 44px 0;
  }

  .site-footer__inner {
    flex-direction: column;
    gap: 28px;
  }

  .logo--footer { width: 148px; height: 121px; }

  /* 12px legal copy is punishing on a phone. */
  .disclaimer { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
