/*
    Obssessed With Humanity Splash Page
    Author: Kevin McCarthy
    Description: New Splash Page for Bovitz/Boombox
    Version: 1.0.0




/* === Custom Properties ===================================== */
:root {
  --color-primary: oklch(100% 0 263);
  /* --blue: #2550d0; */
  --blue: oklch(0.4869 0.2031 265.1);
  --blue-dark: oklch(35% 0.15 268);
  /* --color-dark-blue: #1b306b; */
  --color-dark-blue: oklch(0.3293 0.1064 265.96);
  --orange: oklch(75% 0.17 56);

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 24px;
  --space-lg: 4rem;
  --space-xl: 6rem;

  --transition: 200ms ease;
}

/* === Reset ================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Libre Franklin", "sans-serif";
  background: var(--color-primary);
  line-height: 1.6;
}
button {
  appearance: none;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  font-family: "Libre Franklin", "sans-serif";
  cursor: pointer;
  display: inline-block;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  background-color: transparent;
}

button:active {
  background-color: transparent;
}
button::-moz-focus-inner {
  border: 0;
  padding: 0;
}
img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3,
h4,
h5,
p {
  margin: 0px;
}

h1 {
  font-size: 90px;
  font-style: normal;
  font-weight: 900;
  line-height: 110%;
}
h2 {
  font-size: 48px;
  font-style: normal;
  font-weight: 900;
  line-height: 110%;
}
h3 {
  font-size: 30px;
  font-style: normal;
  font-weight: 300;
  line-height: 110%;
}
h4 {
  font-size: 24px;
  font-style: normal;
  font-weight: 900;
  line-height: 110%;
}
p {
  font-size: 20px;
  font-style: normal;
  font-weight: 500;
  line-height: 140%;
}
/* h4 stays the same on mobile */
@media (max-width: 915px) {
  h1 {
    font-size: 60px;
    line-height: 100%;
  }
  h2 {
    font-size: 40px;
  }
  h3 {
    font-size: 24px;
  }
  p {
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: 140%;
  }
}

/* === Shared helpers ======================================== */
.cta-button {
  display: inline-block;
  padding: 16px 24px;
  color: var(--color-primary);
  background: var(--blue, #0f62fe);
  font-size: 20px;
  font-style: normal;
  font-weight: 500;
  line-height: 100%; /* 20px */
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.cta-button:hover,
.cta-button:focus-visible {
  background: var(--color-dark-blue);
  color: #fff;
}

/* ============================================================
   COMPONENT: .nav-bar
   ============================================================ */
.nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 25px;
  padding: 16px;
  padding-bottom: 11px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:
    background var(--transition),
    backdrop-filter var(--transition),
    -webkit-backdrop-filter var(--transition);
}

.nav-bar.-filled {
  background: #2550d0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.nav-bar > .tagline {
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  color: #fff;
  white-space: nowrap;
}

.nav-bar > .nav-links {
  display: flex;
  gap: 14px;
  a {
    position: relative;
    display: inline-block;
    overflow: hidden;
    text-decoration: none;
    padding-bottom: 9px;
    width: 170px;
	 padding-right: 8px;
	  padding-left: 8px;
    &::after {
      content: "";
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;
      height: 2px;
      background-color: white;
      opacity: 0;
      transform: translate3d(-100%, 0, 0);
      transition:
        opacity 50ms,
        transform 0.3s ease;
    }

    &:hover::after {
      opacity: 0.6;
      transform: translate3d(0, 0, 0);
    }
    img {
      max-width: none;
      width: 100%;
    }
  }
}

/* ============================================================
   COMPONENT: .hero-section
   ============================================================ */

.hero-section {
  position: relative;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  align-items: center;
  min-height: 80svh;
  background-image: var(--hero-bg, var(--blue));
  background-size: cover;
  background-position: center;
  background-color: var(--blue);

  padding: 96px 24px;
  padding-bottom: 30px;
  overflow: hidden;
}

.hero-bg-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: bottom center;
  background-image: var(--bg-mobile);
  background-size: cover;
  background-position: center;
  opacity: 0;
  z-index: 0;
  transition: 300ms ease-in-out opacity;
}

@media (min-width: 915px) {
  .hero-bg-layer {
    background-image: var(--bg-desktop);
  }
}

.hero-bg-layer.-active {
  opacity: 1;
}
.hero-section > .copy {

  margin-left: 2dvw;
  max-width: 55dvw;
  padding: 24px;
  color: #fff;
  font-weight: 400;
  font-style: normal;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  z-index: 2;
  width: fit-content;
}

.hero-section > .copy > .pre-headline {
  margin-bottom: 10px;
  font-size: 30px;
  font-style: normal;
  font-weight: 300;
  line-height: 110%;
}

.hero-section > .copy > .headline {
  margin-bottom: 30px;
}
.hero-section > .copy > .headline > .copyright {
  position: relative;
}
.hero-section > .copy > .headline > .copyright::after {
  content: "®";
  position: absolute;
  top: 0;
  right: -30px;
  font-size: 60px;
  font-style: normal;
  font-weight: 250;
  line-height: 110%;
}
@media (max-width: 915px) {
  .hero-section > .copy > .headline > .copyright::after {
    top: 0;
    right: -20px;
    font-size: 40px;
  }
}
.hero-section > .copy > .subhead {
  font-size: 20px;
  font-style: normal;
  font-weight: 900;
  line-height: 100%; /* 20px */
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero-section > .copy > .description {
  margin-bottom: 30px;
}

/* ============================================================
   COMPONENT: .case-studies
   ============================================================ */
.case-studies {
  padding: 80px;
  background: #000;
  color: #fff;
}

.case-studies > .section-header {
  margin: 0 auto;

  max-width: 1400px;
}

.case-studies > .section-header > .title {
  text-align: start;
  letter-spacing: -0.96px;
  margin-bottom: 46px;
}

.case-studies > .section-header > .subtitle {
  text-align: center;
  font-size: 32px;
  font-style: normal;
  font-weight: 400;
  margin-top: 0px;
  line-height: 120%;
}

.carousel-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  max-width: 1400px;
  margin: 0 auto;
}

.carousel-wrap > .arrow {
  position: absolute;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background-color: transparent;
  font-size: 1.125rem;
  cursor: pointer;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;

  > svg {
    fill: white;
  }

  &:hover > svg {
    fill: var(--orange);
  }
  &.-prev {
    top: 50%;
    left: -40px;
  }
  &.-next {
    top: 50%;
    right: -40px;
  }
}

.carousel-wrap > .carousel {
  flex: 1;
  overflow: hidden;
}

.carousel-wrap > .carousel > .track {
  display: flex;
  gap: var(--space-sm);
  transition: transform 400ms cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

/* COMPONENT: .card-item ------------------------------------ */
.card-item {
  flex: 0 0 calc((100% - 2 * var(--space-sm)) / 3);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    box-shadow var(--transition),
    transform var(--transition);
}

@media (min-width: 1400px) {
  .card-item {
    flex: 0 0 calc((100% - 3 * var(--space-sm)) / 4);
  }
}
.card-item > .tag {
  padding-top: 20px;
  padding-bottom: 4px;
}
.card-item > .image {
  height: 312px;
  background: var(--blue);
}

.card-item > .title {
  font-size: 24px;
  font-style: normal;
  font-weight: 900;
  line-height: 110%; /* 26.4px */
}
/* Not displaying this unless the modal is open but leaving it here so we can grab the content easily */
.card-item > .description {
  display: none;
}
.card-item > .link {
  color: var(--orange);
  font-size: 20px;
  font-style: normal;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.5px;
  padding-top: 5px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: auto;
}
.card-item > .link::after {
  content: url("../splash-page/chevron-right-orange.svg");
  display: inline-block;
  transform: translateY(2px);
  vertical-align: middle;
}
.card-item > .link:hover {
  color: white;
  &::after {
    content: url("../splash-page/chevron-right-white.svg");
  }
}

/* ============================================================
   COMPONENT: .marketing-split
   ============================================================ */
.marketing-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--color-primary);
  color: #fff;
  min-height: 90dvh;
}

.marketing-split > .column {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.marketing-split > .column.-bovitz {
  background: url("../splash-page/images/background-bovitz.webp") lightgray
    50% / cover no-repeat;
}

.marketing-split > .column.-boombox {
  background: url("../splash-page/images/background-boombox.webp") lightgray
    50% / cover no-repeat;
}

.marketing-split > .column > .content {
  max-width: 462px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex: 1;
}

.marketing-split > .column > .content > img {
  display: block;
  height: 67px;
  width: auto;
  flex-shrink: 0;
}

.marketing-split > .column > .content > .description {
  text-align: center;
  /* font-size: 18px;
  font-style: normal;
  font-weight: 500;
  line-height: 140%; */
  &.-boombox {
    text-shadow: 0 2px 10px oklch(0% 0 0 / 50%);
  }
}
.marketing-split > .column > .content > .cta-button {
  display: inline-block;
  margin-top: 20px;
  width: auto;
}
.marketing-split > .column.-bovitz > .content > .cta-button {
  border: 2px solid white;
}
.marketing-split > .column.-bovitz > .content > .cta-button:hover {
  border: 2px solid var(--color-dark-blue);
}
/* ============================================================
   COMPONENT: .contact-section
   ============================================================ */
.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 90dvh;
  background-image: url("../splash-page/images/contact-desktop-1.webp");
  background-size: cover;
  background-position: center;
  padding: 80px;
}

.contact-section > .text-col {
  max-width: 700px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--color-bg-alt);
  color: #000;
}

.contact-section > .text-col > .title {
  padding-bottom: 10px;
}

.contact-section > .text-col > .tagline {
  padding-bottom: 32px;
}

.contact-section > .text-col > .description {
  flex-direction: column;
  color: #000;

  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  line-height: 140%;
  padding-bottom: 64px;
  gap: 12px;
}
.contact-section > .text-col > div {
  display: flex;
  gap: 16px;
}

.contact-section > .text-col > div > .cta-button.boombox {
  background-color: transparent;
  color: var(--blue);
  &:hover {
    background-color: var(--blue);
    color: #fff;
  }
}

/* ============================================================
   INTERMEDIARY SCREEN SIZE JUST FOR HERO SECTION
   ============================================================ */
@media (min-width: 915px) and (max-width: 1300px) {
  .hero-section > .copy > .headline {
    font-size: 72px;
  }
  .hero-section > .copy > .description {
    font-size: 18px;
  }
  .hero-section > .copy > .pre-headline {
    font-size: 24px;
  }
  .hero-section > .copy > .subhead {
    font-size: 20px;
  }
}
/* ============================================================
   RESPONSIVE — Mobile (<915px)
   ============================================================ */
@media (max-width: 915px) {
  .nav-bar {
    gap: 10px;
  }
  .hero-section {
    min-height: 90dvh;
    max-height: none;
    height: auto;
    background-color: var(--blue-dark);
    padding-top: 180px;
    grid-template-columns: 1fr;
    background-image: var(--hero-bg-mobile, var(--blue));
    background-position: bottom center;
    background-size: 100% auto;
    background-repeat: no-repeat;
  }
  .hero-section > .copy {
    max-width: none;
    margin-left: 0px;
    min-height: none;
    justify-content: start;
    margin-bottom: 300px;
  }
  .hero-section > .copy > .pre-headline {
    font-size: 24px;
  }
  .hero-section > .copy > .subhead {
    font-size: 20px;
    font-style: normal;
    font-weight: 900;
    line-height: 100%;
    letter-spacing: 1px;
    text-transform: uppercase;
  }
  .hero-bg-layer {
    background-repeat: no-repeat;
    background-size: 100% auto;
    background-position: bottom center;
  }
  .case-studies {
    padding: 48px;
  }

  .case-studies > .section-header {
    font-size: 40px;
    font-style: normal;
    font-weight: 900;
    line-height: 110%; /* 44px */
  }

  .carousel-wrap > .arrow {
    &.-prev {
      left: -30px;
    }
    &.-next {
      right: -30px;
    }
  }

  .card-item {
    flex: 0 0 100%;
  }
  .card-item > .link {
    font-size: 16px;
    font-weight: 600;
    line-height: 100%;
    letter-spacing: 0.5px;
  }
  /* Marketing split: stack */
  .marketing-split {
    grid-template-columns: 1fr;
  }

  .marketing-split > .column {
    padding: 120px 46px;
  }

  .contact-section {
    grid-template-columns: 1fr;
  }
  .contact-section .cta-button {
    font-size: 16px;
    font-weight: 600;
    line-height: 100%;
    letter-spacing: 0.5px;
  }
  .contact-section > .text-col > div {
    flex-wrap: wrap;
  }
  .contact-section > .text-col {
    margin-bottom: 800px;
  }
  .contact-section > .text-col > .description {
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 140%;
    padding-bottom: 40px;
  }
  .contact-section {
    background:
      url("../splash-page/images/contact-mobile-1.webp") no-repeat 0px 638.2px /
        100% 46.032%,
      #d5d5d5;
    padding: 30px;
    padding-top: 60px;
    background-position: bottom center;
    background-size: 100% auto;
    background-repeat: no-repeat;
  }
  .contact-section > .text-col {
    margin-bottom: 100dvw;
  }
  .hero-section {
    padding: 0px;
  }
  .hero-section > .copy {
    padding-top: 125px;
    padding-left: 30px;
    padding-right: 30px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 105dvw;
  }
}
@media (max-width: 830px) {
  .hero-section > .copy {
    margin-bottom: 0px;
    margin-bottom: 105dvw;
  }
}
@media (max-width: 700px) {
  .hero-section > .copy {
    margin-bottom: 0px;
    margin-bottom: 105dvw;
  }
}
@media (max-width: 600px) {
  .hero-section > .copy {
    margin-bottom: 105dvw;
  }
}
@media (max-width: 530px) {
  .hero-section > .copy {
    padding-top: 180px;
    margin-bottom: 105dvw;
  }
}
@media (max-width: 430px) {
  .hero-section > .copy {
    padding-top: 180px;
    margin-bottom: 105dvw;
  }
}
@media (max-width: 400px) {
  .hero-section > .copy {
    padding-top: 180px;
    margin-bottom: 105dvw;
  }
}
/* ============================================================
   COMPONENT: .case-modal
   ============================================================ */
.case-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 300ms ease,
    visibility 300ms ease;
}

.case-modal.-visible {
  opacity: 1;
  visibility: visible;
}

.case-modal > .overlay {
  position: absolute;
  inset: 0;
  background: oklch(0% 0 0 / 0.75);
  cursor: pointer;
}

.case-modal > .panel {
  position: relative;
  z-index: 1;
  background: oklch(100% 0 0);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
@media (min-width: 1200px) {
  .case-modal > .panel {
    width: 1200px;
    height: 786px;
  }
}
.case-modal > .panel > .close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  background: var(--blue);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  &:hover {
    background-color: var(--color-dark-blue);
  }
  &:focus-visible {
    outline: 3px solid var(--orange);
    outline-offset: 2px;
  }
}

.modal-nav > .modal-arrow:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

.case-modal > .panel > .modal-body {
  display: flex;
  flex-direction: row;
  height: 100%;
  transition: opacity 100ms ease;
}

.case-modal > .panel > .modal-body.-fading {
  opacity: 0;
}

/* Have the image for the desktop sized modal appear as a background image 
 when in mobile use regular <img> within, hide it on large screens

*/

.case-modal > .panel > .modal-body > .modal-image {
  --bg-image: url("../splash-page/images/CS-Target-V02-Horizontal.webp");
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center center;
}

@media (max-width: 915px) {
  .case-modal > .panel > .modal-body > .modal-image {
    background-image: none;
  }
}

@media (min-width: 914px) {
  .case-modal > .panel > .modal-body > .modal-image {
    flex: 0 0 50%;
  }
  .case-modal > .panel > .modal-body > .modal-image img {
    display: none;
  }
}
.case-modal > .panel > .modal-body > .modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.case-modal > .panel > .modal-body > .modal-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-top: 68px;
  padding-left: 48px;
  padding-right: 48px;
  padding-bottom: 46px;
  color: #000;
}

.case-modal > .panel > .modal-body > .modal-content > .modal-title {
  padding-bottom: 16px;
  font-size: 42px;
}
.case-modal > .panel > .modal-body > .modal-content > .tag {
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 110%;
  padding-bottom: 20px;
  color: var(--primary-90, #000);
}

.case-modal > .panel > .modal-body > .modal-content > .modal-text {
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  line-height: 140%;
  margin-bottom: 16px;
  p {
    margin-bottom: 10px;
  }
}

.case-modal > .panel > .modal-body > .modal-content > .modal-nav {
  display: flex;
  justify-content: space-between;
  margin-top: auto;
}

.modal-nav > .modal-arrow {
  color: #fff;
  cursor: pointer;
  display: flex;
  padding: 16px;
  align-items: center;
  justify-content: center;
  background-color: var(--blue);
  font-size: 20px;
  font-style: normal;
  font-weight: 500;
  line-height: 100%;
  letter-spacing: 0.5px;
  gap: 16px;
  > svg {
    fill: #fff;
  }
  &:hover {
    background-color: var(--color-dark-blue);
    color: #fff;
    > svg {
      fill: #fff;
    }
  }
}

.modal-nav > .modal-arrow > img {
  width: 1.25rem;
  height: 1.25rem;
}
/* width: 1200px;
  height: 786px; */
@media (max-width: 1200px) {
  .case-modal > .panel {
    /* width: 100dvw;
    height: 70dvh; */
    max-height: 100dvh;
  }
}

@media (max-width: 915px) {
  .modal-nav > .modal-arrow > p {
    display: none;
  }
  .case-modal > .panel {
    aspect-ratio: 1 / 2;
    width: auto;
    height: auto;
  }
  .case-modal > .panel > .modal-body {
    flex-direction: column;
  }
  .case-modal > .panel > .modal-body > .modal-image {
    flex: 0 0 45%;
  }
  .case-modal > .panel > .modal-body > .modal-content {
    padding: 30px;
    padding-top: 40px;
  }
  /* This is an H2 but behaves differently on mobile than normal H2 */
  .case-modal > .panel > .modal-body > .modal-content > .modal-title {
    font-size: 24px;
    font-style: normal;
    font-weight: 900;
    line-height: 110%;
    padding-bottom: 16px;
  }
  .case-modal > .panel > .modal-body > .modal-content > .modal-text {
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 130%;
    padding-bottom: 20px;
    margin-bottom: 0px;
  }
}
@media (max-width: 500px) {
  .case-modal > .panel {
    height: 100dvh;
    width: 100dvw;
    aspect-ratio: auto;
  }
}
