.sub li a:visited, .sub p a:visited, .sub li a, .sub p a {
  --highlight: rgb(105, 185, 235);
}

.specials nav .active:hover, .specials nav .active {
  background-image: linear-gradient(-36deg, rgb(235, 105, 135), rgb(185, 65, 165));
  color: white !important;
}

.hero {
  height: fit-content;
  position: relative;
  text-align: center;
}

.hero::before {
  background: url('../../img/home/portfolio2.png');
  background-size: cover;
  content: '';
  inset: 0;
  position: absolute;
  z-index: -2;
}

.hero::after {
  background: linear-gradient(rgba(35, 35, 35, .736), rgba(0, 0, 0, 0));
  content: '';
  inset: 0;
  position: absolute;
  z-index: -1;
}

.hero section {
  align-items: center;
  color: white;
  display: flex;
  flex-flow: column;
  font-size: clamp(18px, 5vw, 32px);
  font-family: 'Jost', sans-serif;
  justify-content: center;
  padding: clamp(50px, 10vh, 200px) 10% clamp(80px, 10vh, 200px) 10%;
}

.content .hero h1 {
  border: none;
  font-size: clamp(23px, 6vw, 32px);
  font-family: 'Beteckna', 'Lato', sans-serif;
  font-weight: 600;
  letter-spacing: .736vw;
  padding: .45% 0 0 2.25%;
}

.hero h1::before,
.hero h1::after {
  display: none;
}

.sub .hero article {
  align-items: center;
  display: flex;
  flex-flow: column;
  font-size: clamp(18px, 5vw, 28px);
  justify-content: center;
  line-height: 2;
  width: 100%;
}

.hero p {
  margin: 0;
  max-width: 980px;
}

.sub .content h1 {
  border: none;
  display: flex;
  flex-flow: column;
  justify-content: center;
  letter-spacing: .796vw;
  margin: 2.736% auto 0 auto;
  padding: 0;
  text-align: center;
  width: 100%;
}

.sub .content h1::before,
.sub .content h1::after {
  display: none;
}

.case-studies-cta {
  margin: 0 0 1% 0;
  padding: 0;
}

.case-studies-cta {
  margin: 0 0 1% 0;
  padding: 0;
}

main h1 span {
  padding: .45% 0 0 .75%;
}

.sub .content h1 sub {
  font-size: clamp(14px, 3vw, 18px);
  inset: unset;
  letter-spacing: clamp(2px, .735vw, 9.36px);
  line-height: 2;
  margin: 0 auto;
  padding: 2.365% 5% 0 5%;
  width: 100%;
}

main .hline {
  background: linear-gradient(90deg, #40ac4eff, #4C8FFF, #ff1a75ff, #9d2994ff);
  border-radius: 3px;
  display: flex;
  height: 3px;
  margin: 3.736% auto 3.736% auto;
  max-width: 400px;
  position: relative;
  opacity: .236;
  width: 100%;
}

main h1 .hline {
  margin: 5% auto 9.736vh auto;
  opacity: 1;
}

main .hline::after {
  background: linear-gradient(90deg, #40ac4eff, #4C8FFF, #ff1a75ff, #9d2994ff);
  content: '';
  display: flex;
  filter: blur(18px);
  inset: 0;
  position: absolute;
}

.sub .content .case-study article {
  font-size: unset;
}

.case-study {
  align-items: center;
  display: flex;
  flex-flow: row wrap;
  font-size: clamp(14px, 25px, 25px);
  line-height: 2.5;
  padding: 0 5% 5% 5%;
}

.case-study:nth-of-type(even) {
  flex-flow: row-reverse wrap;
}

.case-study figure {
  align-items: center;
  aspect-ratio: 1600/1080;
  display: flex;
  flex: 1;
  justify-content: center;
  margin: 0 auto 7.365% auto;
  max-width: 40%;
}

.case-study figure img {
  margin: 0 auto;
  max-width: 100%;
}

.case-study article {
  flex: 1;
}

.case-study article p {
  padding: 0 .985% 0 0;
}

.case-study:nth-of-type(even) article p {
  padding: 0 0 0 .985%;
}

.case-study:nth-of-type(even) {
  text-align: right;
}

.case-study article h2 {
  background: linear-gradient(30deg, var(--rx-media-dark-grey), var(--rx-media-light-grey) 35%,  var(--rx-media-bright-grey));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 24px;
  letter-spacing: 5px;
  margin: 0 0 0 0;
  padding: .735% 0 .735% 8%;
  position: relative;
  text-transform: uppercase;
}

.case-study:nth-of-type(even) article h2 {
  background: linear-gradient(-30deg, var(--rx-media-dark-grey), var(--rx-media-light-grey) 35%,  var(--rx-media-bright-grey));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 24px;
  letter-spacing: 5px;
  margin: 0 0 0 0;
  padding: .735% 8% .735% 0;
  position: relative;
  text-align: right;
  text-transform: uppercase;
}

.case-study article h2::before {
  background: rgba(255, 255, 255, .935);
  border-radius: 18px;
  content: '';
  inset: 0;
  position: absolute;
  z-index: -1;
}

.case-study article h2::after {
  aspect-ratio: 1/1;
  background: #86ccdd;
  border-radius: 50%;
  content: '';
  inset: calc(50% - 5px) auto auto 3.75%;
  position: absolute;
  height: 10px;
  z-index: 1;
}

.case-study:nth-of-type(even) article h2::after {
  background: #dd86cc;
  inset: calc(50% - 5px) 3.75% auto auto;
}

.case-study article h2 span {
  background: #60bbd2;
  border-radius: 18px;
  display: block;
  height: 60%;
  inset: 20% 2.5% auto auto;
  position: absolute;
  width: 10px;
}

.case-study:nth-of-type(even) article h2 span {
  background: #dd86cc;
  border-radius: 18px;
  display: block;
  height: 60%;
  inset: 20% auto auto 2.5%;
  position: absolute;
  width: 10px;
}

.case-study article h2 span::before,
.case-study article h2 span::after {
  content: '';
}

.case-study article h2 span::after {
  background: #86ccdd;
  border-radius: 18px;
  display: block;
  height: 100%;
  inset: 0 176.5% auto auto;
  position: absolute;
  width: 10px;
}

.case-study article h2 span::before {
  background: #aedce8;
  border-radius: 18px;
  display: block;
  height: 100%;
  inset: 0 368.5% auto auto;
  position: absolute;
  width: 10px;
}

.case-study:nth-of-type(even) article h2 span::after {
  background: #e8aedc;
  border-radius: 18px;
  display: block;
  height: 100%;
  inset: 0 -176.5% auto auto;
  position: absolute;
  width: 10px;
}

.case-study:nth-of-type(even) article h2 span::before {
  background: #f4d6ed;
  border-radius: 18px;
  display: block;
  height: 100%;
  inset: 0 -368.5% auto auto;
  position: absolute;
  width: 10px;
}

.case-study .study-div {
  display: flex;
  margin: 2.365% 0;
  width: 100%;
}

.case-study .view-study {
  background: #3a71c7;
  color: white;
  border-radius: 13px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 7px;
  padding: .55% 3.5% .45% 4.235%;
  margin: 0 auto;
  text-transform: uppercase;
  text-decoration: none;
  transition: 1s;
}

.case-study .view-study:hover {
  filter: hue-rotate(-35deg) brightness(1.236);
}

.case-study:nth-of-type(even) .view-study {
  background-color: #c63a70;
}

.case-study:nth-of-type(even) .view-study:hover {
  filter: hue-rotate(35deg) brightness(1.236);
}

@media only screen and (max-width: 1200px) {
  .sub .content .case-study figure {
    margin: 0 auto 15% auto;
  }

  .case-study:nth-of-type(even),
  .case-study {
    flex-flow: column;
  }

  .case-study figure {
    margin: 0;
    max-width: unset;
    width: 65%;
  }

  .case-study article h2 {
    font-size: clamp(13px, 5vw, 25px);
    letter-spacing: 1vw;
    padding: 2vw 6.5vw;
    text-align: center;
  }
}

@media only screen and (max-width: 768px) {
  .noverflow {
    overflow: clip;
  }

  main h1 sub {
    font-size: 11px;
    font-weight: 400;
  }

  .case-study:nth-of-type(2n),
  .case-study {
    font-size: clamp(14px, 21px, 25px);
    line-height: 2.5;
    text-align: center;
  }

  .case-study:nth-of-type(2n) article h2,
  .case-study article h2 {
    font-size: clamp(16.76px, 3.65vw, 25px);
    letter-spacing: 1vw;
    line-height: 1.75;
    padding: 10px 24.6px;
    text-align: center;
  }

  .case-study article h2::before {
    border-radius: 8px;
  }

  .case-study article h2::after {
    display: none;
  }

  .case-study figure {
    width: 100%;
  }

  .case-study figure img {
    border-radius: 12px;
    border: 8px solid rgba(255, 255, 255, .136);
    max-width: 100%;
  }
}

@media only screen and (max-width: 800px) {
  .case-study:nth-of-type(2n) article h2 span,
  .case-study article h2 span {
    display: none;
  }
}

@media only screen and (max-width: 460px) {
  .case-study .view-study {
    border-radius: 6px;
    font-size: 14px;
    letter-spacing: 5px;
    padding: .55% 3.5% .545% 4.235%;
  }

  main .hline {
    margin: 5% auto 15% auto;
    width: 65%;
  }
}

@media only screen and (max-width: 435px) {
  .sub .content h2 {
    font-size: initial;
  }
}
