/* ==============================
   CASE STUDY THEMES
============================== */


/* DEFAULT */

.case-content-white {
  --theme-bg: #F5F5F2;
}


/* XERO */

.case-theme-xero {
  --theme-bg: #1C1C1C;
  --theme-text: #C8C2B6;
}


/* HORIMU */

.case-theme-horimu {
  --theme-bg: #D9D4C9;
  --theme-text: #514A40;
}


/* MASKED BY MADDIE */

.case-theme-maddie {
  --theme-bg: #C89A91;
  --theme-text: #633E3B;
}


/* EVERGREEN */

.case-theme-evergreen {
  --theme-bg: #A99F45;
  --theme-text: #4C4A24;
}


/* BEST KEPT SECRET */

.case-theme-best-kept {
  --theme-bg: #B8AA9A;
  --theme-text: #5B5148;
}


/* REQUIEM */

.case-theme-requiem {
  --theme-bg: #A99A7D;
  --theme-text: #493F35;
}


/* JADE RABBIT */

.case-theme-jade {
  --theme-bg: #66705A;
  --theme-text: #D7D6B5;
}


/* OLIVE & EMBER */

.case-theme-olive {
  --theme-bg: #181818;
  --theme-text: #D6C9B7;
}


/* NO KINGS */

.case-theme-no-kings {
  --theme-bg: #35462F;
  --theme-text: #C6C5A2;
}

.case-study-page {
  color: var(--theme-text);
}

header {
  color: var(--theme-text);
}

header a {
  color: var(--theme-text);
}

header svg {
  color: var(--theme-text);
}

.website-link .svg-wrapper {
  background: transparent;
  color: var(--theme-text);
}

.website-link .svg-wrapper svg {
  display: block;
  background: transparent;
  width: 30px;
  height: auto;
}

main {
    position: relative;
}

.website-link {
    position: fixed;
    top: 10%;
    right: 4%;
    z-index: 7;
    font-size: var(--fs-31);
    font-weight: 600;
    font-family: var(--ff-header);
    line-height: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-8);
    border-bottom: 2px solid;
    padding: .5rem 2rem;
    border-radius: 8px;
}

.link-top {
    display: flex;
    gap: var(--space-16);
    align-items: end;
}

.website-link p {
    font-size: 12px;
}


@media (max-width: 768px) {
  .website-link {
    top: auto;
    bottom: 1%;
    right: 20%;
    padding: .5rem 2rem;
    border-radius: 8px;
  }

  .website-link .svg-wrapper svg {
    width: 20px;
    height: auto;
}
}

/* -- case study opner -- */

#study-opener {
    background-color: transparent;
    color: var(--theme-text);
    height: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.opener-container {
    max-width: var(--width-contained);
    display: grid;
    grid-template-columns: 1fr 1fr;
    row-gap: var(--space-80);
    padding: var(--space-80) 0;
}

h1 {
  font-size: clamp(6rem, 13vw, 12rem);
  -webkit-text-stroke: 6px;
  line-height: 1;
  font-family: var(--ff-header);
}

.project-marquee {
  width: 100%;
  overflow: hidden;
  grid-column: 1 / -1;
}

.project-marquee-track {
  display: flex;
  width: max-content;
  gap: 4rem;
}

.project-marquee-track h1 {
  flex-shrink: 0;
  white-space: nowrap;
  margin: 0;
}

.project-tags {
    display: flex;
    gap: var(--space-32);
    font-size: var(--fs-16);
    font-weight: 100;
    opacity: .75;
}

.overview {
    display: flex;
    flex-direction: column;
    gap: var(--space-24);
}

.overview h2 {
    font-size: var(--fs-16);
    opacity: .75;
}

.overview p {
    font-size: var(--fs-20);
    width: 70%;
}

@media (max-width: 768px) {
  #study-opener {
    padding: var(--space-96) 0;
  }

  .opener-container {
    grid-template-columns: 1fr;
    max-width: var(--inline-margin)
  }

  .overview p {
    width: 100%;
  }

}

/* -- project view -- */

#project-view {
    width: 100%;
    min-height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.bg-img {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.bg-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.center-img {
    width: 800px;
    height: auto;
    z-index: 2;
}

.center-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.center-img video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    #project-view {
        min-height: auto;
        padding: var(--section-space-md) 0;
    }

    .center-img {
        width: 350px;
    }
}

/* -- case-study -- */

#case-study {
    width: 100%;
    min-height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.case-container {
    height: 100%;
    max-width: var(--width-contained);
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: var(--space-80) 0;
    gap: var(--space-80);
}

.services {
    display: flex;
    flex-direction: column;
    gap: var(--space-24);
}

#case-study h2 {
    font-size: var(--fs-16);
    opacity: .75;
    font-family: var(--ff-header);
    font-weight: 400;
}

.services ul {
    display: flex; 
    flex-direction: column;
    gap: var(--space-16);
    font-weight: 100;
    font-size: var(--fs-20)
}

.information {
    display: flex;
    flex-direction: column;
    gap: var(--space-24);
}

.info-text {
    display: flex;
    flex-direction: column;
    gap: var(--space-16);
    width: 70%;
    font-weight: 100;
    font-size: var(--fs-20)
}

.showcase-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.experience {
    display: flex;
    flex-direction: column;
    gap: var(--space-24);
    align-self: end;
    padding-left: var(--space-80);
}

.exp-text {
    display: flex;
    flex-direction: column;
    gap: var(--space-16);
    font-weight: 100;
    font-size: var(--fs-20)
}

@media (max-width: 768px) {
    #case-study {
        min-height: auto;
    }

    .case-container {
        grid-template-columns: 1fr;
        max-width: var(--inline-margin);
    }

    .info-text {
        width: 100%
    }

    .experience {
        padding-left: 0;
    }
}