/* Navigation uses the locked brand tokens and the original header height. */
.header-study .site-header{grid-template-columns:1fr auto 1fr;gap:32px}
.header-study .site-header .brand{grid-column:1;grid-row:1;justify-self:start}
.header-nav{grid-column:2;grid-row:1;display:flex;align-items:center;gap:34px}
.site-header .header-nav a{display:flex;align-items:center;min-height:44px;font-size:11px;color:var(--silver);transition:color .2s}
.site-header .header-nav a:hover{color:var(--white)}
.site-header .header-project{grid-column:3;grid-row:1;justify-self:end;display:inline-flex;align-items:center;justify-content:space-between;gap:30px;min-height:44px;padding:10px 17px;background:var(--blue);color:var(--white);font-size:11px;line-height:1.5;transition:background .2s}
.header-project>span{font-size:20px;line-height:1}
.site-header .header-project:hover{background:#1228d8}
.header-menu-open{display:none}
.site-menu{width:100%;max-width:none;height:100dvh;max-height:none;inset:0;margin:0;padding:0;border:0;background:var(--navy);box-shadow:none;overscroll-behavior:contain;scrollbar-width:thin}
.site-menu::backdrop{background:rgba(0,0,41,.65)}
.site-menu-inner{min-height:100%;display:flex;flex-direction:column;padding:0 var(--gutter)}
.site-menu-top{display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:var(--header);border-bottom:1px solid var(--line)}
.menu-brand{display:inline-flex;align-items:center;min-height:44px}
.menu-brand img{width:125px;height:auto}
.header-menu-close{display:inline-flex;align-items:center;justify-content:flex-end;gap:15px;min-height:44px;min-width:78px;padding:0;font-size:11px}
.header-menu-close>span{display:grid;place-items:center;width:24px;height:28px;font-size:30px;font-weight:400;line-height:1}
.site-menu-links{display:flex;flex-direction:column;margin:clamp(30px,8svh,76px) 0 30px}
.site-menu-links>a{display:flex;align-items:center;justify-content:space-between;gap:22px;padding:20px 0;min-height:76px;border-bottom:1px solid var(--line);font-size:clamp(24px,6.5vw,44px);line-height:1.3;letter-spacing:-.04em}
.site-menu-links>a>span:last-child{flex:none;font-size:24px;line-height:1;transition:transform .2s}
.site-menu-links>a:hover>span:last-child{transform:translate(2px,-2px)}
.site-menu-links .menu-project{margin-top:30px;padding:18px 20px;border:0;min-height:58px;background:var(--blue);font-size:16px;letter-spacing:-.02em}
.site-menu-bottom{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:auto;padding:20px 0 max(22px,env(safe-area-inset-bottom));border-top:1px solid var(--line)}
.site-menu-bottom p{font-size:10px;line-height:1.6;color:var(--grey)}
.menu-replay{display:inline-flex;align-items:center;gap:13px;min-height:44px;padding:0;font-size:10px;color:var(--silver);white-space:nowrap}
.menu-replay>span{font-size:20px;line-height:1}
@media(max-width:1100px){
  .header-study .site-header{gap:22px}
  .header-nav{gap:26px}
  .site-header .header-project{gap:22px}
}
@media(max-width:900px){
  .header-study .site-header{grid-template-columns:1fr auto;gap:14px}
  .nav-ready .site-header .header-nav,.nav-ready .site-header .header-project{display:none}
  .nav-ready .header-menu-open{display:inline-flex;grid-column:2;grid-row:1;justify-self:end;align-items:center;justify-content:flex-end;gap:15px;min-height:44px;min-width:78px;padding:0;font-size:11px}
  .menu-lines{display:flex;flex-direction:column;align-items:flex-end;justify-content:center;gap:6px;width:24px;height:24px}
  .menu-lines>span{width:24px;height:1px;background:var(--white)}
  .menu-lines>span:last-child{width:17px}
  /* Direct links remain available if JavaScript cannot initialize the menu. */
  .header-study:not(.nav-ready){--header:118px}
  .header-study:not(.nav-ready) .site-header{grid-template-rows:62px 42px;align-content:center;row-gap:0}
  .header-study:not(.nav-ready) .header-nav{grid-column:1/-1;grid-row:2;gap:26px}
  .header-study:not(.nav-ready) .header-project{grid-column:2;grid-row:1;font-size:10px;gap:12px;padding:8px 12px}
}
@media(max-width:360px){
  .site-menu-bottom{display:block;padding-top:16px}
  .menu-replay{margin-top:5px}
}
@media(max-height:450px){
  .site-menu-links{margin:16px 0 20px}
  .site-menu-links>a{min-height:54px;padding-block:12px;font-size:25px}
  .site-menu-links .menu-project{margin-top:16px;font-size:14px;min-height:48px;padding-block:12px}
  .site-menu-bottom{padding-top:10px;padding-bottom:12px}
}
@media(prefers-reduced-motion:reduce){
  .site-header .header-nav a,.site-header .header-project,.site-menu-links>a>span:last-child{transition:none}
}
