.project-card {
  position: relative;
  display: block;
  width: 100%;
  min-height: 0;
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
  text-decoration: none;
  text-transform: none;
}

.home-page .project-box,
.home-page .project-card {
  background: var(--page-surface-raised);
}

body.home-page .projects-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  row-gap: 0;
  column-gap: 0;
  gap: 0;
}

body.home-page .projects-grid > .project-card {
  grid-column: 1 / -1;
  width: 100%;
  max-width: none;
  min-width: 0;
}

.home-page .project-card--split {
  color: var(--page-heading);
  background: var(--page-surface);
  border: 0;
  aspect-ratio: auto;
  margin-top: 0;
  margin-bottom: 0;
}

.home-page .project-card--split::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(
    var(--section-shell-max),
    calc(100% - var(--section-shell-gutter))
  );
  height: 1px;
  background: var(--page-border);
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 2;
}

.home-page .projects-grid .project-card--split:last-child::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: min(
    var(--section-shell-max),
    calc(100% - var(--section-shell-gutter))
  );
  height: 1px;
  background: var(--page-border);
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 2;
}

.home-page .project-card__inner {
  width: min(
    var(--section-shell-max),
    calc(100% - var(--section-shell-gutter))
  );
  margin-inline: auto;
  margin-top: 0;
  margin-bottom: 0;
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
  align-items: stretch;
  min-height: 380px;
}

.home-page .project-card--split .project-card__content {
  position: static;
  inset: auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
  padding: 44px clamp(32px, 5vw, 64px) 44px 0;
  background: transparent;
  opacity: 1;
}

.home-page .project-card--split .project-card__copy {
  width: 100%;
  max-width: 34rem;
  margin: 0;
}

.home-page .project-card__media {
  min-width: 0;
  min-height: 380px;
  overflow: hidden;
  background: #F3F4F6;
}

.home-page .project-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
  transform: scale(1.001);
  transition: transform 350ms ease;
}

.project-card--financial .project-card__media img,
.project-card--chartstudio .project-card__media img {
  object-position: center;
}

.project-card--antelope .project-card__media img,
.project-card--bike .project-card__media img {
  object-position: center top;
}

.home-page .project-card--split .project-card__content,
.home-page .project-card--split:is(:hover, :focus-visible) .project-card__content,
.home-page .project-card--split:focus-within .project-card__content {
  background: transparent;
}

.home-page .project-card--split .project-card__eyebrow {
  display: block;
  margin: 0 0 12.8px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 12.48px;
  line-height: 19.968px;
  font-weight: 700;
  letter-spacing: 1.6224px;
  text-transform: uppercase;
}

body.home-page:not(.dark-mode)
  .project-card--split
  .project-card__eyebrow {
  color: var(--eyebrow-color);
}

.home-page .project-card--split .project-card__title {
  margin: 0;
  max-width: 15ch;
  font-family: "Inter", system-ui, sans-serif;
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.055em;
  color: var(--page-heading);
  text-align: left;
  text-decoration: none;
  text-wrap: balance;
}

.home-page .project-card--split .project-card__hint {
  margin: 20px 0 0;
  max-width: 42ch;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  color: var(--page-copy);
}

.home-page .project-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-top: 32px;
  padding-bottom: 4px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--page-heading);
}

.home-page .project-card__cta-label {
  text-decoration-line: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  transition: text-decoration-color 200ms ease;
}

.home-page .project-card__cta svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  transition: transform 200ms ease;
}

.home-page
  .project-card--split:is(:hover, :focus-visible)
  .project-card__cta-label {
  text-decoration-color: currentColor;
}

.home-page
  .project-card--split:focus-within
  .project-card__cta-label {
  text-decoration-color: currentColor;
}

.home-page .project-card--split:is(:hover, :focus-visible) .project-card__cta svg,
.home-page .project-card--split:focus-within .project-card__cta svg {
  transform: translateX(4px);
}

.home-page .project-card--split:is(:hover, :focus-visible) .project-card__media img {
  transform: scale(1.025);
}

body.dark-mode.home-page .project-card--split {
  color: var(--page-heading);
  background: var(--page-surface);
}

body.dark-mode.home-page .project-card__media {
  background: var(--page-surface-raised);
}

body.dark-mode.home-page .project-card--split .project-card__eyebrow {
  color: #B9D3E5;
}

@media (min-width: 901px) {
  .home-page .project-card--split {
    height: 438px;
    min-height: 438px;
    max-height: 438px;
  }

  .home-page .project-card__inner {
    height: 438px;
    min-height: 438px;
    max-height: 438px;
  }

  .home-page .project-card__content,
  .home-page .project-card__media,
  .home-page .project-card__media img {
    height: 100%;
    min-height: 0;
    max-height: 438px;
  }

  .home-page .project-card--split .project-card__content {
    padding: 44px clamp(32px, 5vw, 64px) 44px 0;
  }

  .home-page .project-card__media {
    height: 438px;
    overflow: hidden;
  }

  .home-page .project-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

@media (max-width: 900px) and (min-width: 761px) {
  .home-page .project-card__inner {
    grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
  }

  .home-page .project-card--split,
  .home-page .project-card__inner {
    height: 380px;
    min-height: 380px;
    max-height: 380px;
  }

  .home-page .project-card__content,
  .home-page .project-card__media,
  .home-page .project-card__media img {
    height: 100%;
    min-height: 0;
  }

  .home-page .project-card--split .project-card__content {
    padding-top: 40px;
    padding-bottom: 40px;
    padding-right: 36px;
  }
}

@media (max-width: 760px) {
  .home-page .project-card--split,
  .home-page .project-card__inner {
    height: auto;
    min-height: 0;
    max-height: none;
  }

  .home-page .project-card__inner {
    width: calc(100% - var(--section-shell-gutter-mobile));
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .home-page .project-card--split .project-card__content {
    order: 1;
    padding: 36px 0 30px;
  }

  .home-page .project-card__media {
    order: 2;
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .home-page .project-card__media img {
    height: 100%;
    min-height: 0;
    max-height: none;
  }

  .home-page .project-card--split .project-card__title {
    max-width: 100%;
    font-size: clamp(2rem, 10vw, 3rem);
  }
}


@media (max-width: 640px) {
  .home-page .project-card--split::before {
    width: calc(100% - var(--section-shell-gutter-mobile));
  }

  .home-page
    .projects-grid
    .project-card--split:last-child::after {
    width: calc(100% - var(--section-shell-gutter-mobile));
  }
}
