:root{--site-header-height:76px}
html{scroll-padding-top:calc(var(--site-header-height) + 78px)}
.navigation button{font:inherit;color:inherit;background:none;border:0;padding:12px 0;min-height:44px}
.navigation button:hover{color:var(--orange)}
.navigation-backdrop{position:fixed;inset:0 0 auto;height:var(--site-header-height);z-index:18;background:#080d17ed;border-bottom:1px solid #e9e6e112;opacity:var(--dock-progress,0);pointer-events:none}
.has-traveling-header .navigation{position:fixed;z-index:21;top:16px;transition:none}
.has-traveling-header .hero-copy{position:fixed;z-index:20;transform-origin:0 0;will-change:transform}
.has-traveling-header .hero-copy p{opacity:var(--byline-opacity,1);transform-origin:0 0;white-space:nowrap}
.has-traveling-header .studio-cat{position:fixed;z-index:20;transform-origin:0 0;translate:-50% -50%;transform:var(--dock-transform,none);will-change:transform}
/* The invitation is original outlined lettering, sized beneath the cat. */
.cat-hint{margin:0;padding:0;width:185px;height:auto;background:none;border:0;filter:none;opacity:0;visibility:hidden;pointer-events:none;transform:translateX(-50%) scale(.8);transform-origin:50% 15%;transition:opacity .14s,transform .26s cubic-bezier(.2,.8,.25,1)}
.cat-hint img{display:block;width:100%;height:auto}
.cat-hint::before,.cat-hint::after{display:none}
.has-traveling-header .cat-hint{position:fixed;z-index:22;top:282px;left:74%}
.has-traveling-header:not(.is-compact) .studio-cat[data-cue-ready=true]:hover~.cat-hint,.has-traveling-header:not(.is-compact) .studio-cat[data-cue-ready=true]:focus-visible~.cat-hint,.has-traveling-header .studio-cat[data-cue-ready=true][data-charging=true]~.cat-hint{visibility:visible!important;opacity:var(--cue-dock-opacity,1);transform:translateX(-50%) scale(1)}
.has-traveling-header:not(.is-compact):not(.is-playing) .studio-cat[data-invite-open=true]~.cat-hint{visibility:visible!important;opacity:var(--cue-dock-opacity,1);transform:translateX(-50%) scale(1)}
.is-playing .cat-hint{display:none}
.is-docking .cat-hint{visibility:hidden!important}
.is-playing .navigation-backdrop{opacity:0}
@media(max-width:699px){
 :root{--site-header-height:64px}
 html:has(.space-stage.is-compact){--site-header-height:112px}
 .has-traveling-header .navigation{top:10px;left:20px;right:20px}
 .navigation-links{gap:20px}
 .navigation button{padding:12px 0}
 .has-traveling-header.is-compact .navigation{top:64px;left:25px;right:25px;min-height:44px}
 .has-traveling-header.is-compact .navigation-links{margin-left:0;gap:24px}
 .has-traveling-header .cat-hint{left:50%;top:368px;width:160px}
}
@media(prefers-reduced-motion:reduce){.has-traveling-header .hero-copy,.has-traveling-header .studio-cat{will-change:auto}}

/* Controls are actions, while descriptions and store copy remain selectable. */
button,.project-store-link,[role=button]{-webkit-user-select:none;user-select:none}
@media(max-width:699px) and (prefers-reduced-motion:no-preference){.has-traveling-header .navigation{transition:top .3s ease}}

/* The header names the section it has covered; that section's own heading
   has faded beneath it (navigation.js). */
.navigation-links a[aria-current]{text-decoration:underline;text-decoration-color:var(--teal);text-decoration-thickness:1px;text-underline-offset:9px}
#projects-heading,#about-heading{transition:opacity .12s linear}
@media(prefers-reduced-motion:reduce){#projects-heading,#about-heading{transition:none}}
/* The sky stays reachable from the small header (local-sky.js opens the same panel). */
.navigation .nav-sky{display:none;align-items:center;cursor:pointer}
.has-traveling-header.is-compact:not(.is-playing):not([data-sky=fallback]) .nav-sky{display:inline-flex}
@media(max-width:699px){
 .has-traveling-header.is-compact .navigation-links{gap:clamp(10px,3.6vw,24px)}
}
@media(max-width:359px){.has-traveling-header.is-compact .navigation{left:16px;right:16px}}

/* ---- 8 October, pages pass ------------------------------------------------
   Phone tabs. They have a row to themselves, so they use it: larger type,
   spread across the row, each at least a 44 px target. */
@media(max-width:699px){
 .navigation-links,.has-traveling-header.is-compact .navigation-links{margin-left:0;width:100%;justify-content:space-between;gap:6px;font-size:clamp(14px,4.1vw,16px)}
 .navigation-links a,.navigation-links button{min-width:44px;justify-content:center}
}
/* Cat colours. On hover, on keyboard focus and for the section the header
   has covered, a soft patch of the cat's own colours spreads out from under
   the tab (orange, gold, green and blue, sampled by tools/cat-colours.py).
   Nothing shows at rest. One gradient; only opacity and scale change. */
.navigation-links a,.navigation-links button{position:relative;isolation:isolate}
.navigation-links a::before,.navigation-links button::before{content:"";position:absolute;z-index:-1;left:50%;top:50%;width:calc(100% + 52px);height:58px;translate:-50% -50%;border-radius:50%;pointer-events:none;opacity:0;transform:scale(.5);background:radial-gradient(closest-side,#eab94d2b,#fe520140 30%,#a5f0932b 56%,#01a1ff24 80%,#01a1ff00);transition:opacity .2s ease,transform .34s cubic-bezier(.2,.8,.25,1)}
.navigation-links a:focus-visible::before,.navigation-links button:focus-visible::before,.navigation-links a[aria-current]::before{opacity:1;transform:none}
@media(hover:hover){.navigation-links a:hover::before,.navigation-links button:hover::before{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.navigation-links a::before,.navigation-links button::before{transition:none}}
