.site-header,
.project-page-header { --header-offset: 82px; }

html { scroll-padding-top: 82px; }

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 66px;
  padding: 0 max(24px, calc((100vw - 1120px) / 2));
  border-bottom: 1px solid rgba(232, 232, 235, .9);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.site-header.is-scrolled { box-shadow: 0 8px 24px rgba(24, 24, 26, .04); }
.site-header + main { padding-top: 66px; }
.site-header .brand { display: inline-flex; align-items: center; gap: 10px; width: max-content; color: #18181a; font-size: 13px; font-weight: 700; text-decoration: none; }
.site-header .brand-mark { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 7px; background: #18181a; color: #fff; }
.site-header .nav-links { display: flex; align-self: stretch; align-items: center; gap: 28px; color: #66666d; }
.site-header .nav-links a { position: relative; display: flex; height: 100%; align-items: center; color: inherit; font-size: 12px; font-weight: 600; text-decoration: none; }
.site-header .nav-links a:hover { color: #18181a; }
.site-header .nav-links a::after,
.project-page-header .case-nav a::after { position: absolute; right: 0; bottom: 0; left: 0; height: 2px; background: #18181a; content: ""; opacity: 0; transform: scaleX(.35); transition: opacity .2s ease, transform .28s cubic-bezier(.16,1,.3,1); }
.site-header .nav-links a.is-active,
.project-page-header .case-nav a.is-active { color: #18181a; }
.site-header .nav-links a.is-active::after,
.project-page-header .case-nav a.is-active::after { opacity: 1; transform: scaleX(1); }
.site-header .language-switch { display: flex; justify-self: end; gap: 4px; }
.site-header .lang-button { min-width: 34px; height: 30px; border: 0; border-radius: 6px; background: transparent; color: #66666d; cursor: pointer; font-size: 11px; font-weight: 600; }
.site-header .lang-button.active { background: #18181a; color: #fff; }

body .project-page-header,
.case-header.project-page-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  display: flex;
  width: 100%;
  max-width: none;
  min-height: 66px;
  margin: 0;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, calc((100vw - 1120px) / 2));
  border: 0;
  border-bottom: 1px solid rgba(232, 232, 235, .9);
  border-radius: 0;
  background: rgba(255, 255, 255, .92);
  box-shadow: none;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.project-page-header + main { padding-top: 66px; }
.project-page-header .back-link { color: #18181a; font-size: 12px; font-weight: 700; text-decoration: none; }
.project-page-header .case-nav { display: flex; min-width: 0; margin-inline: 18px; align-self: stretch; align-items: center; gap: clamp(12px,1.6vw,24px); overflow-x: auto; color: #66666d; scrollbar-width: none; }
.project-page-header .case-nav::-webkit-scrollbar { display: none; }
.project-page-header .case-nav a { position: relative; display: flex; height: 100%; flex: 0 0 auto; align-items: center; color: inherit; font-size: 11px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.project-page-header .case-nav a:hover { color: #18181a; }
.project-page-header .project-language-switch { display: flex; align-items: center; gap: 3px; margin-left: 22px; }
.project-page-header .lang-button { min-width: 32px; height: 30px; padding: 0 8px; border: 0; border-radius: 5px; background: transparent; color: #77777e; cursor: pointer; font-size: 10px; font-weight: 650; }
.project-page-header .lang-button:hover { background: #f0f0f2; color: #18181a; }
.project-page-header .lang-button.active { background: #18181a; color: #fff; }
.project-page-header .lang-button:focus-visible { outline: 2px solid #7284d1; outline-offset: 2px; }
.project-page-header + main section[id],
.site-header + main section[id] { scroll-margin-top: 82px; }

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header .nav-links { display: none; }
  .project-page-header .case-nav { display: none; }
  .project-page-header .project-language-switch { margin-left: auto; }
}

@media (max-width: 620px) {
  html { scroll-padding-top: 70px; }
  .site-header { min-height: 58px; padding-inline: 14px; }
  .site-header + main { padding-top: 58px; }
  body .project-page-header { min-height: 58px; padding-inline: 14px; }
  .project-page-header + main { padding-top: 58px; }
}
