a:hover {
  color: #0033aa;
}


h3.smaller{
  font-size: var(--step-1);
}

ul.smaller li{
font-size: 0.8rem;
}

.text-right{
  text-align: right;
}

.italic-callout{
  font-size: 2rem;
font-family: serif;
font-style: italic;
}


.big-title {
  font-size: 5.5rem;
  margin-bottom: 0;
}

.subtitle {
  color: white;
  background: #25ba97;
  padding: 18px;
  font-style: italic;
  letter-spacing: 0.02rem;
  margin-top: 0;
  font-family: var(--font-sans);
}

.main {
  margin-top: 65px;
}

h2 {
  border-bottom: 8px solid #25ba97;
  padding-bottom: 4px;
  margin-top: 75px;
}

.hairline-bottom {
  border-bottom: 1px solid #25ba97;
}

.block-border-top {
  border-top: 16px solid #25ba97;
  margin-top: 75px;
}

ul.tag-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

ul.tag-list li {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: #e0e0e0;
  color: #333;
  border-radius: 999px;
  font-size: 0.875rem;
  line-height: 1;
  white-space: nowrap;
}

.caseStudy {
  border: 1px solid #25ba97;
  border-radius: 8px;
  margin-bottom: 40px;
  padding: 0px 22px 24px 22px;
}

.tint-image {
  filter: brightness(0) saturate(100%) invert(55%) sepia(45%) saturate(728%) hue-rotate(120deg) brightness(95%) contrast(87%);
}

.spacer {
  margin-top: 25px;
}

.email-button {
  display: inline-block;
  background-color: #159e7e;
  color: white;
  padding: 0.2em 0.8em;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.email-button:hover {
  background-color: #37b195;
  color: white;
}

.card-container {
  perspective: 1000px;
  margin-top: 20px;
}

.float-card {
  width: 100%;
  height: 100%;
  padding: 10px 15px;
  border-radius: 16px;
  transition: transform 0.1s ease-out;
  transform-style: preserve-3d;
  will-change: transform;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1), 
              0 8px 20px rgba(0, 0, 0, 0.15);
}

.bio-pic {
  margin-top: 10px;
  border-radius: 16px;
}

.polaroid-stack {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 320px;
  height: 320px;
  perspective: 1000px;
  cursor: pointer;
  margin-top: 1rem;
  transition: transform 0.3s ease;
}

.polaroid-stack:hover {
  transform: scale(1.05);
}

.polaroid-stack:hover .polaroid:nth-child(1) {
  --angle: -15deg;
  --depth: 0px;
}

.polaroid-stack:hover .polaroid:nth-child(2) {
  --angle: 0deg;
  --depth: 15px;
}

.polaroid-stack:hover .polaroid:nth-child(3) {
  --angle: 15deg;
  --depth: 30px;
}

.polaroid-stack .polaroid {
  position: absolute;
  top: 0;
  left: 0;
  width: 300px;
  height: 300px;
  background: white;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.2);
  transform-origin: center center;
  transition: transform 0.4s ease, z-index 0s;
  transform: rotateZ(var(--angle, 0deg)) translateZ(var(--depth, 0px));
}

.polaroid-stack .polaroid:nth-child(1) { --angle: -6deg; --depth: 0px; z-index: 1; }
.polaroid-stack .polaroid:nth-child(2) { --angle: 3deg; --depth: 10px; z-index: 2; }
.polaroid-stack .polaroid:nth-child(3) { --angle: -2deg; --depth: 20px; z-index: 3; }

.polaroid {
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: -40px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  transform: rotate(0deg);
}

.caseStudy-content {
  display: flex;
  flex-wrap: nowrap;
  gap: 1.5rem;
  align-items: flex-start;
  justify-content: space-between;
}

.caseStudy-content.row-reverse {
  flex-direction: row-reverse;
}

.caseStudy-text {
  flex: 1;
  max-width: 600px;
  min-width: 300px;
}

.caseStudy-text p strong {
  color: #444;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-right: 0.25em;
}

.caseStudy-text p:nth-of-type(2) {
  font-size: 1.05em;
}

.caseStudy-images {
  flex: 1;
  min-width: 240px;
  display: flex;
  justify-content: center;
}

.caseStudy:nth-of-type(even) .caseStudy-images {
  position: relative;
  left: -60px !important;
}

/* MOBILE FIXES */
@media (max-width: 768px) {

  body{
    margin-left: 25px;
    margin-right: 25px;
  }




  p, ul.smaller li,   ul.tag-list li {
    font-size: 1rem;
  }



  .caseStudy-content,
  .caseStudy-content.row-reverse {
    flex-direction: column !important;
    align-items: center;
    text-align: center;
  }

  .caseStudy-images {
    width: 100%;
    justify-content: center;
  }

  .polaroid-stack {
    transform: none !important;
    align-items: center;
    justify-content: center;
    margin: 20px auto 0 auto;

  }

  .polaroid {
    transform: none !important;
    margin-bottom: -20px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.05) !important;
  }

  .caseStudy-text {
    max-width: 100%;
    padding: 0 1rem;
  }

  .caseStudy:nth-of-type(even) .caseStudy-images {
    left: 10px !important;
  }


  .caseStudy:nth-of-type(odd) .caseStudy-images {
    left: 45px !important;
  }

}


.pdf-only{
  display: none;
}