:root {
    --motion-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --motion-snap: cubic-bezier(0.34, 1.56, 0.64, 1);
    --motion-enter: 760ms;
    --motion-hover: 280ms;
}

.scroll-progress {
    position: fixed;
    z-index: 200;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    pointer-events: none;
}

.scroll-progress span {
    height: 100%;
    display: block;
    background: linear-gradient(90deg, #0a7c6e, #2d9dff 58%, #86e7dc);
    box-shadow: 0 0 16px rgba(45, 157, 255, 0.65);
    transform: scaleX(var(--page-progress, 0));
    transform-origin: left center;
    will-change: transform;
}

.site-header,
.header-inner,
.brand img {
    transition: min-height var(--motion-hover) var(--motion-ease),
                padding var(--motion-hover) var(--motion-ease),
                width var(--motion-hover) var(--motion-ease),
                box-shadow var(--motion-hover) ease,
                background var(--motion-hover) ease;
}

.site-header.is-condensed {
    background: rgba(255, 255, 255, 0.985);
    box-shadow: 0 10px 32px rgba(11, 37, 69, 0.11);
}

.site-header.is-condensed .header-inner {
    min-height: 68px;
    padding-top: 9px;
    padding-bottom: 9px;
}

.site-header.is-condensed .brand img {
    width: clamp(176px, 14vw, 225px);
}

.btn,
.btn-outline,
.btn-ghost {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.btn::after,
.btn-outline::after,
.btn-ghost::after {
    content: "";
    position: absolute;
    z-index: -1;
    top: -80%;
    bottom: -80%;
    left: -45%;
    width: 28%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.38), transparent);
    transform: translateX(-220%) rotate(14deg);
    transition: transform 620ms var(--motion-ease);
}

.btn:hover::after,
.btn-outline:hover::after,
.btn-ghost:hover::after {
    transform: translateX(650%) rotate(14deg);
}

.section-header,
.section-head {
    position: relative;
}

.section-header::after,
.section-head::after {
    content: "";
    width: 74px;
    height: 2px;
    margin-top: 24px;
    display: block;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent, #1a6ed8), #61d4c7);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 900ms 180ms var(--motion-ease);
}

.section-header.is-visible::after,
.section-head.is-visible::after {
    transform: scaleX(1);
}

.motion-enabled:not(.motion-fallback) :is(
    .section-header,
    .section-head,
    .about-grid > *,
    .about-card,
    .reseller-grid > *,
    .service-directory > *,
    .service-slider-shell,
    .coverage-card,
    .project-card,
    .client-item,
    .contact-grid > *,
    .proof-item,
    .capability-card,
    .split-grid > *,
    .check-list li,
    .process-card,
    .case-card,
    .faq-layout > *,
    .related-panel,
    .cta-panel,
    .footer-grid > *
):not(.is-visible) {
    opacity: 0;
    transform: translate3d(0, 34px, 0) scale(0.985);
}

.motion-reveal {
    transition: opacity var(--motion-enter) var(--motion-ease),
                transform var(--motion-enter) var(--motion-ease),
                filter var(--motion-enter) var(--motion-ease);
    transition-delay: var(--motion-delay, 0ms);
    will-change: opacity, transform;
}

.motion-reveal[data-motion="left"]:not(.is-visible) {
    transform: translate3d(-46px, 0, 0);
}

.motion-reveal[data-motion="right"]:not(.is-visible) {
    transform: translate3d(46px, 0, 0);
}

.motion-reveal[data-motion="drop"]:not(.is-visible) {
    transform: translate3d(0, -34px, 0);
}

.motion-reveal[data-motion="zoom"]:not(.is-visible) {
    transform: scale(0.91);
    filter: blur(7px);
}

.motion-reveal.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
}

.motion-enabled .hero-eyebrow,
.motion-enabled .landing-hero .breadcrumbs {
    animation: motion-rise 680ms 80ms var(--motion-ease) both;
}

.motion-enabled .hero h1,
.motion-enabled .landing-hero .eyebrow {
    animation: motion-rise 780ms 150ms var(--motion-ease) both;
}

.motion-enabled .hero-lead,
.motion-enabled .landing-hero h1 {
    animation: motion-rise 820ms 230ms var(--motion-ease) both;
}

.motion-enabled .hero-actions,
.motion-enabled .landing-hero .hero-lead {
    animation: motion-rise 820ms 320ms var(--motion-ease) both;
}

.motion-enabled .hero-stats,
.motion-enabled .landing-hero .hero-actions {
    animation: motion-rise 850ms 410ms var(--motion-ease) both;
}

.motion-enabled .hero-visual,
.motion-enabled .landing-hero .hero-visual {
    animation: motion-zoom 1100ms 180ms var(--motion-ease) both;
}

.hero-frame,
.hero-image-wrap {
    transform: translate3d(0, var(--hero-shift, 0px), 0);
    will-change: transform;
}

.hero-frame::before,
.hero-image-wrap::before {
    content: "";
    position: absolute;
    z-index: 4;
    top: 0;
    left: -42%;
    width: 42%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #7fe3d7, #73b7ff, transparent);
    filter: drop-shadow(0 0 7px rgba(115, 183, 255, 0.85));
    animation: frame-scan 5.6s 1.2s var(--motion-ease) infinite;
    pointer-events: none;
}

.hero-photo,
.hero-image-wrap img {
    transform: scale(1.045);
    transition: transform 1.2s var(--motion-ease);
}

.hero-frame:hover .hero-photo,
.hero-image-wrap:hover img {
    transform: scale(1.085);
}

:is(.about-card, .coverage-card, .capability-card, .process-card, .case-card, .project-card, .proof-item) {
    transition: transform var(--motion-hover) var(--motion-ease),
                box-shadow var(--motion-hover) ease,
                border-color var(--motion-hover) ease,
                background var(--motion-hover) ease;
}

:is(.about-card, .coverage-card, .capability-card, .process-card, .case-card, .project-card):hover {
    transform: translateY(-7px);
}

.project-card,
.case-card,
.service-slide-media {
    overflow: hidden;
}

.project-card img,
.case-card img,
.service-slide-media img {
    transition: transform 850ms var(--motion-ease), filter 600ms ease;
}

.project-card:hover img,
.case-card:hover img,
.service-slide.is-visible .service-slide-media:hover img {
    transform: scale(1.065);
    filter: saturate(1.08) contrast(1.03);
}

.service-slide.is-visible .service-slide-media {
    animation: service-image-in 720ms var(--motion-ease) both;
}

.service-slide.is-visible .service-slide-body > * {
    animation: motion-rise 620ms var(--motion-ease) both;
}

.service-slide.is-visible .service-slide-body > *:nth-child(2) { animation-delay: 70ms; }
.service-slide.is-visible .service-slide-body > *:nth-child(3) { animation-delay: 130ms; }
.service-slide.is-visible .service-slide-body > *:nth-child(4) { animation-delay: 190ms; }

.client-item {
    position: relative;
    overflow: hidden;
}

.client-item::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #69d8ca, transparent);
    transform: scaleX(0);
    transition: transform 440ms var(--motion-ease);
}

.client-item:hover::after {
    transform: scaleX(1);
}

.faq-list details[open] summary {
    animation: faq-highlight 360ms ease both;
}

.faq-list details[open] p {
    animation: faq-copy-in 460ms var(--motion-ease) both;
}

.faq-list details summary::after {
    transition: transform 320ms var(--motion-snap), background 240ms ease;
}

.faq-list details[open] summary::after {
    transform: rotate(180deg);
}

.singapore-motion {
    --globe-scale: 0.82;
    --globe-opacity: 1;
    --intro-opacity: 1;
    --focus-opacity: 0;
    --focus-shift: 28px;
    --focus-scale: 0.94;
    --intro-shift: 0px;
    --marker-opacity: 1;
    --route-offset: 1;
    --grid-shift: 0px;
    position: relative;
    height: 225vh;
    min-height: 1500px;
    background: #06182f;
    color: #fff;
}

.singapore-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    min-height: 650px;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 50%, rgba(23, 104, 178, 0.2), transparent 37%),
        linear-gradient(145deg, #041326 0%, #092746 58%, #0a3152 100%);
}

.singapore-sticky::before {
    content: "";
    position: absolute;
    inset: -30%;
    opacity: 0.18;
    background-image:
        linear-gradient(rgba(129, 196, 255, 0.16) 1px, transparent 1px),
        linear-gradient(90deg, rgba(129, 196, 255, 0.16) 1px, transparent 1px);
    background-position: var(--grid-shift) var(--grid-shift);
    background-size: 52px 52px;
    transform: perspective(700px) rotateX(58deg) translateY(28%);
    mask-image: radial-gradient(circle, #000 0%, transparent 66%);
}

.singapore-sticky::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(3, 14, 29, 0.36), transparent 24%, transparent 76%, rgba(3, 14, 29, 0.55));
}

.singapore-intro {
    position: absolute;
    z-index: 4;
    top: clamp(80px, 12vh, 130px);
    left: max(5vw, calc((100vw - 1260px) / 2));
    max-width: 520px;
    opacity: var(--intro-opacity);
    transform: translate3d(0, var(--intro-shift), 0);
    will-change: opacity, transform;
}

.singapore-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #88c8ff;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.singapore-kicker::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #65d7c9;
    box-shadow: 0 0 0 6px rgba(101, 215, 201, 0.12), 0 0 18px rgba(101, 215, 201, 0.7);
}

.singapore-intro h2 {
    max-width: 12ch;
    margin-top: 18px;
    font-family: var(--font-display, "DM Serif Display", Georgia, serif);
    font-size: clamp(2.5rem, 5.2vw, 5rem);
    font-weight: 400;
    line-height: 0.98;
    letter-spacing: -0.035em;
}

.singapore-intro p:last-of-type {
    max-width: 50ch;
    margin-top: 22px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 1rem;
}

.globe-stage {
    --globe-size: min(76vw, 760px);
    position: absolute;
    z-index: 2;
    inset: 0;
}

.globe-shell {
    position: absolute;
    top: 38%;
    left: 39%;
    width: var(--globe-size);
    aspect-ratio: 1;
    opacity: var(--globe-opacity);
    filter: drop-shadow(0 0 45px rgba(34, 164, 235, 0.28));
    transform: translate(-50%, -50%) scale(var(--globe-scale));
    transform-origin: 69.5% 64.1%;
    will-change: transform, opacity;
}

.singapore-globe {
    width: 100%;
    height: 100%;
    display: block;
}

.earth-grid {
    fill: none;
    stroke: rgba(137, 207, 255, 0.2);
    stroke-width: 2;
}

.earth-map {
    opacity: 0.94;
}

.earth-node {
    fill: #7fe3d7;
    filter: url(#earthGlow);
}

.earth-link {
    fill: none;
    stroke: rgba(94, 199, 232, 0.35);
    stroke-width: 2;
    stroke-dasharray: 7 10;
}

.earth-route {
    fill: none;
    stroke: url(#routeGradient);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 1;
    stroke-dashoffset: var(--route-offset);
    filter: url(#earthGlow);
}

.marker-core {
    fill: #fff;
    filter: url(#earthGlow);
}

.marker-ring {
    fill: none;
    stroke: #69e1d2;
    stroke-width: 3;
    transform-origin: 695.1px 641.2px;
    animation: marker-pulse 2.4s ease-out infinite;
}

.marker-label {
    fill: #fff;
    font-family: var(--font-body, "DM Sans", sans-serif);
    font-size: 21px;
    font-weight: 700;
    letter-spacing: 0.09em;
}

.singapore-marker {
    opacity: var(--marker-opacity);
}

.singapore-focus {
    position: absolute;
    z-index: 5;
    top: 50%;
    left: 50%;
    width: min(620px, calc(100% - 48px));
    opacity: var(--focus-opacity);
    pointer-events: none;
    transform: translate(-50%, calc(-50% + var(--focus-shift))) scale(var(--focus-scale));
    will-change: opacity, transform;
}

.singapore-motion.is-focused .singapore-focus {
    pointer-events: auto;
}

.singapore-focus-card {
    position: relative;
    overflow: hidden;
    padding: clamp(28px, 5vw, 48px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 28px;
    background: rgba(5, 24, 46, 0.78);
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.36);
    backdrop-filter: blur(18px);
}

.singapore-focus-card::before {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    top: -150px;
    right: -100px;
    border: 48px solid rgba(48, 156, 238, 0.13);
    border-radius: 50%;
}

.singapore-coordinate {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: #8cc9ff;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.singapore-coordinate span:last-child {
    color: #72dfd2;
}

.singapore-focus h3 {
    margin-top: 18px;
    font-family: var(--font-display, "DM Serif Display", Georgia, serif);
    font-size: clamp(2.45rem, 6vw, 4.5rem);
    font-weight: 400;
    line-height: 0.98;
    letter-spacing: -0.035em;
}

.singapore-focus-copy {
    max-width: 48ch;
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.72);
}

.singapore-focus-grid {
    margin-top: 28px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 9px;
}

.singapore-focus-grid span {
    padding: 12px 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.76rem;
    font-weight: 700;
    text-align: center;
}

.singapore-focus-actions {
    margin-top: 26px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.singapore-focus-actions a {
    min-height: 44px;
    padding: 10px 17px;
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 9px;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    transition: transform 220ms var(--motion-ease), background 220ms ease, border-color 220ms ease;
}

.singapore-focus-actions a:first-child {
    border-color: #2c8ee9;
    background: #1a6ed8;
}

.singapore-focus-actions a:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.12);
}

.singapore-scroll-cue {
    position: absolute;
    z-index: 4;
    bottom: 26px;
    left: 50%;
    display: grid;
    justify-items: center;
    gap: 8px;
    opacity: var(--intro-opacity);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transform: translateX(-50%);
}

.singapore-scroll-cue::after {
    content: "";
    width: 1px;
    height: 34px;
    background: linear-gradient(#69dfd1, transparent);
    animation: scroll-cue 1.8s ease-in-out infinite;
}

@keyframes motion-rise {
    from { opacity: 0; transform: translate3d(0, 28px, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes motion-zoom {
    from { opacity: 0; transform: scale(0.9) translate3d(0, 24px, 0); filter: blur(8px); }
    to { opacity: 1; transform: scale(1) translate3d(0, 0, 0); filter: blur(0); }
}

@keyframes frame-scan {
    0%, 22% { transform: translateX(0); opacity: 0; }
    35% { opacity: 1; }
    68% { opacity: 1; }
    82%, 100% { transform: translateX(340%); opacity: 0; }
}

@keyframes service-image-in {
    from { opacity: 0; transform: scale(1.08); filter: blur(6px); }
    to { opacity: 1; transform: scale(1); filter: blur(0); }
}

@keyframes marker-pulse {
    0% { opacity: 0.9; transform: scale(0.65); }
    80%, 100% { opacity: 0; transform: scale(2.1); }
}

@keyframes scroll-cue {
    0%, 100% { transform: scaleY(0.3); transform-origin: top; opacity: 0.35; }
    50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
}

@keyframes faq-copy-in {
    from { opacity: 0; transform: translateY(-8px); filter: blur(3px); }
    to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes faq-highlight {
    from { background-color: rgba(26, 110, 216, 0.1); }
    to { background-color: transparent; }
}

@media (max-width: 900px) {
    .singapore-motion {
        height: 205vh;
        min-height: 1320px;
    }

    .globe-stage {
        --globe-size: min(102vw, 700px);
    }

    .singapore-intro {
        left: 5vw;
    }
}

@media (max-width: 680px) {
    .site-header.is-condensed .header-inner {
        min-height: auto;
    }

    .section-header::after,
    .section-head::after {
        margin-top: 18px;
    }

    .singapore-motion {
        height: 190vh;
        min-height: 1160px;
    }

    .singapore-sticky {
        min-height: 610px;
    }

    .singapore-intro {
        top: 72px;
        right: 20px;
        left: 20px;
    }

    .singapore-intro h2 {
        max-width: 11ch;
        font-size: clamp(2.35rem, 12vw, 3.5rem);
    }

    .singapore-intro p:last-of-type {
        font-size: 0.9rem;
    }

    .globe-stage {
        --globe-size: min(128vw, 620px);
    }

    .globe-shell {
        top: 42%;
        left: 24%;
    }

    .singapore-focus {
        width: calc(100% - 30px);
    }

    .singapore-focus-card {
        padding: 26px 22px;
        border-radius: 21px;
    }

    .singapore-coordinate {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .singapore-focus-grid {
        gap: 6px;
    }

    .singapore-focus-grid span {
        padding: 10px 5px;
        font-size: 0.67rem;
    }

    .singapore-focus-actions a {
        flex: 1 1 150px;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .scroll-progress,
    .singapore-scroll-cue,
    .hero-frame::before,
    .hero-image-wrap::before {
        display: none;
    }

    .motion-enabled :is(
        .section-header,
        .section-head,
        .about-grid > *,
        .about-card,
        .reseller-grid > *,
        .service-directory > *,
        .service-slider-shell,
        .coverage-card,
        .project-card,
        .client-item,
        .contact-grid > *,
        .proof-item,
        .capability-card,
        .split-grid > *,
        .check-list li,
        .process-card,
        .case-card,
        .faq-layout > *,
        .related-panel,
        .cta-panel,
        .footer-grid > *
    ) {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        animation: none !important;
        transition-duration: 0.01ms !important;
    }

    .singapore-motion {
        height: auto;
        min-height: 0;
    }

    .singapore-sticky {
        position: relative;
        height: auto;
        min-height: 920px;
        padding: 70px 0;
    }

    .singapore-intro {
        position: relative;
        top: auto;
        left: auto;
        width: min(90vw, 1180px);
        margin: 0 auto;
        opacity: 1;
        transform: none;
    }

    .globe-stage {
        position: relative;
        height: 420px;
    }

    .globe-shell {
        top: 50%;
        left: 50%;
        opacity: 0.72;
        transform: translate(-50%, -50%) scale(0.82);
        transform-origin: center;
    }

    .singapore-focus {
        position: relative;
        top: auto;
        left: auto;
        margin: -90px auto 0;
        opacity: 1;
        pointer-events: auto;
        transform: none;
    }

    .marker-ring {
        animation: none;
    }
}

/* AARK portal hero */
.hero-portal {
    position: absolute;
    z-index: 20;
    inset: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    pointer-events: none;
}

.hero-portal[hidden] {
    display: none;
}

.hero-portal-panel {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        linear-gradient(rgba(113, 196, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(113, 196, 255, 0.045) 1px, transparent 1px),
        radial-gradient(circle at 100% 50%, rgba(34, 151, 213, 0.2), transparent 46%),
        #020d1c;
    background-size: 44px 44px, 44px 44px, auto, auto;
}

.hero-portal-panel-left {
    justify-content: flex-end;
    border-right: 1px solid rgba(126, 220, 255, 0.44);
}

.hero-portal-panel-right {
    justify-content: flex-start;
    border-left: 1px solid rgba(126, 220, 255, 0.16);
}

.hero-portal-word {
    color: #f6fbff;
    font-family: var(--font-display, Georgia, serif);
    font-size: clamp(7rem, 19vw, 18rem);
    font-weight: 400;
    line-height: 0.72;
    letter-spacing: 0.02em;
    text-shadow: 0 0 48px rgba(72, 184, 240, 0.16);
}

.hero-portal-panel-left .hero-portal-word {
    margin-right: -0.03em;
}

.hero-portal-panel-right .hero-portal-word {
    margin-left: -0.03em;
}

.hero-portal-data {
    position: absolute;
    bottom: 26px;
    color: rgba(168, 216, 255, 0.66);
    font-family: "Courier New", monospace;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
}

.hero-portal-panel-left .hero-portal-data { right: 28px; }
.hero-portal-panel-right .hero-portal-data { left: 28px; }

.hero-portal-seam {
    position: absolute;
    z-index: 2;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: linear-gradient(transparent 3%, #68d9cb 30%, #78bfff 70%, transparent 97%);
    box-shadow: 0 0 24px rgba(88, 201, 240, 0.9);
    transform: translateX(-50%) scaleY(0);
    transform-origin: center;
}

.hero-portal.is-opening .hero-portal-seam {
    animation: portal-seam 1.1s 80ms var(--motion-ease) both;
}

.hero-portal.is-opening .hero-portal-panel-left {
    animation: portal-open-left 1.55s 420ms var(--motion-ease) both;
}

.hero-portal.is-opening .hero-portal-panel-right {
    animation: portal-open-right 1.55s 420ms var(--motion-ease) both;
}

.hero-portal.is-opening .hero-portal-word {
    animation: portal-word 1.35s 120ms var(--motion-ease) both;
}

/* Expanding navigation capsule, adapted from the supplied ShowMore interaction. */
.explore-pill {
    position: relative;
    max-width: 176px;
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    padding: 6px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 344px;
    background: rgba(2, 11, 23, 0.74);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
    transition: max-width 760ms var(--motion-snap), border-color 260ms ease, background 260ms ease;
    backdrop-filter: blur(14px);
}

.explore-pill-label {
    max-width: 104px;
    margin-left: 10px;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    opacity: 1;
    filter: blur(0);
    pointer-events: none;
    transition: max-width 520ms var(--motion-snap), margin 520ms var(--motion-snap), opacity 220ms ease, filter 320ms ease;
}

.explore-pill:hover,
.explore-pill:focus-within {
    border-color: rgba(111, 215, 229, 0.42);
}

.explore-pill.is-expanded {
    max-width: min(590px, 100%);
    background: rgba(2, 11, 23, 0.92);
}

.explore-pill.is-expanded .explore-pill-label {
    max-width: 0;
    margin-left: 0;
    opacity: 0;
    filter: blur(4px);
}

.explore-pill-actions {
    max-width: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: max-width 760ms var(--motion-snap), opacity 220ms ease, visibility 0s 420ms;
}

.explore-pill.is-expanded .explore-pill-actions {
    max-width: 470px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0ms;
}

.explore-action {
    padding: 12px 16px;
    border: 0;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-family: var(--font-body, sans-serif);
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
    white-space: nowrap;
    opacity: 0;
    scale: 0.8;
    filter: blur(5px);
    user-select: none;
    transition: opacity 440ms var(--motion-ease), scale 720ms var(--motion-snap), filter 420ms ease, background 220ms ease;
}

.explore-action:nth-child(1) { --explore-delay: 0ms; }
.explore-action:nth-child(2) { --explore-delay: 50ms; }
.explore-action:nth-child(3) { --explore-delay: 100ms; }
.explore-action:nth-child(4) { --explore-delay: 150ms; }

.explore-pill.is-expanded .explore-action {
    opacity: 1;
    scale: 1;
    filter: blur(0);
    transition-delay: var(--explore-delay);
}

.explore-action:hover,
.explore-action:focus-visible {
    background: #1a6ed8;
}

.explore-action:active { scale: 0.9; }

.explore-toggle {
    position: relative;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 100px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.11);
    color: #fff;
    cursor: pointer;
    transition: scale 650ms var(--motion-snap), background 240ms ease, rotate 650ms var(--motion-snap);
}

.explore-toggle:hover { background: #2585ef; }
.explore-toggle:active { scale: 0.8; }
.explore-pill.is-expanded .explore-toggle { rotate: 90deg; }

.explore-icon {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 520ms var(--motion-snap), scale 650ms var(--motion-snap), filter 420ms ease;
}

.explore-icon-close { opacity: 0; scale: 0.55; filter: blur(4px); }
.explore-icon-dots { opacity: 1; scale: 1; filter: blur(0); }
.explore-pill.is-expanded .explore-icon-close { opacity: 1; scale: 1; filter: blur(0); }
.explore-pill.is-expanded .explore-icon-dots { opacity: 0; scale: 0.55; filter: blur(4px); }

[data-magnetic] {
    translate: var(--magnetic-x, 0) var(--magnetic-y, 0);
    transition: translate 650ms var(--motion-snap), transform 220ms var(--motion-ease), background 220ms ease;
    will-change: translate;
}

/* Monospace signal rail bridges the geographic story and delivery coverage. */
.signal-rail {
    position: relative;
    z-index: 3;
    width: 100%;
    overflow: hidden;
    border-top: 1px solid rgba(108, 210, 226, 0.24);
    border-bottom: 1px solid rgba(108, 210, 226, 0.24);
    background: #020c18;
    color: #8fded5;
}

.signal-track {
    width: max-content;
    min-height: 44px;
    display: flex;
    align-items: center;
    animation: signal-drift 28s linear infinite;
}

.signal-group {
    width: max-content;
    min-width: 100vw;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    gap: clamp(18px, 1.8vw, 34px);
    padding-inline: clamp(10px, 1vw, 18px);
}

.signal-group > span {
    display: inline-flex;
    align-items: center;
    color: #8fded5;
    font-family: "Courier New", monospace;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    white-space: nowrap;
}

.signal-group .signal-separator {
    color: rgba(118, 184, 255, 0.38);
    letter-spacing: 0;
}

/* Editorial project case-file deck */
.project-deck {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(122, 188, 239, 0.2);
    border-radius: 30px;
    background:
        linear-gradient(rgba(128, 194, 239, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(128, 194, 239, 0.04) 1px, transparent 1px),
        radial-gradient(circle at 74% 20%, rgba(28, 132, 204, 0.19), transparent 32%),
        #06172b;
    background-size: 36px 36px, 36px 36px, auto, auto;
    box-shadow: 0 34px 90px rgba(8, 31, 57, 0.18);
}

.project-deck-toolbar {
    min-height: 72px;
    padding: 14px clamp(18px, 3vw, 34px);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.project-deck-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.project-count {
    min-width: 78px;
    margin-right: 6px;
    color: rgba(255, 255, 255, 0.46);
    font-family: "Courier New", monospace;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
}

.project-count strong {
    color: #fff;
    font-size: 0.9rem;
}

.project-deck-controls button {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    cursor: pointer;
    transition: background 220ms ease, border-color 220ms ease, scale 520ms var(--motion-snap);
}

.project-deck-controls button:hover {
    border-color: rgba(110, 221, 210, 0.62);
    background: rgba(110, 221, 210, 0.13);
}

.project-deck-controls button:active { scale: 0.82; }

.project-deck-controls svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.project-deck .project-grid {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: clamp(12px, 2vw, 24px);
    margin: 0;
    padding: 28px max(6%, calc((100% - min(860px, 76vw)) / 2)) 34px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    cursor: grab;
    touch-action: pan-x pan-y;
}

.project-deck .project-grid::-webkit-scrollbar { display: none; }
.project-deck .project-grid.is-dragging { cursor: grabbing; scroll-snap-type: none; }

.project-deck .project-card {
    flex: 0 0 min(860px, 76vw);
    max-width: none;
    min-width: min(860px, 76vw);
    min-height: 470px;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(310px, 0.88fr);
    scroll-snap-align: center;
    border-color: rgba(255, 255, 255, 0.13);
    border-radius: 22px;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.25);
    opacity: 0.42;
    scale: 0.9;
    filter: grayscale(0.72) saturate(0.65);
    transform: none;
    transition: opacity 560ms var(--motion-ease), scale 780ms var(--motion-snap), filter 560ms ease, box-shadow 560ms ease;
}

.project-deck .project-card.is-active {
    opacity: 1;
    scale: 1;
    filter: none;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
}

.project-deck .project-card:hover { transform: none; }

.project-deck .project-card > img {
    width: 100%;
    height: 100%;
    min-height: 470px;
    object-fit: cover;
}

.project-deck .project-card-body {
    position: relative;
    padding: clamp(26px, 4vw, 44px);
    background: #fff;
}

.project-deck .project-card-body::before {
    content: "AARK / CASE FILE";
    margin-bottom: 22px;
    display: block;
    color: #8394a6;
    font-family: "Courier New", monospace;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.13em;
}

.project-deck .project-card-body h3 {
    font-family: var(--font-display, Georgia, serif);
    font-size: clamp(1.45rem, 2.4vw, 2rem);
    font-weight: 400;
    line-height: 1.08;
}

.project-deck .project-card-body p {
    margin-top: 4px;
    font-size: 0.88rem;
}

.project-deck-progress {
    height: 3px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
}

.project-deck-progress span {
    width: 100%;
    height: 100%;
    display: block;
    background: linear-gradient(90deg, #6adfd1, #3e9ff3);
    transform: scaleX(var(--project-progress, 0.1));
    transform-origin: left center;
    transition: transform 560ms var(--motion-ease);
}

@keyframes portal-open-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-102%); }
}

@keyframes portal-open-right {
    0% { transform: translateX(0); }
    100% { transform: translateX(102%); }
}

@keyframes portal-word {
    0% { opacity: 0; scale: 0.82; filter: blur(10px); letter-spacing: 0.18em; }
    45%, 100% { opacity: 1; scale: 1; filter: blur(0); letter-spacing: 0.02em; }
}

@keyframes portal-seam {
    0% { opacity: 0; transform: translateX(-50%) scaleY(0); }
    45% { opacity: 1; transform: translateX(-50%) scaleY(1); }
    100% { opacity: 0; transform: translateX(-50%) scaleY(1); }
}

@keyframes signal-drift {
    to { transform: translateX(-50%); }
}

@media (max-width: 900px) {
    .project-deck .project-card {
        flex-basis: min(700px, 82vw);
        min-width: min(700px, 82vw);
        grid-template-columns: 1fr;
    }

    .project-deck .project-card > img {
        height: 270px;
        min-height: 270px;
    }
}

@media (max-width: 680px) {
    .hero-portal-word { font-size: clamp(5rem, 26vw, 8rem); }
    .hero-portal-data { bottom: 18px; font-size: 0.57rem; }
    .hero-portal-panel-left .hero-portal-data { right: 14px; }
    .hero-portal-panel-right .hero-portal-data { left: 14px; }

    .hero-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .explore-pill {
        width: 100%;
        max-width: 100%;
    }

    .explore-pill.is-expanded { max-width: 100%; }

    .explore-pill-actions {
        flex: 1 1 auto;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .explore-pill.is-expanded .explore-pill-actions {
        max-width: calc(100% - 48px);
    }

    .explore-action {
        padding: 10px 11px;
        text-align: center;
    }

    .project-deck { border-radius: 22px; }

    .project-deck-toolbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .project-deck-controls {
        width: 100%;
        justify-content: flex-end;
    }

    .project-count { margin-right: auto; }

    .project-deck .project-grid {
        padding: 20px 8% 28px;
    }

    .project-deck .project-card {
        flex-basis: 84vw;
        min-width: 84vw;
        min-height: 0;
        scale: 0.94;
    }

    .project-deck .project-card.is-active { scale: 1; }

    .project-deck .project-card > img {
        height: 220px;
        min-height: 220px;
    }

    .project-deck .project-card-body { padding: 24px 21px; }
    .project-deck .project-card-body::before { margin-bottom: 15px; }
    .project-pills { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-portal { display: none !important; }
    .signal-track { animation: none; }
    [data-magnetic] { translate: none !important; }
    .project-deck .project-grid { scroll-behavior: auto; }
    .project-deck .project-card { opacity: 1; scale: 1; filter: none; }
}
