:root {
    --mouse-x: 0;
    --mouse-y: 0;
    --tilt-x: 0deg;
    --tilt-y: 0deg;
    --platform-ink: #000044;
    --platform-navy: #000066;
    --platform-blue: #183eeb;
    --platform-mist: #dbdfe2;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

#signal,
#advisory,
#connect {
    scroll-margin-top: 7rem;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    background:
        radial-gradient(circle at calc(50% + (var(--mouse-x) * 18%)) calc(18% + (var(--mouse-y) * 8%)), rgba(24, 62, 235, .35), transparent 34rem),
        radial-gradient(circle at 82% 66%, rgba(0, 0, 102, .9), transparent 26rem),
        linear-gradient(140deg, #010316 0%, #02051f 48%, #000044 100%);
    color: white;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -5;
    content: "";
    background-image:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-position: center;
    background-size: 72px 72px;
    mask-image: radial-gradient(circle at 50% 30%, black, transparent 70%);
}

a,
button,
input,
textarea {
    -webkit-tap-highlight-color: transparent;
}

#mena-scene {
    position: fixed;
    inset: 0;
    z-index: -3;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.page-noise {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: .2;
    background-image: url("../img/noise.png");
    mix-blend-mode: screen;
}

.aurora {
    position: fixed;
    z-index: -4;
    width: 42rem;
    height: 42rem;
    border-radius: 999px;
    filter: blur(80px);
    opacity: .38;
    pointer-events: none;
    transform: translate3d(calc(var(--mouse-x) * 3rem), calc(var(--mouse-y) * 3rem), 0);
}

.aurora-one {
    top: -12rem;
    left: -10rem;
    background: #183eeb;
}

.aurora-two {
    right: -14rem;
    bottom: 2rem;
    background: #00b7ff;
    opacity: .18;
    transform: translate3d(calc(var(--mouse-x) * -4rem), calc(var(--mouse-y) * -4rem), 0);
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 30;
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 1.15rem clamp(1.25rem, 4vw, 3rem);
    backdrop-filter: blur(18px);
}

.site-header::after {
    position: absolute;
    right: 5%;
    bottom: 0;
    left: 5%;
    height: 1px;
    content: "";
    background: linear-gradient(90deg, transparent, rgba(219, 223, 226, .28), transparent);
}

.site-header nav a,
.footer-link {
    transition: color .25s ease, transform .25s ease;
}

.site-header nav a:hover,
.footer-link:hover {
    color: white;
    transform: translateY(-1px);
}

.brand-chip,
.status-pill,
.primary-action,
.ghost-action,
.submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .7rem;
}

.brand-chip {
    position: relative;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    padding: .62rem .9rem;
    background: rgba(0, 0, 68, .42);
    color: rgba(255, 255, 255, .82);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

.brand-dot {
    width: .65rem;
    height: .65rem;
    border-radius: 999px;
    background: #183eeb;
    box-shadow: 0 0 0 .45rem rgba(24, 62, 235, .12), 0 0 1.5rem rgba(24, 62, 235, .9);
}

.hero-section {
    position: relative;
}

.hero-copy {
    perspective: 1200px;
}

.status-pill {
    width: fit-content;
    border: 1px solid rgba(219, 223, 226, .16);
    border-radius: 999px;
    padding: .75rem 1rem;
    background: linear-gradient(135deg, rgba(219, 223, 226, .12), rgba(24, 62, 235, .12));
    color: rgba(255, 255, 255, .76);
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    box-shadow: 0 1rem 5rem rgba(24, 62, 235, .14);
}

.status-pill i {
    color: #93c5fd;
}

.headline {
    max-width: 64rem;
    color: white;
    font-size: clamp(2.5rem, 5vw, 5.25rem);
    font-weight: 950;
    line-height: .92;
    letter-spacing: -.062em;
    text-wrap: balance;
    text-shadow: 0 1rem 4rem rgba(0, 0, 68, .55);
}

.hero-lede {
    text-wrap: pretty;
}

.primary-action,
.ghost-action,
.submit-button {
    min-height: 3.35rem;
    border-radius: 999px;
    padding: .95rem 1.25rem;
    font-weight: 850;
    transition: transform .25s ease, border-color .25s ease, background .25s ease, box-shadow .25s ease;
}

.primary-action,
.submit-button {
    background: linear-gradient(135deg, #dbdfe2, #80d4ff 38%, #183eeb);
    color: #000044;
    box-shadow: 0 1rem 3rem rgba(24, 62, 235, .32);
}

.ghost-action {
    border: 1px solid rgba(219, 223, 226, .18);
    background: rgba(255, 255, 255, .055);
    color: white;
}

.primary-action:hover,
.ghost-action:hover,
.submit-button:hover {
    transform: translateY(-2px);
}

.primary-action:hover,
.submit-button:hover {
    box-shadow: 0 1.25rem 4rem rgba(24, 62, 235, .42);
}

.signal-strip {
    display: flex;
    max-width: 52rem;
    flex-wrap: wrap;
    gap: .75rem;
    justify-content: center;
}

.signal-strip span {
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 999px;
    padding: .62rem .9rem;
    background: rgba(0, 0, 68, .28);
    color: rgba(255, 255, 255, .62);
    font-size: .82rem;
}

.hero-stage {
    position: relative;
    display: grid;
    width: min(92vw, 42rem);
    min-height: clamp(17rem, 26vw, 25rem);
    place-items: center;
    perspective: 1300px;
    transform-style: preserve-3d;
}

.hero-stage::before {
    position: absolute;
    inset: 14%;
    border-radius: 42% 58% 52% 48%;
    content: "";
    background: radial-gradient(circle, rgba(24, 62, 235, .38), transparent 66%);
    filter: blur(24px);
    animation: breathe 6s ease-in-out infinite;
}

.stage-orbit,
.stage-orbit-alt {
    position: absolute;
    width: 88%;
    height: 88%;
    border: 1px solid rgba(219, 223, 226, .14);
    border-radius: 34% 66% 44% 56%;
    transform: rotateX(64deg) rotateZ(calc(24deg + (var(--mouse-x) * 16deg)));
    animation: orbit 16s linear infinite;
}

.stage-orbit-alt {
    width: 68%;
    height: 68%;
    border-color: rgba(24, 62, 235, .32);
    animation-duration: 23s;
    animation-direction: reverse;
}

.hero-logo-card {
    position: relative;
    z-index: 3;
    width: clamp(18rem, 30vw, 34rem);
    border: 1px solid rgba(219, 223, 226, .14);
    border-radius: 2.25rem;
    padding: clamp(.7rem, 1.3vw, 1rem);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .025)),
        rgba(0, 0, 68, .44);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .16),
        0 2rem 8rem rgba(0, 0, 68, .8),
        0 0 5rem rgba(24, 62, 235, .28);
    transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateZ(0);
    transform-style: preserve-3d;
}

.hero-logo-card::before {
    position: absolute;
    inset: -1px;
    z-index: -1;
    border-radius: inherit;
    content: "";
    background: linear-gradient(135deg, rgba(219, 223, 226, .5), transparent 32%, rgba(24, 62, 235, .68));
    opacity: .28;
}

.logo-halo {
    position: absolute;
    inset: 18%;
    border-radius: 999px;
    background: rgba(24, 62, 235, .42);
    filter: blur(48px);
    transform: translateZ(-4rem);
}

.hero-logo {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    border-radius: 1.65rem;
}

.float-card {
    position: absolute;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    border: 1px solid rgba(219, 223, 226, .16);
    border-radius: 999px;
    padding: .72rem .9rem;
    background: rgba(3, 8, 35, .58);
    color: rgba(255, 255, 255, .78);
    font-size: .78rem;
    font-weight: 800;
    box-shadow: 0 1rem 4rem rgba(0, 0, 68, .44);
    backdrop-filter: blur(18px);
    animation: float 5s ease-in-out infinite;
}

.float-card i {
    color: #9bdcff;
}

.float-card-one {
    top: 16%;
    right: 3%;
}

.float-card-two {
    bottom: 19%;
    left: 1%;
    animation-delay: -1.6s;
}

.float-card-three {
    right: 4%;
    bottom: 12%;
    animation-delay: -2.8s;
}

.section-kicker {
    display: flex;
    align-items: center;
    gap: .8rem;
    color: rgba(219, 223, 226, .62);
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .28em;
    text-transform: uppercase;
}

.section-kicker span {
    width: 2.8rem;
    height: 1px;
    background: linear-gradient(90deg, #183eeb, transparent);
}

.manifesto-card,
.connect-panel,
.contact-card,
.insight-card,
.micro-stat {
    position: relative;
    border: 1px solid rgba(219, 223, 226, .12);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .028)),
        rgba(0, 0, 68, .34);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 1.8rem 7rem rgba(0, 0, 68, .42);
    backdrop-filter: blur(24px);
}

.manifesto-card {
    min-height: 30rem;
    overflow: hidden;
    border-radius: 2.25rem;
    padding: clamp(1.5rem, 5vw, 4rem);
}

.manifesto-card::after {
    position: absolute;
    right: -6rem;
    bottom: -10rem;
    width: 27rem;
    height: 27rem;
    border-radius: 38% 62% 50% 50%;
    content: "";
    background: radial-gradient(circle, rgba(24, 62, 235, .52), transparent 66%);
    filter: blur(24px);
}

.manifesto-grid {
    position: absolute;
    inset: 0;
    opacity: .2;
    background:
        linear-gradient(30deg, transparent 39%, rgba(219,223,226,.22) 40%, transparent 41%),
        linear-gradient(150deg, transparent 39%, rgba(24,62,235,.34) 40%, transparent 41%);
    background-size: 82px 82px;
    mask-image: linear-gradient(90deg, black, transparent 82%);
}

.insight-stack {
    display: grid;
    gap: 1rem;
}

.insight-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    border-radius: 1.6rem;
    padding: 1.35rem;
}

.insight-card i {
    display: grid;
    width: 3rem;
    height: 3rem;
    place-items: center;
    border-radius: 1rem;
    background: rgba(24, 62, 235, .2);
    color: #a4e6ff;
}

.insight-card h3 {
    font-size: 1rem;
    font-weight: 900;
}

.insight-card p {
    margin-top: .25rem;
    color: rgba(255, 255, 255, .56);
    font-size: .92rem;
    line-height: 1.65;
}

.gallery-grid {
    display: grid;
    grid-auto-rows: 17rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.image-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 1.65rem;
    background: #000044;
    box-shadow: 0 1.2rem 5rem rgba(0, 0, 68, .36);
    transform-style: preserve-3d;
}

.image-card-large {
    grid-column: span 2;
    grid-row: span 2;
}

.image-card-tall {
    grid-row: span 2;
}

.image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(.94) contrast(1.04);
    transform: scale(1.04);
    transition: transform .8s ease, filter .8s ease;
}

.image-card::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, transparent 32%, rgba(0, 0, 68, .86));
}

.image-card:hover img {
    filter: saturate(1.1) contrast(1.1);
    transform: scale(1.1);
}

.image-card div {
    position: absolute;
    right: 1.15rem;
    bottom: 1.1rem;
    left: 1.15rem;
    z-index: 2;
}

.image-card span {
    color: rgba(219, 223, 226, .55);
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .24em;
}

.image-card h3 {
    margin-top: .35rem;
    max-width: 16rem;
    color: white;
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: -.02em;
}

.connect-panel {
    overflow: hidden;
    border-radius: 2.25rem;
    padding: clamp(1.25rem, 5vw, 3rem);
}

.connect-panel::before {
    position: absolute;
    top: -10rem;
    right: -5rem;
    width: 32rem;
    height: 32rem;
    border-radius: 999px;
    content: "";
    background: radial-gradient(circle, rgba(24, 62, 235, .44), transparent 66%);
    filter: blur(24px);
}

.micro-stat {
    border-radius: 1.3rem;
    padding: 1rem;
}

.micro-stat strong {
    display: block;
    color: #dff4ff;
    font-size: 1.6rem;
    font-weight: 950;
    letter-spacing: -.05em;
}

.micro-stat span {
    display: block;
    margin-top: .35rem;
    color: rgba(255, 255, 255, .55);
    font-size: .85rem;
    line-height: 1.5;
}

.contact-card {
    display: grid;
    gap: 1rem;
    border-radius: 1.8rem;
    padding: clamp(1rem, 3vw, 1.5rem);
}

.contact-card label {
    display: grid;
    gap: .45rem;
}

.contact-card label span {
    color: rgba(255, 255, 255, .62);
    font-size: .8rem;
    font-weight: 800;
}

.contact-card input,
.contact-card textarea {
    width: 100%;
    border: 1px solid rgba(219, 223, 226, .13);
    border-radius: 1rem;
    background: rgba(1, 3, 22, .52);
    padding: .95rem 1rem;
    color: white;
    outline: none;
    transition: border-color .25s ease, background .25s ease, box-shadow .25s ease;
}

.contact-card textarea {
    resize: vertical;
}

.contact-card input::placeholder,
.contact-card textarea::placeholder {
    color: rgba(219, 223, 226, .34);
}

.contact-card input:focus,
.contact-card textarea:focus {
    border-color: rgba(147, 197, 253, .75);
    background: rgba(1, 3, 22, .72);
    box-shadow: 0 0 0 .24rem rgba(24, 62, 235, .16);
}

.submit-button {
    width: 100%;
    border: 0;
    cursor: pointer;
}

.submit-button:disabled {
    cursor: wait;
    opacity: .72;
}

.form-status {
    min-height: 1.4rem;
    color: rgba(219, 223, 226, .72);
    font-size: .88rem;
    line-height: 1.5;
}

.form-status.is-success {
    color: #9bf3d0;
}

.form-status.is-error {
    color: #ffc7d1;
}

.site-footer {
    position: relative;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
}

.tilt-card,
.magnetic {
    will-change: transform;
}

@keyframes orbit {
    to {
        transform: rotateX(64deg) rotateZ(calc(384deg + (var(--mouse-x) * 16deg)));
    }
}

@keyframes float {
    0%,
    100% {
        transform: translate3d(0, 0, 2rem);
    }

    50% {
        transform: translate3d(0, -.75rem, 2rem);
    }
}

@keyframes breathe {
    0%,
    100% {
        transform: scale(.9) rotate(0deg);
        opacity: .56;
    }

    50% {
        transform: scale(1.08) rotate(12deg);
        opacity: .88;
    }
}

@media (max-width: 840px) {
    .gallery-grid {
        grid-auto-rows: 15rem;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .image-card-large,
    .image-card-tall {
        grid-column: span 2;
        grid-row: span 1;
    }
}

@media (max-width: 640px) {
    .site-header {
        padding-inline: 1rem;
    }

    .hero-stage {
        min-height: 25rem;
    }

    .hero-logo-card {
        width: min(86vw, 24rem);
        border-radius: 1.4rem;
    }

    .hero-logo {
        border-radius: 1rem;
    }

    .float-card {
        display: none;
    }

    .headline {
        font-size: clamp(3rem, 16vw, 4.4rem);
    }

    .gallery-grid {
        display: block;
    }

    .image-card {
        height: 17rem;
        margin-bottom: 1rem;
    }
}

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