/* Floating header and shared SETVIX brand lockup. */
.site-header {
  position: sticky;
  top: 16px;
  z-index: 10;
  width: min(1240px, calc(100% - 32px));
  margin: 16px auto 0;
  border: 1px solid rgba(166, 187, 216, .14);
  border-radius: 20px;
  background: rgba(8, 11, 16, .78);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow: 0 12px 42px rgba(0, 0, 0, .16);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  width: 100%;
  padding: 10px 11px 10px 17px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: fit-content;
  min-height: 44px;
  flex-shrink: 0;
}

.brand-mark {
  position: relative;
  display: block;
  width: 50px;
  aspect-ratio: 961 / 579;
  flex-shrink: 0;
  overflow: hidden;
}

.brand-logo {
  position: absolute;
  top: -54.404%;
  left: -18.106%;
  display: block;
  width: 130.489%;
  max-width: none;
  height: auto;
  mix-blend-mode: screen;
  pointer-events: none;
}

.brand-copy {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
}

.header-actions, .header-social {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-control {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, .035);
  color: #d7dce5;
  cursor: pointer;
  list-style: none;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.header-control::-webkit-details-marker {
  display: none;
}

.header-control::marker {
  content: "";
}

.header-control:hover, details[open] > .header-control {
  border-color: rgba(120, 174, 255, .4);
  background: rgba(80, 121, 176, .11);
  color: #f3f7ff;
}

.social-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
}

.social-icon .social-icon-dot, .social-icon .github-icon {
  fill: currentColor;
  stroke: none;
}

.language-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 76px;
  font-size: .8125rem;
  font-weight: 600;
}

.language-trigger svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.menu-button {
  position: relative;
}

.menu-line {
  position: absolute;
  left: 50%;
  top: calc(50% - 3.5px);
  width: 18px;
  height: 1px;
  background: currentColor;
  transform: translateX(-50%);
  transition: transform .2s ease;
}

.menu-line:last-child {
  top: calc(50% + 2.5px);
}

.navigation-menu[open] .menu-line:first-child {
  transform: translate(-50%, 3px) rotate(45deg);
}

.navigation-menu[open] .menu-line:last-child {
  transform: translate(-50%, -3px) rotate(-45deg);
}

/* Native details keeps both menus usable when navigation.js cannot run. */
.header-dropdown {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  display: grid;
  gap: 2px;
  width: min(260px, calc(100vw - 32px));
  max-height: calc(100dvh - 110px);
  overflow-y: auto;
  padding: 9px;
  border: 1px solid rgba(166, 187, 216, .18);
  border-radius: 16px;
  background: rgba(10, 14, 20, .96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .3);
}

.header-dropdown a {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 10px 13px;
  border-radius: 9px;
  color: #c4cbd5;
  font-size: .875rem;
  transition: color .2s ease, background .2s ease;
}

.header-dropdown a:hover, .header-dropdown a[aria-current] {
  background: rgba(122, 165, 225, .08);
  color: #e9f2ff;
}

.header-dropdown a:focus-visible {
  outline-offset: -2px;
  border-radius: 9px;
}

.languages {
  width: 160px;
}

.languages a[aria-current] {
  color: var(--accent);
}

@media (max-width: 650px) {
  .site-header {
    top: 12px;
    width: calc(100% - 16px);
    /* Preserve the current hero position after removing the second nav row. */
    margin: 12px auto 47px;
    border-radius: 17px;
  }

  .header-inner {
    min-height: 60px;
    gap: 8px;
    padding: 6px 7px 6px 10px;
  }

  .site-header .brand {
    gap: 6px;
  }

  .site-header .brand-mark {
    width: 34px;
  }

  .site-header .brand-copy {
    font-size: 11px;
    letter-spacing: .08em;
  }

  .header-actions, .header-social {
    gap: 5px;
  }

  .header-control {
    width: 44px;
    height: 44px;
  }

  .language-trigger svg {
    display: none;
  }
}

@media (max-width: 360px) {
  .site-header .brand-mark {
    width: 28px;
  }

  .header-actions, .header-social {
    gap: 4px;
  }

  .header-control {
    width: 40px;
    height: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .header-control, .menu-line, .header-dropdown a {
    transition: none;
  }
}
