/* Custom Styles for Premium Feel */
        body {
            background-color: #000000;
            color: #f5f5f5;
        }
        
        .hero-bg { background: #000; }

        .tech-bg {
            background-image: linear-gradient(rgba(38, 63, 79, 0.94), rgba(36, 40, 44, 0.98)), url('../images/technology-background.jpg');
            background-size: cover;
            background-position: center;
            background-attachment: fixed;
        }

        /* Scroll Animation Classes */
        .reveal {
            opacity: 1;
            transform: none;
            transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
        }
        .reveal.active {
            opacity: 1;
            transform: translateY(0);
        }

        /* Custom Scrollbar */
        ::-webkit-scrollbar {
            width: 8px;
        }
        ::-webkit-scrollbar-track {
            background: #000000;
        }
        ::-webkit-scrollbar-thumb {
            background: #3f4a51;
            border-radius: 4px;
        }
        ::-webkit-scrollbar-thumb:hover {
            background: #c3c22f;
        }

        .nav-scrolled {
            background-color: rgba(0, 0, 0, 0.95);
            backdrop-filter: blur(10px);
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }
        section[id] { scroll-margin-top: 110px; }
        .orion-brand { display: inline-flex; align-items: center; flex-shrink: 0; }
        .orion-logo { display: block; width: 190px; height: auto; object-fit: contain; }
        .orion-logo-footer { width: 170px; }
        #navbar { background-color: rgba(0, 0, 0, 0.94); }
        #technology, #about { display: block; opacity: 1; visibility: visible; }
        .section-note { max-width: 760px; margin: 24px auto 0; line-height: 1.8; color: #c5cacc; }
        .capability-panel { margin-top: 48px; padding: 32px; border: 1px solid #3f4a51; background: #24282c; }
        .capability-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 32px; }
        .capability-panel h3 { color: #fff; font-size: 1.2rem; font-weight: 600; margin-bottom: 12px; }
        .capability-panel p { color: #c5cacc; line-height: 1.75; font-size: 0.95rem; }
        @media (max-width: 767px) {
            .orion-logo { width: 150px; }
            .capability-grid { grid-template-columns: 1fr; gap: 24px; }
            .capability-panel { padding: 24px; }
        }
        @media (max-width: 767px) { .hero-bg, .tech-bg { background-attachment: scroll; } }
        @media (prefers-reduced-motion: reduce) {
            html { scroll-behavior: auto !important; }
            *, *::before, *::after { animation: none !important; transition: none !important; }
            .reveal { opacity: 1; transform: none; }
        }
        /* Hero headline: 80% of the original size at each breakpoint. */
        #home .hero-title { font-size: 2.4rem; }
        @media (min-width: 768px) { #home .hero-title { font-size: 3.6rem; } }
        @media (min-width: 1024px) { #home .hero-title { font-size: 4.8rem; } }

        /* Palette sampled from the supplied reference image. */
        :root {
            --orion-accent: #c3c22f;
            --orion-cyan: #0aadd6;
            --orion-black: #000000;
            --orion-gray: #818282;
            --orion-charcoal: #24282c;
            --orion-slate: #3f4a51;
            --orion-blue: #263f4f;
        }
        body { background: var(--orion-black); }
        .bg-orion-dark { background-color: var(--orion-black); }
        .bg-orion-gray { background-color: var(--orion-charcoal); }
        .bg-orion-accent { background-color: var(--orion-accent); color: #000 !important; }
        .bg-orion-accent .text-white { color: #000 !important; }
        .text-orion-accent { color: var(--orion-accent); }
        .text-orion-cyan { color: var(--orion-cyan); }
        .bg-orion-dark\/80 { background-color: rgba(0, 0, 0, 0.8); }
        .border-gray-800, .border-gray-700, .border-gray-600 { border-color: var(--orion-slate); }
        .text-gray-300 { color: #dbe0e2; }
        .text-gray-400 { color: #c5cacc; }
        .text-gray-500 { color: #b0b8bc; }
        .hover\:text-orion-accent:hover { color: var(--orion-accent); }
        .hover\:border-orion-accent:hover { border-color: var(--orion-accent); }
        .hover\:bg-orion-accentHover:hover { background-color: #d5d44c; }
        #products article > div:first-child { background: linear-gradient(135deg, var(--orion-blue), var(--orion-charcoal)); }
        #products article > div:first-child i { color: var(--orion-cyan); }
        #products article > div:first-child span { color: #dbe0e2; }
        #products article .p-8 > p.text-orion-accent { color: var(--orion-cyan); }
        #products article:hover { border-color: var(--orion-cyan); }
        #services { background-color: var(--orion-charcoal); }
        #contact { background-color: var(--orion-blue); }
        #contact a[href^="mailto:"]:not(.bg-orion-accent),
        #contact a[href^="tel:"], #contact a[href^="https:"] { color: var(--orion-accent); }
        #contact a[href^="mailto:"]:not(.bg-orion-accent):hover,
        #contact a[href^="tel:"]:hover, #contact a[href^="https:"]:hover { color: #f5f5f5; }
        .capability-panel h3 { color: var(--orion-accent); }
        a:focus-visible, button:focus-visible { outline: 2px solid var(--orion-cyan); outline-offset: 5px; }
        ::selection { background: var(--orion-accent); color: #000; }

        /* Product photographs retain their complete original composition. */
        #products article .product-media { display: block; background: #000; overflow: hidden; border-bottom: 1px solid var(--orion-slate); }
        #products .product-media img { display: block; width: 100%; height: auto; aspect-ratio: 1535 / 1025; object-fit: contain; }
        #products article .product-media .product-category { display: block; padding: 12px 20px; background: var(--orion-blue); color: #dbe0e2; font-size: 0.7rem; line-height: 1.5; letter-spacing: 0.12em; }
        #home h1, #home p { text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85); }

        /* The photograph and content scroll at different speeds. */
        :root { --hero-header-height: 86px; }
        #navbar { top: 0; }
        #home {
            margin-top: var(--hero-header-height);
            min-height: calc(100vh - var(--hero-header-height));
            min-height: calc(100svh - var(--hero-header-height));
            overflow: hidden;
            isolation: isolate;
        }
        #home .hero-media {
            position: absolute;
            inset: 0;
            z-index: 0;
            pointer-events: none;
            transform: translate3d(0, var(--hero-parallax-y, 0px), 0);
            will-change: transform;
        }
        #home .hero-media img {
            display: block;
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center top;
        }
        #home::before {
            content: '';
            position: absolute;
            inset: 0;
            z-index: 1;
            background: linear-gradient(rgba(0,0,0,0.18), rgba(0,0,0,0.48));
            pointer-events: none;
        }
        #home .hero-content { position: relative; z-index: 2; }
        #home .hero-scroll-indicator { z-index: 2; }
        @media (max-width: 767px) { :root { --hero-header-height: 75px; } }
        @media (prefers-reduced-motion: reduce) {
            #home .hero-media { transform: none; will-change: auto; }
        }

        /* Separate mobile/tablet edition. Original desktop file is preserved. */
        html { -webkit-text-size-adjust: 100%; }
        body { margin: 0; }
        *, *::before, *::after { box-sizing: border-box; }
        img { max-width: 100%; }
        .grid > *, .flex > * { min-width: 0; }
        .hero-photo-window { display: contents; }
        #mobile-menu[hidden] { display: none !important; }
        #mobile-menu a, #mobile-menu-btn { min-height: 48px; }
        #mobile-menu-btn { width: 48px; align-items: center; justify-content: center; border: 1px solid #3f4a51; border-radius: 3px; }
        #mobile-menu-btn[aria-expanded="true"] { color: var(--orion-accent); border-color: var(--orion-accent); }
        #mobile-menu { max-height: calc(100dvh - var(--hero-header-height)); overflow-y: auto; overscroll-behavior: contain; }
        #mobile-menu a { display: flex; align-items: center; }
        #contact a[href^="tel:"], #contact a[href^="mailto:"], #contact a[href^="https:"] { display: inline-flex; align-items: center; min-height: 48px; overflow-wrap: anywhere; }
        #products article { display: flex; flex-direction: column; }
        #products article > .p-8 { flex: 1; display: flex; flex-direction: column; }
        #products article > .p-8 > a { margin-top: auto; min-height: 48px; line-height: 1.5; }
        footer a:not(.orion-brand) { display: inline-flex; align-items: center; min-height: 44px; }
        @media (max-width: 1199px) {
            #navbar { padding: calc(12px + env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) 12px max(20px, env(safe-area-inset-left)); }
            #desktop-menu { display: none; }
            #mobile-menu-btn { display: flex; }
            #mobile-menu:not([hidden]) { display: flex; gap: 0; padding: 12px max(24px, env(safe-area-inset-left)); }
            .orion-logo { width: 156px; }
            section[id] { scroll-margin-top: calc(var(--hero-header-height) + 16px); }
            section:not(#home) { padding: 64px max(24px, env(safe-area-inset-right)) 64px max(24px, env(safe-area-inset-left)); }
            section h2 { font-size: clamp(2rem, 4.5vw, 2.8rem); line-height: 1.15; }
            section .mb-16 { margin-bottom: 36px; }
            #home { display: block; padding: 0; min-height: 0; }
            #home .hero-photo-window { display: block; position: relative; width: 100%; aspect-ratio: 1535 / 1025; max-height: 540px; overflow: hidden; }
            #home .hero-media img { object-fit: contain; object-position: center top; }
            #home::before { display: none; }
            #home .hero-content { max-width: 800px; padding: 32px 32px 56px; background: #000; }
            #home .hero-title { font-size: clamp(2.3rem, 5.5vw, 3.6rem); line-height: 1.14; margin-bottom: 24px; text-wrap: balance; }
            #home .hero-content > p { font-size: 1rem; line-height: 1.8; font-weight: 400; margin-bottom: 28px; color: #dbe0e2; text-shadow: none; }
            #home .hero-scroll-indicator { display: none; }
            #home .hero-content a { min-height: 52px; display: flex; align-items: center; justify-content: center; padding: 16px 20px; font-size: .875rem; }
            #products > div > .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
            #products article > .p-8 { padding: 24px; }
            #products article h3 { font-size: 1.5rem; line-height: 1.25; }
            #products article > .p-8 > a { font-size: .75rem; letter-spacing: .04em; }
            #services > div > .grid, #about > div > .grid { grid-template-columns: 1fr; gap: 36px; }
            #services .relative.reveal { max-width: 640px; width: 100%; margin-inline: auto; }
            #services .relative.reveal > .absolute { position: static; display: block; padding: 20px 24px; }
            #services .relative.reveal > .absolute > p:first-child { font-size: 1.5rem; }
            #technology { background-attachment: scroll; }
            #technology > div > .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
            #technology > div > .grid > div { padding: 28px 24px; }
            .capability-panel { margin-top: 28px; padding: 28px; }
            .capability-grid { grid-template-columns: 1fr; gap: 24px; }
            .capability-grid > div + div { border-top: 1px solid var(--orion-slate); padding-top: 24px; }
            #about .order-1 { order: 1; }
            #about .order-2 { order: 2; }
            #about .order-2 > div { padding: 32px; }
            #about .grid-cols-3 { gap: 16px; }
            #contact > div > .grid { grid-template-columns: 1fr; gap: 32px; }
            #contact .lg\:col-span-2 { grid-column: auto; padding: 32px; }
            #contact .space-y-8 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
            #contact .space-y-8 > div { margin: 0; }
            footer { padding: 36px 24px calc(24px + env(safe-area-inset-bottom)); }
        }
        @media (max-width: 599px) {
            section:not(#home) { padding: 48px max(20px, env(safe-area-inset-right)) 48px max(20px, env(safe-area-inset-left)); }
            #home .hero-content { padding: 28px 20px 44px; text-align: left; }
            #home .hero-title { font-size: clamp(2rem, 8.7vw, 2.6rem); }
            #home .hero-content > p { font-size: .9375rem; line-height: 1.75; }
            #home .hero-content > .flex { flex-direction: column; gap: 12px; }
            #products > div > .grid, #technology > div > .grid { grid-template-columns: 1fr; gap: 24px; }
            #products article > .p-8 { padding: 22px; }
            #products article > .p-8 > a { font-size: .75rem; }
            #products article .product-media .product-category { padding: 12px 20px; }
            .capability-panel { padding: 24px 20px; }
            #about .order-2 > div, #contact .lg\:col-span-2 { padding: 24px; }
            #about .grid-cols-3 p.font-display { font-size: 1.5rem; }
            #about .grid-cols-3 p.text-sm { font-size: .75rem; }
            #about .mt-8.flex > a { width: 100%; min-height: 48px; text-align: center; }
            #contact .space-y-8 { grid-template-columns: 1fr; }
            #contact h3.font-display { font-size: 1.65rem; line-height: 1.25; }
            #contact a.bg-orion-accent { width: 100%; justify-content: center; }
            footer > div { flex-direction: column; }
            footer .text-gray-500 { text-align: center; line-height: 1.7; }
            footer .text-gray-500 > div { justify-content: center; flex-wrap: wrap; }
        }
        @media (min-width: 1200px) { #mobile-menu-btn, #mobile-menu { display: none !important; } }
        @media (hover: none) { #home a:hover { transform: none; } }
