:root {
   --main-size: 1.25rem;
   --body-font: system-ui, sans-serif;
   --heading-font: system-ui, sans-serif;
   --primary-color: #D39C0F;
   --secondary-color: #333;
   --tertiary-color: #DDD;
   --xx-large-font-size: clamp(2.5rem, 1.7593rem + 3.7037vw, 5rem);
   --x-large-font-size: clamp(2rem, 1.4815rem + 2.5926vw, 3.75rem);
   --large-font-size: 2.5rem;
   --medium-font-size: 1.5rem;
   --small-font-size: 0.875rem;
   --border-color: #dee2e6;
   --border-radius: .375rem;
}

@font-face {
   font-family: 'HW Atlantic';
   src: url('../fonts/HWAtlantic-Regular.woff2') format('woff2');
   font-weight: normal;
   font-style: normal;
   font-display: swap;
}

@font-face {
   font-family: 'HW Atlantic';
   src: url('../fonts/HWAtlantic-Semibold.woff2') format('woff2');
   font-weight: 600;
   font-style: normal;
   font-display: swap;
}

.mark,
mark {
   padding: unset;
   color: unset;
   background-color: unset;
}

.row {
   gap: var(--bs-gutter-x) 0;
   margin-block-start: unset;
   >* {
      margin-block-start: unset;
   }
}

b,
strong {
   font-weight: 600;
}

figure {
   margin: unset;
}

body.no-scroll {
   overflow: hidden;
   padding-inline-end: 0px;
}

.overlay {
   background-color: rgba(0, 0, 0, .5);
   position: fixed;
   width: 100%;
   height: 100%;
   z-index: 999;
   left: 0;
   top: 0;
   display: none;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
hr {
   margin: 0;
}

a {
   outline: 0;
   &:hover,
   &:focus,
   &:active {
      outline: 0;
   }
}

.grecaptcha-badge {
   right: -300px !important;
}

.btn-close:focus,
.btn.active.focus,
.btn.active:focus,
.btn.focus,
.btn.focus:active,
.btn:active:focus,
.btn:focus {
   outline: 0;
   box-shadow: none;
}

.form-control:focus {
   border-color: none;
   box-shadow: none;
}

img {
   max-width: 100%;
   height: auto;
}

.map {
   line-height: 1;
   iframe {
      width: 100%;
   }
}

/* ==========================================================================
GENERAL
========================================================================== */

body {
   background-color: #000;
   color: #FFF;
   font-family: 'HW Atlantic';
   text-transform: uppercase;
   font-size: 14px;
   transition: background-color 1.5s ease, color .75s ease;
   &.alternate {
      background-color: var(--primary-color);
      color: #000;
   }
}

a {
   color: currentColor;
   text-decoration: none;
   transition: opacity .3s ease-out;
   &:hover,
   &.active {
      opacity: .35;
   }
}

.dropdown {
   .btn {
      border: none !important;
      padding: 0;
      color: currentColor;
      font-size: 14px;
      line-height: 1;
      text-transform: uppercase;
      font-weight: 600;
   }
}

.dropdown-menu {
   background-color: #000;
   min-width: unset;
   border-radius: 0;
   font-size: 14px;
   color: currentColor;
   .dropdown-item {
      font-weight: 600;
      color: currentColor;
      padding-inline-start: 0;
      padding-inline-end: 15px;
   }
}

.dropdown-item:focus,
.dropdown-item:hover {
   background-color: #000;
}

.dropdown-toggle {
   display: flex;
   align-items: center;
   font-weight: 600;
   gap: 6px;
   &:after {
      background-image: url(../images/dd-arrow.svg);
      width: 6px;
      height: 10px;
      border: none;
   }
   &.show {
      &:after {
         rotate: 180deg;
      }
   }
}

.languages-links {
   gap: 24px;
   font-size: 14px;
   a {
      color: #FFF;
      font-weight: 600;
      text-decoration: none;
      opacity: .35;
      display: block;
      line-height: 1;
      transition: opacity .3s ease-out;
      &:hover,
      &.active {
         opacity: 1;
      }
   }
}

.section {
   padding: var(--main-size);
   display: flex;
   flex-direction: column;
   min-height: 100svh;
   @media (min-width: 768px) {
      padding: calc(var(--main-size) * 2);
   }
}

.section-intro {
   position: relative;
   justify-content: space-between;
   padding-block-start: calc(var(--main-size) * 2);
   gap: calc(var(--main-size) * 2);
   .top {
      position: relative;
   }
   .logo {
      text-align: center;
      img {
         max-width: 150px;
      }
   }
   .language {
      position: absolute;
      right: 0;
      top: 6px;
   }
   .middle {
      flex: 1;
      align-content: center;
      h1 {
         font-size: 9.5vw;
         line-height: 1;
      }
      span {
         display: block;
         img {
            display: none;
         }
      }
      &.middle-en {
         h1 {
            font-size: 8.7vw;
         }
      }
   }
   .bottom {
      margin-inline: calc(var(--main-size) * -1);
      width: 100vw;
      overflow: hidden;
      img {
         display: block;
         max-width: 40vw;
      }
      .js-marquee {
         display: flex;
         gap: 12px;
      }
   }
   @media (min-width: 768px) {
      .bottom {
         margin-inline: calc(var(--main-size) * -2);
      }
   }
   @media (min-width: 992px) {
      .logo {
         text-align: center;
         img {
            max-width: 240px;
         }
      }
      .middle {
         h1 {
            span {
               span {
                  display: flex;
                  gap: 12px;
                  img {
                     display: block;
                     max-width: none;
                     width: auto;
                     height: 1.27ch;
                  }
               }
            }
         }
      }
   }
   @media (min-width: 1200px) {
      .middle {
         flex: 1;
         width: 80vw;
         margin-inline: auto;
         h1 {
            font-size: 8.2vw;
            line-height: .95;
         }
         &.middle-en {
            width: 92.5vw;
         }
      }
   }
}

.section-history {
   text-align: center;
   gap: calc(var(--main-size) * 3);
   justify-content: center;
   .big-text {
      font-size: clamp(1.375rem, 1.0046rem + 1.8519vw, 2.625rem);
      line-height: 1.3;
   }
}

.section-contact {
   gap: var(--main-size);
   justify-content: space-between;
   position: relative;
   .top {
      flex-grow: 1;
      font-weight: 600;
      text-align: center;
      display: flex;
      flex-direction: column;
      justify-content: center;
      gap: calc(var(--main-size) * 3);
   }
   .bottom {
      img {
         display: block;
         width: 100%;
      }
   }
   @media (min-width: 992px) {
      .top {
         flex-direction: row;
         align-items: center;
         gap: calc(var(--main-size) * 8);
      }
   }
}

/* ==========================================================================
ANIMATIONS
========================================================================== */

.section-intro {
   .middle {
      h1 {
         &>span {
            overflow: hidden;
         }
         span {
            span {
               transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1);
               transform: translateY(140%);
               img {
                  transition: clip-path 2s .7s cubic-bezier(0.19, 1, 0.22, 1);
                  clip-path: polygon(50% 0, 50% 0, 50% 100%, 50% 100%);
               }
            }
            &:nth-child(2) span {
               transition-delay: .1s;
            }
            &:nth-child(3) span {
               transition-delay: .2s;
            }
            &:nth-child(4) span {
               transition-delay: .3s;
            }
         }
         &.animated {
            span {
               span {
                  transform: translateY(.2em);
                  img {
                     clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
                  }
               }
            }
         }
      }
   }
}

main {
   height: 100vh;
   overflow-y: scroll;
   scroll-snap-type: y mandatory;
   .section {
      scroll-snap-align: start;
   }
}