.site-header{
  position:fixed;
  inset:0 0 auto 0;
  z-index:50;
  background:rgba(255,255,255,.93);
  backdrop-filter:blur(12px);
  border-bottom:1px solid rgba(231,227,223,.82);
}
.header-inner{
  min-height:84px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}
.brand{
  width:154px;
  line-height:0;
}
.brand img{
  width:100%;
  height:auto;
}
.desktop-nav{
  display:flex;
  align-items:center;
  gap:clamp(18px,2vw,34px);
  margin-left:auto;
  font-size:14px;
  line-height:1.2;
  font-weight:500;
}
.desktop-nav a{
  position:relative;
  padding:12px 0;
  white-space:nowrap;
  transition:color .2s ease;
}
.desktop-nav a::after{
  content:"";
  position:absolute;
  left:0;
  right:100%;
  bottom:7px;
  height:1px;
  background:var(--accent);
  transition:right .25s ease;
}
.desktop-nav a:hover{color:var(--accent)}
.desktop-nav a:hover::after{right:0}

.menu-button{
  width:44px;
  height:44px;
  border:1px solid var(--line);
  border-radius:50%;
  background:var(--white);
  display:none;
  place-items:center;
  cursor:pointer;
  transition:border-color .2s ease,background .2s ease;
}
.menu-button:hover{border-color:#cfc9c3;background:var(--soft)}
.hamburger{
  position:relative;
  width:20px;
  height:14px;
  display:block;
}
.hamburger span{
  position:absolute;
  right:0;
  width:20px;
  height:1.5px;
  background:var(--ink);
  transition:transform .25s ease,top .25s ease,opacity .2s ease;
}
.hamburger span:nth-child(1){top:0}
.hamburger span:nth-child(2){top:6px}
.hamburger span:nth-child(3){top:12px}
.menu-button[aria-expanded="true"] .hamburger span:nth-child(1){top:6px;transform:rotate(45deg)}
.menu-button[aria-expanded="true"] .hamburger span:nth-child(2){opacity:0}
.menu-button[aria-expanded="true"] .hamburger span:nth-child(3){top:6px;transform:rotate(-45deg)}

.menu-backdrop{
  position:fixed;
  inset:0;
  z-index:40;
  background:rgba(17,17,17,.22);
  opacity:0;
  visibility:hidden;
  transition:opacity .25s ease,visibility .25s ease;
}
.menu-panel{
  position:fixed;
  z-index:45;
  top:0;
  right:0;
  height:100dvh;
  width:min(420px,90vw);
  background:var(--white);
  padding:130px clamp(28px,5vw,64px) 44px;
  transform:translateX(100%);
  transition:transform .32s cubic-bezier(.22,.61,.36,1);
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  border-left:1px solid var(--line);
}
body.menu-open .menu-backdrop{opacity:1;visibility:visible}
body.menu-open .menu-panel{transform:translateX(0)}
.menu-nav{
  display:grid;
  gap:8px;
}
.menu-nav a{
  font-size:clamp(22px,4vw,30px);
  font-weight:500;
  line-height:1.18;
  padding:8px 0;
  transition:color .2s ease;
}
.menu-nav a:hover{color:var(--accent)}
.menu-foot{
  font-size:14px;
  color:var(--muted);
  font-family:"IBM Plex Mono",monospace;
}

@media (max-width:1100px){
  .desktop-nav{display:none}
  .menu-button{display:grid}
}

@media (max-width:640px){
  .header-inner{min-height:72px}
  .brand{width:132px}
  .menu-button{width:42px;height:42px}
  .menu-panel{padding-top:112px}
}
