/*
  sectors FUNDS SECTOR PAGE
  -----------------------
  Load the existing shared style.css before this file.
  This file contains only page-specific additions and overrides.
*/

.sectors-page .sectors-header {
  width: 100%;
}

.sectors-page .wordmark--header {
  position: static;
  width: clamp(150px, 12vw, 239px);
  height: auto;
}

.sectors-page .wordmark--header img {
  width: 100%;
  height: auto;
}


/* Hero */
.sectors-hero {
  position: relative;
  min-height: var(--hero-height);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #1a1b19;
  color: var(--white);
}

.sectors-hero__media,
.sectors-hero__overlay {
  position: absolute;
  inset: 0;
  margin: 0;
}

.sectors-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sectors-hero__overlay {
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.66), rgba(0, 0, 0, 0.1) 62%),
    rgba(0, 0, 0, 0.12);
}

.sectors-hero__content {
  position: relative;
  z-index: 2;
  padding-bottom: clamp(92px, 9vw, 164px);
}

.sectors-hero h1 {
  max-width: 1600px;
  margin: 0;
  font-family: var(--display);
  /* font-size: clamp(56px, 6.8vw, 130px); */
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.sectors-hero h1 em {
  font-weight: 300;
}

/* Overview and challenge cards */
.sectors-overview {
  position: relative;
  z-index: 3;
  margin-top: calc(-1 * var(--radius-xl));
  padding: clamp(68px, 7vw, 112px) 0 clamp(80px, 8vw, 142px);
  overflow: hidden;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  background: var(--ink);
  color: var(--white);
}

.sectors-overview__lead {
  max-width: 1110px;
  margin: 0 0 clamp(58px, 6vw, 100px);
  font-size: var(--fifty-eight);
  font-weight: 300;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.sectors-overview__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.7fr);
  gap: clamp(48px, 7vw, 126px);
  align-items: start;
}

.sectors-overview__media {
  position: relative;
  margin: 0;
  min-height: clamp(390px, 35vw, 668px);
  overflow: hidden;
  border-radius: clamp(18px, 1.5vw, 30px);
  background: #151719;
  transition: transform 0.2s ease;
}



.sectors-overview__media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sectors-overview__copy {
  padding-top: 4px;
}

.sectors-overview__copy p {
  margin: 0;
  font-size: var(--nineteen);
  font-weight: 400;
  line-height: 1.55;
}

.sectors-overview__copy p + p {
  margin-top: 30px;
}

.sectors-button {
  min-height: 52px;
  margin-top: 42px;
  padding: 14px 25px;
  background: #4a4a47;
  color: var(--white);
  font-size: var(--thirteen);
}

.sectors-challenges {
  margin-top: clamp(78px, 8vw, 142px);
}

.sectors-challenges h2 {
  margin: 0;
  font-family: var(--display);
  font-size: var(--ninety-four);
  font-weight: 300;
  line-height: 1.04;
}

.sectors-challenges h2 em {
  font-weight: 300;
}

.sectors-challenge-strip {
  display: flex;
  gap: clamp(16px, 2vw, 28px);
  margin-top: clamp(80px, 8vw, 142px);
  width: max-content;
  animation: sectors-challenge-scroll 30s linear infinite;
  will-change: transform;
}

.sectors-challenge-strip:hover,
.sectors-challenge-strip:focus-within {
  animation-play-state: paused;
}

.sectors-challenge-group {
  display: flex;
  flex-shrink: 0;
  align-items: stretch;
  gap: clamp(16px, 2vw, 28px);

  /*
   * Each copy occupies the same width as the original strip.
   * The padding creates consistent spacing at the loop boundary.
   */
  /* width: calc(100vw - (var(--page-gutter) * 2)); */
  /* padding-right: clamp(12px, 1.5vw, 24px); */
  box-sizing: border-box;
}

/* Original card formatting */
.sectors-challenge-card {
  flex: 1 1 0;
  min-width: 0;
  max-width: 15vw;
  min-height: 35vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(20px, 1.6vw, 32px);
  border-radius: clamp(18px, 1.5vw, 30px);
  background: var(--black);
  transition: transform 0.2s ease;
}

.sectors-challenge-card p {
  margin: 0;
  font-size: var(--twenty);
  font-weight: 400;
  line-height: 1.45;
}

.sectors-challenge-card:hover {
  transform: scale(1.05);
}

.sectors-challenge-card span {
  font-family: var(--display);
  font-size: var(--eighty);
  font-style: italic;
  font-weight: 300;
  line-height: 1;
}

@keyframes sectors-challenge-scroll {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}

/* Reduced motion: stop moving and allow manual horizontal scrolling */
@media (prefers-reduced-motion: reduce) {

  .sectors-challenge-strip {
    width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
    animation: none;
    transform: none;
    will-change: auto;
  }

  .sectors-challenge-card {
    flex-shrink: 0;
  }

  .sectors-challenge-group[aria-hidden="true"] {
    display: none;
  }

  .sectors-challenge-strip > .sectors-challenge-group:nth-of-type(2) {
    display: none;
  }
}


/* Mobile: change the ticker into a vertical card list */
@media (max-width: 760px) {
  .sectors-challenge-window {
    width: 100%;
    margin-inline: 0;
    overflow: visible;
  }

  .sectors-challenge-strip {
    display: block;
    width: 100%;
    animation: none;
    transform: none;
    will-change: auto;
  }

  .sectors-challenge-group {
    width: 100%;
    padding-right: 0;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 20px;
  }

  .sectors-challenge-group[aria-hidden="true"] {
    display: none;
  }

  .sectors-challenge-card {
    flex: none;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    min-height: 175px;
    max-height: 175px;
  }

  .sectors-challenge-card span {
    font-size: var(--thirty-six-mobile);
  }

  .sectors-challenge-strip > .sectors-challenge-group:nth-of-type(2) {
    display: none;
  }

}



/* Why Lacewing */
.sectors-why {
  padding: clamp(76px, 8vw, 126px) 0 clamp(84px, 8vw, 142px);
  background: var(--ink);
  color: var(--white);
}

.sectors-why h2 {
  margin: 0 0 30px;
  font-family: var(--display);
  font-size: var(--ninety-four);
  font-weight: 300;
  line-height: 1;
}

.sectors-why h2 em {
  font-weight: 300;
}

.sectors-why__lead {
  max-width: 1500px;
  margin: 0 0 clamp(48px, 5vw, 84px);
  font-size: var(--fifty-six);
  font-weight: 300;
  line-height: 1.18;
}

.sectors-why__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(400px, 0.85fr);
  gap: clamp(52px, 8vw, 142px);
  align-items: stretch;
}

.sectors-why__copy h3 {
  margin: 0 0 26px;
  font-size: var(--forty-eight);
  font-weight: 300;
}

.sectors-why__copy ul {
  margin: 0 0 34px;
  padding-left: 21px;
}

.sectors-why__copy li,
.sectors-why__copy p {
  font-size: var(--nineteen);
  font-weight: 400;
  line-height: 1.55;
}

.sectors-why__copy p {
  margin: 0;
}

.sectors-why__copy p + p {
  margin-top: 26px;
}

.sectors-why__media {
  margin: 0;
  min-height: 440px;
  overflow: hidden;
  border-radius: clamp(18px, 1.5vw, 30px);
  background: #2d302f;
  transition: transform 0.2s ease;
}



.sectors-why__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Services and CTA */
.sectors-services {
  position: relative;
  padding: clamp(54px, 6vw, 92px) 0 clamp(64px, 7vw, 112px);
  overflow: hidden;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  background: var(--cream);
}

.sectors-services h2 {
  margin: 0;
  font-family: var(--display);
  font-size: var(--eighty);
  font-weight: 300;
  line-height: 1.08;
  text-align: center;
}

.sectors-services h2 em {
  font-weight: 300;
}

.sectors-service-strip {
  display: flex;
  width: 100%;
  gap: clamp(42px, 5vw, 86px);
  padding: clamp(42px, 5vw, 78px) var(--page-gutter) clamp(52px, 6vw, 90px);
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  white-space: nowrap;
  font-family: var(--display);
  font-size: var(--eighty);
  font-weight: 300;
  line-height: 1.1;
  color: var(--muted);
}

.sectors-service-strip::-webkit-scrollbar {
  display: none;
}

.sectors-service-strip span {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: flex-start;
  gap: 18px;
}

.sectors-service-strip small {
  padding-top: 13px;
  font-family: var(--sans);
  font-size: var(--fourteen);
  font-weight: 400;
  letter-spacing: 0.08em;
}

.sectors-cta {
  min-height: clamp(300px, 27vw, 490px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(36px, 6vw, 100px);
  align-items: center;
  padding: clamp(44px, 5vw, 82px);
  border-radius: clamp(18px, 1.5vw, 30px);
  background: var(--ink);
  color: var(--white);
}

.sectors-cta .eyebrow {
  margin-bottom: 30px;
}

.sectors-cta h2 {
  max-width: 1120px;
  margin: 0;
  font-family: var(--sans);
  font-size: var(--forty-eight);
  font-style: normal;
  font-weight: 300;
  line-height: 1.25;
  text-align: left;
}

.sectors-cta .sectors-button {
  margin-top: 0;
  white-space: nowrap;
}

/* Footer additions */
.sectors-footer {
  min-height: 0;
  padding-top: clamp(84px, 8vw, 140px);
}

.sectors-footer__grid {
  align-items: start;
}

.sectors-footer__newsletter h2 {
  margin-bottom: 18px;
  font-size: var(--thirty-two);
}

.sectors-footer__strapline {
  margin: 0 0 62px !important;
  font-size: var(--sixteen) !important;
  line-height: 1.45 !important;
  letter-spacing: 0 !important;
}

.sectors-footer__newsletter h3 {
  margin: 0 0 12px;
  font-size: var(--sixteen);
  font-weight: 400;
}

.sectors-footer__newsletter form {
  margin-bottom: 0;
}

.sectors-footer__meta {
  justify-content: flex-end;
  margin-top: 76px;
}

.sectors-footer .footer-wordmark {
  position: static;
  width: min(
    calc(100% - (var(--page-gutter) * 2)),
    var(--content-wide)
  );
  margin: clamp(100px, 10vw, 170px) auto 32px;
  transform: none;
  font-size: var(--three-hundred-sixteen);
}

/* Tablet */
@media (max-width: 1280px) {
  .sectors-overview__grid,
  .sectors-why__grid {
    grid-template-columns: 1fr;
  }

  .sectors-overview__copy {
    max-width: 760px;
  }

  .sectors-why__media {
    min-height: 420px;
  }

  .sectors-cta {
    grid-template-columns: 1fr;
  }

  .sectors-cta .sectors-button {
    justify-self: start;
  }

  .sectors-footer__meta {
    justify-content: flex-start;
  }
}

/* Mobile */
@media (max-width: 760px) {
  .sectors-hero {
    min-height: 670px;
  }

  .sectors-hero__content {
    padding-bottom: 92px;
  }

  .sectors-hero h1 {
    font-size: var(--fifty-two-mobile);
  }

  .sectors-overview {
    margin-top: -28px;
    border-radius: 26px 26px 0 0;
  }

  .sectors-overview__lead {
    font-size: var(--thirty-two-mobile);
  }

  .sectors-overview__media {
    min-height: 300px;
  }

  .sectors-challenges h2 {
    font-size: var(--forty-five-mobile);
  }

  .sectors-challenge-strip {
    padding-left: 20px;
    padding-right: 20px;
  }

  .sectors-why__lead {
    font-size: var(--thirty-mobile);
  }

  .sectors-why__media {
    min-height: 310px;
  }

  .sectors-services {
    border-radius: 26px 26px 0 0;
  }

  .sectors-service-strip {
    padding-left: 20px;
    padding-right: 20px;
    font-size: var(--forty-two-mobile);
  }

  .sectors-cta {
    padding: 30px 24px;
  }

  .sectors-cta h2 {
    font-size: var(--twenty-eight-mobile);
  }

  .sectors-footer__meta {
    margin-top: 52px;
  }
}

