*,
        *::before,
        *::after {
            box-sizing: border-box;
        }

        html {
            margin: 0;
            padding: 0;
            scroll-behavior: smooth;
        }

        body {
            margin: 0;
            padding: 0;
            overflow-x: hidden;
            font-family: 'Montserrat', sans-serif;
        }

        /* ── Sidebar (desktop) + mobile header ── */
        #hae-sidebar {
            position: fixed;
            top: 0;
            left: 0;
            width: 72px;
            height: 100vh;
            background: white;
            border-right: 1px solid #e3e2e8;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: space-between;
            padding: 1.75rem 0;
            z-index: 40;
            overflow: visible;
            box-shadow: 2px 0 12px rgba(32, 39, 89, 0.06);
        }

        #hae-sidebar::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: #00aeef;
        }

        /* Main starts at sidebar edge on desktop */
        #hae-main {
            margin-left: 72px;
        }

        /* Mobile header: shell.css */

        .vtext {
            writing-mode: vertical-rl;
            transform: rotate(180deg);
            white-space: nowrap;
            line-height: 1;
        }

        /* ── Nav dots ── */
        .nav-tip {
            position: absolute;
            left: calc(100% + 14px);
            top: 50%;
            background: #0d1428;
            color: white;
            font-size: 8px;
            font-weight: 800;
            letter-spacing: 0.15em;
            text-transform: uppercase;
            padding: 5px 10px;
            border-radius: 4px;
            white-space: nowrap;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.2s ease, transform 0.2s ease;
            transform: translateY(-50%) translateX(-6px);
        }

        .nav-tip::before {
            content: '';
            position: absolute;
            right: 100%;
            top: 50%;
            transform: translateY(-50%);
            border: 5px solid transparent;
            border-right-color: #0d1428;
        }

        .nav-dot-wrap:hover .nav-tip {
            opacity: 1;
            transform: translateY(-50%) translateX(0);
        }

        .nav-dot-wrap {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 28px;
            height: 28px;
            cursor: pointer;
            text-decoration: none;
        }

        .nav-dot {
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: #e3e2e8;
            transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

        .nav-dot-wrap:hover .nav-dot {
            background: #00aeef;
            width: 8px;
            height: 8px;
        }

        .nav-dot.active {
            background: #00aeef !important;
            width: 10px !important;
            height: 10px !important;
        }

        /* ── Hamburger ── */
        .ham-btn {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 4px;
            width: 34px;
            height: 34px;
            cursor: pointer;
            border-radius: 8px;
            border: none;
            background: transparent;
            padding: 0;
            outline: none;
            appearance: none;
            transition: background 0.2s;
            flex-shrink: 0;
        }

        .ham-btn:hover {
            background: rgba(76, 161, 231, 0.08);
        }

        .ham-btn span {
            display: block;
            width: 17px;
            height: 1.5px;
            background: #21356A;
            border-radius: 2px;
            transition: all 0.32s cubic-bezier(0.4, 0, 0.2, 1);
            transform-origin: center;
            pointer-events: none;
        }

        .ham-btn.is-open span:nth-child(1) {
            transform: translateY(5.5px) rotate(45deg);
            background: #4CA1E7;
        }

        .ham-btn.is-open span:nth-child(2) {
            opacity: 0;
            transform: scaleX(0);
        }

        .ham-btn.is-open span:nth-child(3) {
            transform: translateY(-5.5px) rotate(-45deg);
            background: #4CA1E7;
        }

        /* ── Mega Menu (shared with home) ── */
        #mega-menu {
            position: fixed;
            top: 0;
            left: 72px;
            width: 300px;
            max-width: calc(100vw - 72px);
            min-width: 0;
            height: 100vh;
            background: #0d1428;
            z-index: 10050;
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            text-align: left;
            padding: 2rem 1.75rem;
            transform: translateX(calc(-100% - 72px));
            transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1);
            box-shadow: 6px 0 36px rgba(0, 0, 0, 0.28);
            overflow-y: auto;
            overflow-x: hidden;
        }

        #mega-menu.is-open {
            transform: translateX(0);
        }

        #mega-menu>* {
            width: 100%;
            box-sizing: border-box;
            min-width: 0;
        }

        #menu-bd {
            position: fixed;
            inset: 0;
            background: rgba(10, 15, 40, 0.5);
            backdrop-filter: blur(4px);
            -webkit-backdrop-filter: blur(4px);
            z-index: 10040;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.32s ease;
        }

        #menu-bd.is-open {
            opacity: 1;
            pointer-events: all;
        }

        #mega-menu .m-cat {
            font-size: 9px;
            font-weight: 800;
            letter-spacing: 0.3em;
            text-transform: uppercase;
            color: rgba(255, 255, 255, 0.28);
            margin: 0 0 0.6rem 0;
            text-align: left;
        }

        .m-cat+.m-cat {
            margin-top: 1.5rem;
        }

        /* m-link spacing: shell.css */

        #mega-menu .m-link.m-link-child {
            padding-left: 1.85rem;
            font-size: 0.8rem;
            color: rgba(255, 255, 255, 0.52);
        }

        #mega-menu .m-link.m-link-child .m-icon {
            width: 26px;
            height: 26px;
            font-size: 0.78rem;
        }

        /* m-link-current: shell.css */

        #mega-menu .m-link.m-link-current .m-icon {
            background: #4CA1E7;
            color: #fff;
        }

        #mega-menu .m-link.m-link-current .m-arrow {
            color: #4CA1E7;
            opacity: 1;
        }

        .m-link:hover {
            color: #4CA1E7;
        }

        .m-link:hover .m-icon {
            background: #4CA1E7;
            color: white;
        }

        .m-link.m-link-current:hover .m-icon {
            background: #4CA1E7;
            color: #fff;
        }

        .m-icon {
            width: 30px;
            height: 30px;
            border-radius: 7px;
            background: rgba(255, 255, 255, 0.06);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.9rem;
            color: #4CA1E7;
            flex-shrink: 0;
            transition: all 0.18s;
        }

        .m-arrow {
            justify-self: end;
            font-size: 0.7rem;
            color: rgba(255, 255, 255, 0.18);
            transition: all 0.18s;
        }

        .m-link:hover .m-arrow {
            color: #4CA1E7;
            transform: translateX(3px);
        }

        .m-social {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            border: 1px solid rgba(255, 255, 255, 0.14);
            display: flex;
            align-items: center;
            justify-content: center;
            color: rgba(255, 255, 255, 0.45);
            font-size: 0.85rem;
            text-decoration: none;
            transition: all 0.2s;
        }

        .m-social:hover {
            background: #4CA1E7;
            border-color: #4CA1E7;
            color: white;
            transform: translateY(-2px);
        }

        @keyframes slideInL {
            from {
                opacity: 0;
                transform: translateX(-14px);
            }

            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        #mega-menu.is-open .m-anim {
            animation: slideInL 0.38s cubic-bezier(0.16, 1, 0.3, 1) both;
        }

        #mega-menu.is-open .m-anim:nth-child(1) {
            animation-delay: 40ms;
        }

        #mega-menu.is-open .m-anim:nth-child(2) {
            animation-delay: 55ms;
        }

        #mega-menu.is-open .m-anim:nth-child(3) {
            animation-delay: 75ms;
        }

        #mega-menu.is-open .m-anim:nth-child(4) {
            animation-delay: 100ms;
        }

        #mega-menu.is-open .m-anim:nth-child(5) {
            animation-delay: 125ms;
        }

        #mega-menu.is-open .m-anim:nth-child(6) {
            animation-delay: 150ms;
        }

        #mega-menu.is-open .m-anim:nth-child(7) {
            animation-delay: 175ms;
        }

        #mega-menu.is-open .m-anim:nth-child(8) {
            animation-delay: 200ms;
        }

        #mega-menu.is-open .m-anim:nth-child(9) {
            animation-delay: 225ms;
        }

        #mega-menu.is-open .m-anim:nth-child(10) {
            animation-delay: 250ms;
        }

        #mega-menu.is-open .m-anim:nth-child(11) {
            animation-delay: 275ms;
        }

        #mega-menu.is-open .m-anim:nth-child(12) {
            animation-delay: 300ms;
        }

        #mega-menu.is-open .m-anim:nth-child(13) {
            animation-delay: 325ms;
        }

        #mega-menu.is-open .m-anim:nth-child(14) {
            animation-delay: 350ms;
        }

        /* ── Animations ── */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(28px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes slowZoom {
            from {
                transform: scale(1);
            }

            to {
                transform: scale(1.07);
            }
        }

        .au {
            opacity: 0;
            animation: fadeInUp 0.78s cubic-bezier(0.16, 1, 0.3, 1) forwards;
        }

        .abz {
            animation: slowZoom 24s ease-in-out infinite alternate;
        }

        .d1 {
            animation-delay: 100ms;
        }

        .d3 {
            animation-delay: 300ms;
        }

        .d5 {
            animation-delay: 500ms;
        }

        .d7 {
            animation-delay: 700ms;
        }

        .anim-fade-up {
            opacity: 0;
            animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
        }

        .delay-50 {
            animation-delay: 50ms;
        }

        .delay-100 {
            animation-delay: 100ms;
        }

        .delay-250 {
            animation-delay: 250ms;
        }

        .delay-300 {
            animation-delay: 300ms;
        }

        .delay-350 {
            animation-delay: 350ms;
        }

        .delay-500 {
            animation-delay: 500ms;
        }

        /* ── Hero dots ── */
        .hero-dot {
            width: 4px;
            border-radius: 3px;
            cursor: pointer;
            transition: height 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.5s ease;
        }

        .hero-dot.active {
            height: 32px;
            background-color: white;
        }

        .hero-dot.inactive {
            height: 16px;
            background-color: rgba(255, 255, 255, 0.3);
        }

        .hero-dot.inactive:hover {
            background-color: rgba(255, 255, 255, 0.6);
        }

        /* Contact hero: deep navy gradient over photo (left-heavy, fades right — matches project/about hero tone) */
        #contact-hero .contact-hero-overlay {
            position: absolute;
            inset: 0;
            z-index: 1;
            pointer-events: none;
            background:
                linear-gradient(to bottom, rgba(7, 18, 40, 0.55) 0%, transparent 38%, transparent 58%, rgba(7, 18, 40, 0.82) 100%),
                linear-gradient(105deg, rgba(13, 20, 40, 0.97) 0%, rgba(13, 20, 40, 0.82) 32%, rgba(22, 40, 72, 0.42) 58%, rgba(13, 20, 40, 0.12) 82%, transparent 100%);
        }

        /* Find Us column: deep navy gradients (matches contact hero / project hero) */
        #contact-details .contact-info-panel {
            flex: 0 0 min(460px, 100%);
            padding: 5rem 2.75rem 5rem 2rem;
            display: flex;
            flex-direction: column;
            justify-content: center;
            position: relative;
            overflow: hidden;
            background:
                radial-gradient(ellipse 95% 75% at 100% 100%, rgba(37, 64, 143, 0.38) 0%, transparent 52%),
                radial-gradient(circle at 88% 8%, rgba(0, 174, 239, 0.07) 0%, transparent 42%),
                linear-gradient(165deg, #060d1c 0%, #0d1428 22%, #162848 48%, #0c162e 74%, #070f1d 100%);
        }

        /* Scroll indicator (animated bar) */
        @keyframes scrollIndicatorBounce {

            0%,
            100% {
                opacity: 0.3;
                transform: translateY(0);
            }

            50% {
                opacity: 1;
                transform: translateY(8px);
            }
        }

        .scroll-indicator-bar {
            animation: scrollIndicatorBounce 1.5s ease-in-out infinite;
        }

        /* ── Contact detail cards ── */
        .detail-card {
            background: white;
            border-radius: 1.5rem;
            padding: 1.75rem 2rem;
            border: 1px solid #e3e2e8;
            display: flex;
            align-items: flex-start;
            gap: 1.25rem;
            transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease, border-color 0.25s;
        }

        .detail-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 16px 40px rgba(32, 39, 89, 0.1);
            border-color: #00aeef;
        }

        .detail-icon {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            border: 2px solid #e3e2e8;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            transition: background 0.35s, border-color 0.35s;
        }

        .detail-card:hover .detail-icon {
            background: #00aeef;
            border-color: #00aeef;
        }

        .detail-card:hover .detail-icon i {
            color: white !important;
        }

        /* ── Form styles (match home contact section) ── */
        .contact-input {
            background: transparent;
            border: none;
            border-bottom: 2px solid rgba(32, 39, 89, 0.2);
            outline: none;
            color: #202759;
            padding: 0.7rem 0 0.65rem;
            width: 100%;
            font-family: 'Montserrat', sans-serif;
            font-weight: 600;
            font-size: 0.9375rem;
            transition: border-color 0.25s ease, box-shadow 0.25s ease;
        }

        .contact-input::placeholder {
            color: rgba(32, 39, 89, 0.55);
            font-weight: 600;
        }

        .contact-input:hover {
            border-bottom-color: rgba(32, 39, 89, 0.35);
        }

        .contact-input:focus {
            border-bottom-color: #202759;
            box-shadow: 0 2px 0 0 #202759;
        }

        select.contact-input {
            cursor: pointer;
            appearance: none;
            padding-right: 1.75rem;
        }

        textarea.contact-input {
            min-height: 100px;
            resize: none;
        }

        .form-label {
            font-size: 11px;
            font-weight: 800;
            letter-spacing: 0.16em;
            text-transform: uppercase;
            color: rgba(32, 39, 89, 0.62);
            display: block;
            margin-bottom: 0.4rem;
        }

        /* Form panel on cyan background — dark text for contrast */
        .contact-form-panel .form-label {
            color: #202759;
            font-weight: 800;
        }

        .contact-form-panel .contact-input {
            color: #202759;
            background: rgba(255, 255, 255, 0.95);
            border: 1px solid rgba(32, 39, 89, 0.12);
            border-radius: 8px;
            padding: 0.75rem 1rem;
            border-bottom: 2px solid rgba(32, 39, 89, 0.2);
        }

        .contact-form-panel .contact-input::placeholder {
            color: rgba(32, 39, 89, 0.58);
            font-weight: 600;
        }

        .contact-form-panel .contact-input:hover {
            border-bottom-color: rgba(32, 39, 89, 0.4);
        }

        .contact-form-panel .contact-input:focus {
            border-bottom-color: #202759;
            box-shadow: 0 2px 0 0 #202759;
            outline: none;
        }

        .contact-form-panel .submit-btn {
            background: #202759;
            color: white;
            box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
        }

        .contact-form-panel .submit-btn:hover {
            background: #25408f;
            color: white;
        }

        .contact-form-panel .contact-form-panel-caret {
            color: #202759 !important;
        }

        .submit-btn {
            background: #202759;
            color: white;
            border: none;
            font-family: 'Montserrat', sans-serif;
            font-weight: 800;
            font-size: 0.75rem;
            letter-spacing: 0.14em;
            text-transform: uppercase;
            padding: 1.05rem 2.25rem;
            border-radius: 10px;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
            box-shadow: 0 6px 24px rgba(32, 39, 89, 0.3);
        }

        .submit-btn:hover {
            background: #25408f;
            transform: translateY(-3px);
            box-shadow: 0 12px 32px rgba(32, 39, 89, 0.4);
        }

        .submit-btn:active {
            transform: translateY(-1px);
        }

        /* ── Form success ── */
        #form-success {
            display: none;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
            gap: 1rem;
            min-height: 280px;
            position: relative;
            z-index: 1;
        }

        /* ── Map pin label ── */
        .map-label {
            position: absolute;
            bottom: 2rem;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            align-items: center;
            gap: 0.75rem;
            background: white;
            padding: 0.85rem 1.5rem;
            border-radius: 1rem;
            box-shadow: 0 8px 32px rgba(32, 39, 89, 0.18);
            pointer-events: none;
            white-space: nowrap;
        }

        section[id] {
            scroll-margin-top: 0;
        }

        @media (max-width: 767px) {
            #hae-sidebar {
                display: none;
            }

            #hae-main {
                margin-left: 0 !important;
                width: 100% !important;
                max-width: 100% !important;
                overflow-x: clip;
            }

            #contact-hero,
            #contact-details {
                width: 100% !important;
                max-width: 100% !important;
                overflow-x: clip;
            }

            #contact-details .contact-info-panel,
            #contact-details .contact-form-panel {
                flex: 1 1 100% !important;
                min-width: 0 !important;
                max-width: 100% !important;
            }

            #mega-menu {
                left: 0;
                max-width: 100vw;
                width: min(300px, 100vw);
                transform: translateX(-100%);
            }

            #mega-menu.is-open {
                transform: translateX(0);
            }
        }
