/* Shared fixed header: clear over photography, compact over the page. */
html { scroll-padding-top:84px; }
html body .site-header.is-fixed {
  --header-height:78px;
  position:fixed; inset:0 0 auto; width:100%; height:var(--header-height)!important;
  z-index:60; background:var(--ink); color:#fff;
  transition:height .25s var(--ease),background .25s var(--ease),box-shadow .25s var(--ease);
}
html body .site-header.is-fixed.header-overlay { --header-height:90px; background:transparent; }
html body .site-header.is-fixed.is-scrolled {
  --header-height:62px; background:rgba(28,27,26,.97)!important;
  backdrop-filter:blur(12px); box-shadow:0 5px 18px rgba(0,0,0,.16); border-bottom:0!important;
}
.site-header.is-fixed .brand-full span { transition:font-size .25s var(--ease); }
html body .site-header.is-fixed.is-scrolled .brand-full .brand-ar { font-size:12px!important; line-height:1.35; }
html body .site-header.is-fixed.is-scrolled .brand-full .brand-en { font-size:9px!important; line-height:1.35; }
html body .site-header.is-fixed.is-scrolled .language-switch { width:36px!important; height:36px!important; font-size:11px!important; }
.site-header.is-fixed .primary-nav { top:var(--header-height)!important; }
.site-header.is-fixed.is-scrolled .primary-nav a:not(.language-link) { font-size:10px; }
.header-spacer { height:78px; }
@media(max-width:850px) {
  html { scroll-padding-top:78px; }
  html body .site-header.is-fixed { --header-height:66px; }
  html body .site-header.is-fixed.header-overlay { --header-height:80px; }
  html body .site-header.is-fixed.is-scrolled { --header-height:60px; }
  html body .site-header.is-fixed.is-scrolled .brand-full .brand-ar { font-size:11px!important; }
  html body .site-header.is-fixed.is-scrolled .brand-full .brand-en { font-size:8px!important; }
  html body .site-header.is-fixed.is-scrolled .language-switch { width:34px!important; height:34px!important; font-size:11px!important; }
  html body .site-header.is-fixed .primary-nav { max-height:calc(100svh - var(--header-height)); overflow:auto; }
  html body .site-header.is-fixed.is-scrolled .primary-nav a:not(.language-link) { font-size:12px; }
  .header-spacer { height:66px; }
}
@media(prefers-reduced-motion:reduce) {
  .site-header.is-fixed,.site-header.is-fixed .brand-full span { transition:none; }
}
