/* Lighthouse Equity Partners — sample inspired by Dynamic Core About structure.
   Visual tokens adapted (not cloned): full-bleed hero, navy/coastal palette,
   condensed display type, section rhythm of thesis → pillars → leadership → CTA. */

:root {
  /* Structure rhythm (DCC-inspired) */
  --section-y: clamp(4.5rem, 8vw, 7.5rem);
  --section-y-tight: clamp(3rem, 5vw, 4.5rem);
  --content: 1120px;
  --content-narrow: 720px;

  /* LEP brand + coastal identity (logo blue ≈ #0070d8) */
  --lep-blue: #0070d8;
  --ink: #123a5c;
  --deep: #0d2f4f;
  --navy: #1a4d73;
  --sea: #2a6f8f;
  --signal: #c9a227;
  --foam: #f0f4f7;
  --mist: #d7e0e7;
  --paper: #fafbfc;
  --muted: #5c6b78;
  --white: #ffffff;

  /* Type — expressive, not Inter/Roboto */
  --font-display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --font-body: "Figtree", "Avenir Next", "Segoe UI", sans-serif;

  --fs-hero: clamp(2.6rem, 6vw, 4.4rem);
  --fs-h2: clamp(1.85rem, 3.2vw, 2.65rem);
  --fs-h3: clamp(1.15rem, 1.6vw, 1.35rem);
  --fs-body: 1.0625rem;
  --lh-body: 1.65;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--sea);
}

.wrap {
  width: min(100% - clamp(1.5rem, 4vw, 2.5rem), var(--content));
  margin-inline: auto;
}

.wrap--narrow {
  width: min(100% - clamp(1.5rem, 4vw, 2.5rem), var(--content-narrow));
}

/* Grid/text boxes must shrink without overflowing neighbors */
.thesis-grid > *,
.pillar,
.team-card,
.team-card__body,
.invest-list li,
.hero__content,
.footer-brand {
  min-width: 0;
}

h1,
h2,
h3,
p,
.lede,
.role,
.hero__lede,
.invest-list span,
.thesis-stat span,
.pillar p,
.team-card p {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* —— Nav —— */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  width: 100%;
  padding: 0.85rem 0;
  background: var(--white);
  border-bottom: 1px solid var(--mist);
  transform: translateY(-110%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s ease, opacity 0.35s ease, box-shadow 0.35s ease;
}

.site-header.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
  box-shadow: 0 8px 24px rgba(13, 47, 79, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 1.5rem;
  flex-wrap: nowrap;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  height: 52px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  flex-wrap: nowrap;
  flex-shrink: 1;
  justify-content: flex-end;
  gap: 0.35rem 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  min-width: 0;
}

.nav-links a {
  color: rgba(18, 58, 92, 0.78);
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(18, 58, 92, 0.2);
  background: var(--white);
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle__bar {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-header.is-menu-open {
  box-shadow: 0 8px 24px rgba(13, 47, 79, 0.08);
}


/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: end;
  color: var(--ink);
  background: var(--white);
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--mist);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--white);
}

.hero__media::after {
  display: none;
}

.hero__shade {
  display: none;
}

.hero__content {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0 clamp(3.5rem, 8vw, 5.5rem);
  width: min(100%, 40rem);
  max-width: 40rem;
  animation: rise 0.9s ease both;
}

.hero__logo-link {
  display: inline-block;
  max-width: 100%;
  text-decoration: none;
  color: inherit;
}

.hero__logo-link:hover .hero__logo {
  opacity: 0.9;
}

.hero__logo {
  width: min(100%, 360px);
  height: auto;
  margin: 0 0 1.75rem;
  display: block;
  animation: rise 0.9s ease both, logo-soft 10s ease-in-out infinite alternate;
}

@keyframes logo-soft {
  from { opacity: 0.92; transform: translateY(0); }
  to { opacity: 1; transform: translateY(-4px); }
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.5vw, 3.35rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero__lede {
  margin: 0 0 1.75rem;
  max-width: 32rem;
  font-size: 1.125rem;
  color: var(--muted);
}

.hero .btn--ghost {
  border-color: rgba(18, 58, 92, 0.28);
  color: var(--ink);
}

.hero .btn--ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  max-width: 100%;
  text-align: center;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  color: inherit;
}

.btn--primary {
  background: var(--lep-blue);
  color: var(--white);
}

.btn--primary:hover {
  background: #005bb0;
  color: var(--white);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
}

.btn--ghost:hover {
  border-color: var(--white);
  color: var(--white);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* —— Sections —— */
.section {
  padding: var(--section-y) 0;
}

.section--foam {
  background: var(--foam);
}

.section--ink {
  background: var(--ink);
  color: var(--white);
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sea);
}

.section--ink .eyebrow {
  color: var(--white);
}

.section h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section .lede {
  margin: 0;
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.1rem;
}

.section--ink .lede {
  color: rgba(255, 255, 255, 0.78);
}

.thesis-grid {
  display: grid;
  gap: 2rem 2.5rem;
  margin-top: 2.5rem;
  align-items: start;
}

@media (min-width: 860px) {
  .thesis-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 2.5rem 3rem;
  }
}

.thesis-stat {
  border-left: 2px solid var(--lep-blue);
  padding-left: 1.25rem;
}

.thesis-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 500;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.thesis-stat span {
  color: var(--muted);
  font-size: 0.98rem;
}

/* —— Pillars ——
   auto-fit + minmax keeps each text box ≥ ~200px so neighbors
   never crush into unreadable / visually colliding columns. */
.pillars {
  display: grid;
  gap: 2rem 1.75rem;
  margin-top: 2.75rem;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 640px) {
  .pillars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .pillars--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem 1.5rem;
  }

  .pillars--5 {
    /* 3×2 until wide enough for five comfortable columns */
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pillars--guidelines {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 2rem;
  }
}

@media (min-width: 1100px) {
  .pillars--guidelines {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1180px) {
  .pillars--5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2rem 1.5rem;
  }
}

.pillar {
  padding-top: 1.1rem;
  border-top: 1px solid var(--mist);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.section--ink .pillar {
  border-top-color: rgba(255, 255, 255, 0.18);
}

.pillar__num {
  display: block;
  margin-bottom: 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--lep-blue);
}

.section--ink .pillar__num {
  color: var(--white);
}

.pillar h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 500;
  line-height: 1.25;
  text-wrap: balance;
}

.pillar p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 28rem;
}

.section--ink .pillar p {
  color: rgba(255, 255, 255, 0.72);
}

.pillars--guidelines .pillar p {
  max-width: none;
  font-size: 0.98rem;
}

/* —— Leadership scroller —— */
.team-scroller {
  position: relative;
  margin-top: 2.75rem;
  overflow: hidden;
}

.team-scroller__track {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.team-scroller__track::-webkit-scrollbar {
  display: none;
}

.team-card {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: grid;
  gap: 1.15rem 1.35rem;
  align-items: center;
  padding: 1.15rem 3rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--mist);
}

@media (min-width: 720px) {
  .team-card {
    grid-template-columns: 200px minmax(0, 1fr);
    padding: 1.35rem 3.25rem 1.4rem;
    column-gap: 1.5rem;
    align-items: center;
  }
}

.team-card__photo {
  margin: 0;
  overflow: hidden;
  background: var(--mist);
  width: 200px;
  height: 200px;
  max-width: 100%;
  flex-shrink: 0;
}

.team-card__photo img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: 50% 20%;
  display: block;
}

.team-card__body {
  width: 100%;
  min-width: 0;
}

.team-card__body h3 {
  margin: 0 0 0.2rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  font-weight: 500;
  line-height: 1.2;
}

.team-card__body .role {
  margin: 0 0 0.35rem;
  color: var(--sea);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
}

.team-card__link {
  margin: 0 0 0.85rem !important;
  font-size: 0.92rem !important;
}

.team-card__link a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.team-card__link a:hover {
  color: var(--lep-blue);
}

.team-card__body p {
  margin: 0 0 0.7rem;
  color: var(--muted);
  font-size: 1.02rem;
  max-width: none;
}

.team-card__body p:last-child {
  margin-bottom: 0;
}

.team-scroller__arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(18, 58, 92, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
  font-size: 1.75rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 6px 20px rgba(13, 47, 79, 0.12);
  transition: background 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.team-scroller__arrow:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.82);
  transform: translateY(-50%) scale(1.04);
}

.team-scroller__arrow:disabled {
  opacity: 0.28;
  cursor: default;
}

.team-scroller__arrow--prev {
  left: 0.35rem;
}

.team-scroller__arrow--next {
  right: 0.35rem;
}

@media (max-width: 640px) {
  .team-scroller__arrow {
    width: 2.4rem;
    height: 2.4rem;
    font-size: 1.5rem;
  }

  .team-card {
    padding: 1rem 2.6rem 1.1rem;
  }

  .team-card__photo {
    width: min(100%, 180px);
    height: auto;
    aspect-ratio: 1;
  }

  .team-card__photo img {
    height: auto;
  }
}

.team-scroller__dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.15rem;
  min-height: 1rem;
}

.team-scroller__dot {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border: 1px solid rgba(18, 58, 92, 0.35);
  border-radius: 999px;
  background: rgba(18, 58, 92, 0.22);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.team-scroller__dot:hover {
  background: rgba(18, 58, 92, 0.4);
}

.team-scroller__dot.is-active {
  background: rgba(18, 58, 92, 0.85);
  border-color: rgba(13, 47, 79, 0.9);
  transform: scale(1.18);
}

/* —— Investments strip —— */
.invest-list {
  display: grid;
  gap: 1.5rem 1.75rem;
  margin: 2.25rem 0 0;
  padding: 0;
  list-style: none;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 700px) {
  .invest-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .invest-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.invest-list li {
  padding-top: 1rem;
  border-top: 1px solid var(--mist);
}

.invest-list strong {
  display: block;
  margin-bottom: 0.4rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
}

.invest-list span {
  color: var(--muted);
  font-size: 0.95rem;
}

/* —— CTA —— */
.cta {
  padding: var(--section-y) 0;
  text-align: left;
}

.cta .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.section--ink .btn--primary {
  background: var(--lep-blue);
  color: var(--white);
}

.section--ink .btn--primary:hover {
  background: #2a8ae6;
  color: var(--white);
}
.section--ink .btn--ghost {
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
}

.section--ink .btn--ghost:hover {
  border-color: var(--white);
  color: var(--white);
}


/* —— Footer —— */
.site-footer {
  padding: 2rem 0 2.5rem;
  background: var(--white);
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--mist);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.1rem;
}

.footer-brand img {
  height: 44px;
  width: auto;
  display: block;
}

.footer-brand span {
  color: var(--muted);
}

/* —— Contact page —— */
.hero--page {
  min-height: auto;
}

.hero--page .hero__content {
  padding: clamp(3.25rem, 7vw, 4.5rem) 0 clamp(2.75rem, 6vw, 4rem);
}

.hero__logo--sm {
  width: min(100%, 280px);
  margin-bottom: 1.25rem;
}

.eyebrow--on-dark {
  color: var(--sea);
}

.intern-intro h2,
.intern-copy h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.intern-intro .lede {
  margin: 0;
  max-width: 42rem;
}

.intern-copy {
  max-width: 46rem;
}

.intern-copy > p {
  margin: 0 0 1.15rem;
  color: var(--ink);
  line-height: 1.7;
}

.intern-sub {
  margin: 2.25rem 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.2vw, 1.65rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.intern-subhead {
  margin: 1.35rem 0 0.55rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sea);
}

.intern-list {
  margin: 0 0 0.35rem;
  padding: 0 0 0 1.15rem;
  list-style: disc;
}

.intern-list li {
  margin: 0 0 0.55rem;
  padding-left: 0.2rem;
  line-height: 1.65;
  color: var(--ink);
}

.intern-list ul {
  margin: 0.55rem 0 0.85rem;
  padding: 0 0 0 1.15rem;
  list-style: disc;
}

.intern-intro .lede a {
  color: var(--sea);
  font-weight: 600;
  text-decoration: none;
}

.intern-intro .lede a:hover {
  text-decoration: underline;
}

.intern-intro .lede + .lede {
  margin-top: 1rem;
}

.contact-layout {
  display: grid;
  gap: 2.5rem 3.5rem;
  align-items: start;
}

@media (min-width: 900px) {
  .contact-layout {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  }
}

.contact-layout {
  display: grid;
  gap: 2.5rem 3.5rem;
  align-items: start;
}

@media (min-width: 900px) {
  .contact-layout {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  }
}

.contact-intro h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.contact-intro .lede {
  margin: 0 0 1.5rem;
  max-width: 28rem;
}

.contact-intro .lede a {
  color: var(--sea);
  font-weight: 600;
  text-decoration: none;
}

.contact-intro .lede a:hover {
  text-decoration: underline;
}

.contact-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.contact-form {
  display: grid;
  gap: 1.15rem;
  min-width: 0;
  position: relative;
}

.field-row {
  display: grid;
  gap: 1.15rem;
}

@media (min-width: 640px) {
  .field-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.field {
  display: grid;
  gap: 0.45rem;
  min-width: 0;
}

.field span {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sea);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  margin: 0;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--mist);
  border-radius: 2px;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea {
  resize: vertical;
  min-height: 9rem;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #9aa7b2;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--lep-blue);
  box-shadow: 0 0 0 3px rgba(0, 112, 216, 0.15);
}

.field select {
  appearance: none;
  background-color: var(--white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%232a6f8f' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-position: right 0.9rem center;
  background-size: 12px 8px;
  background-repeat: no-repeat;
  padding-right: 2.25rem;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.25rem;
  margin-top: 0.35rem;
}

.contact-form .btn {
  cursor: pointer;
}

.contact-form .btn--ghost,
.section--foam .btn--ghost {
  background: transparent;
  border-color: rgba(18, 58, 92, 0.28);
  color: var(--ink);
}

.contact-form .btn--ghost:hover,
.section--foam .btn--ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.form-note--ok {
  color: var(--ink);
}

.form-note--err {
  color: #8a2b2b;
}

.lep-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.nav-links a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.28em;
}

@media (max-width: 820px) {
  :root {
    --section-y: clamp(3.25rem, 10vw, 4.5rem);
    --fs-h2: clamp(1.7rem, 6.5vw, 2.1rem);
    --fs-h3: 1.2rem;
    --fs-body: 1.0625rem;
    --lh-body: 1.7;
  }

  .logo img {
    height: 44px;
  }

  .nav {
    flex-wrap: wrap;
    position: relative;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    flex-basis: 100%;
    width: 100%;
    gap: 0;
    padding: 0.65rem 0 0.35rem;
    border-top: 1px solid var(--mist);
    margin-top: 0.65rem;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links li {
    border-bottom: 1px solid rgba(18, 58, 92, 0.08);
  }

  .nav-links a {
    display: block;
    padding: 0.85rem 0.15rem;
    font-size: 1.02rem;
  }

  .wrap,
  .wrap--narrow {
    width: min(100% - 2rem, var(--content));
  }

  .section h2 {
    line-height: 1.25;
    margin-bottom: 1.15rem;
  }

  .section .lede {
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: none;
  }

  .eyebrow {
    letter-spacing: 0.1em;
    margin-bottom: 0.9rem;
  }

  .thesis-grid {
    gap: 1.75rem;
    margin-top: 1.75rem;
  }

  .pillars {
    gap: 1.85rem;
    margin-top: 2rem;
  }

  .pillar {
    padding-top: 1.25rem;
  }

  .pillar h3 {
    margin-bottom: 0.65rem;
    line-height: 1.3;
  }

  .pillar p,
  .pillars--guidelines .pillar p {
    font-size: 1.02rem;
    line-height: 1.7;
    max-width: none;
  }

  .pillar__num {
    letter-spacing: 0.06em;
    margin-bottom: 0.75rem;
  }

  .invest-list li {
    padding-top: 1.15rem;
    gap: 0.35rem;
  }

  .invest-list strong,
  .invest-list span {
    line-height: 1.55;
  }

  .team-scroller__track {
    padding: 0;
  }

  .team-card {
    padding: 1.15rem 2.75rem 1.25rem;
  }

  .team-card__body h3 {
    line-height: 1.25;
  }

  .team-card__body p {
    font-size: 1rem;
    line-height: 1.65;
  }

  .hero__lede {
    font-size: 1.05rem;
    line-height: 1.65;
  }

  .contact-layout {
    gap: 2rem;
  }

  .field-row {
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  :root {
    --fs-body: 1.0625rem;
  }

  .wrap,
  .wrap--narrow {
    width: min(100% - 1.75rem, var(--content));
  }

  .hero__logo {
    width: min(100%, 280px);
  }

  .hero h1 {
    font-size: clamp(1.85rem, 8vw, 2.2rem);
    line-height: 1.2;
  }

  .hero__content {
    padding-top: clamp(3rem, 10vw, 4rem);
  }

  .cta .actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cta .btn {
    width: 100%;
  }

  .team-card {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}

/* WPForms — lean on sample form tokens inside .lep-wpforms */
.lep-wpforms .wpforms-container {
  margin: 0;
}

.lep-wpforms .wpforms-field {
  padding: 0 0 1rem;
}

.lep-wpforms .wpforms-field-label {
  display: block;
  margin: 0 0 0.4rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
}

.lep-wpforms input[type="text"],
.lep-wpforms input[type="email"],
.lep-wpforms input[type="tel"],
.lep-wpforms select,
.lep-wpforms textarea {
  width: 100%;
  border: 1px solid var(--mist);
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  padding: 0.75rem 0.85rem;
}

.lep-wpforms .wpforms-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: var(--lep-blue);
  color: var(--white);
  font: inherit;
  font-weight: 600;
  padding: 0.85rem 1.35rem;
  cursor: pointer;
}

.lep-wpforms .wpforms-submit:hover {
  filter: brightness(0.95);
}



.lep-hp-input {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}


/* —— WP vs Cloudflare parity ——
   TT3 / global styles can center copy and swap in system fonts.
   Force the sample stack + left-aligned hero when .lep-redesign is on. */
body.lep-redesign {
  font-family: var(--font-body) !important;
  text-align: left !important;
}

body.lep-redesign .hero,
body.lep-redesign .hero__content,
body.lep-redesign .hero h1,
body.lep-redesign .hero__lede,
body.lep-redesign .hero .btn,
body.lep-redesign .section,
body.lep-redesign .section h2,
body.lep-redesign .section .lede,
body.lep-redesign .eyebrow {
  text-align: left !important;
}

body.lep-redesign,
body.lep-redesign p,
body.lep-redesign li,
body.lep-redesign .lede,
body.lep-redesign .hero__lede,
body.lep-redesign .btn,
body.lep-redesign .nav-links,
body.lep-redesign .role,
body.lep-redesign .invest-list span,
body.lep-redesign .pillar p,
body.lep-redesign .team-card__body p,
body.lep-redesign .contact-form,
body.lep-redesign .site-footer {
  font-family: var(--font-body) !important;
}

body.lep-redesign h1,
body.lep-redesign h2,
body.lep-redesign h3,
body.lep-redesign .hero h1,
body.lep-redesign .section h2,
body.lep-redesign .pillar h3,
body.lep-redesign .team-card__body h3,
body.lep-redesign .thesis-stat strong,
body.lep-redesign .invest-list strong {
  font-family: var(--font-display) !important;
  font-weight: 500;
}

/* Hero copy stays left-aligned; the .wrap.hero__content block stays centered (Cloudflare). */
body.lep-redesign .hero__content,
body.lep-redesign .wrap.hero__content {
  margin-inline: auto !important;
  margin-left: auto !important;
  margin-right: auto !important;
}


/* —— Exact Cloudflare type parity on WP —— */
html:has(body.lep-redesign) {
  /* neutralize TT3 fluid root so clamp(...rem...) matches the Workers sample */
  font-size: 16px !important;
}

body.lep-redesign {
  font-size: var(--fs-body) !important;
  line-height: var(--lh-body) !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
}

body.lep-redesign .hero h1,
body.lep-redesign .section h2,
body.lep-redesign .pillar h3,
body.lep-redesign .team-card__body h3,
body.lep-redesign .thesis-stat strong {
  font-family: var(--font-display) !important;
  font-weight: 500 !important;
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 48;
}

body.lep-redesign .hero h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.35rem) !important;
  line-height: 1.1 !important;
  letter-spacing: -0.02em !important;
  font-variation-settings: "opsz" 72;
}

body.lep-redesign .hero__lede,
body.lep-redesign .section .lede,
body.lep-redesign p,
body.lep-redesign .btn {
  font-family: var(--font-body) !important;
  font-optical-sizing: none;
}

body.lep-redesign .hero__lede {
  font-size: 1.125rem !important;
  line-height: var(--lh-body) !important;
  color: var(--muted) !important;
}
