/* Wag’n Tails Join Our Pack / careers case study */

.jop-hero {
  padding: clamp(3.2rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem);
}

.jop-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.jop-hero h1 {
  max-width: 16ch;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 560;
  font-size: clamp(2.6rem, 5.6vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.jop-hero .study-copy {
  max-width: 38rem;
  margin-top: 1.4rem;
}

.jop-meta {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 36rem;
}

.jop-hero__phones {
  position: relative;
  min-height: 28rem;
  display: grid;
  place-items: center;
}

.jop-phone {
  margin: 0;
  width: min(100%, 17.5rem);
}

.jop-phone--back {
  position: absolute;
  left: 4%;
  top: 8%;
  width: min(46%, 14.5rem);
  z-index: 1;
  transform: rotate(var(--tilt, -4deg));
}

.jop-phone--front {
  position: relative;
  z-index: 2;
  width: min(58%, 17rem);
  justify-self: end;
  margin-right: 2%;
  transform: rotate(var(--tilt, 3deg));
}

.jop-phone__body {
  position: relative;
  padding: 1.1rem 0.48rem 0.48rem;
  background: var(--ink);
  border-radius: 2rem;
  box-shadow: 0 18px 36px rgba(60, 50, 44, 0.14);
}

.jop-phone__body::before {
  content: "";
  position: absolute;
  top: 0.42rem;
  left: 50%;
  width: 22%;
  height: 0.28rem;
  transform: translateX(-50%);
  background: rgba(251, 247, 241, 0.22);
  border-radius: 999px;
}

.jop-phone__screen.shot {
  display: block;
  overflow: hidden;
  aspect-ratio: 9 / 17.5;
  background: #ece8e2;
  border-radius: 1.45rem;
}

.jop-phone__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.jop-phone figcaption {
  margin: 0.75rem 0 0;
  font-size: 0.98rem;
  text-align: center;
  color: var(--ink-soft);
}

.jop-section {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.jop-section h2 {
  max-width: 16ch;
  margin: 0 0 1.2rem;
  font-family: var(--font-display);
  font-weight: 560;
  font-size: clamp(2.1rem, 4.4vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.jop-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 2rem;
  margin: 2.2rem 0 0;
  padding: 0;
  list-style: none;
}

.jop-pair li {
  padding-top: 1rem;
  border-top: 2px solid var(--blush);
}

.jop-pair__n {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--teal-ink);
}

.jop-pair__t {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-weight: 560;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.jop-pair p:last-child {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.55;
}

.jop-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 2.2rem 0 0.6rem;
  padding: 0;
  list-style: none;
  counter-reset: jop-flow;
}

.jop-flow li {
  position: relative;
  counter-increment: jop-flow;
  padding: 1rem 1rem 1.1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1rem;
}

.jop-flow li::before {
  content: counter(jop-flow, decimal-leading-zero);
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--teal-ink);
}

.jop-flow span {
  font-family: var(--font-display);
  font-weight: 560;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.jop-lang {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.4rem, 3vw, 2.4rem);
  margin: 2.4rem 0 0;
}

.jop-lang__col {
  margin: 0;
  padding: 1.4rem 1.35rem 1.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1.15rem;
}

.jop-lang__col--careers {
  background: var(--blush-soft);
  border-color: transparent;
}

.jop-lang__label {
  margin: 0 0 1rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-ink);
}

.jop-lang blockquote {
  margin: 0 0 0.95rem;
  padding: 0;
  border: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.jop-lang blockquote:last-child {
  margin-bottom: 0;
}

.jop-lang blockquote em {
  font-style: italic;
  color: var(--pink-deep);
}

.jop-bridge__note {
  margin-top: 2rem;
  max-width: 42rem;
}

.jop-threads {
  display: grid;
  gap: 1.1rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.jop-threads li {
  display: grid;
  grid-template-columns: minmax(7rem, 9rem) minmax(0, 1fr);
  gap: 1rem 1.5rem;
  align-items: baseline;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.jop-threads li:last-child {
  border-bottom: 1px solid var(--line);
}

.jop-threads__from {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 560;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  color: var(--teal-ink);
}

.jop-threads__to {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.5;
}

.jop-phones {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2.2rem);
  margin-top: clamp(2rem, 4vw, 3rem);
  align-items: start;
}

.jop-phones--trio {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.jop-phones--pair {
  grid-template-columns: repeat(2, minmax(0, 18rem));
  justify-content: center;
}

.jop-phones .jop-phone {
  width: 100%;
  max-width: 18rem;
  justify-self: center;
  transform: none;
}

.jop-browser {
  margin-top: clamp(2.4rem, 5vw, 3.5rem);
}

.jop-close h2 {
  max-width: 14ch;
}

.jop-keep {
  margin: 2.2rem 0 0;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--pink-deep);
}

.jop-more {
  display: inline-block;
  margin-top: 1.6rem;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid rgba(60, 50, 44, 0.28);
}

.jop-more:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.jop .study-nextlink {
  margin-top: 2.2rem;
}

@media (max-width: 980px) {
  .jop-hero__grid {
    grid-template-columns: 1fr;
  }

  .jop-hero h1 {
    max-width: none;
  }

  .jop-hero__phones {
    min-height: 22rem;
    order: -1;
  }

  .jop-phone--back {
    left: 8%;
    top: 4%;
  }

  .jop-phone--front {
    margin-right: 6%;
  }

  .jop-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .jop-lang {
    grid-template-columns: 1fr;
  }

  .jop-phones--trio,
  .jop-phones--pair {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-inline: calc(50% - 50vw);
    padding: 0.4rem 1.5rem 1rem;
  }

  .jop-phones .jop-phone {
    flex: 0 0 min(15.5rem, 68vw);
    scroll-snap-align: center;
  }
}

@media (max-width: 719px) {
  .jop-meta,
  .jop-pair {
    grid-template-columns: 1fr;
  }

  .jop-threads li {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .jop-flow {
    grid-template-columns: 1fr 1fr;
  }

  .jop-hero__phones {
    min-height: 18rem;
  }
}
