* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); background: var(--ink); }
body { margin: 0; min-width: 320px; background: var(--ink); color: var(--white); font-family: var(--body); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
body, button, a { -webkit-tap-highlight-color: transparent; }
button, a { color: inherit; font: inherit; }
a { text-decoration: none; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }
::selection { color: var(--ink); background: var(--cyan); }
.skip-link { position: fixed; z-index: 100; top: 10px; left: 10px; padding: 10px 16px; transform: translateY(-160%); border-radius: var(--radius-small); background: var(--white); color: var(--ink); }
.skip-link:focus { transform: translateY(0); }
.noscript-note { position: fixed; z-index: 80; right: 12px; bottom: 12px; max-width: 330px; padding: 12px 16px; border: 1px solid var(--glass-stroke); border-radius: var(--radius-small); background: var(--ink); font-size: .85rem; }
.scroll-progress { position: fixed; z-index: 60; inset: 0 0 auto; height: 2px; pointer-events: none; }
.scroll-progress span { display: block; width: 100%; height: 100%; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, var(--cyan), var(--violet)); }
.site-header { position: fixed; z-index: 50; inset: 0 0 auto; display: flex; align-items: center; justify-content: space-between; height: var(--header-height); padding: 0 clamp(22px, 5vw, 82px); border-bottom: 1px solid rgba(255,255,255,.1); background: linear-gradient(180deg, rgba(5,19,46,.84), rgba(5,19,46,.58)); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); transition: height var(--duration) var(--ease-out), background var(--duration); }
.site-header.is-compact { height: 66px; background: rgba(5,19,46,.9); }
.brand { display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; }
.brand-mark { position: relative; display: flex; width: 27px; height: 27px; align-items: end; justify-content: center; gap: 3px; padding: 4px; border: 1px solid rgba(0,200,248,.55); transform: rotate(45deg); }
.brand-mark i { width: 3px; border-radius: 3px; background: var(--cyan); transform: rotate(-45deg); }
.brand-mark i:nth-child(1) { height: 8px; }.brand-mark i:nth-child(2) { height: 13px; }.brand-mark i:nth-child(3) { height: 17px; }
.brand-name { font-family: var(--display); font-size: .73rem; font-weight: 500; letter-spacing: .16em; }
.brand-name b { color: #b6d6ef; font-weight: 700; }
.primary-nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 38px); }
.primary-nav a { position: relative; display: inline-flex; min-height: 44px; align-items: center; color: #d3deef; font-size: .83rem; transition: color 180ms ease; }
.primary-nav a:not(.nav-contact)::after { position: absolute; right: 0; bottom: 7px; left: 0; height: 1px; transform: scaleX(0); transform-origin: left; background: var(--cyan); content: ""; transition: transform 220ms var(--ease-out); }
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: var(--white); }
.primary-nav a:hover::after, .primary-nav a[aria-current="page"]::after { transform: scaleX(1); }
.primary-nav .nav-contact { min-height: 38px; gap: 12px; padding: 0 16px; border: 1px solid rgba(0,200,248,.44); border-radius: var(--radius-pill); color: var(--white); }
.nav-contact span { color: var(--cyan); }
.menu-toggle { display: none; }
.site-footer { display: grid; grid-template-columns: 1fr 1fr auto; gap: 20px; align-items: center; padding: 34px clamp(22px, 5vw, 82px) 18px; border-top: 1px solid rgba(255,255,255,.12); background: #061735; color: var(--muted); font-size: .8rem; }
.site-footer > p { margin: 0; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: flex-end; }
.site-footer nav a:hover, .footer-bottom a:hover { color: var(--cyan); }
.footer-brand { color: var(--white); }
.footer-bottom { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 16px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); font-size: .72rem; }
.footer-bottom span span { color: var(--cyan); }
.site-footer nav a, .footer-bottom a { transition: color 180ms ease; }
@media (max-width: 1050px) {
  :root { --header-height: 68px; }
  .site-header { padding-inline: 20px; }
  .brand { gap: 9px; }.brand-name { font-size: .63rem; letter-spacing: .12em; }
  .menu-toggle { z-index: 2; display: grid; width: 44px; height: 44px; align-content: center; justify-items: center; gap: 6px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; background: rgba(8,24,55,.7); }
  .menu-toggle span { display: block; width: 16px; height: 1px; background: var(--white); transition: transform 180ms ease; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .primary-nav { position: absolute; top: calc(100% + 1px); right: 0; left: 0; display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; border-bottom: 1px solid var(--glass-stroke); background: rgba(5,19,46,.97); opacity: 0; pointer-events: none; transform: translateY(-8px); transition: opacity 180ms ease, transform 180ms ease; }
  .primary-nav.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .primary-nav a { min-height: 48px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .primary-nav a:not(.nav-contact)::after { display: none; }
  .primary-nav .nav-contact { justify-content: center; margin-top: 12px; border-bottom: 1px solid rgba(0,200,248,.44); }
  .site-footer { grid-template-columns: 1fr; gap: 14px; padding-inline: 22px; }
  .site-footer nav { justify-content: flex-start; }
  .footer-bottom { flex-wrap: wrap; }
  .footer-bottom span:nth-child(2) { display: none; }
}
