/* Shared navigation and footer for the whole portfolio. */
:root { color-scheme: dark; }
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 300;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px clamp(22px,5vw,76px);
  background: rgba(5,7,12,.92); border-bottom: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(18px);
}
.site-header .brand, .site-footer .brand {
  color: #f2f5f8; font: 700 .9rem 'JetBrains Mono', monospace;
  letter-spacing: .16em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
}
.brand b { color: #f0a51e; }
.site-menu { display: flex; align-items: center; gap: clamp(18px,2vw,30px); }
.site-menu a, .site-footer nav a {
  font: 500 .7rem 'JetBrains Mono', monospace; letter-spacing: .08em;
  text-transform: uppercase; text-decoration: none; color: #abb4c2;
}
.site-menu a:hover, .site-menu a[aria-current], .site-footer nav a:hover { color: #f0a51e; }
.site-menu .nav-contact { padding: 9px 15px; border: 1px solid #9d6d1c; color: #f0a51e; }
.menu-button { display: none; background: none; border: 0; color: #f2f5f8; width: 44px; height: 44px; flex: none; cursor: pointer; }
.menu-button i { display: block; width: 23px; height: 1px; margin: 7px auto; background: currentColor; }
.site-footer {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  padding: 36px clamp(22px,5vw,76px); gap: 28px;
  border-top: 1px solid rgba(255,255,255,.1); background: #080c14;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 24px; }
.site-footer p { color: #a2adbc; font: 400 .65rem 'JetBrains Mono', monospace; margin: 0; }
.sr-only { position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.skip-link { position:fixed; top:10px; left:10px; z-index:1000; padding:12px 18px; background:#f0a51e; color:#080c14; transform:translateY(-180%); }
.skip-link:focus { transform:none; }
a, button, summary { touch-action: manipulation; }
:focus-visible { outline:2px solid #f0a51e; outline-offset:4px; }
[id] { scroll-margin-top:100px; }
@media(max-width:1050px) {
  .site-header { padding:12px 22px; }
  .menu-button { display:block; }
  .site-menu { display:none; position:absolute; top:100%; left:0; right:0; background:#080c14; border-bottom:1px solid #303744; padding:18px 22px; flex-direction:column; align-items:stretch; gap:8px; max-height:calc(100dvh - 68px); overflow-y:auto; }
  .site-menu.open { display:flex; }
  .site-menu a { padding:12px 0; min-height:44px; }
  .site-footer { flex-direction:column; text-align:center; }
  .site-footer nav { justify-content:center; }
}
@media print { .site-header, .site-footer, .skip-link { display:none!important; } }

/* Contact nudge: non-blocking slide-in shown to readers who stayed. */
.contact-nudge {
  position: fixed; z-index: 280;
  right: clamp(14px,4vw,28px); bottom: clamp(14px,4vw,28px);
  width: min(330px, calc(100vw - 28px));
  padding: 19px 46px 19px 20px;
  background: rgba(8,12,20,.97); border: 1px solid #303744; border-left: 2px solid #f0a51e;
  box-shadow: 0 18px 44px rgba(0,0,0,.5); backdrop-filter: blur(18px);
  /* Slides in from behind the right edge; EXIT in site-shell.js matches this duration. */
  opacity: 0; transform: translateX(calc(100% + clamp(14px,4vw,28px)));
  transition: opacity .3s ease, transform .5s cubic-bezier(.22,1,.36,1);
  will-change: transform;
}
.contact-nudge.visible { opacity: 1; transform: none; }
.contact-nudge b {
  display: block; margin-bottom: 9px; color: #f0a51e;
  font: 500 .63rem 'JetBrains Mono', monospace; letter-spacing: .15em; text-transform: uppercase;
}
.contact-nudge p { margin: 0 0 16px; color: #abb4c2; font: 400 .85rem/1.55 'DM Sans', system-ui, sans-serif; }
.contact-nudge a {
  display: inline-block; padding: 10px 16px; min-height: 42px; line-height: 22px;
  border: 1px solid #9d6d1c; color: #f0a51e; text-decoration: none;
  font: 500 .66rem 'JetBrains Mono', monospace; letter-spacing: .1em; text-transform: uppercase;
  transition: background-color .2s, color .2s;
}
.contact-nudge a:hover { background: #f0a51e; color: #080c14; }
.contact-nudge button {
  position: absolute; top: 5px; right: 5px; width: 38px; height: 38px;
  background: none; border: 0; color: #a2adbc; font: 400 1.05rem/1 'DM Sans', system-ui, sans-serif; cursor: pointer;
}
.contact-nudge button:hover { color: #f2f5f8; }
@media (max-width:1050px) { .contact-nudge { right: 14px; left: 14px; width: auto; } }
@media (prefers-reduced-motion: reduce) {
  .contact-nudge, .contact-nudge.visible { transition: none; transform: none; }
}
@media print { .contact-nudge { display: none !important; } }
