/* ==========================================================================
   HDS Defence – design system
   Navy + gold palette taken from the HDS logo; cobalt as interactive accent.
   ========================================================================== */

:root {
    --ink-950: #050a14;
    --ink-900: #0a1222;
    --ink-850: #0d1729;
    --ink-800: #111c30;
    --ink-700: #1a2740;
    --ink-600: #26365a;
    --gold-300: #f0d48f;
    --gold-400: #e3bf6a;
    --gold-500: #c9a24a;
    --gold-600: #a8842f;
    --cobalt-400: #7aa2ff;
    --cobalt-500: #4f7dff;
    --cobalt-600: #3361f0;
    --paper: #f5f6f8;
    --line-dark: rgba(148, 163, 184, .14);
    --line-light: #e4e7ec;
    --ease-out: cubic-bezier(.22, 1, .36, 1);
    --nav-h: 76px;
}

* { box-sizing: border-box; }
html, body { overflow-x: clip; max-width: 100%; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--paper);
    color: #1e293b;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
.font-display { font-family: 'Space Grotesk', 'Inter', sans-serif; letter-spacing: -.02em; }
.font-mono, .mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }
::selection { background: var(--gold-400); color: var(--ink-950); }

:focus-visible { outline: 2px solid var(--gold-400); outline-offset: 3px; border-radius: 6px; }

.skip-link {
    position: absolute; left: 1rem; top: -100px; z-index: 200;
    background: var(--gold-400); color: var(--ink-950); font-weight: 700;
    padding: .6rem 1rem; border-radius: .5rem; transition: top .2s;
}
.skip-link:focus { top: 1rem; }

.bg-navy { background-color: var(--ink-900); }
.bg-ink { background-color: var(--ink-950); }

/* ── Icons ── */
.ico { width: 1.5rem; height: 1.5rem; flex-shrink: 0; }
.ico-sm { width: 1rem; height: 1rem; flex-shrink: 0; }
.ico-lg { width: 2rem; height: 2rem; flex-shrink: 0; }

/* ── Texture helpers ── */
.grid-bg {
    background-image:
        linear-gradient(rgba(122,162,255,.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(122,162,255,.06) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 100%);
}
.dot-bg {
    background-image: radial-gradient(rgba(15,23,42,.09) 1px, transparent 1px);
    background-size: 22px 22px;
}
.noise::after {
    content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .05; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Eyebrow / tags ── */
.eyebrow {
    display: flex; width: fit-content; align-items: center; gap: .6rem; line-height: 1.2;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: .7rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
    color: var(--gold-600);
}
.eyebrow::before { content: ''; width: 22px; height: 1px; background: currentColor; opacity: .8; }
.eyebrow-light { color: var(--gold-400); }
.eyebrow-center { justify-content: center; margin-left: auto; margin-right: auto; }

/* legacy alias used by older markup */
.section-tag {
    display: inline-flex; align-items: center; gap: .45rem;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: .68rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
    color: var(--gold-400);
    padding: 0; background: none; border: 0;
}

.chip {
    display: inline-flex; align-items: center; gap: .4rem;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: .64rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
    padding: .32rem .55rem; border-radius: 3px;
    border: 1px solid var(--line-light); background: #fff; color: #334155;
}
.chip-dark { background: rgba(5,10,20,.55); border-color: rgba(255,255,255,.14); color: #cbd5e1; }
.chip-gold { background: rgba(5,10,20,.6); border-color: rgba(227,191,106,.45); color: var(--gold-300); }
.tag-list { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem 1.1rem;
    font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; }
.tag-list > * { display: inline-flex; align-items: center; gap: .45rem; }
.tag-list > *::before { content: ''; width: 5px; height: 5px; background: currentColor; opacity: .55; transform: rotate(45deg); }

/* Mobile swipe rows that become grids from 640px */
.swipe-row { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -1.25rem; padding: 0 1.25rem 1rem; scrollbar-width: none; }
.swipe-row::-webkit-scrollbar { display: none; }
.swipe-row > * { flex: 0 0 84%; scroll-snap-align: start; }
@media (min-width: 640px) and (max-width: 1023px) {
    .swipe-row.swipe-until-lg { display: flex; overflow-x: auto; margin-inline: -1.5rem; padding: 0 1.5rem 1rem; }
    .swipe-row.swipe-until-lg > * { flex: 0 0 46%; }
}
@media (min-width: 640px) {
    .swipe-row:not(.swipe-until-lg) { display: grid; overflow: visible; margin-inline: 0; padding: 0; gap: 1.25rem; }
    .swipe-row:not(.swipe-until-lg) > * { flex: initial; }
}
@media (min-width: 1024px) {
    .swipe-row.swipe-until-lg { display: grid; overflow: visible; margin-inline: 0; padding: 0; gap: 1.25rem; }
    .swipe-row.swipe-until-lg > * { flex: initial; }
}

.h-section {
    font-family: 'Space Grotesk', 'Inter', sans-serif; font-weight: 700;
    letter-spacing: -.03em; line-height: 1.05;
    font-size: clamp(2rem, 1.4rem + 2.4vw, 3.4rem);
}
.text-gold-grad, .text-gold-grad .split-word {
    background-image: linear-gradient(100deg, var(--gold-300) 0%, var(--gold-400) 40%, #fff3d1 60%, var(--gold-500) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    animation: shimmer 6s linear infinite;
}
@keyframes shimmer { to { background-position: -200% center; } }


/* ── Buttons ── */
.btn {
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
    font-weight: 600; font-size: .9rem; letter-spacing: .01em;
    padding: .85rem 1.4rem; border-radius: .75rem;
    transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), background-color .2s, border-color .2s, color .2s;
    white-space: nowrap; isolation: isolate; overflow: hidden;
}
.btn .ico-sm { transition: transform .3s var(--ease-out); }
.btn:hover .ico-sm { transform: translateX(3px); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-gold {
    background: linear-gradient(180deg, var(--gold-400), var(--gold-500));
    color: var(--ink-950);
    box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 10px 30px -10px rgba(227,191,106,.55);
}
.btn-gold:hover { box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 16px 40px -12px rgba(227,191,106,.75); transform: translateY(-2px); }
.btn-ghost {
    color: #e2e8f0; background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.16);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.32); transform: translateY(-2px); }
.btn-dark { background: var(--ink-900); color: #fff; box-shadow: 0 10px 30px -14px rgba(5,10,20,.7); }
.btn-dark:hover { background: var(--ink-700); transform: translateY(-2px); }
.btn-line { color: var(--ink-900); border: 1px solid #cfd5df; background: #fff; }
.btn-line:hover { border-color: var(--ink-900); transform: translateY(-2px); }
.btn-sm { padding: .55rem 1rem; font-size: .8rem; border-radius: .6rem; }
.btn-lg { padding: 1rem 1.7rem; font-size: .95rem; }

/* legacy aliases */
.btn-primary {
    background: linear-gradient(180deg, var(--gold-400), var(--gold-500)); color: var(--ink-950);
    box-shadow: 0 10px 30px -12px rgba(227,191,106,.6);
    transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(227,191,106,.75); }
.btn-outline { border: 1px solid rgba(255,255,255,.25); color: #e2e8f0; }
.btn-outline:hover { background: rgba(255,255,255,.08); }

.link-arrow {
    white-space: nowrap; flex-shrink: 0;
    display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; font-size: .85rem;
    color: var(--ink-900);
}
.link-arrow .ico-sm { transition: transform .3s var(--ease-out); }
.link-arrow:hover .ico-sm, .group:hover .link-arrow .ico-sm { transform: translateX(4px); }

/* ── Navigation ── */
.site-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 60;
    height: var(--nav-h);
    transition: background-color .35s, box-shadow .35s, height .35s var(--ease-out), border-color .35s, transform .4s var(--ease-out);
    border-bottom: 1px solid transparent;
}
.site-nav.is-solid {
    background: rgba(7, 13, 25, .82);
    backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
    border-bottom-color: rgba(148,163,184,.12);
    box-shadow: 0 10px 40px -20px rgba(0,0,0,.6);
}
.site-nav.is-hidden { transform: translateY(-100%); }

.nav-link {
    position: relative; color: #a7b3c6; font-size: .875rem; font-weight: 500;
    padding: .5rem .85rem; border-radius: .6rem; transition: color .2s, background-color .2s;
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,.05); }
.nav-link.active { color: #fff; }
.nav-link.active::after {
    content: ''; position: absolute; left: 50%; bottom: -2px; width: 18px; height: 2px; margin-left: -9px;
    border-radius: 2px; background: var(--gold-400); box-shadow: 0 0 12px var(--gold-400);
}

.search-trigger {
    display: inline-flex; align-items: center; gap: .6rem;
    color: #94a3b8; font-size: .8rem;
    padding: .5rem .6rem .5rem .85rem; border-radius: .7rem;
    border: 1px solid rgba(148,163,184,.2); background: rgba(255,255,255,.03);
    transition: border-color .2s, color .2s, background .2s;
}
.search-trigger:hover { color: #e2e8f0; border-color: rgba(148,163,184,.4); background: rgba(255,255,255,.06); }
.kbd {
    font-family: 'JetBrains Mono', monospace; font-size: .65rem; color: #94a3b8;
    border: 1px solid rgba(148,163,184,.25); border-radius: .35rem; padding: .05rem .35rem;
}

/* Mobile drawer */
.mobile-drawer {
    position: fixed; inset: 0; z-index: 55; background: rgba(5,10,20,.97);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    padding: calc(var(--nav-h) + 1.5rem) 1.5rem 2rem;
    display: flex; flex-direction: column;
    opacity: 0; visibility: hidden; transition: opacity .35s var(--ease-out), visibility 0s .35s;
}
.mobile-drawer.open { opacity: 1; visibility: visible; transition: opacity .35s var(--ease-out); }
.mobile-drawer .m-link {
    display: flex; align-items: center; justify-content: space-between;
    font-family: 'Space Grotesk', sans-serif; font-size: 1.9rem; font-weight: 600; color: #e2e8f0;
    padding: .9rem 0; border-bottom: 1px solid rgba(148,163,184,.12);
    opacity: 0; transform: translateY(14px);
    transition: opacity .45s var(--ease-out), transform .45s var(--ease-out), color .2s;
}
.mobile-drawer.open .m-link { opacity: 1; transform: none; }
.mobile-drawer.open .m-link:nth-child(2) { transition-delay: .05s; }
.mobile-drawer.open .m-link:nth-child(3) { transition-delay: .1s; }
.mobile-drawer.open .m-link:nth-child(4) { transition-delay: .15s; }
.mobile-drawer .m-link.active { color: var(--gold-400); }

.burger { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: .7rem; border: 1px solid rgba(148,163,184,.2); }
.burger span { position: relative; display: block; width: 18px; height: 1.5px; background: #e2e8f0; transition: background .2s; }
.burger span::before, .burger span::after {
    content: ''; position: absolute; left: 0; width: 18px; height: 1.5px; background: #e2e8f0;
    transition: transform .3s var(--ease-out), top .3s var(--ease-out);
}
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* Search overlay (command palette) */
.search-overlay {
    position: fixed; inset: 0; z-index: 90; display: flex; align-items: flex-start; justify-content: center;
    padding: 12vh 1rem 1rem; background: rgba(5,10,20,.6);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s .25s;
}
.search-overlay.open { opacity: 1; visibility: visible; transition: opacity .25s; }
.search-panel {
    width: 100%; max-width: 640px; border-radius: 1.1rem; background: #fff;
    box-shadow: 0 40px 120px -30px rgba(0,0,0,.6); overflow: visible;
    transform: translateY(-8px) scale(.98); transition: transform .3s var(--ease-out);
}
.search-overlay.open .search-panel { transform: none; }

/* autocomplete dropdowns (markup injected by search-autocomplete.js) */
#navbar-search-suggestions, #search-suggestions, #mobile-navbar-search-suggestions {
    background: #fff; border: 1px solid var(--line-light); border-radius: .9rem; overflow: hidden;
    box-shadow: 0 24px 60px -24px rgba(15,23,42,.35);
}
#navbar-search-suggestions { border: 0; border-top: 1px solid var(--line-light); border-radius: 0 0 1.1rem 1.1rem; box-shadow: none; }
.suggestion-item { transition: background .12s; background: #fff !important; }
.suggestion-item:hover, .suggestion-item.active { background: #f4f6fa !important; }
.suggestion-item > span:last-child {
    background: rgba(227,191,106,.14) !important; color: #7a5d1a !important;
    border: 1px solid rgba(201,162,74,.35) !important; border-radius: 999px !important; font-weight: 600;
}

/* ── Page header (inner pages) ── */
.page-hero {
    position: relative; overflow: hidden; color: #fff;
    background: radial-gradient(1200px 500px at 85% -10%, rgba(79,125,255,.18), transparent 60%),
                radial-gradient(900px 400px at 0% 120%, rgba(227,191,106,.10), transparent 60%),
                var(--ink-950);
    padding-top: calc(var(--nav-h) + 3rem);
}
.page-header { /* legacy */
    position: relative; overflow: hidden;
    background: var(--ink-950);
}

/* ── Breadcrumbs ── */
.breadcrumb-wrap {
    display: inline-flex; align-items: center; flex-wrap: wrap; gap: .5rem;
    font-family: 'JetBrains Mono', monospace; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
    color: #64748b;
}
.breadcrumb-link { color: #94a3b8; transition: color .2s; }
.breadcrumb-link:hover { color: var(--gold-400); }
.breadcrumb-sep { color: #475569; font-size: 8px; }
.breadcrumb-current { color: #e2e8f0; max-width: min(48vw, 360px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Cards ── */
.card {
    position: relative; background: #fff; border: 1px solid var(--line-light); border-radius: 1.25rem;
    transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .3s;
}
.card-lift:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(15,23,42,.35); border-color: #d3d9e3; }
.card-dark {
    position: relative; background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
    border: 1px solid rgba(148,163,184,.14); border-radius: 1.25rem;
    transition: border-color .3s, transform .45s var(--ease-out), background .3s;
}
.card-dark:hover { border-color: rgba(227,191,106,.35); }

/* spotlight effect following the cursor (set by site.js) */
.spotlight { --mx: 50%; --my: 50%; }
.spotlight::before {
    content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
    background: radial-gradient(400px circle at var(--mx) var(--my), rgba(227,191,106,.10), transparent 45%);
    transition: opacity .3s;
}
.spotlight:hover::before { opacity: 1; }

/* HUD corner brackets */
.hud { position: relative; }
.hud > .hud-c { position: absolute; width: 14px; height: 14px; border-color: var(--gold-400); opacity: .75; pointer-events: none; }
.hud > .hud-tl { top: -1px; left: -1px; border-top: 1.5px solid; border-left: 1.5px solid; }
.hud > .hud-tr { top: -1px; right: -1px; border-top: 1.5px solid; border-right: 1.5px solid; }
.hud > .hud-bl { bottom: -1px; left: -1px; border-bottom: 1.5px solid; border-left: 1.5px solid; }
.hud > .hud-br { bottom: -1px; right: -1px; border-bottom: 1.5px solid; border-right: 1.5px solid; }

.icon-tile {
    width: 3rem; height: 3rem; border-radius: .9rem; display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(180deg, rgba(227,191,106,.16), rgba(227,191,106,.04));
    border: 1px solid rgba(227,191,106,.3); color: var(--gold-400);
}
.icon-tile-light { background: #fbf6ea; border-color: #ecdcb4; color: var(--gold-600); }

/* Product media fallback */
.media-fallback {
    position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    background: radial-gradient(circle at 50% 40%, #1a2740 0%, var(--ink-900) 70%);
    color: rgba(227,191,106,.55); overflow: hidden;
}
.media-fallback::before {
    content: ''; position: absolute; inset: 0;
    background-image:
        repeating-radial-gradient(circle at 50% 120%, transparent 0 22px, rgba(122,162,255,.08) 22px 23px);
}
.media-fallback svg { position: relative; width: 3.5rem; height: 3.5rem; }

/* ── Marquee ── */
.marquee { mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── Tables ── */
.spec-row:nth-child(even) { background: #f8fafc; }
.spec-row:nth-child(odd) { background: #fff; }

/* ── Forms ── */
.field {
    width: 100%; border: 1px solid #d8dde6; border-radius: .75rem; background: #fff;
    padding: .8rem 1rem; font-size: .9rem; color: #0f172a;
    transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field::placeholder { color: #94a3b8; }
.field:hover { border-color: #b9c2d0; }
.field:focus { outline: none; border-color: var(--gold-500); box-shadow: 0 0 0 4px rgba(227,191,106,.18); }
.field.has-error { border-color: #f87171; }
.field.has-error:focus { box-shadow: 0 0 0 4px rgba(248,113,113,.18); }
.field-label { display: block; font-size: .8rem; font-weight: 600; color: #334155; margin-bottom: .45rem; }
select.field { appearance: none; -webkit-appearance: none; padding-right: 2.5rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right .9rem center; background-size: 16px; }

.seg { display: flex; flex-wrap: wrap; gap: .5rem; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label {
    cursor: pointer; font-size: .8rem; font-weight: 600; color: #475569;
    padding: .55rem .9rem; border-radius: .65rem; border: 1px solid #d8dde6; background: #fff;
    transition: all .2s;
}
.seg label:hover { border-color: #b9c2d0; }
.seg input:checked + label { background: var(--ink-900); border-color: var(--ink-900); color: #fff; }
.seg input:focus-visible + label { outline: 2px solid var(--gold-400); outline-offset: 2px; }

/* ── Alerts ── */
.site-alert {
    border: 1px solid; border-radius: .9rem; padding: .85rem 1rem;
    display: flex; align-items: flex-start; gap: .7rem;
    box-shadow: 0 14px 34px -24px rgba(15,23,42,.6); background: #fff;
}
.site-alert + .site-alert { margin-top: .55rem; }
.site-alert-icon { width: 1.25rem; margin-top: .1rem; flex-shrink: 0; text-align: center; }
.site-alert-content { font-size: .88rem; line-height: 1.45; font-weight: 600; }
.site-alert-close { margin-left: auto; border: 0; background: transparent; cursor: pointer; opacity: .7; padding: .1rem; }
.site-alert-close:hover { opacity: 1; }
.site-alert-success { background: #ecfdf3; border-color: #86efac; color: #166534; }
.site-alert-success .site-alert-icon, .site-alert-success .site-alert-close { color: #16a34a; }
.site-alert-error { background: #fef2f2; border-color: #fca5a5; color: #991b1b; }
.site-alert-error .site-alert-icon, .site-alert-error .site-alert-close { color: #dc2626; }
.site-alert-info { background: #eff6ff; border-color: #93c5fd; color: #1e3a8a; }
.site-alert-info .site-alert-icon, .site-alert-info .site-alert-close { color: #2563eb; }

/* ── Prose (legal pages) ── */
.prose-hds h2 { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.2rem; color: #0f172a; margin: 2rem 0 .6rem; letter-spacing: -.01em; }
.prose-hds p { color: #475569; line-height: 1.8; }
.prose-hds a { color: var(--gold-600); text-decoration: underline; text-underline-offset: 3px; }

/* ── Scroll progress ── */
.scroll-progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 70; transform-origin: 0 50%; transform: scaleX(0);
    background: linear-gradient(90deg, var(--gold-500), var(--gold-300)); pointer-events: none; }

/* ── Reveal (initial state only when JS + motion are available) ── */
/* only hide here; GSAP applies the offsets so clearProps leaves elements in place */
.js-motion [data-reveal], .js-motion [data-stagger] > * { opacity: 0; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--ink-950); }
::-webkit-scrollbar-thumb { background: var(--ink-600); border-radius: 8px; border: 2px solid var(--ink-950); }
.no-scrollbar { scrollbar-width: none; -ms-overflow-style: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ── Sticky sub-bar that follows the auto-hiding nav ── */
.sticky-sub { position: sticky; top: var(--nav-h); z-index: 40; transition: top .4s var(--ease-out); }
.site-nav.is-hidden ~ main .sticky-sub { top: 0; }
.pill {
    position: relative; flex-shrink: 0; display: inline-flex; align-items: center;
    font-size: .84rem; font-weight: 600; color: #64748b;
    padding: 1.05rem 0; margin-right: 1.75rem; transition: color .2s;
}
.pill:last-child { margin-right: 0; }
.pill:hover { color: var(--ink-950); }
.pill.is-active { color: var(--ink-950); }
.pill.is-active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--gold-500); }
.pill-plain { font-size: .9rem; font-weight: 600; color: var(--ink-900); text-decoration: underline; text-decoration-color: #cbd5e1; text-underline-offset: 5px; transition: text-decoration-color .2s; }
.pill-plain:hover { text-decoration-color: var(--gold-500); }

/* ── Hero drone illustration ── */
@keyframes hds-spin { to { transform: rotate(360deg); } }
@keyframes hds-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes hds-lock { 0%, 100% { opacity: .9; } 50% { opacity: .35; } }
.hero-drone .rotor-cw, .hero-drone .rotor-ccw { transform-box: fill-box; transform-origin: center; animation: hds-spin .32s linear infinite; }
.hero-drone .rotor-ccw { animation-direction: reverse; }
.hero-drone .hud-spin { transform-origin: 260px 260px; animation: hds-spin 60s linear infinite; }
.hero-drone .hud-sweep { transform-origin: 260px 260px; animation: hds-spin 7s linear infinite; }
.hero-drone .drone-body { animation: hds-bob 6s ease-in-out infinite; }
.hero-drone .hud-lock { animation: hds-lock 3s ease-in-out infinite; }

/* ── Photographic heroes ── */
.photo-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-scrim {
    background:
        linear-gradient(180deg, rgba(5,10,20,.85) 0%, rgba(5,10,20,0) 22%),
        linear-gradient(0deg, var(--ink-950) 0%, rgba(5,10,20,0) 30%),
        linear-gradient(90deg, rgba(5,10,20,.92) 0%, rgba(5,10,20,.72) 38%, rgba(5,10,20,.2) 70%, rgba(5,10,20,.35) 100%);
}
@media (max-width: 1023px) {
    .hero-scrim {
        background:
            linear-gradient(180deg, rgba(5,10,20,.9) 0%, rgba(5,10,20,.75) 55%, rgba(5,10,20,.45) 75%, var(--ink-950) 100%);
    }
}
.page-hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 75% 72%; opacity: .9; }
.page-hero-scrim {
    background:
        linear-gradient(90deg, rgba(5,10,20,.96) 0%, rgba(5,10,20,.82) 35%, rgba(5,10,20,.35) 70%, rgba(5,10,20,.25) 100%),
        linear-gradient(0deg, rgba(5,10,20,.85) 0%, rgba(5,10,20,0) 40%),
        linear-gradient(180deg, rgba(5,10,20,.7) 0%, rgba(5,10,20,0) 30%);
}
