* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 16px/1.75 var(--font-sans);
}
body.nav-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .25s ease, background .25s ease, border-color .25s ease, transform .25s ease; }
.container { width: min(1200px, calc(100% - 48px)); margin: 0 auto; }
.narrow { width: min(900px, calc(100% - 48px)); margin: 0 auto; }
.section { padding: 72px 0; }
.muted-section, .content-section { background: var(--soft); }
.skip-link { position: absolute; left: -999px; top: 12px; z-index: 100; padding: 10px 14px; background: white; color: var(--brand); }
.skip-link:focus { left: 12px; }
.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    border-bottom: 1px solid var(--line);
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(16px);
}
.header-inner { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { min-width: 150px; display: inline-flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.brand-logo { width: 112px; height: auto; }
.brand span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.15;
    white-space: normal;
}
.primary-nav { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 14px; font-weight: 700; }
.primary-nav > a, .nav-group > a { min-height: 42px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 10px; }
.primary-nav a:hover, .primary-nav a[aria-current="page"], .nav-group:hover > a { color: var(--brand); background: var(--soft); }
.nav-group { position: relative; }
.nav-group > a::after { content: ""; width: 7px; height: 7px; margin-left: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 238px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: white;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: .25s ease;
}
.dropdown a { display: block; padding: 9px 10px; border-radius: 10px; color: var(--ink); font-size: 14px; }
.dropdown a:hover { background: var(--soft); color: var(--brand); }
.nav-group:hover .dropdown, .nav-group:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.primary-nav .nav-action { margin-left: 8px; color: white; background: var(--brand); }
.nav-toggle { display: none; }
.page-shade { position: fixed; inset: 0; z-index: 50; visibility: hidden; background: rgba(8, 18, 32, .44); opacity: 0; transition: .25s ease; }
body.nav-open .page-shade { visibility: visible; opacity: 1; }
.site-footer { padding: 56px 0; background: #071426; color: white; }
.footer-grid { display: grid; grid-template-columns: 1.45fr repeat(3, 1fr); gap: 32px; }
.footer-grid span { display: block; margin-bottom: 12px; color: rgba(255,255,255,.54); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.footer-grid a { display: block; margin: 8px 0; color: rgba(255,255,255,.78); }
.footer-grid a:hover { color: white; }
.footer-brand p { color: rgba(255,255,255,.68); }
