/* Unified SENTRY header — shared by home/about/portfolio/news/contact */
:root { --unified-header-h: 76px; --unified-header-max: 1440px; }

.site-header.unified-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  max-width: var(--unified-header-max);
  height: var(--unified-header-h);
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 24px;
  background: rgba(1, 8, 15, .97);
  border-bottom: 1px solid rgba(43, 198, 255, .16);
  backdrop-filter: blur(14px);
}

.unified-header .brand { min-width: 0; }
.unified-header .brand-logo {
  width: 188px;
  max-width: none;
  height: auto;
}

.unified-header .site-nav {
  justify-self: end;
  display: flex;
  align-items: stretch;
  gap: 34px;
  height: 100%;
}
.unified-header .site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 100%;
  padding: 0 1px;
  color: rgba(248, 251, 255, .94);
  font-size: .96rem;
  font-weight: 700;
  white-space: nowrap;
  transition: color .18s ease;
}
.unified-header .site-nav a:hover,
.unified-header .site-nav a.is-active { color: #22cfff; }
.unified-header .site-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: #19c8ff;
  box-shadow: 0 0 12px rgba(25, 200, 255, .28);
}

.unified-header .header-cta,
.unified-header .header-cta.is-current {
  min-height: 48px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid #20c8ff;
  border-radius: 2px;
  background: transparent;
  color: #20cfff;
  font-size: .92rem;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: none;
}
.unified-header .header-cta:hover {
  background: rgba(31, 196, 255, .08);
  transform: none;
  box-shadow: 0 0 18px rgba(31, 196, 255, .08);
}

.unified-header .lang-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 100%;
  color: rgba(255, 255, 255, .46);
  font-size: .78rem;
  font-weight: 800;
  white-space: nowrap;
}
.unified-header .lang-switch button {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 4px 0;
  color: rgba(255,255,255,.55);
  font: inherit;
  cursor: pointer;
}
.unified-header .lang-switch button:hover,
.unified-header .lang-switch button.active { color: #fff; }

.unified-header .menu-toggle,
.unified-header .about-menu-toggle,
.unified-header .portfolio-menu-toggle,
.unified-header .news-menu-toggle,
.unified-header .contact-menu-toggle {
  display: none;
  width: 36px;
  height: 40px;
  padding: 6px 4px;
  justify-self: end;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.unified-header .menu-toggle span {
  display: block;
  width: 28px;
  height: 2px;
  margin: 6px 0;
  background: #f5f8fb;
  transition: transform .2s ease, opacity .2s ease;
}

@media (max-width: 1120px) {
  .site-header.unified-header { gap: 16px; padding: 0 22px; }
  .unified-header .brand-logo { width: 166px; }
  .unified-header .site-nav { gap: 21px; }
  .unified-header .site-nav a { font-size: .86rem; }
  .unified-header .header-cta { min-height: 44px; padding: 0 16px; font-size: .82rem; }
}

@media (max-width: 900px) {
  :root { --unified-header-h: 70px; }
  .site-header.unified-header,
  .about-header.unified-header,
  .portfolio-header.unified-header,
  .news-header.unified-header,
  .contact-header.unified-header {
    width: 100%;
    max-width: none;
    padding: 0 18px;
    grid-template-columns: auto 1fr auto auto;
    gap: 13px;
  }
  .unified-header .brand-logo { width: 158px; }
  .unified-header .site-nav,
  .about-nav.unified-nav,
  .portfolio-nav.unified-nav,
  .news-nav.unified-nav,
  .contact-nav.unified-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: auto;
    padding: 10px 20px 18px;
    flex-direction: column;
    gap: 0;
    background: rgba(1, 8, 15, .99);
    border-bottom: 1px solid rgba(43, 198, 255, .22);
    box-shadow: 0 18px 30px rgba(0,0,0,.25);
  }
  .unified-header .site-nav.open { display: flex; }
  .unified-header .site-nav a {
    width: 100%;
    height: auto;
    min-height: 48px;
    justify-content: flex-end;
    padding: 0 2px;
  }
  .unified-header .site-nav a.is-active::after {
    left: auto;
    width: 42px;
    bottom: 2px;
  }
  .unified-header .header-cta { display: none; }
  .unified-header .lang-switch { grid-column: 3; justify-self: end; }
  .unified-header .menu-toggle { display: block; grid-column: 4; }
}

@media (max-width: 520px) {
  .site-header.unified-header { padding: 0 14px; gap: 10px; }
  .unified-header .brand-logo { width: 138px; }
  .unified-header .lang-switch { gap: 5px; font-size: .68rem; }
  .unified-header .menu-toggle { width: 32px; }
  .unified-header .menu-toggle span { width: 24px; }
}

/* 2026-10-01: Keep the unified navigation visible while scrolling. */
html {
  scroll-padding-top: var(--unified-header-h);
}

.site-shell {
  padding-top: var(--unified-header-h);
}

.site-header.unified-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  width: 100%;
  max-width: none;
  margin: 0;
  padding-left: max(28px, calc((100vw - var(--unified-header-max)) / 2 + 28px));
  padding-right: max(28px, calc((100vw - var(--unified-header-max)) / 2 + 28px));
  box-shadow: 0 8px 28px rgba(0, 0, 0, .18);
}

@media (max-width: 1120px) {
  .site-header.unified-header {
    padding-left: 22px;
    padding-right: 22px;
  }
}

@media (max-width: 900px) {
  .site-header.unified-header,
  .about-header.unified-header,
  .portfolio-header.unified-header,
  .news-header.unified-header,
  .contact-header.unified-header {
    padding-left: 18px;
    padding-right: 18px;
  }
}

@media (max-width: 520px) {
  .site-header.unified-header {
    padding-left: 14px;
    padding-right: 14px;
  }
}


/* 2026-10-02: center COMPANY / PORTFOLIO / NEWS; keep project inquiry CTA on the right */
@media (min-width: 901px) {
  .site-header.unified-header {
    position: fixed;
  }

  .unified-header .site-nav,
  .about-nav.unified-nav,
  .portfolio-nav.unified-nav,
  .news-nav.unified-nav,
  .contact-nav.unified-nav {
    position: absolute !important;
    left: 50% !important;
    top: 0 !important;
    height: 100% !important;
    transform: translateX(-50%) !important;
    justify-self: auto !important;
    display: flex !important;
    align-items: stretch !important;
    gap: 38px !important;
  }

  .unified-header .header-cta {
    justify-self: end !important;
  }
}

@media (min-width: 901px) and (max-width: 1120px) {
  .unified-header .site-nav,
  .about-nav.unified-nav,
  .portfolio-nav.unified-nav,
  .news-nav.unified-nav,
  .contact-nav.unified-nav {
    gap: 24px !important;
  }
}


/* 2026-10-05: mobile sync with NEWS tab restored */
@media (max-width: 900px) {
  .unified-header .site-nav,
  .about-nav.unified-nav,
  .portfolio-nav.unified-nav,
  .news-nav.unified-nav,
  .contact-nav.unified-nav {
    display: none !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: auto !important;
    padding: 12px 18px 16px !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 0 !important;
    transform: none !important;
    background: rgba(1, 8, 15, .99) !important;
    border-bottom: 1px solid rgba(43,198,255,.22) !important;
    box-sizing: border-box !important;
  }

  .unified-header .site-nav.open,
  .about-nav.unified-nav.open,
  .portfolio-nav.unified-nav.open,
  .news-nav.unified-nav.open,
  .contact-nav.unified-nav.open {
    display: flex !important;
  }

  .unified-header .site-nav a,
  .about-nav.unified-nav a,
  .portfolio-nav.unified-nav a,
  .news-nav.unified-nav a,
  .contact-nav.unified-nav a {
    width: 100% !important;
    min-height: 50px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    padding: 0 2px !important;
  }

  .unified-header .site-nav a + a,
  .about-nav.unified-nav a + a,
  .portfolio-nav.unified-nav a + a,
  .news-nav.unified-nav a + a,
  .contact-nav.unified-nav a + a {
    border-top: 1px solid rgba(255,255,255,.055) !important;
  }

  .unified-header .header-cta {
    display: none !important;
  }

  .unified-header .menu-toggle {
    display: block !important;
  }
}

@media (max-width: 520px) {
  .unified-header .site-nav,
  .about-nav.unified-nav,
  .portfolio-nav.unified-nav,
  .news-nav.unified-nav,
  .contact-nav.unified-nav {
    padding: 10px 14px 14px !important;
  }

  .unified-header .site-nav a,
  .about-nav.unified-nav a,
  .portfolio-nav.unified-nav a,
  .news-nav.unified-nav a,
  .contact-nav.unified-nav a {
    min-height: 48px !important;
    font-size: .9rem !important;
  }
}


/* 2026-10-05: force-restored NEWS navigation */
@media (min-width: 901px) {
  .unified-header .site-nav,
  .about-nav.unified-nav,
  .portfolio-nav.unified-nav,
  .news-nav.unified-nav,
  .contact-nav.unified-nav {
    position: absolute !important;
    left: 50% !important;
    top: 0 !important;
    height: 100% !important;
    transform: translateX(-50%) !important;
    display: flex !important;
    align-items: stretch !important;
    justify-content: center !important;
    gap: 38px !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

@media (max-width: 900px) {
  .unified-header .site-nav,
  .about-nav.unified-nav,
  .portfolio-nav.unified-nav,
  .news-nav.unified-nav,
  .contact-nav.unified-nav {
    display: none !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .unified-header .site-nav.open,
  .about-nav.unified-nav.open,
  .portfolio-nav.unified-nav.open,
  .news-nav.unified-nav.open,
  .contact-nav.unified-nav.open {
    display: flex !important;
    flex-direction: column !important;
  }

  .unified-header .menu-toggle {
    display: block !important;
  }
}


/* 2026-10-05: final mobile sync for restored NEWS tab */
@media (max-width: 900px) {
  .site-header.unified-header,
  .about-header.unified-header,
  .portfolio-header.unified-header,
  .news-header.unified-header,
  .contact-header.unified-header {
    grid-template-columns: auto 1fr auto auto !important;
    overflow: visible !important;
  }

  .unified-header .site-nav,
  .about-nav.unified-nav,
  .portfolio-nav.unified-nav,
  .news-nav.unified-nav,
  .contact-nav.unified-nav {
    display: none !important;
    position: absolute !important;
    top: var(--unified-header-h) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: auto !important;
    padding: 10px 18px 16px !important;
    margin: 0 !important;
    transform: none !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 0 !important;
    background: rgba(1, 8, 15, .99) !important;
    border-bottom: 1px solid rgba(43,198,255,.22) !important;
    box-shadow: 0 18px 30px rgba(0,0,0,.28) !important;
    z-index: 1100 !important;
  }

  .unified-header .site-nav.open,
  .about-nav.unified-nav.open,
  .portfolio-nav.unified-nav.open,
  .news-nav.unified-nav.open,
  .contact-nav.unified-nav.open {
    display: flex !important;
  }

  .unified-header .site-nav a,
  .about-nav.unified-nav a,
  .portfolio-nav.unified-nav a,
  .news-nav.unified-nav a,
  .contact-nav.unified-nav a {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    width: 100% !important;
    min-height: 50px !important;
    padding: 0 2px !important;
    color: #eef8ff !important;
    box-sizing: border-box !important;
  }

  .unified-header .site-nav a + a,
  .about-nav.unified-nav a + a,
  .portfolio-nav.unified-nav a + a,
  .news-nav.unified-nav a + a,
  .contact-nav.unified-nav a + a {
    border-top: 1px solid rgba(255,255,255,.055) !important;
  }

  .unified-header .site-nav a.is-active,
  .about-nav.unified-nav a.is-active,
  .portfolio-nav.unified-nav a.is-active,
  .news-nav.unified-nav a.is-active,
  .contact-nav.unified-nav a.is-active {
    color: #22cfff !important;
  }

  .unified-header .header-cta {
    display: none !important;
  }

  .unified-header .lang-switch {
    grid-column: 3 !important;
    justify-self: end !important;
  }

  .unified-header .menu-toggle {
    display: block !important;
    grid-column: 4 !important;
  }
}

@media (max-width: 520px) {
  .unified-header .site-nav,
  .about-nav.unified-nav,
  .portfolio-nav.unified-nav,
  .news-nav.unified-nav,
  .contact-nav.unified-nav {
    padding: 8px 14px 14px !important;
  }

  .unified-header .site-nav a,
  .about-nav.unified-nav a,
  .portfolio-nav.unified-nav a,
  .news-nav.unified-nav a,
  .contact-nav.unified-nav a {
    min-height: 48px !important;
    font-size: .9rem !important;
  }
}
