/* ==========================================================================
   Code of Dolphins — Motion & Polish Layer
   Works together with js/animations.js (GSAP + ScrollTrigger)
   ========================================================================== */

:root {
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --brand-glow: 2, 132, 199;
}

/* --------------------------------------------------------------------------
   1. Preloader
   -------------------------------------------------------------------------- */
#preloader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 22px;
    background: #ffffff;
    transition: opacity 0.6s var(--ease-out-expo), visibility 0.6s;
}
.dark #preloader { background: #060b18; }

#preloader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-logo {
    width: min(240px, 60vw);
    height: auto;
    filter: drop-shadow(0 18px 30px rgba(var(--brand-glow), 0.25));
    animation: preloaderIn 0.9s var(--ease-out-expo) both, preloaderBob 2.4s ease-in-out 0.9s infinite;
}
@keyframes preloaderIn {
    from { opacity: 0; transform: scale(0.85) translateY(10px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* Header logo: subtle depth */
.brand-logo {
    filter: drop-shadow(0 4px 10px rgba(var(--brand-glow), 0.15));
}

.preloader-bar {
    width: 160px;
    height: 2px;
    border-radius: 2px;
    background: rgba(148, 163, 184, 0.25);
    overflow: hidden;
}
.preloader-bar span {
    display: block;
    height: 100%;
    width: 40%;
    background: linear-gradient(90deg, #0ea5e9, #2563eb);
    animation: loaderSlide 1.1s ease-in-out infinite;
}

@keyframes preloaderBob {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}
@keyframes loaderSlide {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(260%); }
}

/* --------------------------------------------------------------------------
   2. Text reveal (words split by JS)
   -------------------------------------------------------------------------- */
.split-word {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
    padding-bottom: 0.08em;   /* keep descenders visible */
    margin-bottom: -0.08em;
}
.split-word > span {
    display: inline-block;
    will-change: transform;
}

/* Balanced line breaks — no lonely words on their own line */
h1, h2, h3 { text-wrap: balance; }

/* Rotating hero word */
#rotating-text {
    transition: none !important;
    will-change: transform, opacity, filter;
}

/* --------------------------------------------------------------------------
   3. Header scroll state
   -------------------------------------------------------------------------- */
#main-header {
    transition: background-color 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
#main-header.is-scrolled {
    box-shadow: 0 10px 30px -18px rgba(15, 23, 42, 0.25);
    background-color: rgba(255, 255, 255, 0.82);
}
.dark #main-header.is-scrolled {
    background-color: rgba(6, 11, 24, 0.8);
    box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.7);
}

/* Active nav link */
#main-header nav a.is-active {
    color: #0284c7;
}
#main-header nav a.is-active::after {
    width: 100%;
}
.dark #main-header nav a.is-active { color: #22d3ee; }

/* --------------------------------------------------------------------------
   4. Card spotlight (mouse-follow highlight)
   -------------------------------------------------------------------------- */
.spotlight {
    position: relative;
    isolation: isolate;
}
.spotlight::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(
        420px circle at var(--mx, 50%) var(--my, 50%),
        rgba(var(--brand-glow), 0.09),
        transparent 45%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: -1;
}
.dark .spotlight::before {
    background: radial-gradient(
        420px circle at var(--mx, 50%) var(--my, 50%),
        rgba(56, 189, 248, 0.12),
        transparent 45%
    );
}
.spotlight:hover::before { opacity: 1; }

/* Smooth lift for content cards */
.lift {
    transition: transform 0.5s var(--ease-out-expo), box-shadow 0.5s var(--ease-out-expo), border-color 0.35s ease;
}
.lift:hover { transform: translateY(-6px); }

/* --------------------------------------------------------------------------
   5. Magnetic buttons
   -------------------------------------------------------------------------- */
.magnetic {
    will-change: transform;
}

/* --------------------------------------------------------------------------
   6. Section heading accent
   -------------------------------------------------------------------------- */
.heading-accent {
    display: block;
    width: 56px;
    height: 3px;
    margin: 18px auto 0;
    border-radius: 3px;
    background: linear-gradient(90deg, #0ea5e9, #2563eb, #6366f1);
    transform-origin: left center;
}
.text-left .heading-accent,
.heading-accent.is-left { margin-left: 0; }

/* --------------------------------------------------------------------------
   7. Marquee — soft edges + pause on hover
   -------------------------------------------------------------------------- */
.marquee-mask {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-mask:hover .animate-marquee { animation-play-state: paused; }

/* --------------------------------------------------------------------------
   8. Cursor glow — softer, sits under modals
   -------------------------------------------------------------------------- */
#cursor-glow {
    z-index: 30 !important;
    transition: opacity 0.4s ease !important;
    mix-blend-mode: multiply;
    opacity: 0;
}
.dark #cursor-glow { mix-blend-mode: screen; }
#cursor-glow.is-active { opacity: 1; }

/* --------------------------------------------------------------------------
   9. Back-to-top with progress ring
   -------------------------------------------------------------------------- */
#back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 45;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 12px 30px -10px rgba(var(--brand-glow), 0.35);
    color: #0284c7;
    cursor: pointer;
    opacity: 0;
    transform: translateY(16px) scale(0.9);
    pointer-events: none;
    transition: opacity 0.4s var(--ease-out-expo), transform 0.4s var(--ease-out-expo);
}
.dark #back-to-top {
    background: rgba(10, 17, 40, 0.85);
    border-color: rgba(56, 189, 248, 0.2);
    color: #38bdf8;
}
#back-to-top.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
#back-to-top:hover { transform: translateY(-3px) scale(1.04); }
#back-to-top svg.progress-ring {
    position: absolute;
    inset: -1px;
    width: calc(100% + 2px);
    height: calc(100% + 2px);
    transform: rotate(-90deg);
}
#back-to-top svg.progress-ring circle {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

/* --------------------------------------------------------------------------
   10. Modal entrance polish
   -------------------------------------------------------------------------- */
#case-study-modal .glass-card,
#discovery-modal .glass-card {
    transition: transform 0.5s var(--ease-out-expo), opacity 0.4s ease;
}

/* Smooth FAQ */
.faq-content:not(.hidden) {
    animation: faqIn 0.45s var(--ease-out-expo);
}
@keyframes faqIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.faq-icon { transition: transform 0.4s var(--ease-out-expo); }

/* --------------------------------------------------------------------------
   Portfolio cards
   -------------------------------------------------------------------------- */
.project-item {
    box-shadow: 0 10px 30px -12px rgba(15, 23, 42, 0.12), 0 2px 6px -2px rgba(15, 23, 42, 0.05);
}
.project-item:hover {
    box-shadow: 0 28px 50px -20px rgba(2, 132, 199, 0.28), 0 4px 12px -4px rgba(15, 23, 42, 0.08);
}

/* Thumbnail — 3:2 showcase images shown in full */
.project-thumb {
    aspect-ratio: 3 / 2;
    background: #f1f5f9;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}
.dark .project-thumb {
    background: #0a1128;
    border-bottom-color: rgba(56, 189, 248, 0.15);
}

/* Closing CTA tile in the portfolio grid */
.portfolio-cta-card {
    background:
        radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.22), transparent 40%),
        radial-gradient(circle at 10% 110%, rgba(99, 102, 241, 0.55), transparent 50%),
        linear-gradient(135deg, #0284c7 0%, #2563eb 55%, #4f46e5 100%);
    box-shadow: 0 24px 50px -20px rgba(37, 99, 235, 0.55);
    min-height: 340px;
}
.portfolio-cta-card::after {
    content: '';
    position: absolute;
    right: -40px;
    bottom: -40px;
    width: 340px;
    height: 220px;
    background: url('../images/logo.png') no-repeat center / contain;
    opacity: 0.16;
    filter: brightness(0) invert(1);
    pointer-events: none;
}

/* Result badge (top-right) */
.project-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    padding: 6px 14px;
    border-radius: 999px;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    box-shadow: 0 8px 20px -6px var(--tw-shadow-color, rgba(0, 0, 0, 0.3));
    transition: transform 0.45s var(--ease-out-expo);
}
.project-item:hover .project-badge { transform: translateY(-2px) scale(1.04); }

/* Category tags */
.project-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    border-width: 1px;
    border-style: solid;
    font-size: 12px;
    font-weight: 500;
}
.dark .project-tag {
    background-color: rgba(255, 255, 255, 0.04);
    border-color: rgba(148, 163, 184, 0.25);
}

/* Primary CTA + icon button */
.project-cta {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 18px;
    border-radius: 12px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 10px 22px -10px var(--tw-shadow-color, rgba(0, 0, 0, 0.3));
    transition: background-color 0.25s ease, transform 0.35s var(--ease-out-expo), box-shadow 0.35s ease;
}
.project-cta:hover { transform: translateY(-2px); }
.project-cta svg { transition: transform 0.35s var(--ease-out-expo); }
.project-cta:hover svg { transform: translateX(4px); }

.project-icon-btn {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #334155;
    transition: color 0.25s ease, border-color 0.25s ease, transform 0.35s var(--ease-out-expo);
}
.project-icon-btn:hover {
    color: #0284c7;
    border-color: #7dd3fc;
    transform: rotate(12deg) scale(1.06);
}
.dark .project-icon-btn {
    background: rgba(10, 17, 40, 0.8);
    border-color: rgba(56, 189, 248, 0.2);
    color: #cbd5e1;
}

/* --------------------------------------------------------------------------
   Technology stack cards (logos in images/tech/)
   -------------------------------------------------------------------------- */
:root {
    --accent-sky: 14, 165, 233;
    --accent-blue: 37, 99, 235;
    --accent-indigo: 79, 70, 229;
    --accent-emerald: 5, 150, 105;
    --accent-cyan: 6, 182, 212;
    --accent-lime: 101, 163, 13;
    --accent-red: 220, 38, 38;
    --accent-violet: 124, 58, 237;
    --accent-amber: 217, 119, 6;
}
.tech-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.45s var(--ease-out-expo), border-color 0.3s ease, box-shadow 0.45s var(--ease-out-expo) !important;
}
.tech-card:hover {
    transform: translateY(-6px);
    border-color: rgba(var(--tech-accent), 0.55) !important;
    box-shadow: 0 22px 40px -18px rgba(var(--tech-accent), 0.45) !important;
}
.tech-logo-wrap {
    width: 72px;
    height: 72px;
    margin-bottom: 14px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: linear-gradient(145deg, #ffffff, #f1f5f9);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: inset 0 1px 0 #fff, 0 6px 14px -8px rgba(15, 23, 42, 0.18);
    transition: transform 0.5s var(--ease-out-expo), box-shadow 0.5s var(--ease-out-expo);
}
.tech-logo-wrap--pair {
    width: 112px;
    display: flex;
    justify-content: center;
    gap: 12px;
}
.tech-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    transition: transform 0.5s var(--ease-out-expo);
}
.tech-logo-wrap--pair .tech-logo { width: 34px; height: 34px; }
.tech-card:hover .tech-logo-wrap {
    transform: translateY(-2px);
    box-shadow: inset 0 1px 0 #fff, 0 12px 24px -10px rgba(var(--tech-accent), 0.5);
}
.tech-card:hover .tech-logo { transform: scale(1.12) rotate(-4deg); }

.dark .tech-logo-wrap {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.9));
    border-color: rgba(56, 189, 248, 0.15);
    box-shadow: 0 6px 14px -8px rgba(0, 0, 0, 0.6);
}
.dark .tech-logo--mono { filter: invert(1) hue-rotate(180deg) brightness(1.1); }

/* --------------------------------------------------------------------------
   Contact section
   -------------------------------------------------------------------------- */
.contact-shell {
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 40px 80px -40px rgba(15, 23, 42, 0.28), 0 8px 24px -12px rgba(2, 132, 199, 0.12);
}
.dark .contact-shell {
    background: #0a1128;
    border-color: rgba(56, 189, 248, 0.15);
    box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8);
}

/* Left brand panel */
.contact-info-panel {
    background:
        radial-gradient(circle at 110% -10%, rgba(56, 189, 248, 0.45), transparent 45%),
        radial-gradient(circle at -20% 110%, rgba(99, 102, 241, 0.55), transparent 50%),
        linear-gradient(160deg, #0c4a6e 0%, #1e3a8a 55%, #312e81 100%);
    overflow: hidden;
}
.info-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}
.info-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(186, 230, 253, 0.85);
    margin-bottom: 4px;
}
.info-value {
    display: block;
    width: fit-content;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    transition: color 0.2s ease;
}
a.info-value:hover { color: #7dd3fc; }
.info-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.2s ease, transform 0.35s var(--ease-out-expo);
}
.info-action:hover { transform: translateY(-2px); }

.next-step {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    font-size: 13px;
    line-height: 1.45;
}
.next-step strong { display: block; color: #fff; font-weight: 600; font-size: 14px; }
.next-step span:not(.next-step-num) { color: rgba(224, 242, 254, 0.75); }
.next-step-num {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    color: #1e3a8a;
    font-size: 12px;
    font-weight: 800;
    margin-top: 1px;
}

/* Right form panel */
.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}
.dark .form-label { color: #cbd5e1; }
.form-field { position: relative; }
.form-field-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
    transition: color 0.2s ease;
}
.form-field:focus-within .form-field-icon { color: #0284c7; }
.form-input {
    width: 100%;
    padding: 13px 16px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #0f172a;
    font-size: 14px;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.form-field .form-input { padding-left: 44px; }
.form-input::placeholder { color: #94a3b8; }
.form-input:hover { border-color: #cbd5e1; }
.form-input:focus {
    outline: none;
    background: #fff;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15);
}
.form-select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer;
}
.form-textarea { resize: vertical; min-height: 200px; line-height: 1.6; }
.dark .form-input {
    background: rgba(15, 23, 42, 0.7);
    border-color: rgba(148, 163, 184, 0.22);
    color: #f1f5f9;
}
.dark .form-input:focus { background: rgba(15, 23, 42, 0.95); }
.dark .form-select option { background: #0f172a; }

/* Lead form states: error message, honeypot, character counter */
.form-error {
    padding: 12px 14px;
    border-radius: 12px;
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #9f1239;
    font-size: 13px;
    line-height: 1.5;
}
.form-error ul { margin-top: 6px; padding-left: 18px; list-style: disc; }
.dark .form-error { background: rgba(244, 63, 94, 0.1); border-color: rgba(251, 113, 133, 0.35); color: #fecdd3; }
.form-input[aria-invalid="true"] { border-color: #f43f5e; box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.12); }
.hp-field {                     /* invisible to people, still in the DOM for bots */
    position: absolute !important;
    left: -10000px !important;
    width: 1px; height: 1px;
    overflow: hidden;
}
.char-count {
    margin-top: 6px;
    text-align: right;
    font-size: 11.5px;
    color: #94a3b8;
    font-variant-numeric: tabular-nums;
}
.char-count.is-near { color: #d97706; }
.char-count.is-over { color: #e11d48; font-weight: 600; }
button[type="submit"][aria-busy="true"] { cursor: progress; opacity: 0.85; }

/* Hero inquiry form card */
.hero-form-card {
    position: relative;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow:
        0 40px 80px -30px rgba(15, 23, 42, 0.28),
        0 10px 30px -12px rgba(2, 132, 199, 0.18);
}
.hero-form-card::before {            /* soft brand glow rim on top edge */
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(160deg, rgba(14, 165, 233, 0.55), transparent 35%, transparent 70%, rgba(99, 102, 241, 0.45));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
}
.dark .hero-form-card {
    background: rgba(10, 17, 40, 0.92);
    border-color: rgba(56, 189, 248, 0.18);
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8);
}
.hero-textarea { min-height: 110px; }

/* --------------------------------------------------------------------------
   "Trusted by" client section — dark band, two opposing logo rows
   -------------------------------------------------------------------------- */
.trust-section {
    background: #f6faff;
    color: #0f172a;
    isolation: isolate;
    border-top: 1px solid rgba(226, 232, 240, 0.9);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}
.dark .trust-section { background: #060b18; color: #fff; border-color: rgba(30, 41, 59, 0.8); }
.trust-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 55% 50% at 12% 0%, rgba(56, 189, 248, 0.20), transparent 65%),
        radial-gradient(ellipse 50% 55% at 92% 100%, rgba(129, 140, 248, 0.18), transparent 65%),
        linear-gradient(180deg, #f8fbff 0%, #eef6ff 100%);
}
.dark .trust-bg {
    background:
        radial-gradient(ellipse 60% 55% at 15% 0%, rgba(14, 165, 233, 0.22), transparent 60%),
        radial-gradient(ellipse 55% 60% at 90% 100%, rgba(99, 102, 241, 0.24), transparent 60%),
        linear-gradient(180deg, #071226 0%, #060b18 100%);
}
.trust-bg::after {                 /* fine engineering grid, fading at the edges */
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(2, 132, 199, 0.07) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(2, 132, 199, 0.07) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, #000 30%, transparent 85%);
            mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, #000 30%, transparent 85%);
}


.trust-row {
    overflow: hidden;
    padding: 6px 0 14px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.trust-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: trustLeft 55s linear infinite;
}
.trust-row--right .trust-track { animation-name: trustRight; animation-duration: 62s; }
.trust-row:hover .trust-track { animation-play-state: paused; }
@keyframes trustLeft  { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 10px)); } }
@keyframes trustRight { from { transform: translateX(calc(-50% - 10px)); } to { transform: translateX(0); } }

.trust-card {
    flex: 0 0 auto;
    width: 250px;
    height: 92px;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 14px 30px -18px rgba(15, 23, 42, 0.25), inset 0 1px 0 #fff;
    transition: transform 0.45s var(--ease-out-expo), box-shadow 0.45s var(--ease-out-expo);
}
.trust-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 22px 40px -18px rgba(2, 132, 199, 0.35), 0 0 0 2px rgba(56, 189, 248, 0.45);
}
.trust-card--logo img {
    max-width: 100%;
    max-height: 72px;
    object-fit: contain;
}
.trust-name {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.01em;
    line-height: 1.15;
    color: #0f172a;
    text-align: center;
    white-space: nowrap;
}
.trust-industry {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
}
.trust-industry i {
    width: 6px;
    height: 6px;
    border-radius: 999px;
}

.trust-stat {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 12px 28px -20px rgba(15, 23, 42, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-align: left;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}
.trust-stat:hover { border-color: rgba(56, 189, 248, 0.5); background: #fff; }
.dark .trust-stat { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.1); }
.dark .trust-stat strong { color: #fff; }
.trust-stat strong { display: block; color: #0f172a; font-family: 'Space Grotesk', sans-serif; font-size: 17px; font-weight: 700; }
.trust-stat span:not(.trust-stat-icon) { display: block; color: #64748b; font-size: 13px; }
.trust-stat-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 12px;
}

@media (max-width: 640px) {
    .trust-card { width: 180px; height: 80px; }
    .trust-name { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
    .trust-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
    .trust-card[aria-hidden="true"] { display: none; }
}

/* Map */
.contact-map {
    height: 300px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 24px 50px -30px rgba(15, 23, 42, 0.3);
    background: #e2e8f0;
}
.dark .contact-map { border-color: rgba(56, 189, 248, 0.15); }
.contact-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: saturate(0.85);
}
.dark .contact-map iframe { filter: invert(0.9) hue-rotate(180deg) saturate(0.6); }
.contact-map-chip {
    position: absolute;
    left: 16px;
    bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px 10px 10px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    box-shadow: 0 12px 30px -10px rgba(15, 23, 42, 0.35);
    transition: transform 0.35s var(--ease-out-expo);
}
.contact-map-chip:hover { transform: translateY(-2px); }

/* Portfolio filter transition */
.project-item {
    transition: opacity 0.35s ease, transform 0.45s var(--ease-out-expo);
}

/* Focus ring — accessible and on-brand */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #0ea5e9;
    outline-offset: 3px;
    border-radius: 10px;
}

/* --------------------------------------------------------------------------
   11. Reduced motion — respect the user's OS setting
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    #preloader { display: none; }
    #cursor-glow { display: none !important; }
}
