:root{
 color-scheme:dark;
 --background:#070b10;--panel:#0c131b;--border:#2a4051;
 --text:#dceaf4;--muted:#9cabbc;--accent:#8bcadd;
 --header-height:70px;--footer-height:44px;
}
*{box-sizing:border-box}
html{scroll-padding-top:90px}
body{
 margin:0;background:var(--background);color:var(--text);
 font:14px/1.6 system-ui,-apple-system,sans-serif;
 padding-top:var(--header-height);padding-bottom:var(--footer-height);
}
a{color:var(--accent);text-decoration:none}
a:hover{color:#fff}
a:focus-visible{outline:2px solid var(--accent);outline-offset:5px}
.site-header{
 position:fixed;inset:0 0 auto;z-index:100;
 min-height:var(--header-height);padding:12px 24px;
 display:flex;align-items:center;justify-content:space-between;gap:20px;
 background:var(--panel);border-bottom:1px solid var(--border);
}
.brand{font-size:18px;font-weight:700;letter-spacing:.08em}
nav{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
nav a{
 padding:8px 14px;border:1px solid transparent;border-radius:6px;
 color:var(--text);
}
nav a:hover,nav a[aria-current="page"]{
 background:#182735;border-color:var(--border);color:var(--accent);
}
main{max-width:1600px;margin:auto;padding:20px}
.hero{
 min-height:calc(100svh - 154px);display:flex;align-items:end;
 padding:clamp(24px,5vw,80px);border:1px solid var(--border);
 border-radius:9px;overflow:hidden;
 background:linear-gradient(0deg,rgba(0,0,0,.85),rgba(0,0,0,.08)),
 url("/images/1920/24429533/NGC7023-735MrcF-aq03Nm5bLvaugw.png") center/cover;
}
.eyebrow{color:var(--accent);letter-spacing:.15em;font-size:12px}
h1{font-size:clamp(32px,5vw,68px);line-height:1.15;margin:12px 0 28px}
.button{
 display:inline-block;background:#205f74;border:1px solid #3b8498;
 border-radius:6px;color:#fff;padding:10px 18px;
}
.site-footer{
 position:fixed;inset:auto 0 0;z-index:100;
 min-height:var(--footer-height);padding:10px 20px;
 display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:16px;
 background:var(--panel);border-top:1px solid var(--border);font-size:12px;
}
.footer-left{justify-self:start;color:var(--muted)}
#site-clock{justify-self:center;color:#bce7f5;font-variant-numeric:tabular-nums}
.footer-right{justify-self:end}
@media(max-width:640px){
 :root{--header-height:112px;--footer-height:64px}
 .site-header{flex-direction:column;justify-content:center;gap:4px;padding:8px}
 nav{justify-content:center;gap:0}
 nav a{padding:7px 9px;font-size:12px}
 main{padding:12px}
 .hero{min-height:calc(100svh - 200px)}
 .site-footer{padding:8px;gap:8px;font-size:10px}
}

/* PI STYLE WEBSITE BARS */
.site-header{
 background:rgba(9,15,23,.98);border-bottom:1px solid #2c3c4d;
 padding:10px 20px;gap:12px;
}
.site-header nav{
 flex:1;justify-content:center;gap:8px;
}
.site-header nav a{
 display:flex;align-items:center;justify-content:center;
 padding:10px 14px;border:1px solid #34475a;border-radius:7px;
 background:#131f2b;color:#d9e8f3;
 font:13px system-ui,-apple-system,sans-serif;white-space:nowrap;
}
.site-header nav a:hover,.site-header nav a[aria-current="page"]{
 background:#20384a;border-color:#62839c;
}
.site-footer{
 background:#0c131b;border-top:1px solid #2a4051;
 color:#dceaf4;font:12px system-ui,sans-serif;
}
section[id]{scroll-margin-top:var(--header-height)}
@media(max-width:1100px){
 .site-header{flex-direction:column}
}

/* FLOATING WEBSITE IMAGE VIEWER */
#site-image-viewer{
 position:fixed;inset:0;
 width:100vw;height:100dvh;max-width:none;max-height:none;
 margin:0;padding:56px 20px 20px;box-sizing:border-box;
 border:0;background:rgba(0,0,0,.94);color:#dceaf4;
}
#site-image-viewer[open]{
 display:flex;align-items:center;justify-content:center;
}
#site-image-viewer::backdrop{background:rgba(0,0,0,.8)}
#site-image-viewer img{
 display:block;width:auto;height:auto;
 max-width:100%;max-height:100%;object-fit:contain;
}
#site-image-viewer button{
 position:absolute;right:18px;top:12px;
 padding:8px 14px;background:#213447;color:white;
 border:1px solid #456078;border-radius:6px;cursor:pointer;
 font:14px system-ui,sans-serif;
}
.content-page img,.home-page img{cursor:zoom-in}

/* WEBSITE MENU ICONS */
.site-header nav a{gap:9px}
.site-header .site-nav-icon{
 display:block;width:20px;height:20px;flex:0 0 20px;color:#94c8dc;
}

/* Keyboard-only skip navigation */
a[href="#main-content"]{
 position:fixed!important;top:-200px!important;left:16px!important;
 z-index:20000;padding:10px 16px;background:#172735;
}
a[href="#main-content"]:focus{
 top:8px!important;
}

/* STANDARD SITE EFFECTS */
@media (prefers-reduced-motion: no-preference) {
 main {
  animation: site-enter .45s ease-out both;
 }
 @keyframes site-enter {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
 }
 .site-header nav a, .button, button {
  transition: background-color .18s ease, border-color .18s ease,
              color .18s ease, box-shadow .18s ease;
 }
 .site-header nav a:hover, .button:hover {
  box-shadow: 0 2px 12px rgba(139,202,221,.12);
 }
 .gallery-card {
  transition: transform .2s ease, box-shadow .2s ease;
 }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
 .gallery-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
 }
}
