:root {
  --project-overlay-top: 0px;
  --project-overlay-left: 0px;
  --project-overlay-width: 0px;
  --project-overlay-height: 0px;

  --project-text: rgba(255, 255, 255, 0.97);
  --project-text-muted: rgba(255, 255, 255, 0.72);
  --project-shadow: rgba(0, 0, 0, 0.42);
}

.work-item[data-project-title] {
  position: relative !important;
}

.cursor-title {
  display: none !important;
}

.work-item[data-project-title]::after {
  content: attr(data-project-title);

  position: absolute;
  left: clamp(12px, 1.15vw, 18px);
  bottom: clamp(12px, 1.15vw, 18px);
  z-index: 8;

  max-width: calc(100% - 32px);

  color: var(--project-text);
  font-family: "JoustFont", Arial, Helvetica, sans-serif;
  font-size: clamp(10px, 0.72vw, 12px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  text-align: left;

  text-shadow:
    0 1px 4px var(--project-shadow),
    0 0 14px rgba(0, 0, 0, 0.18);

  opacity: 0;
  transform: translateY(5px);
  pointer-events: none;

  transition:
    opacity 180ms ease,
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: hover) and (pointer: fine) {
  .work-item[data-project-title]:hover::after {
    opacity: 1;
    transform: translateY(0);
  }
}

.work-item.is-project-source::after,
body.project-info-open
.work-item[data-project-title]::after {
  opacity: 0 !important;
  transform: translateY(5px) !important;
}

.project-info-overlay {
  position: fixed;
  top: var(--project-overlay-top);
  left: var(--project-overlay-left);
  width: var(--project-overlay-width);
  height: var(--project-overlay-height);
  z-index: 2400;

  display: block;
  box-sizing: border-box;
  padding: 0;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    opacity 180ms ease,
    visibility 0s linear 180ms;
}

.project-info-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.project-info-glass {
  position: relative;

  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;

  width: 100%;
  height: 100%;
  box-sizing: border-box;

  padding:
    clamp(18px, 1.7vw, 28px)
    clamp(18px, 1.7vw, 28px)
    clamp(18px, 1.7vw, 28px);

  background: transparent;
  border: 0;
  box-shadow: none;

  -webkit-backdrop-filter: none;
  backdrop-filter: none;

  color: var(--project-text);
  font-family: "JoustFont", Arial, Helvetica, sans-serif;
  text-align: left;

  opacity: 0;
  transform: translateY(7px);

  pointer-events: none;

  transition:
    opacity 180ms ease,
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.project-info-glass::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: min(48%, 430px);
  z-index: 0;

  background:
    linear-gradient(
      to top,
      rgba(0, 0, 0, 0.30) 0%,
      rgba(0, 0, 0, 0.14) 42%,
      rgba(0, 0, 0, 0) 100%
    );

  opacity: 0.82;
  pointer-events: none;
}

.project-info-overlay.is-open
.project-info-glass {
  opacity: 1;
  transform: translateY(0);
}

.project-info-client,
.project-info-title,
.project-info-role,
.project-info-description,
.project-info-close {
  position: relative;
  z-index: 1;
}

.project-info-close {
  position: absolute;
  right: clamp(16px, 1.5vw, 24px);
  bottom: clamp(16px, 1.5vw, 24px);
  top: auto;

  width: 20px;
  height: 20px;
  margin: 0;
  padding: 0;
  border: 0;

  background: transparent;
  color: var(--project-text);

  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  font-weight: 300;
  line-height: 1;

  cursor: pointer;
  opacity: 0.74;
  pointer-events: auto;

  text-shadow:
    0 1px 5px var(--project-shadow);

  transition:
    opacity 160ms ease,
    transform 220ms ease;
}

.project-info-close:hover {
  opacity: 1;
  transform: rotate(4deg);
}

.project-info-close:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.8);
  outline-offset: 4px;
}

.project-info-client {
  max-width: min(520px, calc(100% - 48px));
  margin: 0 0 7px;

  color: var(--project-text-muted);
  font-family: inherit;
  font-size: clamp(9px, 0.64vw, 11px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.085em;
  text-transform: uppercase;

  text-shadow:
    0 1px 5px var(--project-shadow);
}

.project-info-title {
  max-width: min(620px, calc(100% - 48px));
  margin: 0;

  color: var(--project-text);
  font-family: inherit;
  font-size: clamp(21px, 1.7vw, 31px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.045em;

  text-shadow:
    0 1px 6px var(--project-shadow);
}

.project-info-role {
  max-width: min(560px, calc(100% - 48px));
  margin: 9px 0 0;

  color: var(--project-text-muted);
  font-family: inherit;
  font-size: clamp(9px, 0.62vw, 10px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.085em;
  text-transform: uppercase;

  text-shadow:
    0 1px 5px var(--project-shadow);
}

.project-info-description {
  max-width: min(430px, calc(100% - 48px));
  margin: 13px 0 0;

  color: rgba(255, 255, 255, 0.90);
  font-family: inherit;
  font-size: clamp(12px, 0.83vw, 14px);
  font-weight: 400;
  line-height: 1.31;
  letter-spacing: -0.012em;

  text-shadow:
    0 1px 6px var(--project-shadow);
}

@media (max-width: 700px) {
  .work-item[data-project-title]::after {
    content: attr(data-project-title);

    left: 11px;
    bottom: 11px;

    max-width: calc(100% - 22px);

    color: var(--project-text);
    font-size: 9px;
    line-height: 1.08;
    letter-spacing: 0.055em;

    opacity: 1;
    transform: none;
  }

  .work-item.is-project-source::after,
  body.project-info-open
  .work-item[data-project-title]::after {
    opacity: 0 !important;
  }

  .project-info-glass {
    padding:
      16px
      16px
      calc(16px + env(safe-area-inset-bottom));
  }

  .project-info-glass::before {
    height: 58%;
    opacity: 0.9;
  }

  .project-info-client {
    max-width: calc(100% - 38px);
    margin-bottom: 7px;
    font-size: 9px;
  }

  .project-info-title {
    max-width: calc(100% - 38px);
    font-size: clamp(20px, 6vw, 27px);
    line-height: 0.98;
  }

  .project-info-role {
    max-width: calc(100% - 38px);
    margin-top: 8px;
    font-size: 8px;
  }

  .project-info-description {
    max-width: min(88%, 420px);
    margin-top: 11px;
    font-size: 12px;
    line-height: 1.3;
  }

  .project-info-close {
    right: 15px;
    bottom: calc(
      15px + env(safe-area-inset-bottom)
    );

    font-size: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-info-overlay,
  .project-info-glass,
  .project-info-close,
  .work-item[data-project-title]::after {
    transition: none !important;
  }
}

html,
body,
.work-scroll,
.work-item,
.project-info-overlay,
.project-info-glass,
.project-info-client,
.project-info-title,
.project-info-role,
.project-info-description,
.cursor,
.cursor-title {
  caret-color: transparent !important;
}

input,
textarea,
[contenteditable="true"] {
  caret-color: auto !important;
}

.project-info-close {
display: none !important;
}

.project-info-overlay,
.project-info-glass {
cursor: pointer;
}

@media (max-width: 700px) {
.work-item[data-project-title]::after {
content: none !important;
display: none !important;
}
}
