/* -- hero -- */

#hero {
    width: 100%;
    min-height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding-top: var(--space-64);
}

.hero-container {
    width: 100%;
    max-width: var(--width-contained);
    height: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-content: center;
    align-items: center;
    row-gap: var(--space-16)
}

#hero .img-wrapper {
    display: flex;
    justify-content: end;
    align-items: end;
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    z-index: -1;
}

#hero .img-wrapper img {
    object-fit: cover;
    width: 550px;
    height: 650px;
}

#hero p {
    font-size: var(--fs-49);
    opacity: 75%;
    grid-column: 1 / -1;
    font-weight: 200;
    line-height: 1.2;
    width: 90%;
}

h1 {
    align-self: end;
    font-size: var(--fs-76);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: var(--space-32);
    font-size: clamp(5rem, 13vw, 14rem);
    grid-column : 1 / 3;
    grid-row: 2 / 3;
    -webkit-text-stroke: 4px var(--theme-text);
    line-height: .8;
    z-index: 4;
}

h1 span:last-child {
    color: transparent;
}

@media (max-width: 768px) {
    #hero {
        padding-top: var(--space-96);
        align-items: start;
        min-height: auto;
    }

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

    #hero .img-wrapper img {
        object-fit: cover;
        width: 250px;
        height: 350px;
    }

    #hero .img-wrapper {
        grid-column: 1 / 2;
    }

    h1{
        -webkit-text-stroke: 2px var(--theme-text);
        grid-row: 2 / 4;
    }
}

/* -- under hero - */

#under-hero {
    width: 100%;
    min-height: 70dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    
}

.under-hero-container {
    width: 100%;
    max-width: var(--width-contained);
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-40);
    flex-direction: column;
}

.stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  row-gap: var(--space-64);
  width: 100%;
}

.stat-card:last-child {
  width: 30%;
}

.stat-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--space-16);
}

.stat-number {
  font-size: var(--fs-61);
  font-weight: 800;
  line-height: 1.2;
  font-family: var(--ff-header);
  -webkit-text-stroke: 2px var(--theme-text);
  line-height: .8;
}

.stat-text {
  font-size: var(--fs-25);
  opacity: .75;
  text-align: center;
}

.buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  gap: var(--section-space-sm);
  margin-top: var(--space-80);
}

#under-hero a {
  font-size: var(--fs-61);
  font-weight: 800;
  line-height: 1.2;
  font-family: var(--ff-header);
  -webkit-text-stroke: 2px var(--theme-text);
  line-height: .8;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
}

.cta {
  gap: var(--space-16);
  border: none;
}

.cta-2 {
  opacity: .75;
  border: none;
  border-bottom: 2px solid var(--theme-text);
  padding: 1rem;
}

.cta .svg-wrapper {
  padding: .75rem;
  border-radius: var(--radius-lg)
}

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

    .under-hero-container {
      max-width: var(--inline-margin);
      padding-top: var(--space-80)
    }

    .stats {
      flex-direction: column;
    }

    .buttons {
      flex-direction: column;
    }

    .stat-card:last-child {
      width: 100%;
    }

    .cta svg {
      width: 40px;
      height: 40px;
    }
}

/* -- Gallery -- */

#gallery {
  width: 100%;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.gallery-container {
  width: 100%;
  max-width: var(--width-contained);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.gallery-top {
  display: flex;
  width: 90%;
  justify-content: space-between;
  align-items: center;
}

#gallery h2 {
  font-family: var(--ff-body);
  font-size: 14px;
  font-weight: 200;
}

.gallery-arrows {
  display: flex;
  gap: var(--space-24);
  cursor: pointer;
}

.gallery-arrows button {
  border: none;
  background: transparent;
  cursor: pointer;
  padding: .75rem;
  -webkit-text-stroke: 1px var(--theme-text);
  font-size: var(--fs-25);
}

.gallery-horizontal-scroll {
  width: 100dvw;
  overflow: hidden;
  min-height: 80dvh;
  padding: var(--space-16);
  border-top: 2px solid var(--theme-text);
  border-radius: var(--radius-lg);
  overflow-x: hidden;
  overflow-y: visible;
  touch-action: pan-y;
  overscroll-behavior-x: none;
}

.gallery-track {
  display: flex;
  gap: var(--space-16);
  flex-wrap: nowrap;
  height: 100%;
  width: max-content;
  will-change: transform;
  transform: translateZ(0);
}

.gallery-card {
  flex-shrink: 0;
  width: 600px;
  height: 800px;
  display: grid;
  grid-template-rows: 1fr 2fr 1fr;
  justify-content: center;
  position: relative;
  cursor: pointer;
  border-radius: var(--radius-lg);
  padding: var(--space-16);
  text-decoration: none;
  color: inherit;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

.gallery-card img,
.gallery-card video {
  pointer-events: none;
  -webkit-user-drag: none;
}

.card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

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

.card-top-text {
  color: var(--color-cream);
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-self: start;
}

.card-tags {
  display: flex;
  gap: var(--space-16);
  font-size: 12px;
  font-family: var(--ff-body);
  font-weight: 200;
  height: fit-content;
}

.card-tags p {
  border-radius: 4px;
  text-align: center;
  padding: .25rem 1rem;
}

.card-title {
  display: flex;
  flex-direction: column;
  font-size: 12px;
  font-family: var(--ff-body);
  font-weight: 200;
}

.card-title h3 {
  font-size: 16px;
  font-family: var(--ff-body);
  font-weight: 200;
  line-height: 1;
}

.inner-card-wrapper {
  width: 500px;
  height: 312px;
  display: flex;
  justify-content: center;
  align-items: center;

  justify-self: center;
  align-self: center;
}

.inner-card-wrapper video,
.inner-card-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gallery-card img,
.gallery-card video {
  display: block;
  backface-visibility: hidden;
}

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

  .gallery-container {
    max-width: var(--inline-margin);
  }

  .gallery-top {
    width: 100%;
  }

  .gallery-card {
    width: 300px;
    height: 350px;
    flex-shrink: 0;
  }

  .inner-card-wrapper {
    width: 200px;
    height: 150px;
  }

  .card-tags {
    display: none;
  }

  .gallery-horizontal-scroll {
    overflow: hidden;
    min-height: auto;
  }

  .gallery-track {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
  }

  .card-bg img {
    object-fit: contain;
  }
}
/* -- home-process -- */

#home-process {
  width: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: var(--section-space-sm)
}

.home-process-container {
  width: 100%;
  max-width: var(--width-contained);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.home-process-title {
  width: 100%;
  height: clamp(650px, 75vw, 1000px);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

#home-process .bg-img-wrapper {
  position:absolute;
  z-index: -1;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.home-process-title img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#home-process h2 {
  width: 85% ;
  font-size: clamp( .5rem, 13vw, 11rem);
  font-family: var(--ff-header);
  font-weight: 800;
  line-height: 1;
  -webkit-text-stroke: 4px;
  padding-bottom: var(--space-80);
  opacity: 75%;
  text-align: left;
}

.home-process-content1 {
  display: flex;
  flex-direction: column;
  align-items: start;
  width: 100%;
  padding-top: var(--space-80);
}

.home-process-content1 > div:first-child {
  font-size: var(--fs-61);
  width: 70%;
  font-weight: 100;
  opacity: .75;
  line-height: 1;
  font-family: var(--ff-body);
}

.content1-img-text {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: var(--space-80);
  padding: var(--space-40) var(--space-80);
}

.content1-img-text .img-wrapper {
  width: clamp(180px, 45vw, 400px);
  aspect-ratio: 4 / 5;
}

.content1-img-text .img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.content1-img-text h3 {
  font-size: var(--fs-61);
  font-weight: 800;
  line-height: 1;
  font-family: var(--ff-header);
}

.content1-img-text > div:last-child {
  width: 55%;
  font-size: var(--fs-49);
  font-weight: 100;
  font-family: var(--ff-body);
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}

.content1-img-text > div:last-child p {
  opacity: .75;
  line-height: 1.1;
}

.home-process-content2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
}

.home-process-content2 h3 {
  grid-column: 1 / -1;
  font-size: clamp( .5rem, 13vw, 10rem);
  text-align: center;
  font-weight: 800;
  line-height: 1;
  font-family: var(--ff-header);
  -webkit-text-stroke: 4px;
  padding-bottom: var(--space-16);
}

.content2-under-text {
  grid-column: 1 / -1;
  width: 60%;
  font-size: var(--fs-20);
  font-weight: 100;
  font-family: var(--ff-body);
  padding-left: var(--space-80);
  display: flex;
  justify-content: center;
  padding-bottom: var(--space-80);

}

.content2-under-text p {
  opacity: .75;
  line-height: 1.1;
  width: 80%;
  padding-left: var(--space-80);
}

.d-card {
  display: flex;
  flex-direction: column;
  align-items: start;
  padding:  0 var(--space-64);
}

.d-card h4 {
  font-size: clamp( .5rem, 13vw, 7rem);
  font-family: var(--ff-header)
}

.d-card-name {
  font-size: 12px;
  opacity: .75;
  font-family: var(--ff-header);
  padding-bottom: var(--space-16)
}

.d-1 {
  grid-column: 2 /3;
  grid-row: 3 /4;
  padding-bottom: var(--space-8)
}

.d-2 {
  grid-column: 3 /4;
  grid-row: 3 /4;
}

.d-3 {
  grid-column: 1 /2;
  grid-row: 4 /5;
}

.d-4 {
  grid-column: 2 /3;
  grid-row: 4 /5;
}

@media (max-width: 768px) {
  #home-process {
    min-height: auto;
    padding-top: var(--space-80);
  }

  #home-process h2 {
    width: 85%;
    padding-bottom: var(--space-32);
    -webkit-text-stroke: 2px;
    text-align: left
  }

  .home-process-container {
    max-width: var(--inline-margin);
  }

  .home-process-title {
    height: 400px;
  }

  #home-process .bg-img-wrapper img {
    height: 400px;
  }

  .home-process-content1 > div:first-child {
    width: 100%;
    padding-bottom: var(--space-32);;
  }

  .content1-img-text {
    flex-direction: column;
    align-items: start;
    gap: var(--space-32);
    padding: 0 0 var(--section-space-sm) 0;
  }

  .home-process-content2 {
    display:flex;
    flex-direction: column;
  }

  .content1-img-text > div:last-child  {
    width: 100%;
    font-size: var(--fs-31);
  }

  .content1-img-text h3 {
    -webkit-text-stroke: 0px;
    font-size: var(--fs-49)
  }

  .home-process-content2 h3 {
    -webkit-text-stroke: 0px;
    text-align: left;
    font-size: var(--fs-76)
  }

  .content2-under-text {
    width: 100%;
    padding-left: 0;
    padding-bottom: var(--space-40)
  }

  .content2-under-text p {
    padding-left: 0;
    width: 100%;
  }

  .d-card {
    padding:  var(--space-24) var(--space-40);
  }
  
}
