/* Shared case-study mobile navigation. Desktop layouts are unchanged. */
.project-menu-toggle,.project-menu-overlay{display:none}
.project-menu-overlay[hidden]{display:none!important}
.project-menu-toggle{
  appearance:none;
  border:0;
  background:transparent;
  color:#111;
  width:44px;
  height:44px;
  padding:8px;
  flex:0 0 44px;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:5px;
  cursor:pointer;
  font:inherit;
}
.project-menu-toggle span{
  display:block;
  width:24px;
  height:2px;
  border-radius:2px;
  background:currentColor;
}
.project-menu-toggle:focus-visible,.project-menu-close:focus-visible{
  outline:2px solid currentColor;
  outline-offset:3px;
  border-radius:4px;
}
.project-menu-close{
  appearance:none;
  border:0;
  background:transparent;
  color:#fff;
  width:44px;
  height:44px;
  padding:10px;
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  cursor:pointer;
}
.project-menu-close span{
  position:absolute;
  display:block;
  width:24px;
  height:2px;
  background:currentColor;
  transform:rotate(45deg);
}
.project-menu-close span+span{transform:rotate(-45deg)}

@media(max-width:1024px){
  body.project-menu-ready .project-nav-header .project-desktop-nav{display:none!important}
  body.project-menu-ready .project-nav-header .project-menu-toggle{display:inline-flex!important}
  body.project-menu-open{overflow:hidden}
  /* Keep logo and toggle in the SAME header row on all four projects. */
  body.project-menu-ready .project-nav-header.wrap,
  body.project-menu-ready .project-nav-header .case-header,
  body.project-menu-ready .project-nav-header .wrap{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    flex-wrap:nowrap!important;
    gap:12px!important;
    min-height:74px!important;
    padding-block:0!important;
  }
  body.project-menu-ready .project-nav-header .case-logo,
  body.project-menu-ready .project-nav-header .logo{flex:0 0 auto}
  body.project-menu-ready .project-nav-header .case-logo img,
  body.project-menu-ready .project-nav-header .logo img{width:48px;height:48px;object-fit:contain}
  .project-menu-overlay:not([hidden]){
    position:fixed;
    inset:0;
    z-index:9999;
    display:grid;
    grid-template-rows:auto minmax(0,1fr) auto;
    width:100%;
    height:100vh;
    height:100dvh;
    padding:8px 18px 24px;
    overflow-y:auto;
    background:#C4245A;
    color:#fff;
  }
  .project-menu-top{display:flex;align-items:center;justify-content:space-between;min-height:48px}
  .project-menu-mark{
    color:#fff!important;
    text-decoration:none!important;
    font:800 1rem/1 Syne,Arial,sans-serif;
    letter-spacing:.12em;
  }
  .project-menu-links{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    min-width:0;
    gap:0;
    padding:20px 0;
  }
  .project-menu-links a{
    display:block;
    width:max-content;
    max-width:100%;
    padding:6px 0;
    color:#fff!important;
    text-decoration:none;
    font:800 clamp(1.5rem,3.8vw,2rem)/1.1 Syne,Arial,sans-serif;
    letter-spacing:.02em;
    text-align:center;
    text-transform:uppercase;
    opacity:.42;
    transition:opacity .2s ease;
  }
  .project-menu-links a:hover,.project-menu-links a[aria-current="page"]{opacity:1}
  .project-menu-links a[aria-current="page"]{
    text-decoration:underline;
    text-decoration-color:#F5D052;
    text-decoration-thickness:3px;
    text-underline-offset:7px;
  }
  .project-menu-links a:focus-visible,.project-menu-socials a:focus-visible{
    outline:2px solid #fff;
    outline-offset:3px;
  }
  .project-menu-socials{
    display:flex;
    justify-content:center;
    align-items:center;
    flex-wrap:wrap;
    gap:12px 18px;
    padding:12px 0 0;
  }
  .project-menu-socials a{
    color:rgba(255,255,255,.75)!important;
    font:400 .67rem/1.2 Inter,Arial,sans-serif;
    letter-spacing:.15em;
    text-decoration:none;
    text-transform:uppercase;
  }
  .project-menu-socials a:hover{color:#fff!important}
}
@media(max-width:480px){
  .project-menu-links a{font-size:clamp(1.5rem,7vw,1.9rem)}
}
@media(max-height:410px) and (max-width:1024px){
  .project-menu-overlay:not([hidden]){grid-template-rows:auto auto auto;gap:20px}
}
@media(prefers-reduced-motion:reduce){
  .project-menu-links a{transition:none}
}
