/* Hasman Design - federal technology theme */
:root {
    --navy-950: #050c19;
    --navy-900: #071327;
    --navy-800: #0a1d3a;
    --navy-700: #0f2c57;
    --blue: #2563eb;
    --cyan: #22d3ee;
    --gold: #f5b335;
    --ink: #0b1f3a;
    --muted: #5b6b84;
    --line: #dbe3ef;
    --soft: #f3f6fb;
    --radius: 16px;
    --shadow: 0 18px 40px -18px rgba(8, 25, 55, .35);
    --font: 'Inter', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
    --font-head: 'Space Grotesk', 'Inter', 'Segoe UI', system-ui, Arial, sans-serif;
}

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body.hd { font-family: var(--font); color: var(--ink); background: #fff; line-height: 1.65; font-size: 16px; -webkit-font-smoothing: antialiased; }
:where(body.hd) h1, :where(body.hd) h2, :where(body.hd) h3, :where(body.hd) h4, :where(body.hd) h5 { font-family: var(--font-head); color: inherit; letter-spacing: -.01em; line-height: 1.15; margin: 0; }
:where(body.hd) a, :where(body.hd) a:hover { color: inherit; text-decoration: none; }
:where(body.hd) img { max-width: 100%; }
:where(body.hd) ul, :where(body.hd) ol { margin: 0; padding: 0; list-style: none; }
.hd-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
@media (min-width: 1600px) { .hd-wrap { max-width: 1320px; } }
.hd-center { text-align: center; }
.hd-skip { position: absolute; left: 0; top: 8px; transform: translateX(-200%); background: var(--gold); color: #000; padding: 8px 14px; border-radius: 8px; z-index: 2000; }
.hd-skip:focus { left: 8px; transform: none; }
body.hd-nav-open { overflow: hidden; }
.loadingmessage { display: none; position: fixed; inset: 0; z-index: 3000; background: rgba(5, 12, 25, .55) url('../../../images/loader.gif') center no-repeat; }

/* Buttons */
.hd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: 15px; border: 1.5px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s, color .2s; line-height: 1.2; }
.hd-btn:hover { transform: translateY(-2px); }
.hd-btn--gold { background: linear-gradient(135deg, #ffd072, var(--gold)); color: #1a1203 !important; box-shadow: 0 10px 26px -10px rgba(245, 179, 53, .7); }
.hd-btn--gold:hover { box-shadow: 0 14px 30px -8px rgba(245, 179, 53, .85); }
.hd-btn--ghost { border-color: rgba(255, 255, 255, .35); color: #fff !important; background: rgba(255, 255, 255, .04); }
.hd-btn--ghost:hover { background: rgba(255, 255, 255, .12); }
.hd-btn--sm { padding: 10px 20px; font-size: 14px; }
.hd-btn--block { width: 100%; }

/* Header */
.hd-header { position: fixed; inset: 0 0 auto 0; z-index: 1000; transition: background .25s, box-shadow .25s, backdrop-filter .25s; }
.hd-header.is-solid { background: rgba(5, 12, 25, .88); backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(255, 255, 255, .08); }
.hd-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 32px; height: 76px; }
.hd-brand { display: flex; align-items: center; gap: 12px; color: #fff !important; }
.hd-brand__text { font-family: var(--font-head); font-size: 17px; letter-spacing: .14em; line-height: 1.1; display: flex; flex-direction: column; }
.hd-brand__name { white-space: nowrap; }
.hd-brand__text strong { font-weight: 700; }
.hd-brand__text small { font-family: var(--font); font-size: 10px; letter-spacing: .18em; color: #8fb2e8; text-transform: uppercase; margin-top: 3px; white-space: nowrap; }
.hd-nav { display: flex; align-items: center; gap: 24px; }
.hd-nav a:not(.hd-btn) { color: #cfdcf2; font-size: 14.5px; font-weight: 500; position: relative; padding: 6px 0; }
.hd-nav a:not(.hd-btn)::after { content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--gold); transition: width .2s; }
.hd-nav a:not(.hd-btn):hover { color: #fff; }
.hd-nav a:not(.hd-btn):hover::after, .hd-nav a.is-active::after { width: 100%; }
.hd-nav a.is-active { color: #fff; }
.hd-burger { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.hd-burger span { display: block; height: 2px; background: #fff; margin: 6px 0; transition: transform .2s, opacity .2s; }
.hd-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hd-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hd-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Hero */
.hd-hero { position: relative; color: #fff; background: var(--navy-950) center/cover no-repeat; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.hd-hero__grid { padding-top: 112px; padding-bottom: 48px; flex: 1; display: flex; align-items: center; }
.hd-hero__copy { max-width: 700px; }
.hd-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--cyan); margin: 0 0 18px; }
.hd-eyebrow--dark { color: var(--blue); }
.hd-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 0 rgba(34, 211, 238, .7); animation: hd-pulse 2.2s infinite; }
@keyframes hd-pulse { 70% { box-shadow: 0 0 0 10px rgba(34, 211, 238, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); } }
.hd-hero h1 { font-size: clamp(34px, 5vw, 62px); font-weight: 700; margin-bottom: 20px; }
.hd-grad { background: linear-gradient(100deg, var(--cyan), #7aa8ff 55%, var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hd-lead { font-size: clamp(16px, 1.4vw, 18px); color: #c3d3ee; max-width: 620px; margin-bottom: 28px; }
.hd-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hd-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hd-tags li { font-size: 13.5px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); color: #dbe7fb; }
.hd-tags i { color: var(--gold); margin-right: 6px; }
.hd-agencybar { background: rgba(5, 12, 25, .72); backdrop-filter: blur(8px); border-top: 1px solid rgba(255, 255, 255, .1); padding: 16px 0; }
.hd-agencybar .hd-wrap { display: flex; align-items: center; gap: 12px 28px; flex-wrap: wrap; }
.hd-agencybar__label { font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: #7e97bf; }
.hd-agencybar ul { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.hd-agencybar li { font-family: var(--font-head); font-weight: 600; font-size: 15px; letter-spacing: .06em; color: #dce8fb; }

/* Sections */
.hd-section { padding: 104px 0; position: relative; }
.hd-section--alt { background: var(--soft); }
.hd-section--topo { background: #fff var(--topo) center/cover no-repeat; }
.hd-dark { background: var(--navy-900) var(--topo) center/cover no-repeat; color: #fff; }
.hd-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.hd-head h2, .hd-split__copy h2 { font-size: clamp(30px, 3.6vw, 46px); font-weight: 700; margin-bottom: 16px; }
.hd-head p:not(.hd-eyebrow) { color: var(--muted); font-size: 18px; }
.hd-head--light p:not(.hd-eyebrow) { color: #aebfdc; }
.hd-grid { display: grid; gap: 26px; }
.hd-grid--3 { grid-template-columns: repeat(3, 1fr); }

.hd-pillars { padding: 72px 0 0; z-index: 5; }
.hd-pillar { background: #fff; border-radius: var(--radius); padding: 34px 30px; box-shadow: var(--shadow); border: 1px solid var(--line); border-top: 4px solid var(--blue); }
.hd-pillar:nth-child(2) { border-top-color: var(--gold); }
.hd-pillar:nth-child(3) { border-top-color: var(--cyan); }
.hd-pillar h3 { font-size: 22px; margin: 18px 0 10px; }
.hd-pillar p { color: var(--muted); margin: 0; }
.hd-icon { width: 56px; height: 56px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; font-size: 24px; color: #fff; background: linear-gradient(135deg, #1d4ed8, #22d3ee); }
.hd-icon--sm { width: 46px; height: 46px; font-size: 20px; border-radius: 12px; }
#capabilities { padding-top: 96px; }
.hd-card { background: rgba(255, 255, 255, .92); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.hd-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #b9c9e6; }
.hd-card h3 { font-size: 20px; margin: 18px 0 10px; }
.hd-card p { color: var(--muted); margin: 0; font-size: 15.5px; }

/* Programs */
.hd-program { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, border-color .2s; }
.hd-program:hover { transform: translateY(-6px); border-color: rgba(34, 211, 238, .5); }
.hd-program__art { aspect-ratio: 16 / 10; background-size: cover; background-position: center; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.hd-program__body { padding: 28px; display: flex; flex-direction: column; flex: 1; }
.hd-chip { align-self: flex-start; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--gold); border: 1px solid rgba(245, 179, 53, .45); padding: 5px 12px; border-radius: 999px; margin-bottom: 16px; }
.hd-program h3 { font-size: 24px; margin-bottom: 12px; }
.hd-program p { color: #b3c3de; font-size: 15.5px; }
.hd-ticks { margin-top: auto; padding-top: 8px; }
.hd-ticks li { position: relative; padding-left: 26px; margin: 8px 0; font-size: 14.5px; color: #dce8fb; }
.hd-ticks li::before { content: '\f00c'; font-family: FontAwesome; position: absolute; left: 0; color: var(--cyan); font-size: 13px; top: 1px; }

/* SBIR */
.hd-figure { margin: 0 0 40px; border-radius: 20px; overflow-x: auto; -webkit-overflow-scrolling: touch; box-shadow: var(--shadow); border: 1px solid #12305c; background: #071327; position: relative; }
.hd-figure img { display: block; width: 100%; height: auto; }
.hd-figure__hint { display: none; text-align: center; font-size: 12.5px; color: var(--muted); margin: -28px 0 36px; }
.hd-figure__hint i { margin: 0 6px; }
.hd-phase { display: flex; gap: 18px; align-items: flex-start; background: var(--soft); border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); }
.hd-phase b { flex: 0 0 52px; height: 52px; border-radius: 50%; background: var(--navy-800); color: var(--gold); font-family: Georgia, serif; font-size: 20px; display: flex; align-items: center; justify-content: center; }
.hd-phase h4 { font-size: 19px; margin-bottom: 6px; }
.hd-phase p { margin: 0; color: var(--muted); font-size: 15px; }

/* Split layouts */
.hd-split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.hd-split--center { align-items: center; }
.hd-split__media img { display: block; width: 100%; height: auto; }
.hd-split__media--narrow { max-width: 440px; margin: 0 auto; }
#approach .hd-split__media { background: var(--navy-900); border-radius: 24px; padding: 22px; box-shadow: var(--shadow); align-self: center; }
.hd-split__copy > p:not(.hd-eyebrow) { color: var(--muted); font-size: 17px; }
.hd-steps { counter-reset: s; margin: 28px 0; }
.hd-steps li { counter-increment: s; position: relative; padding: 0 0 20px 64px; }
.hd-steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, #1d4ed8, #22d3ee); color: #fff; font-family: var(--font-head); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.hd-steps li:not(:last-child)::after { content: ''; position: absolute; left: 21px; top: 50px; bottom: 6px; width: 2px; background: var(--line); }
.hd-steps b { display: block; font-family: var(--font-head); font-size: 18px; }
.hd-steps span { color: var(--muted); font-size: 15.5px; }
.hd-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.hd-badges span { font-size: 13.5px; font-weight: 500; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; }
.hd-badges i { color: #16a34a; margin-right: 6px; }

/* Marketplace */
.hd-market .hd-split__media { filter: drop-shadow(0 20px 50px rgba(34, 211, 238, .18)); }
.hd-audience { padding: 20px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.hd-audience:first-child { padding-top: 0; }
.hd-audience h3 { font-size: 20px; margin-bottom: 8px; }
.hd-audience h3 i { color: var(--gold); width: 28px; }
.hd-audience p { color: #aebfdc; margin: 0; font-size: 15.5px; }
.hd-market .hd-actions { margin-top: 28px; }
.hd-vehicles { margin-top: 64px; padding-top: 34px; border-top: 1px solid rgba(255, 255, 255, .12); text-align: center; }
.hd-vehicles h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .18em; color: #7e97bf; margin-bottom: 18px; font-family: var(--font); font-weight: 600; }
.hd-vehicles ul { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.hd-vehicles li { padding: 10px 18px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); font-size: 14.5px; }
.hd-vehicles i { color: var(--cyan); margin-right: 8px; }

/* Work + clients */
.hd-work { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; transition: transform .2s, box-shadow .2s; }
.hd-work:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.hd-work img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.hd-work__body { padding: 22px; }
.hd-work__body h3 { font-size: 20px; margin-bottom: 8px; }
.hd-work__body p { color: var(--muted); font-size: 15px; }
.hd-work__body a { color: var(--blue); font-weight: 600; }
.hd-logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 28px 48px; margin-top: 10px; }
.hd-logos img { max-height: 54px; width: auto; filter: grayscale(1); opacity: .7; transition: .2s; }
.hd-logos img:hover { filter: none; opacity: 1; }

/* Company */
.hd-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 26px; }
.hd-facts div { background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.hd-facts span { display: block; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.hd-facts b { font-family: var(--font-head); font-size: 15.5px; }

/* CTA */
.hd-cta { background: linear-gradient(135deg, rgba(10, 29, 58, .96), rgba(15, 44, 87, .94)), var(--navy-800); background-size: cover; background-position: center; color: #fff; text-align: center; padding: 88px 0; }
.hd-cta h2 { font-size: clamp(28px, 3.4vw, 42px); margin-bottom: 14px; }
.hd-cta p { color: #bccce6; max-width: 620px; margin: 0 auto 30px; font-size: 18px; }

/* Contact */
.hd-contact { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.hd-contact__info h2 { font-size: clamp(30px, 3.4vw, 42px); margin-bottom: 14px; }
.hd-contact__info > p:not(.hd-eyebrow) { color: var(--muted); font-size: 17px; }
.hd-contact__list { margin-top: 28px; }
.hd-contact__list li { display: flex; gap: 14px; align-items: flex-start; margin: 14px 0; }
.hd-contact__list i { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 10px; background: var(--navy-800); color: var(--cyan); display: flex; align-items: center; justify-content: center; }
.hd-contact__list a:hover { color: var(--blue); }
.hd-contact__form, .hd-modal .modal-content { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 34px; box-shadow: var(--shadow); }
.hd-modal .modal-content { padding: 0; }
.hd-modal .modal-header { border: 0; padding: 28px 34px 0; }
.hd-modal .modal-body { padding: 18px 34px 34px; }
.hd-modal .modal-title { font-size: 26px; }
.hd-modal .modal-backdrop, .modal-backdrop.show { background: #050c19; opacity: .75; }
.hd-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
body.hd label { font-size: 13.5px; font-weight: 600; margin-bottom: 6px; display: block; }
body.hd .form-control { border-radius: 10px; border: 1.5px solid var(--line); padding: 12px 14px; height: auto; font-size: 16px; background: #fbfcfe; }
body.hd .form-control:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(37, 99, 235, .14); background: #fff; }
body.hd select.form-control { height: 50px; padding-top: 0; padding-bottom: 0; }
body.hd label.error, body.hd .error { color: #c0262d; font-size: 13px; font-weight: 500; margin-top: 4px; }
body.hd .form-control.error { border-color: #e0848a; }
.hd-captcha { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: end; margin-bottom: 6px; }
.hd-captcha__img { display: flex; align-items: center; gap: 10px; margin-bottom: 1rem; }
.hd-captcha__img img { border-radius: 8px; max-width: 160px; height: auto; }
.hd-captcha__img a { width: 40px; height: 40px; border-radius: 10px; background: var(--soft); display: flex; align-items: center; justify-content: center; color: var(--ink); border: 1px solid var(--line); }
.hd-nda { margin-bottom: 18px; }

/* Footer */
.hd-footer { background: var(--navy-950); color: #9db1d3; padding: 64px 0 0; }
.hd-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 48px; }
.hd-footer p { font-size: 14.5px; margin: 16px 0 0; max-width: 380px; }
.hd-footer h5 { color: #fff; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 14px; font-family: var(--font); }
.hd-footer__grid > div > a:not(.hd-brand) { display: block; margin: 8px 0; font-size: 14.5px; }
.hd-footer a:hover { color: #fff; }
.hd-social { display: flex; gap: 10px; margin-top: 16px; }
.hd-social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); display: flex !important; align-items: center; justify-content: center; margin: 0 !important; }
.hd-footer__legal { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 48px; padding-top: 22px; padding-bottom: 28px; }
.hd-footer__legal p { max-width: none; font-size: 12.5px; margin: 6px 0; color: #6f86ad; }
.hd-top { position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px; border-radius: 50%; background: var(--navy-800); color: #fff !important; display: flex; align-items: center; justify-content: center; font-size: 24px; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 900; }
.hd-top.is-visible { opacity: 1; pointer-events: auto; }
.hd-top:hover { transform: translateY(-3px); }

/* Scroll reveal */
.js .hd-reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.js .hd-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .hd-reveal { opacity: 1; transform: none; transition: none; }
    .hd-dot { animation: none; }
}

/* Responsive */
@media (max-width: 1024px) {
    .hd-grid--3 { grid-template-columns: repeat(2, 1fr); }
    .hd-split, .hd-contact { grid-template-columns: 1fr; gap: 40px; }
    .hd-split--center .hd-split__media { max-width: 640px; margin: 0 auto; }
    .hd-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1100px) {
    .hd-burger { display: block; }
    .hd-nav { position: fixed; inset: 76px 0 auto 0; max-height: calc(100vh - 76px); max-height: calc(100svh - 76px); overflow-y: auto; flex-direction: column; align-items: stretch; gap: 0; background: #050c19; padding: 10px 24px 24px; transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .2s; border-bottom: 1px solid rgba(255, 255, 255, .1); }
    .hd-nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
    .hd-nav a:not(.hd-btn) { padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: 16px; }
    .hd-nav .hd-btn { margin-top: 16px; }
    .hd-header.is-open { background: rgba(5, 12, 25, .97); }
}
@media (max-width: 640px) {
    .hd-section { padding: 72px 0; }
    .hd-grid--3, .hd-row2, .hd-facts { grid-template-columns: 1fr; }
    .hd-pillars { padding-top: 48px; }
    .hd-hero__grid { padding-top: 120px; padding-bottom: 56px; }
    .hd-agencybar .hd-wrap { gap: 12px; }
    .hd-footer__grid { grid-template-columns: 1fr; gap: 32px; }
    .hd-captcha { grid-template-columns: 1fr; gap: 0; }
    .hd-contact__form { padding: 24px 20px; }
    .hd-modal .modal-header { padding: 22px 22px 0; }
    .hd-modal .modal-body { padding: 14px 22px 26px; }
    .hd-actions .hd-btn { width: 100%; }
    .hd-figure img { width: 760px; max-width: none; }
    .hd-figure__hint { display: block; }
    .hd-hero__grid { padding-top: 104px; padding-bottom: 40px; }
    .hd-hero h1 { font-size: clamp(30px, 9vw, 40px); }
    .hd-top { right: 14px; bottom: 14px; }
}
@media (max-width: 480px) {
    .hd-tags { display: none; }
}
@media (max-width: 360px) {
    .hd-wrap { padding: 0 16px; }
    .hd-brand__text { font-size: 15px; }
}
