/* ========================================
   TUJUHTITIKSATU
   Responsive Wordmark & Mobile Navigation
======================================== */

/* Desktop Wordmark */

.hero-wordmark {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: baseline;

  width: 100%;
  margin-bottom: clamp(50px, 7vw, 100px);

  font-family: 'Sora', sans-serif;
  font-size: clamp(26px, 7vw, 112px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.075em;

  color: var(--ink);
  white-space: nowrap;
}

.wordmark-line {
  display: flex;
  flex-shrink: 0;
  white-space: nowrap;
}

.wordmark-letter {
  display: inline-block;
  flex-shrink: 0;

  opacity: 0;
  transform: translateY(35px);

  animation: wordmark-reveal 0.85s
      cubic-bezier(0.22, 1, 0.36, 1)
      forwards;

  animation-delay:
      calc(0.15s + var(--letter-index) * 0.095s);
}

@keyframes wordmark-reveal {
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

/* ========================================
 Mobile Menu - Default Hidden
======================================== */

.menu-toggle {
  display: none;
}

.mobile-menu[hidden] {
  display: none !important;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1000;

  background: var(--ink);
  color: #FFFFFF;

  overflow-y: auto;
  overscroll-behavior: contain;

  opacity: 0;
  visibility: hidden;

  transition:
      opacity 0.35s ease,
      visibility 0.35s ease;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-inner {
  width: min(100% - 40px, 1440px);
  min-height: 100%;
  min-height: 100dvh;

  margin-inline: auto;

  display: flex;
  flex-direction: column;

  padding-block: 26px 32px;
}

.mobile-menu-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.mobile-menu-brand {
  font-family: 'Sora', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.06em;
}

.mobile-menu-brand span {
  color: var(--red);
}

.mobile-menu-close {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 48px;
  height: 48px;

  padding: 0;
  border: none;
  background: transparent;
  color: #FFFFFF;
  cursor: pointer;
}

.mobile-menu-close span {
  font-family: Arial, sans-serif;
  font-size: 40px;
  font-weight: 300;
  line-height: 1;
}

/* Menu Links */

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;

  padding-block: 50px;
}

.mobile-menu-link {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 28px;
  align-items: baseline;
  gap: 14px;

  padding-block: clamp(10px, 2vh, 22px);

  border-bottom: 1px solid rgba(255,255,255,0.14);

  font-family: 'Sora', sans-serif;
  font-size: clamp(27px, 6.8vw, 54px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.065em;

  color: #FFFFFF;

  transition:
      color 0.2s ease,
      padding-left 0.2s ease;
}

.mobile-menu-link:hover {
  color: var(--gold);
  padding-left: 6px;
}

.mobile-menu-number {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--gold);
}

.mobile-menu-arrow {
  justify-self: end;
  font-size: 23px;
  font-weight: 400;
}

/* Overlay Footer */

.mobile-menu-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;

  padding-top: 24px;
}

.mobile-menu-languages {
  display: flex;
  gap: 22px;
}

.mobile-menu-languages a {
  font-size: 12px;
  color: #A8A4AB;
}

.mobile-menu-languages a.active {
  color: var(--gold);
  font-weight: 700;
}

.mobile-menu-caption {
  color: #A8A4AB;
  font-size: 9px;
  letter-spacing: 0.12em;
}

/* ========================================
 Tablet & Mobile
======================================== */

@media (max-width: 1024px) {

  /* Header */

  .site-header .header-inner {
      flex-wrap: nowrap;
      min-height: 80px;
      padding-block: 15px;
  }

  .site-header .main-nav,
  .site-header .language-switch {
      display: none;
  }

  .site-header .brand-name {
      font-size: clamp(12px, 2vw, 17px);
  }

  /* Hamburger */

  .menu-toggle {
      display: flex;
      align-items: center;
      justify-content: center;

      width: 48px;
      height: 48px;

      padding: 0;
      border: none;
      background: transparent;

      cursor: pointer;
      flex-shrink: 0;
  }

  .menu-toggle-lines {
      display: flex;
      flex-direction: column;
      justify-content: space-between;

      width: 28px;
      height: 19px;
  }

  .menu-toggle-lines span {
      display: block;
      width: 100%;
      height: 2px;

      border-radius: 2px;
      background: var(--ink);
  }

  /* Brand Wordmark */

  .hero-wordmark {
      flex-direction: column;
      align-items: flex-start;

      width: 100%;
      max-width: 100%;

      font-size: clamp(58px, 13vw, 120px);
      font-weight: 700;
      line-height: 0.99;
      letter-spacing: -0.085em;

      margin-bottom: 60px;
      white-space: normal;
  }

  .wordmark-line {
      justify-content: flex-start;
  }

  .wordmark-letter {
      transform: translateY(24px);
  }
}

/* Small Smartphone */

@media (max-width: 480px) {

  .hero-wordmark {
      font-size: clamp(48px, 17.5vw, 76px);
      line-height: 1.02;
      letter-spacing: -0.09em;
      margin-bottom: 55px;
  }

  .mobile-menu-nav {
      padding-block: 35px;
  }

  .mobile-menu-link {
      font-size: clamp(27px, 8vw, 39px);
      padding-block: 13px;
  }

  .mobile-menu-caption {
      display: none;
  }
}

/* Short Screens */

@media (max-height: 650px) and (max-width: 1024px) {
  .mobile-menu-nav {
      justify-content: flex-start;
      padding-block: 24px;
  }

  .mobile-menu-link {
      padding-block: 9px;
  }
}

/* Accessibility */

.mobile-menu a:focus-visible,
.mobile-menu button:focus-visible,
.menu-toggle:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 5px;
}

@media (prefers-reduced-motion: reduce) {

  .wordmark-letter {
      opacity: 1;
      transform: none;
      animation: none;
  }

  .mobile-menu,
  .mobile-menu-link {
      transition: none;
  }
}
