/* ============================================================
   TRON d.o.o. — Main Stylesheet
   ============================================================ */

/* Variables */
:root {
    --bg: #07080c;
    --bg-elevated: #0d0f15;
    --bg-card: #10121a;
    --bg-card-hover: #151823;
    --surface: #1a1d28;
    --border: rgba(255,255,255,0.06);
    --border-hover: rgba(77,127,255,0.18);
    --cyan: #4d7fff;
    --cyan-dim: rgba(77,127,255,0.08);
    --cyan-glow: rgba(77,127,255,0.28);
    --blue: #264c9e;
    --gradient: linear-gradient(135deg, var(--cyan), var(--blue));
    --gradient-soft: linear-gradient(135deg, rgba(77,127,255,0.12), rgba(38,76,158,0.08));
    --text: #e8eaf0;
    --text-2: #939598;
    --text-3: #5a6077;
    --radius: 14px;
    --radius-lg: 22px;
    --transition: 0.35s cubic-bezier(0.25,0.46,0.45,0.94);
    --spring: 0.5s cubic-bezier(0.34,1.56,0.64,1);
    --scroll-progress: 0;
    --spot-x: 50%;
    --spot-y: 22%;
    --hero-lift: 0px;
    --hero-tilt: 0deg;
    --hero-scale: 1;
    --hero-video-shift: 0px;
    --hero-video-zoom: 0;
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
    background: var(--bg);
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ============================================================
   CIRCUIT BOARD CANVAS BACKGROUND
   ============================================================ */

#bgCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    display: block;
}

/* ============================================================
   BODY & ABSTRACT BACKGROUND
   ============================================================ */

body {
    font-family: 'DM Sans', sans-serif;
    color: var(--text);
    line-height: 1.75;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    background: transparent;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    background: radial-gradient(circle at 50% 46%, transparent 38%, rgba(0,0,0,0.48) 100%);
    mix-blend-mode: multiply;
    opacity: 0.6;
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 10002;
    transform-origin: left center;
    transform: scaleX(var(--scroll-progress));
    background: linear-gradient(90deg, var(--cyan), #90b4ff, var(--blue));
    box-shadow: 0 0 14px rgba(77,127,255,0.35);
    pointer-events: none;
    will-change: transform;
}

/* Film grain */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 200px;
}

/* ============================================================
   SPLASH LOADER
   ============================================================ */

.splash {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s, visibility 0.6s;
}

.splash.done {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.splash-logo-wrap {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 2rem;
}

.splash-logo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(1.3);
    position: relative;
    z-index: 2;
    opacity: 0;
    animation: splashLogoIn 0.8s 0.2s forwards;
}

.splash-ring {
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--cyan);
    animation: splashSpin 1s linear infinite;
}

.splash-ring::after {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-bottom-color: var(--blue);
    animation: splashSpin 1.5s linear infinite reverse;
}

.splash-glow {
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(77,127,255,0.15), transparent 70%);
    animation: splashPulse 1.5s ease-in-out infinite;
}

.splash-text {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: 6px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    animation: splashTextIn 0.6s 0.5s forwards;
}

.splash-sub {
    font-size: 0.75rem;
    color: var(--text-3);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: 0.5rem;
    opacity: 0;
    animation: splashTextIn 0.6s 0.7s forwards;
}

.splash-bar-track {
    width: 120px;
    height: 2px;
    background: var(--surface);
    border-radius: 2px;
    margin-top: 2rem;
    overflow: hidden;
    opacity: 0;
    animation: splashTextIn 0.4s 0.8s forwards;
}

.splash-bar {
    height: 100%;
    width: 0;
    background: var(--gradient);
    border-radius: 2px;
    animation: splashProgress 0.6s 0.5s cubic-bezier(0.4,0,0.2,1) forwards;
}

/* ============================================================
   NAVIGATION
   ============================================================ */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 clamp(1.5rem, 4vw, 3.5rem);
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background var(--transition), box-shadow var(--transition);
}

.nav.scrolled {
    background: rgba(7,8,12,0.88);
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    box-shadow: 0 1px 0 var(--border), 0 8px 32px rgba(0,0,0,0.3);
}

.nav-brand {
    display: flex;
    align-items: center;
    position: relative;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.nav-brand.visible {
    opacity: 1;
}

.nav-brand::before {
    content: '';
    position: absolute;
    width: 70px;
    height: 70px;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    background: radial-gradient(circle, rgba(255,255,255,0.12), rgba(255,255,255,0.04) 50%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    filter: blur(8px);
}

.nav-brand img {
    height: 44px;
    filter: brightness(1.3);
    position: relative;
    z-index: 1;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.nav-menu a {
    padding: 0.5rem 1.1rem;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-2);
    letter-spacing: 0.6px;
    border-radius: 8px;
    transition: color var(--transition), background var(--transition);
    position: relative;
}

.nav-menu a:not(.nav-contact-btn)::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 20px;
    height: 2px;
    background: var(--gradient);
    border-radius: 2px;
    transition: transform 0.3s cubic-bezier(0.25,0.46,0.45,0.94);
}

.nav-menu a:not(.nav-contact-btn).active::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-menu a:hover {
    color: var(--cyan);
    background: var(--cyan-dim);
}

.nav-menu a.active {
    color: var(--cyan);
}

/* Portal pill — visible only when logged in (shown by JS) */
.nav-portal-pill {
    display: none;
    align-items: center;
    padding: 0.5rem 1.2rem !important;
    background: var(--gradient) !important;
    color: #000 !important;
    border-radius: 50px !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.4px;
    white-space: nowrap;
    box-shadow: 0 0 18px rgba(77,127,255,0.35), 0 2px 8px rgba(0,0,0,0.3);
    transition: box-shadow var(--transition), transform var(--transition) !important;
    margin-right: 0.3rem;
}

.nav-portal-pill:hover {
    background: var(--gradient) !important;
    color: #000 !important;
    box-shadow: 0 0 32px rgba(77,127,255,0.55), 0 4px 16px rgba(0,0,0,0.3);
    transform: translateY(-1px);
}

/* Login button — visible when not logged in */
.nav-login-btn {
    margin-left: 0.4rem;
    padding: 0.5rem 1.15rem !important;
    border: 1px solid var(--border) !important;
    border-radius: 50px !important;
    color: var(--text-2) !important;
    font-weight: 500 !important;
    font-size: 0.82rem !important;
    transition: border-color var(--transition), color var(--transition), background var(--transition) !important;
}

.nav-login-btn:hover {
    border-color: var(--border-hover) !important;
    color: var(--cyan) !important;
    background: var(--cyan-dim) !important;
}

/* Logged-in indicator — visible when logged in, NOT clickable */
.nav-loggedin-btn {
    display: none;
    align-items: center;
    gap: 0.4rem;
    margin-left: 0.4rem;
    padding: 0.5rem 1.05rem;
    border-radius: 50px;
    color: var(--text-2);
    font-size: 0.82rem;
    font-weight: 500;
    pointer-events: none;
    cursor: default;
    user-select: none;
}

.nav-loggedin-dot {
    width: 7px;
    height: 7px;
    background: #4ade80;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(74,222,128,0.5);
    animation: statusPulse 2.5s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.35; }
}

/* Mobile logged-in portal link (hidden by default) */
.mob-link-portal {
    display: none;
    color: var(--cyan) !important;
}

.nav-contact-btn {
    margin-left: 0.4rem;
    padding: 0.55rem 1.4rem !important;
    background: var(--gradient) !important;
    color: var(--bg) !important;
    font-weight: 600 !important;
    border-radius: 50px !important;
    transition: box-shadow var(--transition), transform var(--transition) !important;
}

.nav-contact-btn:hover {
    box-shadow: 0 4px 24px var(--cyan-glow) !important;
    transform: translateY(-1px) !important;
}

/* Language toggle */
.lang-toggle {
    background: transparent;
    border: 1px solid var(--border);
    font-size: 1.1rem;
    line-height: 1;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.2s, opacity 0.2s;
    margin-left: 0.2rem;
    opacity: 0.7;
}

.lang-toggle:hover {
    border-color: var(--cyan);
    opacity: 1;
}

/* Mobile variant */
.lang-toggle--mob {
    align-self: flex-start;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    padding: 0.45rem 1rem;
}


/* Mobile login link */
.mob-link-login {
    margin-top: 0.5rem;
    border: 1px solid var(--border-hover) !important;
    color: var(--cyan) !important;
}

/* Hamburger */
.hamburger {
    display: none;
    width: 36px;
    height: 36px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    border-radius: 8px;
    transition: background var(--transition);
    border: none;
    background: transparent;
}

.hamburger:hover {
    background: var(--cyan-dim);
}

.hamburger i {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s;
}

.hamburger.open i:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open i:nth-child(2) { opacity: 0; }
.hamburger.open i:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(7,8,12,0.96);
    backdrop-filter: blur(30px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
}

.mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu a {
    font-family: 'Syne', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-2);
    padding: 0.6rem 1.5rem;
    border-radius: 12px;
    transition: color var(--transition), background var(--transition);
}

.mobile-menu a:hover {
    color: var(--cyan);
    background: var(--cyan-dim);
}

/* ============================================================
   HERO (preserved as-is)
   ============================================================ */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 6rem 2rem 4rem;
    perspective: 1200px;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    will-change: transform;
}

.hero-orb-1 {
    width: 600px;
    height: 600px;
    background: rgba(77,127,255,0.07);
    top: -10%;
    left: -5%;
    animation: orbFloat 18s ease-in-out infinite;
}

.hero-orb-2 {
    width: 500px;
    height: 500px;
    background: rgba(38,76,158,0.05);
    bottom: -15%;
    right: -8%;
    animation: orbFloat 22s ease-in-out infinite reverse;
}

.hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(ellipse 65% 55% at 50% 45%, black 10%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 65% 55% at 50% 45%, black 10%, transparent 75%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 820px;
    margin-top: -20px;
    transform: translate3d(0, var(--hero-lift), 0) rotateX(var(--hero-tilt)) scale(var(--hero-scale));
    transform-style: preserve-3d;
    will-change: transform;
}

.hero-logo {
    margin-top: 2rem;
    margin-bottom: 1.8rem;
    opacity: 0;
    animation: heroReveal 0.7s 2.0s forwards;
}

.hero-logo img {
    height: 250px;
    filter: brightness(1.15);
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1.2rem;
    border: 1px solid var(--border-hover);
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--cyan);
    background: var(--cyan-dim);
    margin-bottom: 0;
    opacity: 0;
    animation: heroReveal 0.5s 1.2s forwards, badgeGlow 3s 1.7s ease-in-out infinite;
}

.hero-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--cyan);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--cyan);
    animation: pulse 2s ease-in-out infinite;
}

.hero h1 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(3.5rem, 10vw, 8rem);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -3px;
    margin-bottom: 1.8rem;
}

.hero h1 .glow-text {
    display: inline-flex;
    gap: 0;
}

.hero-letter {
    display: inline-block;
    opacity: 0;
    filter: blur(12px);
    transform: translateY(15px) scale(1.2);
    animation: letterIn 0.45s forwards;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-letter:nth-child(1) { animation-delay: 1.7s; }
.hero-letter:nth-child(2) { animation-delay: 1.85s; }
.hero-letter:nth-child(3) { animation-delay: 2.0s; }
.hero-letter:nth-child(4) { animation-delay: 2.15s; }

.hero-desc {
    font-size: clamp(1rem, 2vw, 1.18rem);
    color: var(--text-2);
    max-width: 540px;
    margin: 0 auto 2.8rem;
    font-weight: 300;
    line-height: 1.8;
    opacity: 0;
    animation: heroReveal 0.5s 2.8s forwards;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    opacity: 0;
    animation: heroReveal 0.5s 3.1s forwards;
}

.hero-video {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.hero-video video,
.hero-video img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.45) saturate(0.7);
    transform: translate3d(0, var(--hero-video-shift), 0) scale(calc(2 + var(--hero-video-zoom)));
    will-change: transform;
}

.hero-video::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(7,8,12,0.4) 0%, rgba(7,8,12,0.15) 30%, rgba(7,8,12,0.5) 70%, var(--bg) 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 60%;
    height: 140%;
    background: linear-gradient(115deg, rgba(255,255,255,0) 0%, rgba(141,241,255,0.1) 45%, rgba(255,255,255,0) 78%);
    filter: blur(8px);
    transform: translateX(-120%) skewX(-12deg);
    animation: cinematicSweep 11s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.95rem 2.2rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.btn svg {
    width: 17px;
    height: 17px;
    transition: transform 0.3s;
}

.btn:hover svg {
    transform: translateX(3px);
}

.btn-primary {
    background: var(--gradient);
    color: var(--bg);
    box-shadow: 0 4px 20px rgba(77,127,255,0.15);
}

.btn-primary:hover {
    box-shadow: 0 8px 40px var(--cyan-glow);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    border-color: var(--border-hover);
    background: var(--cyan-dim);
    color: var(--cyan);
}

/* ============================================================
   LAYOUT & SECTIONS
   ============================================================ */

.section {
    padding: clamp(4rem, 8vw, 8rem) clamp(1.5rem, 4vw, 3.5rem);
    transform: translate3d(0, var(--section-parallax, 0px), 0);
    will-change: transform;
}

.section--alt {
    background: var(--bg-elevated);
}

#rjesenja {
    padding-top: calc(clamp(4rem, 8vw, 5rem));
}

.container {
    max-width: 1180px;
    margin: 0 auto;
}

.section-header {
    margin-bottom: 3.5rem;
}

.section-header.center {
    text-align: center;
}

.section-tag {
    font-family: 'Syne', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.section-header.center .section-tag {
    justify-content: center;
}

.section-tag::before {
    content: '';
    width: 24px;
    height: 2px;
    background: var(--gradient);
    border-radius: 2px;
}

.section-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -0.8px;
    line-height: 1.2;
}

.section-desc {
    color: var(--text-2);
    font-size: 1.05rem;
    max-width: 580px;
    margin-top: 1rem;
    font-weight: 300;
}

.section-header.center .section-desc {
    margin-left: auto;
    margin-right: auto;
}

/* ============================================================
   ABOUT
   ============================================================ */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2.5rem, 5vw, 5rem);
    align-items: center;
}

.about-text p {
    color: var(--text-2);
    font-size: 1.02rem;
    line-height: 1.9;
}

.about-accent {
    margin-top: 1.8rem;
    padding: 1.2rem 1.4rem;
    border-left: 3px solid var(--cyan);
    background: rgba(77,127,255,0.04);
    border-radius: 0 10px 10px 0;
    font-size: 0.95rem;
    color: var(--text);
    font-style: italic;
    line-height: 1.7;
}

.about-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2.5rem;
}

.metric {
    padding: 1.3rem 1rem;
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color var(--transition), transform var(--transition);
}

.metric:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.metric-value {
    font-family: 'Syne', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.metric-label {
    font-size: 0.72rem;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 0.25rem;
}

.about-img-wrap {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 3/2;
    border: 3px solid rgba(77,127,255,0.35);
    box-shadow: 0 0 18px rgba(77,127,255,0.12), 0 0 50px rgba(38,76,158,0.08);
    transition: box-shadow 0.4s ease, border-color 0.4s ease;
}

.about-img-wrap:hover {
    border-color: rgba(77,127,255,0.6);
    box-shadow: 0 0 28px rgba(77,127,255,0.22), 0 0 70px rgba(38,76,158,0.14);
}

.about-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25,0.46,0.45,0.94);
}

.about-img-wrap:hover img {
    transform: scale(1.04);
}

.about-img-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(77,127,255,0.05), transparent 50%);
    pointer-events: none;
}

.about-img-badge {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    background: rgba(7,8,12,0.82);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-hover);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    z-index: 2;
}

.about-img-badge span {
    display: block;
    font-family: 'Syne', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.about-img-badge small {
    display: block;
    font-size: 0.68rem;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 0.25rem;
}

/* ============================================================
   SOLUTIONS (SGIS showcase)
   ============================================================ */

.sgis-showcase {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: clamp(2.5rem, 5vw, 5rem);
    align-items: center;
}

.sgis-showcase + .sgis-showcase {
    margin-top: clamp(3rem, 6vw, 5rem);
}

.sgis-showcase--reversed {
    grid-template-columns: 1.4fr 1fr;
}

.sgis-showcase--reversed .sgis-screenshot-wrap {
    order: -1;
}

.sgis-info {
    /* text side */
}

.sgis-info .section-tag {
    margin-bottom: 0.9rem;
}

.product-logo {
    height: 108px;
    width: auto;
    display: block;
    margin: -18px auto 1.2rem;
    filter: brightness(1.1);
}

.sgis-info h2 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.1;
    margin-bottom: 1.2rem;
}

.sgis-info p {
    color: var(--text-2);
    font-size: 1rem;
    line-height: 1.85;
    margin-bottom: 1.6rem;
}

.sgis-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.sgis-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.85rem;
    background: var(--cyan-dim);
    border: 1px solid rgba(77,127,255,0.12);
    border-radius: 50px;
    font-size: 0.78rem;
    color: var(--cyan);
    font-weight: 500;
}

.sgis-screenshot-wrap {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 3px solid rgba(77,127,255,0.35);
    box-shadow: 0 24px 80px rgba(0,0,0,0.4), 0 0 18px rgba(77,127,255,0.12), 0 0 50px rgba(38,76,158,0.08);
    transition: box-shadow 0.4s ease, border-color 0.4s ease;
}

.sgis-screenshot-wrap:hover {
    border-color: rgba(77,127,255,0.6);
    box-shadow: 0 24px 80px rgba(0,0,0,0.4), 0 0 28px rgba(77,127,255,0.22), 0 0 70px rgba(38,76,158,0.14);
}

.sgis-screenshot-wrap img {
    width: 100%;
    display: block;
    transition: transform 0.7s cubic-bezier(0.25,0.46,0.45,0.94);
}

.sgis-screenshot-wrap:hover img {
    transform: scale(1.03);
}

.sgis-screenshot-wrap::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
    z-index: 2;
}

/* ============================================================
   PROCESS
   ============================================================ */

.process-track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
    margin-top: 0.5rem;
}

.process-track::before {
    content: '';
    position: absolute;
    top: 23px;
    left: 12.5%;
    right: 12.5%;
    height: 1px;
    background: linear-gradient(90deg, var(--cyan), var(--blue), var(--cyan));
    opacity: 0.2;
    z-index: 0;
}

.process-step {
    text-align: center;
    position: relative;
    padding: 0 0.25rem;
}

.process-node {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.4rem;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 22px rgba(77,127,255,0.35);
    transition: box-shadow var(--transition), transform var(--transition);
}

.process-step:hover .process-node {
    box-shadow: 0 0 38px rgba(77,127,255,0.6);
    transform: scale(1.1);
}

.process-num {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 0.85rem;
    color: #fff;
    letter-spacing: 0.5px;
}

.process-icon {
    color: var(--cyan);
    opacity: 0.75;
    margin-bottom: 1rem;
    transition: opacity var(--transition);
}

.process-step:hover .process-icon {
    opacity: 1;
}

.process-step h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.65rem;
    color: var(--text);
}

.process-step p {
    font-size: 0.87rem;
    color: var(--text-3);
    line-height: 1.75;
}

/* ============================================================
   GALLERY
   ============================================================ */

.gallery-container {
    position: relative;
    max-width: 100%;
}

.gallery-stage {
    position: relative;
    padding: 0 clamp(2.75rem, 5vw, 3.25rem);
}

.gallery-track-outer {
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.gallery-track {
    display: flex;
    gap: 1rem;
    transition: transform 0.55s cubic-bezier(0.25,0.46,0.45,0.94);
}

.gallery-slide {
    flex: 0 0 calc(25% - 0.75rem);
    aspect-ratio: 4/3;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    position: relative;
    border: 1px solid var(--border);
    transition: border-color var(--transition);
}

.gallery-slide:hover {
    border-color: var(--border-hover);
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25,0.46,0.45,0.94), filter var(--transition);
    filter: brightness(0.85) saturate(0.9);
}

.gallery-slide:hover img {
    transform: scale(1.08);
    filter: brightness(1) saturate(1);
}

.gallery-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(7,8,12,0.4), transparent 50%);
    pointer-events: none;
    transition: opacity var(--transition);
}

.gallery-slide:hover::after {
    opacity: 0.3;
}

.gallery-slide-label {
    position: absolute;
    bottom: 0.75rem;
    left: 0.75rem;
    right: 0.75rem;
    z-index: 3;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
    letter-spacing: 0.5px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
    transform: translateY(4px);
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
}

.gallery-slide:hover .gallery-slide-label {
    opacity: 1;
    transform: translateY(0);
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(77,127,255,0.3);
    background: rgba(77,127,255,0.05);
    backdrop-filter: blur(14px);
    color: var(--cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease,
                box-shadow 0.25s ease, transform 0.2s cubic-bezier(0.25,0.46,0.45,0.94);
}

.gallery-arrow:hover {
    background: rgba(77,127,255,0.12);
    border-color: var(--cyan);
    box-shadow: 0 0 16px rgba(77,127,255,0.45), 0 0 40px rgba(77,127,255,0.15);
    transform: translateY(-50%) scale(1.1);
}

.gallery-arrow:active {
    transform: translateY(-50%) scale(0.88);
    background: rgba(77,127,255,0.22);
    box-shadow: 0 0 8px rgba(77,127,255,0.6);
    transition: transform 0.1s ease, background 0.1s ease, box-shadow 0.1s ease;
}

.gallery-arrow svg {
    width: 18px;
    height: 18px;
}

.gallery-prev { left: 0; }
.gallery-next { right: 0; }

.gallery-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 1.5rem;
}

.gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-3);
    cursor: pointer;
    transition: all var(--transition);
}

.gallery-dot.active {
    background: var(--cyan);
    box-shadow: 0 0 10px var(--cyan-glow);
    width: 24px;
    border-radius: 4px;
}

/* ============================================================
   REFERENCES
   ============================================================ */

/* ── Stats bar ─────────────────────────────────────── */
.ref-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2.5rem auto 2rem;
    max-width: 540px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.ref-stat {
    flex: 1;
    text-align: center;
    padding: 1.8rem 1rem;
}

.ref-stat-num {
    display: block;
    font-family: 'Syne', sans-serif;
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1;
    color: var(--cyan);
    margin-bottom: 0.4rem;
}

.ref-stat-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-2);
}

.ref-stat-sep {
    width: 1px;
    height: 48px;
    background: var(--border);
    flex-shrink: 0;
}

/* ── Map container ─────────────────────────────────── */
.ref-map-wrap {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    height: 520px;
    position: relative;
}

#ref-map {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

/* ── Pin marker ────────────────────────────────────── */
.ref-pin {
    cursor: pointer;
    position: relative;
    z-index: 10;
}

.ref-pin-dot {
    display: block;
    width: 14px;
    height: 14px;
    background: var(--cyan);
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.25);
    box-shadow: 0 0 0 0 rgba(77,127,255,0.55), 0 0 10px rgba(77,127,255,0.4);
    animation: ref-pin-pulse 2.4s ease-out infinite;
}

@keyframes ref-pin-pulse {
    0%   { box-shadow: 0 0 0 0    rgba(77,127,255,0.55), 0 0 10px rgba(77,127,255,0.4); }
    70%  { box-shadow: 0 0 0 10px rgba(77,127,255,0),    0 0 10px rgba(77,127,255,0.2); }
    100% { box-shadow: 0 0 0 0    rgba(77,127,255,0),    0 0 10px rgba(77,127,255,0.4); }
}

/* ── Custom map controls ───────────────────────────── */
.ref-map-ctrl {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ref-map-btn {
    width: 36px;
    height: 36px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-2);
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition), border-color var(--transition), color var(--transition);
    backdrop-filter: blur(8px);
}

.ref-map-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    color: var(--cyan);
}

.ref-map-btn--center svg {
    width: 16px;
    height: 16px;
}

/* ── Tooltip (body-level, never clipped by map) ────── */
.ref-pin-tip {
    position: absolute;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
    background: var(--bg-card);
    border: 1px solid var(--border-hover);
    border-radius: var(--radius);
    padding: 1rem 1.1rem;
    box-shadow: 0 16px 48px rgba(0,0,0,0.6);
    width: min(280px, calc(100vw - 16px));
    color: var(--text);
}

.ref-pin-tip.is-visible { opacity: 1; }

/* Arrow — points down (tooltip above pin) */
.ref-pin-tip::after {
    content: '';
    position: absolute;
    bottom: -7px;
    left: var(--arrow-left, 50%);
    width: 12px;
    height: 12px;
    transform: translateX(-50%) rotate(45deg);
    background: var(--bg-card);
    border-right: 1px solid var(--border-hover);
    border-bottom: 1px solid var(--border-hover);
}

/* Arrow — points up (tooltip below pin) */
.ref-pin-tip.ref-pin-tip--below::after {
    bottom: auto;
    top: -7px;
    border-right: none;
    border-bottom: none;
    border-left: 1px solid var(--border-hover);
    border-top: 1px solid var(--border-hover);
}

.ref-tip-inner {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
}

.ref-tip-crest {
    width: 50px;
    height: 50px;
    object-fit: contain;
    flex-shrink: 0;
}

.ref-tip-type {
    font-family: 'Syne', sans-serif;
    font-size: 0.63rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 0.15rem;
}

.ref-tip-name {
    font-size: 0.93rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.3rem;
}

.ref-tip-desc {
    font-size: 0.78rem;
    color: var(--text-2);
    line-height: 1.6;
    margin: 0;
}


/* ============================================================
   CONTACT
   ============================================================ */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: clamp(2rem, 4vw, 4rem);
    align-items: start;
}

.contact-intro {
    margin-bottom: 1.8rem;
}

.contact-intro p {
    font-size: 1.05rem;
    color: var(--text-2);
    line-height: 1.8;
}

.privacy-box {
    padding: 1.3rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 3px solid rgba(77,127,255,0.25);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-size: 0.82rem;
    color: var(--text-3);
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 2rem;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.c-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.3rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all var(--transition);
}

.c-item:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateX(4px);
}

.c-item-icon {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: var(--gradient-soft);
    border: 1px solid rgba(77,127,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cyan);
    flex-shrink: 0;
}

.c-item-icon svg {
    width: 18px;
    height: 18px;
}

.c-item span {
    font-size: 0.95rem;
    color: var(--text-2);
}

.c-item a {
    color: var(--text);
    transition: color var(--transition);
}

.c-item a:hover {
    color: var(--cyan);
}

/* Contact form */
.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 3vw, 2.5rem);
}

.contact-form h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.8rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.f-group {
    margin-bottom: 1.1rem;
}

.f-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 0.45rem;
}

.f-group input,
.f-group textarea {
    width: 100%;
    padding: 0.85rem 1.1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.92rem;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.f-group input::placeholder,
.f-group textarea::placeholder {
    color: var(--text-3);
}

.f-group input:focus,
.f-group textarea:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px var(--cyan-dim);
}

.f-group textarea {
    min-height: 120px;
    resize: vertical;
}

.f-group input.valid,
.f-group textarea.valid { border-color: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,0.1); }

.f-group input.invalid,
.f-group textarea.invalid { border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,0.1); }

.f-group .validation-msg {
    font-size: 0.72rem;
    margin-top: 0;
    max-height: 0;
    opacity: 0;
    transform: translateY(-4px);
    transition: all 0.25s;
    overflow: hidden;
}

.f-group .validation-msg.show {
    opacity: 1;
    transform: translateY(0);
    margin-top: 0.35rem;
    max-height: 1.5rem;
}

.f-group .validation-msg.error { color: #ef4444; }
.f-group .validation-msg.success { color: #22c55e; }

.form-submit {
    width: 100%;
    padding: 1rem;
    background: var(--gradient);
    color: var(--bg);
    border: none;
    border-radius: 12px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: all var(--transition);
    margin-top: 0.4rem;
}

.form-submit:hover {
    box-shadow: 0 8px 32px var(--cyan-glow);
    transform: translateY(-2px);
}

.form-submit:active {
    transform: translateY(0) scale(0.98);
}

.form-submit.success {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    box-shadow: 0 8px 32px rgba(34,197,94,0.25);
}

/* ============================================================
   MAP
   ============================================================ */

.map-section {
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
}

.map-layout {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 1.75rem;
    align-items: center;
}

.map-info {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    justify-content: center;
}

.map-info-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
}

.map-info-label {
    font-family: 'Syne', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 0.85rem;
}

.map-hours {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.map-hours-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.88rem;
    color: var(--text-2);
    gap: 0.5rem;
}

.map-hours-time {
    font-weight: 600;
    color: var(--text-1);
    white-space: nowrap;
}

.map-hours-closed {
    opacity: 0.45;
}

.map-info-text {
    font-size: 0.88rem;
    color: var(--text-2);
    line-height: 1.7;
    margin: 0;
}

.map-info-text a {
    color: var(--text-2);
    text-decoration: none;
    transition: color var(--transition);
}

.map-info-text a:hover {
    color: var(--cyan);
}

.map-wrap {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    margin-top: 2.5rem;
    position: relative;
}

.map-wrap iframe {
    width: 100%;
    height: 450px;
    display: block;
}

.map-consent-placeholder {
    width: 100%;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
}

.map-consent-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
    max-width: 380px;
    padding: 2rem;
    color: var(--text-2);
}

.map-consent-inner svg {
    color: var(--cyan);
    opacity: 0.7;
}

.map-consent-inner p {
    font-size: 0.92rem;
    line-height: 1.65;
    margin: 0;
}

.map-consent-btn {
    background: var(--gradient);
    color: #fff;
    border: none;
    padding: 0.7rem 1.6rem;
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, box-shadow 0.2s;
}

.map-consent-btn:hover {
    opacity: 0.88;
    box-shadow: 0 4px 18px var(--cyan-glow);
}

.map-consent-link {
    font-size: 0.82rem;
    color: var(--cyan);
    text-decoration: none;
}

.map-consent-link:hover {
    text-decoration: underline;
}

/* ============================================================
   STICKY CTA
   ============================================================ */

.sticky-cta {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 900;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.6rem;
    background: var(--gradient);
    color: var(--bg);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 28px var(--cyan-glow);
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition);
    pointer-events: none;
    letter-spacing: 0.3px;
}

.sticky-cta.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.sticky-cta:hover {
    box-shadow: 0 10px 40px rgba(77,127,255,0.4);
    transform: translateY(-3px);
}

.sticky-cta:active {
    transform: translateY(0) scale(0.96);
}

.sticky-cta svg {
    width: 16px;
    height: 16px;
}

/* ============================================================
   LIGHTBOX
   ============================================================ */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(3,3,8,0.94);
    backdrop-filter: blur(30px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s;
}

.lightbox.open {
    opacity: 1;
    pointer-events: all;
}

.lightbox-img-wrap {
    max-width: min(85vw, calc(100vw - 8rem));
    max-height: 82vh;
    width: 100%;
    position: relative;
    overflow: hidden;
    transform: scale(0.92);
    transition: transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
}

.lightbox.open .lightbox-img-wrap {
    transform: scale(1);
}

.lightbox-img-wrap img {
    max-width: 100%;
    max-height: 82vh;
    width: auto;
    object-fit: contain;
    border-radius: var(--radius);
    box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: rgba(7,8,12,0.7);
    backdrop-filter: blur(12px);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
}

.lightbox-close:hover {
    background: rgba(255,60,60,0.15);
    border-color: rgba(255,60,60,0.3);
    color: #ff5555;
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: rgba(7,8,12,0.7);
    backdrop-filter: blur(12px);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
}

.lightbox-arrow:hover {
    background: var(--cyan-dim);
    border-color: var(--border-hover);
    color: var(--cyan);
}

.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

.lightbox-counter {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.82rem;
    color: var(--text-3);
    font-weight: 500;
    letter-spacing: 2px;
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
    border-top: 1px solid var(--border);
    padding: 3rem clamp(1.5rem, 4vw, 3.5rem);
}

.footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.footer-brand img {
    height: 26px;
    filter: brightness(1.2);
}

.footer-brand span {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 2px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    font-size: 0.82rem;
    color: var(--text-3);
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--cyan);
}

.footer-copy {
    font-size: 0.78rem;
    color: var(--text-3);
}

/* ============================================================
   COOKIE BANNER
   ============================================================ */

#cookie-banner {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    opacity: 0;
    pointer-events: none;
    width: min(860px, calc(100vw - 3rem));
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.8rem 2.4rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    z-index: 9998;
    box-shadow: 0 12px 48px rgba(0,0,0,0.55);
    transition: transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94),
                opacity   0.4s cubic-bezier(0.25,0.46,0.45,0.94);
}

#cookie-banner.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: all;
}

#cookie-banner p {
    flex: 1;
    font-size: 0.95rem;
    color: var(--text-2);
    margin: 0;
    line-height: 1.7;
    min-width: 200px;
}

#cookie-banner p a {
    color: var(--cyan);
}

#cookie-banner p a:hover {
    text-decoration: underline;
}

.cookie-btns {
    display: flex;
    gap: 0.6rem;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.cookie-accept,
.cookie-decline {
    padding: 0.62rem 1.4rem;
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: box-shadow 0.2s, opacity 0.2s, border-color 0.2s;
}

.cookie-accept {
    background: var(--gradient);
    color: #fff;
    border: none;
}

.cookie-accept:hover {
    opacity: 0.88;
    box-shadow: 0 4px 18px var(--cyan-glow);
}

/* Equal visual weight — no dark pattern */
.cookie-decline {
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border-hover);
}

.cookie-decline:hover {
    border-color: var(--text-2);
    opacity: 0.88;
}

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */

.reveal {
    opacity: 0;
    transform: translateY(42px) scale(0.98);
    filter: blur(6px);
    transition: opacity 0.72s cubic-bezier(0.22, 1, 0.36, 1), transform 0.72s cubic-bezier(0.22, 1, 0.36, 1), filter 0.72s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform, opacity, filter;
}

.reveal.vis { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }

.reveal-left {
    opacity: 0;
    transform: translateX(-54px) scale(0.98);
    filter: blur(6px);
    transition: opacity 0.72s cubic-bezier(0.22, 1, 0.36, 1), transform 0.72s cubic-bezier(0.22, 1, 0.36, 1), filter 0.72s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform, opacity, filter;
}

.reveal-right {
    opacity: 0;
    transform: translateX(54px) scale(0.98);
    filter: blur(6px);
    transition: opacity 0.72s cubic-bezier(0.22, 1, 0.36, 1), transform 0.72s cubic-bezier(0.22, 1, 0.36, 1), filter 0.72s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform, opacity, filter;
}

.reveal-left.vis, .reveal-right.vis { opacity: 1; transform: translateX(0) scale(1); filter: blur(0); }

.reveal.vis,
.reveal-left.vis,
.reveal-right.vis {
    transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);
}

.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }
.reveal-left.reveal-d1, .reveal-right.reveal-d1 { transition-delay: 0.08s; }
.reveal-left.reveal-d2, .reveal-right.reveal-d2 { transition-delay: 0.16s; }

/* ============================================================
   KEYFRAME ANIMATIONS
   ============================================================ */

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%       { transform: translate(30px, -20px) scale(1.05); }
    66%       { transform: translate(-20px, 15px) scale(0.95); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(1.4); }
}

@keyframes badgeGlow {
    0%, 100% {
        box-shadow: 0 0 0px transparent;
        border-color: rgba(77,127,255,0.18);
    }
    50% {
        box-shadow: 0 0 18px rgba(77,127,255,0.35), 0 0 40px rgba(77,127,255,0.12);
        border-color: rgba(77,127,255,0.55);
    }
}

@keyframes letterIn {
    to { opacity: 1; filter: blur(0); transform: translateY(0) scale(1); }
}

@keyframes heroReveal {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes splashSpin {
    to { transform: rotate(360deg); }
}

@keyframes splashPulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50%      { opacity: 0.8; transform: scale(1.1); }
}

@keyframes splashLogoIn {
    from { opacity: 0; transform: scale(0.6); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes splashTextIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes splashProgress {
    0%   { width: 0; }
    60%  { width: 70%; }
    100% { width: 100%; }
}

@keyframes cinematicSweep {
    0%, 100% { transform: translateX(-120%) skewX(-12deg); opacity: 0; }
    22%      { opacity: 0.25; }
    42%      { transform: translateX(220%) skewX(-12deg); opacity: 0.08; }
    48%      { opacity: 0; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
    .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .about-img-wrap { max-width: 600px; margin: 0 auto; }
    .sgis-showcase { grid-template-columns: 1fr; }
    .sgis-showcase--reversed .sgis-screenshot-wrap { order: 0; }
    .process-track { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 2rem; }
    .process-track::before { display: none; }
    .gallery-slide { flex: 0 0 calc(50% - 0.5rem); }
    .contact-grid { grid-template-columns: 1fr; }
}

/* Nav collapses to hamburger earlier to prevent overflow */
@media (max-width: 900px) {
    .nav-menu { display: none; }
    .hamburger { display: flex; }
    .mobile-menu { display: flex; }
}

@media (max-width: 768px) {
    .section { --section-parallax: 0px !important; }
    .section { padding-top: 3.5rem; padding-bottom: 3.5rem; }
    body::after { opacity: 0.28; }
    .hero::before { animation-duration: 14s; opacity: 0.45; }
    .hero h1 { letter-spacing: -1.5px; }
    .about-metrics { grid-template-columns: repeat(3, 1fr); gap: 0.7rem; }
    .gallery-slide { flex: 0 0 calc(50% - 0.5rem); }
    .gallery-stage { padding: 0 2.25rem; }
    .gallery-arrow { width: 36px; height: 36px; }
    .ref-map-wrap { height: 380px; }
    .ref-stat-num { font-size: 2rem; }
    .form-row { grid-template-columns: 1fr; }
    .footer-inner { flex-direction: column; text-align: center; }
    .footer-links { flex-wrap: wrap; justify-content: center; gap: 1rem; }
    .footer-copy { text-align: center; }
    .lightbox-img-wrap { max-width: calc(100vw - 7rem); }
    .lightbox-prev { left: 0.5rem; }
    .lightbox-next { right: 0.5rem; }
    .map-layout { grid-template-columns: 1fr; }
    .map-info-block { width: 100%; }
    .map-wrap iframe,
    .map-consent-placeholder { height: 300px; }
    .hero-actions { gap: 0.75rem; }
    .section-desc { font-size: 0.98rem; }
}

@media (max-width: 480px) {
    .scroll-progress { height: 2px; }
    .hero-content { transform: none !important; }
    .hero-video video,
    .hero-video img { transform: scale(1.05) !important; }
    .section { padding-top: 2.75rem; padding-bottom: 2.75rem; }
    .hero { padding: 5rem 1.25rem 3rem; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn { justify-content: center; width: 100%; }
    .hero-badge { font-size: 0.7rem; letter-spacing: 1.5px; }
    .process-track { grid-template-columns: 1fr; gap: 0; }
    .process-step {
        display: grid;
        grid-template-columns: 48px 1fr;
        grid-template-rows: auto auto;
        column-gap: 1.25rem;
        text-align: left;
        padding-bottom: 2rem;
    }
    .process-node { grid-row: 1; grid-column: 1; margin: 0; }
    .process-icon { grid-row: 2; grid-column: 1; margin: 0.6rem 0 0; display: flex; justify-content: center; }
    .process-step h3 { grid-row: 1; grid-column: 2; align-self: center; margin: 0 0 0.4rem; }
    .process-step p { grid-row: 2; grid-column: 2; margin: 0; }
    .process-step:not(:last-child)::after {
        content: '';
        position: absolute;
        left: 23px;
        top: 52px;
        bottom: 0;
        width: 1px;
        background: linear-gradient(180deg, rgba(77,127,255,0.3), transparent);
    }
    .gallery-slide { flex: 0 0 100%; }
    .gallery-stage { padding: 0; }
    .gallery-arrow {
        width: 34px;
        height: 34px;
    }
    .gallery-prev { left: 10px; }
    .gallery-next { right: 10px; }
    .metric { padding: 1rem 0.5rem; }
    .metric-value { font-size: 1.3rem; }
    .sticky-cta { bottom: 1rem; right: 1rem; padding: 0.75rem 1.2rem; font-size: 0.82rem; }
    .about-img-wrap { max-width: 100%; }
    .footer-links { gap: 0.75rem; font-size: 0.78rem; }
    .map-wrap iframe,
    .map-consent-placeholder { height: 250px; }
    .contact-form { padding: 1.25rem; }
    .c-item { padding: 0.85rem 1rem; }
    .c-item span { font-size: 0.88rem; }
    .section-header { margin-bottom: 2.5rem; }
    .sgis-tags { gap: 0.4rem; }
    .lightbox-img-wrap { max-width: calc(100vw - 2rem); max-height: 70vh; }
    .lightbox-img-wrap img { max-height: 70vh; }
    .lightbox-arrow { width: 36px; height: 36px; }
    .lightbox-prev { left: 0.3rem; }
    .lightbox-next { right: 0.3rem; }
    .lightbox-close { top: 0.75rem; right: 0.75rem; }
}

@media (prefers-reduced-motion: reduce) {
    .scroll-progress {
        display: none;
    }

    body::after {
        display: none;
    }

    .hero::before {
        animation: none !important;
    }

    .section {
        transform: none !important;
        will-change: auto;
    }

    .reveal,
    .reveal-left,
    .reveal-right,
    .reveal.vis,
    .reveal-left.vis,
    .reveal-right.vis {
        filter: none !important;
        transform: none !important;
        transition: opacity 0.2s ease !important;
    }
}

/* Very small phones */
@media (max-width: 380px) {
    .about-metrics { gap: 0.4rem; }
    .metric { padding: 0.8rem 0.35rem; }
    .metric-value { font-size: 1.1rem; }
    .metric-label { font-size: 0.6rem; letter-spacing: 0.5px; }
    .hero h1 { letter-spacing: -1px; }
    .mobile-menu a { font-size: 1.5rem; }
    .btn { padding: 0.85rem 1.6rem; font-size: 0.86rem; }
    .section-title { font-size: clamp(1.6rem, 7vw, 1.9rem); }
}

/* Cookie banner — responsive overrides */
@media (max-width: 600px) {
    #cookie-banner {
        top: auto;
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
        width: auto;
        transform: translateY(20px);
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 1.25rem 1.25rem;
    }

    #cookie-banner.show {
        transform: translateY(0);
    }

    .cookie-btns {
        width: 100%;
        justify-content: flex-end;
    }
}
