/* ==========================================================================
   Header — utility bar, nav bar, brand, mobile menu overlay
   ========================================================================== */
.site-header{
  position: sticky;
  top: 0;
  z-index: 500;
  width: 100%;
  /* the header's height animates (utility bar collapsing/expanding) while it's
     stuck to the top of the viewport. Without this, the browser's scroll
     anchoring "corrects" scrollY to compensate for that size change, which
     re-crosses the .scrolled threshold and makes the collapse flicker/jitter
     when scrolling back up. */
  overflow-anchor: none;
}

.utility-bar{
  background: rgba(5,5,7,.6);
  border-bottom: 1px solid var(--border);
  font-size: .82rem;
  color: var(--text-2);
  overflow: hidden;
  /* explicit (not "none"/auto) so the collapse can animate smoothly both ways —
     transitioning max-height to/from "none" snaps instantly instead of easing,
     which read as a jitter when scrolling back up past the collapse threshold */
  max-height: 60px;
  transition: max-height var(--dur-med) var(--ease-out), opacity var(--dur-med) var(--ease-out),
              padding var(--dur-med) var(--ease-out);
}

.utility-bar__inner{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
  padding-block: 10px;
}

.utility-item{
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.utility-item i{ color: var(--red-400); }
.utility-item strong{ color: var(--text-0); font-weight: 600; }

.nav-bar{
  background: rgba(8,9,12,.55);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid var(--border);
  transition: background var(--dur-med) var(--ease-out), border-color var(--dur-med);
}

.site-header.scrolled .nav-bar{
  background: rgba(6,7,10,.82);
}

.site-header.scrolled .utility-bar{
  max-height: 0;
  opacity: 0;
  padding: 0;
  border-bottom: none;
}

.nav-bar__inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 16px;
}

.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand__mark{
  width: 42px; height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-brand-soft);
  border: 1px solid rgba(255,59,78,.3);
  color: var(--red-400);
  box-shadow: 0 0 24px rgba(255,59,78,.25);
  flex-shrink: 0;
}
.brand__mark svg{ width: 22px; height: 22px; }

.brand__text{ display: flex; flex-direction: column; line-height: 1.05; }
.brand__title{
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 1.5rem;
  background: linear-gradient(135deg, #fff, var(--red-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand__subtitle{
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-2);
}

.nav-links{
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a{
  position: relative;
  padding: 10px 16px;
  font-size: .92rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--text-1);
  border-radius: 999px;
  transition: color var(--dur-fast);
}

.nav-links a::after{
  content: '';
  position: absolute;
  left: 16px; right: 16px; bottom: 6px;
  height: 1px;
  background: var(--red-400);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-med) var(--ease-out);
}

.nav-links a:hover{ color: var(--text-0); }
.nav-links a:hover::after{ transform: scaleX(1); }

.nav-cta{ display: flex; align-items: center; gap: 14px; }

.hamburger{
  display: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  align-items: center;
  justify-content: center;
  color: var(--text-0);
}

/* mobile menu overlay */
.mobile-menu{
  position: fixed;
  inset: 0;
  z-index: 600;
  background: rgba(6,6,9,.88);
  backdrop-filter: blur(26px) saturate(160%);
  -webkit-backdrop-filter: blur(26px) saturate(160%);
  display: flex;
  flex-direction: column;
  padding: 28px clamp(20px,6vw,60px);
  transform: translateX(100%);
  transition: transform .5s var(--ease-in-out);
}

.mobile-menu.open{ transform: translateX(0); }

.mobile-menu__top{
  display: flex;
  justify-content: flex-end;
}

.mobile-menu__close{
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu__links{
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 40px;
}

.mobile-menu__links a{
  text-decoration: none;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-0);
  padding-block: 14px;
  border-bottom: 1px solid var(--border);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out), color var(--dur-fast);
}

.mobile-menu.open .mobile-menu__links a{
  opacity: 1;
  transform: translateY(0);
}
.mobile-menu__links a:nth-child(1){ transition-delay: .08s; }
.mobile-menu__links a:nth-child(2){ transition-delay: .14s; }
.mobile-menu__links a:nth-child(3){ transition-delay: .2s; }
.mobile-menu__links a:nth-child(4){ transition-delay: .26s; }

.mobile-menu__links a:hover{ color: var(--red-400); }

.mobile-menu__footer{
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 24px;
}

.mobile-menu__info{ color: var(--text-2); font-size: .95rem; display: flex; flex-direction: column; gap: 6px; }
.mobile-menu__socials{ display: flex; gap: 12px; }
