.project-head {
  --head-pad: var(--sp-12);

  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: clamp(22rem, 52vh, 34rem);
  padding-block: var(--head-pad);
  overflow: hidden;
}

.project-head::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(10, 22, 40, 0.38) 0%,
    rgba(10, 22, 40, 0.12) 30%,
    rgba(10, 22, 40, 0.55) 66%,
    rgba(10, 22, 40, 0.96) 100%
  );
}

.project-head--plain {
  min-height: 0;
  padding-block: var(--head-pad) var(--sp-8);
}

.project-head--plain::after { content: none; }

.project-head__eyebrow {
  margin: 0 0 var(--sp-3);
  font-family: var(--font-display);
  font-size: var(--fs-tiny);
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--c-accent);
}

.project-head__eyebrow a { border-bottom: 1px solid transparent; }
.project-head__eyebrow a:hover { border-bottom-color: currentColor; }

.project-head__title {
  max-width: 44rem;
  margin: 0;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.project-head__index {
  position: absolute;
  right: calc(50% - min(var(--container), 100%) / 2 + var(--gutter));
  bottom: var(--head-pad);
  pointer-events: none;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.45);
}

.project-head__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 700px) {
  .project-head {
    --head-pad: var(--sp-8);

    min-height: clamp(18rem, 58vh, 26rem);
  }
}

@media (max-width: 560px) {
  .project-head__index { display: none; }
}
