@font-face {
  font-family: 'PPEditorialOld-Regular';
  src: url('fonts/PPEditorialOld-Regular.woff') format('woff');
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'PPNeueMontreal-Book';
  src: url('fonts/ppneuemontreal-book.woff') format('woff');
  font-style: normal;
  font-display: swap;
}

/* ------------------------- Scaling system -------------------------------------------------- */

/* Desktop */
:root {
  --size-unit: 16; /* body font-size in design - no px */
  --size-container-ideal: 1920; /* screen-size in design - no px */
  --size-container-min: 992px;
  --size-container-max: 1920px;
  --size-container: clamp(var(--size-container-min), 100vw, var(--size-container-max));
  --size-font: calc(var(--size-container) / (var(--size-container-ideal) / var(--size-unit)));
  --color-primary: #7B2D27;
  --color-secondary: #FBFAFA;
}

body {
  font-size: var(--size-font);
}

p {
    margin: 0;
}

.container {
  max-width: var(--size-container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 4em;
  padding-right: 4em;
}

.container.medium {
  max-width: calc(var(--size-container) * 0.85);
}

.container.small {
  max-width: calc(var(--size-container) * 0.7);
}

/* ------------------------- Hide Scrollbar -------------------------------------------------- */

body ::-webkit-scrollbar{display: none;} /* Chrome, Safari, Opera */
body {-ms-overflow-style: none;} /* IE & Edge */
html {scrollbar-width: none;} /* Firefox */

/* ------------------------- Body -------------------------------------------------- */

*, *:after, *:before { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box;}
html {scroll-behavior: initial;}

html, body {
  -webkit-font-smoothing: antialiased;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #f8f6f7;
}
svg {max-width: none; height: auto; box-sizing: border-box; vertical-align: middle;}


/* Selection */
::selection {
  background-color: #7B2D27;
  color: #FBFAFA;
  text-shadow: none;
}

::-moz-selection {
  background-color: var(--color-primary);
  color: var(--color-neutral-800);
  text-shadow: none;
}
  
a {
  color: inherit;
  text-decoration: none;
}

/* ------------------------- Transitions -------------------------------------------------- */

h1, h2, h3, h4, h5, h6, p, span, a, li, ul, ol {
  transition-property: background, font-size;
  transition-duration: 0.3s;
  transition-timing-function: cubic-bezier(.77,0,.18,1);
}

img {
  transition-property: box-shadow, background, filter;
  transition-duration: 0.3s;
  transition-timing-function: cubic-bezier(.77,0,.18,1);
}
  
/* ------------------------- Sections & Structure -------------------------------------------------- */
.section {
    position: relative;
}

.home-w {
    min-height: 100vh;
    max-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    position: relative;
    z-index: 3;
    padding-top: 5em;
    padding-bottom: 3.5em;
}

.home-w-inner {
    max-width: 72em;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.webgl-w {
    position: fixed;
    inset: -2px;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
}

/* Placeholder for unicorn embed */
.unicorn-embed-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

#unicorn-embed {
  position: relative;
  z-index: 1;
}
  
.bg-grid {
  position: fixed;
  inset: -2px;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  pointer-events: none;
  mix-blend-mode: color-burn;
  z-index: 2;
  background-image: url('data:image/svg+xml;utf8,<svg width="79" height="79" viewBox="0 0 79 79" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M39.8428 78.125H38.9688V50.1475H39.8428V78.125ZM40.7178 37.9072H46.8379V40.5303H40.7178V46.6504H38.0947V40.5303H31.9746V37.9072H38.0947V31.7871H40.7178V37.9072ZM28.4775 39.6553H0.5V38.7812H28.4775V39.6553ZM78.3115 39.6553H50.335V38.7812H78.3125L78.3115 39.6553ZM39.8428 28.29H38.9688V0.3125H39.8428V28.29Z" fill="%23DFD6D7"/></svg>');
  background-repeat: repeat;
  background-size: 79px 79px;
}

/* ------------------------- Text -------------------------------------------------- */

.h-display {
    font-family: 'PPEditorialOld-Regular';
    font-size: 6.25em;
    line-height: 1.1;
    font-weight: 400;
    color: var(--color-primary);
}

.p-body {
    font-family: 'PPNeueMontreal-Book';
    line-height: 1.1;
    font-weight: 400;
    color: var(--color-primary);
    letter-spacing: 0.02em;
}

.text-center {
    text-align: center;
}
  
/* ------------------------- Waitlist Button -------------------------------------------------- */
.waitlist-btn__inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding-right: 1em;
  padding-left: 0.5em;
  padding-top: 0.625em;
  padding-bottom: 0.625em;
  border-radius: 1000em;
  border: 2.4px solid #E1D1D3;
  cursor: pointer;
  gap: 0.5em;
  font-family: 'PPNeueMontreal-Book', Arial, sans-serif;
  font-size: 2em;
  color: #7B2D27;
  font-weight: 400;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.waitlist-btn__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 3;
}

.waitlist-btn__unicorn-bg {
  position: absolute;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: auto; /* allow interaction with unicorn embed */
  border-radius: 1000em;
  overflow: hidden;
}

#unicorn-embed-btn {
  width: calc(100% + 4px);
  height: calc(100% + 4px);
}

.waitlist-btn__text {
  position: relative;
  z-index: 1;
}

.waitlist-btn {
  border: none;
  background-color: #fdf9f913 ;
  border: 1.2px solid rgba(255, 255, 255, 0.12);
  border-radius: 1000em;
  padding: 0.25em;
  margin: 0;
  cursor: pointer;
}

.waitlist-btn__icon svg {
    height: 1em;
}

/* ------------------------- Bottom bar -------------------------------------------------- */

.home-w-bottom {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    width: 100%;
}

.logo {
    max-height: 2.8em;
    padding-right: 0.2em;
}

.home-w-bottom__logo {
    display: flex;
    align-items: flex-end;
}

.bottom-bar__socials {
    display: flex;
    align-items: center;
    gap: 4em;
}

.bottom-bar__socials-links {
    display: flex;
    align-items: center;
    gap: 0.75em;
}
  
/* ------------------------- Waitlist Modal -------------------------------------------------- */

/* Inspired Modal Styles */
.modal {
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  justify-content: center;
  align-items: center;
  padding: 2em 1em;
  display: flex;
  position: fixed;
  inset: 0;
  overflow: hidden;
  transition: all 0.2s linear;
}
.modal[data-modal-group-status="active"] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.modal__dark {
  opacity: .5;
  pointer-events: auto;
  cursor: pointer;
  background-color: #131313;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}
.modal__card {
  pointer-events: auto;
  background-color: #fff;
  border-radius: 1em;
  width: 100%;
  max-width: 40em;
  max-height: 100%;
  padding: .75em;
  display: none;
  position: relative;
  box-shadow: 0 8px 32px rgba(123,45,39,0.12);
  flex-direction: column;
  align-items: center;
}
.modal__card[data-modal-status="active"] {
  display: flex;
}
.modal__scroll {
  background-color: #F6F1F0;
  border-radius: 0.5em;
  width: 100%;
  max-height: 100%;
  display: flex;
  flex-flow: column;
  position: relative;
  overflow: auto;
}
.modal__content {
  flex-flow: column;
  padding: 2em 4em;
  display: flex;
  align-items: center;
}
.modal__h2 {
  margin-top: 1.5em;
  margin-bottom: 1.125em;
  font-size: 3em;
  font-weight: 400;
  line-height: 1.1;
  color: #7B2D27;
  font-family: 'PPEditorialOld-Regular', serif;
  text-align: center;
  max-width: 88%;
}
.modal__btn-close {
  background-color: #fff;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 3.5em;
  height: 3.5em;
  display: flex;
  position: absolute;
  top: 2.5em;
  right: 2.5em;
  cursor: pointer;
  z-index: 2;
}
.modal__btn-close-bar {
  background-color: #7B2D27;
  width: .125em;
  height: 40%;
  position: absolute;
  transform: rotate(45deg);
}
.modal__btn-close-bar.is--second {
  transform: rotate(-45deg);
}
/* Waitlist form inside modal */
.waitlist-modal__form {
  display: flex;
  flex-direction: row;
  gap: 0.5em;
  width: 100%;
  justify-content: center;
  margin-bottom: 1em;
}
.waitlist-modal__input {
  font-size: 1em;
  padding: 0.6em 1em;
  color: #7B2D27;
  border-radius: 1000em;
  font-family: 'PPNeueMontreal-Book', Arial, sans-serif;
  flex: 1 1;
  background: #fff;
  border: none;
  outline: none;
}
.waitlist-modal__submit {
  font-size: 1.1em;
  padding: 1em 0.75em;
  border-radius: 1000em;
  border: none;
  background: #7B2D27;
  color: #fff;
  font-family: 'PPNeueMontreal-Book', Arial, sans-serif;
  cursor: pointer;
}
.waitlist-modal__message {
  color: #7B2D27;
  font-size: 1em;
  text-align: center;
  min-height: 1.5em;
} 

form input::placeholder{
    color: #7B2D27;
}

/* Tablet */
@media screen and (max-width: 991px) {
  :root {
    --size-container-ideal: 834; /* screen-size in design - no px */
    --size-container-min: 768px;
    --size-container-max: 991px;
  }

  .h-display {
    font-size: 4em;
  }

  .home-w-bottom {
      flex-direction: column;
      align-items: flex-start;
      gap: 1.5em;
  }

  .container {
      padding-left: 1em;
      padding-right: 1em;
  }
}

/* Mobile Landscape */
@media screen and (max-width: 767px) {
  :root {
    --size-container-ideal: 550; /* screen-size in design - no px */
    --size-container-min: 480px;
    --size-container-max: 767px;
  }

  .h-display {
    font-size: 3em;
  }
}

/* Mobile Portrait */
@media screen and (max-width: 479px) {
  :root {
    --size-container-ideal: 390; /* screen-size in design - no px */
    --size-container-min: 320px;
    --size-container-max: 479px;
  }

  .h-display {
    font-size: 1.75em;
  }

  .home-w-bottom {
      gap: 2em;
  }

  .bottom-bar__socials {
      flex-direction: column;
      gap: 0.5em;
      align-items: flex-start;
  } 

  .waitlist-btn__text {
      font-size: 0.625em;
  }

  .waitlist-btn__icon svg {
      height: 0.75em;
  }

  .modal__content {
    padding: 2em 1em;
  }

  .modal__h2 {
    font-size: 2.75em;
  }
  
  .waitlist-modal__form {
    flex-direction: column;
  }

  .waitlist-modal__input {
    width: 100%;
    padding: 1em 0.75em;
  }
}