/* ============= FONTS ============= */
@font-face {
    font-family: 'Cloister Black';
    src: url('/fonts/cloister-black.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ============= RESET & FOUNDATION ============= */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #fafafa;
    color: #0a0a0a;
    overflow-x: hidden;
    --menu-height: 56px;
    --border: rgba(0, 0, 0, 0.1);
    --surface: #f5f5f3;
    --muted: #999999;
    --text-secondary: #555555;
}

/* ============= CANVAS BACKGROUND ============= */
#canvas-background {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}
#canvas-background canvas { display: block; }

/* ============= SCROLL CONTAINER ============= */
/* JS (demo-animations.js) owns the snap on desktop — using CSS `mandatory`
   alongside JS caused the deployed-env "scrolls to the bottom" bug whenever
   the JS wheel handler bailed out (tiny deltaY, horizontal trackpad noise,
   or before the script attached). Mobile keeps `proximity` via the media
   query at the bottom of this file. */
#snap-container {
    width: 100%;
    height: calc(100vh - var(--menu-height));
    overflow-y: scroll;
    scroll-snap-type: none;
    overscroll-behavior-y: contain;
    scroll-behavior: auto;
    position: relative;
    z-index: 1;
}

/* ============= FULL-PAGE SECTIONS ============= */
.full-page {
    width: 100%;
    height: calc(100vh - var(--menu-height));
    min-height: calc(100vh - var(--menu-height));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    /* Bottom padding so content clears the fixed bottom nav */
    padding-bottom: 16px;
}

/* ============= SECTION LABEL ============= */
.section-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
    width: 100%;
    position: relative;
}
.section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
    transform-origin: left center;
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
/* Line extends when section-label appears (JS adds .is-visible) */
.section-label.is-visible::after { transform: scaleX(1); }

/* ============= HERO SECTION ============= */
.hero-section {
    background: #f7f8fa;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 0 80px 64px;
    overflow: hidden;
}

/* Animated architectural grid */
.hero-grid-bg {
    position: absolute;
    inset: -5%;
    background-image:
        linear-gradient(rgba(10,14,30,0.030) 1px, transparent 1px),
        linear-gradient(90deg, rgba(10,14,30,0.030) 1px, transparent 1px);
    background-size: 52px 52px;
    animation: hero-grid-pan 28s linear infinite;
    z-index: 0;
    pointer-events: none;
}
@keyframes hero-grid-pan {
    0%   { transform: translate(0, 0); }
    100% { transform: translate(52px, 52px); }
}

/* Horizontal scan line */
.hero-scan-line {
    position: absolute;
    left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(10,14,30,0.10), rgba(10,14,30,0.05), transparent);
    animation: hero-scan 7s ease-in-out infinite;
    z-index: 1;
    pointer-events: none;
}
@keyframes hero-scan {
    0%   { top: 15%; opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 0.4; }
    100% { top: 88%; opacity: 0; }
}

.hero-wrapper {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: flex-end;
    gap: 48px;
    position: relative;
    z-index: 10;
}
.hero-eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: rgba(10,14,30,0.40);
    margin-bottom: 16px;
    display: block;
}

/* Title clip-path container for reveal animation */
.hero-title-wrap { overflow: hidden; }
.hero-tagline-wrap { overflow: hidden; }

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(52px, 7vw, 112px);
    font-weight: 900;
    letter-spacing: 0.04em;
    color: #0a0e1e;
    line-height: 0.92;
    display: block;
}
/* Mirrored Я — same font, just flipped */
.hero-title .yr {
    display: inline-block;
    transform: scaleX(-1);
}
/* Cloister Black C and Ö — gothic blackletter characters */
.hero-title .cb {
    font-family: 'Cloister Black', serif;
    font-weight: normal;
    /* Cloister Black renders slightly smaller optically — compensate */
    font-size: 1.08em;
    vertical-align: -0.02em;
}
.hero-tagline {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(10,14,30,0.32);
    margin-top: 16px;
    display: block;
}
.hero-right {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 6px;
    padding-left: 48px;
    border-left: 1px solid rgba(10,14,30,0.10);
}
.hero-subtitle {
    font-size: clamp(17px, 1.9vw, 24px);
    font-weight: 300;
    color: rgba(10,14,30,0.62);
    line-height: 1.7;
    margin-bottom: 20px;
}
.hero-meta {
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(10,14,30,0.28);
    margin-bottom: 28px;
}

/* Hero stats row — stats + contact button side by side */
.hero-stats-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(10,14,30,0.09);
}
.hero-stats {
    display: flex;
    gap: 32px;
}
.hero-stat {
    display: flex;
    flex-direction: column;
}
.hero-stat-num {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 46px;
    color: #0a0e1e;
    line-height: 1;
    letter-spacing: 0.04em;
    display: inline;
}
.hero-stat-plus {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 26px;
    color: rgba(10,14,30,0.38);
    display: inline;
}
.hero-stat-label {
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(10,14,30,0.35);
    margin-top: 4px;
}

/* Hero contact button */
.hero-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 22px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: none;
    color: rgba(10, 14, 30, 0.72);
    border: 1px solid rgba(10, 14, 30, 0.22);
    background: transparent;
    white-space: nowrap;
    flex-shrink: 0;
    transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease, gap 0.3s ease;
}
.hero-cta-btn:hover {
    color: #f7f8fa;
    background: #0a0e1e;
    border-color: #0a0e1e;
    gap: 16px;
}
.hero-cta-arrow {
    font-size: 14px;
    line-height: 1;
    display: inline-block;
    transition: transform 0.3s ease;
}
.hero-cta-btn:hover .hero-cta-arrow {
    transform: translateX(4px);
}

.scroll-indicator {
    position: absolute;
    left: 40px; top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    z-index: 10;
}
.scroll-indicator span {
    writing-mode: vertical-rl;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(10,14,30,0.25);
}
.scroll-line {
    width: 1px;
    height: 52px;
    background: linear-gradient(to bottom, rgba(10,14,30,0.25), transparent);
    transform-origin: top center;
}

/* ============= PORTFOLIO SECTION ============= */
.portfolio-section {
    background: var(--surface);
    padding: 44px 80px 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}
.portfolio-section-inner {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.temporary-hidden {
    display: none !important;
}
.portfolio-page-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 8px;
    flex-shrink: 0;
    transition: opacity 0.3s ease;
}
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 3px;
    flex: 1;
    width: 100%;
    background: var(--border);
    min-height: 0;
}
.portfolio-service-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(0, 1fr));
    grid-template-areas:
        "bim coordination automation automation"
        "structural realtime automation automation"
        "digital standards bridge bridge";
    gap: 3px;
    flex: 1;
    width: 100%;
    min-height: 0;
}
.portfolio-service-item {
    position: relative;
    overflow: hidden;
    background: #d7d9dc;
    cursor: pointer;
}
.portfolio-service-item--large {
    grid-column: span 2;
    grid-row: span 2;
}
.portfolio-service-item--wide {
    grid-column: span 2;
}
.portfolio-service-item:nth-child(1) { grid-area: bim; }
.portfolio-service-item:nth-child(2) { grid-area: coordination; }
.portfolio-service-item:nth-child(3) { grid-area: automation; }
.portfolio-service-item:nth-child(4) { grid-area: structural; }
.portfolio-service-item:nth-child(5) { grid-area: realtime; }
.portfolio-service-item:nth-child(6) { grid-area: digital; }
.portfolio-service-item:nth-child(7) { grid-area: standards; }
.portfolio-service-item:nth-child(8) { grid-area: bridge; }
.portfolio-service-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.82) saturate(0.92);
    transition: transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.45s ease;
    animation: serviceImageDrift 12s ease-in-out infinite alternate;
}
.portfolio-service-item:hover img {
    transform: scale(1.055);
    filter: brightness(0.72) saturate(1.02);
}
.portfolio-service-item--large img {
    animation-duration: 16s;
}
.portfolio-service-item .portfolio-overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.28) 56%, rgba(0,0,0,0.05) 100%);
}
.portfolio-service-item .portfolio-overlay h4 {
    font-size: 15px;
}
.portfolio-service-item--large .portfolio-overlay h4 {
    font-size: 22px;
}
.portfolio-service-item .portfolio-overlay p {
    max-width: 34em;
    display: none;
}
@keyframes serviceImageDrift {
    from { object-position: 48% 50%; }
    to { object-position: 54% 50%; }
}
/* Hide page-2 items by default */
.portfolio-item[data-page="2"] { display: none; }

/* Portfolio pagination */
.portfolio-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    padding: 14px 0 4px;
    flex-shrink: 0;
}
.portfolio-prev, .portfolio-next {
    background: none;
    border: 1.5px solid rgba(10,14,30,0.28);
    color: rgba(10,14,30,0.75);
    font-size: 20px;
    width: 48px; height: 48px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.22s, border-color 0.22s, color 0.22s, transform 0.18s;
    line-height: 1;
}
.portfolio-prev:hover:not(:disabled),
.portfolio-next:hover:not(:disabled) {
    background: #0a0e1e;
    color: #ffffff;
    border-color: #0a0e1e;
    transform: scale(1.06);
}
.portfolio-prev:disabled, .portfolio-next:disabled {
    opacity: 0.18;
    cursor: default;
}
/* Dot indicators */
.portfolio-dots {
    display: flex;
    align-items: center;
    gap: 10px;
}
.portfolio-dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    background: rgba(10,14,30,0.18);
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    border: none;
}
.portfolio-dot.active {
    background: rgba(10,14,30,0.75);
    transform: scale(1.35);
}
.portfolio-dot:hover:not(.active) {
    background: rgba(10,14,30,0.38);
}
/* Navigation hint below pagination */
.portfolio-nav-hint {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.20em;
    text-transform: uppercase;
    color: rgba(10,14,30,0.30);
    text-align: center;
    padding-bottom: 6px;
    flex-shrink: 0;
}
.portfolio-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: #e0e0e0;
}
.portfolio-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.6s ease;
}
.portfolio-item:hover img {
    transform: scale(1.07);
    filter: brightness(0.65);
}
.portfolio-overlay {
    position: absolute;
    inset: 0;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    transition: opacity 0.5s ease;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
}
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-overlay h4 {
    font-size: 16px; font-weight: 600; color: #fff;
    margin-bottom: 5px; letter-spacing: -0.01em;
}
.portfolio-overlay p {
    font-size: 13px; color: rgba(255,255,255,0.75); line-height: 1.5; margin-bottom: 6px;
}
.p-tools {
    font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
    color: rgba(255,255,255,0.5); display: block;
}

/* ============= SERVICES SECTION ============= */
.services-section {
    background: #fafafa;
    padding: 44px 80px 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

/* 3×2 card grid + full-width strip at bottom */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr) auto;
    gap: 1px;
    background: var(--border);
    width: 100%;
    flex: 1;
    min-height: 0;
}

.svc-card {
    background: #fff;
    padding: 22px 26px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: background 0.28s ease, transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1), box-shadow 0.35s ease;
    position: relative;
    overflow: hidden;
    justify-content: space-between;
}
/* Accent top-border reveal on hover */
.svc-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: #0a0a0a;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.4s cubic-bezier(0.34, 1.2, 0.64, 1);
}
.svc-card:hover::before { transform: scaleX(1); }
.svc-card:hover {
    background: #f8f8f6;
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.07);
    z-index: 2;
}

.svc-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2px;
}

.svc-card-num {
    font-size: 12px;
    font-weight: 600;
    color: #ccc;
    letter-spacing: 0.12em;
    font-variant-numeric: tabular-nums;
}

.svc-card-logos {
    display: flex;
    align-items: center;
    gap: 5px;
}
.svc-card-logo {
    width: 16px; height: 16px;
    object-fit: contain;
    opacity: 0.4;
    transition: opacity 0.3s;
}
.svc-card:hover .svc-card-logo { opacity: 0.85; }

.svc-card-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em !important;
    font-style: normal !important;
    font-variant: normal !important;
    color: #0a0a0a;
    line-height: 1.22;
    flex-shrink: 0;
}

.svc-card-desc {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.65;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.svc-card-tools {
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #bbb;
    border-top: 1px solid var(--border);
    padding-top: 8px;
    padding-bottom: 12px;
    flex-shrink: 0;
}

/* Full-width 7th card — horizontal strip */
.svc-card--wide {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 48px 184px minmax(170px, 0.7fr) minmax(280px, 1.4fr) auto;
    align-items: center;
    gap: 28px;
    padding: 14px 26px;
    background: #f3f3f1;
}
.svc-card--wide:hover { background: #ededeb; }
.svc-card--wide .svc-card-title {
    font-size: 15px;
    line-height: 1.3;
}
.svc-card--wide .svc-card-desc {
    font-size: 13px;
    flex: unset;
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
}
.svc-card--wide .svc-card-tools {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
    white-space: nowrap;
}
.services-section .svc-gallery,
.services-section .svc-wide-image {
    display: none;
}
.services-section .svc-card {
    padding-bottom: 0;
    justify-content: flex-start;
}
.services-section .svc-card-desc {
    -webkit-line-clamp: 5;
}
.services-section .svc-card-tools {
    margin-top: auto;
}
.services-section .svc-card--wide {
    grid-template-columns: 48px minmax(180px, 1fr) minmax(360px, 2fr) auto;
}

/* ============= TECH + CLIENTS SECTION ============= */
.tech-clients-section {
    background: #ffffff;
    padding: 28px 64px 8px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    color: #0a0a0a;
}

/* 5-column grid: label | 4 tool cells */
.tech-logos-grid {
    display: grid;
    grid-template-columns: 96px repeat(4, 1fr);
    grid-auto-rows: 1fr;
    gap: 1px;
    background: var(--border);
    width: 100%;
    flex: 1;
    min-height: 0;
}

/* Group label — first column */
.tech-group-label {
    background: #f0f0ee;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 7px;
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--muted);
    text-align: center;
    line-height: 1.5;
}
/* Span 2 rows for Modelling & Validation */
.tech-group-label.tall { grid-row: span 2; }

.tech-logo-item {
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 64px;
    padding: 8px 8px 7px;
    gap: 5px;
    transition: background 0.22s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
/* Shimmer on hover */
.tech-logo-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 30%, rgba(255,255,255,0.5) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0s;
    pointer-events: none;
}
.tech-logo-item:hover::after {
    transform: translateX(100%);
    transition: transform 0.5s ease;
}
.tech-logo-item:hover {
    background: #f5f5f3;
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    z-index: 2;
}
.tech-logo-item--empty {
    background: #fafafa;
    cursor: default;
    pointer-events: none;
}
.tech-logo {
    width: 38px;
    height: 24px;
    object-fit: contain;
    opacity: 0.78;
    transition: opacity 0.3s, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.tech-logo-item:hover .tech-logo {
    opacity: 1;
    transform: scale(1.18) translateY(-1px);
    filter: drop-shadow(0 3px 8px rgba(0,0,0,0.15));
}
.tech-logo-item h5 {
    font-size: 10px; font-weight: 600; color: #6f6f6f;
    text-align: center; transition: color 0.3s; line-height: 1.2;
}
.tech-logo-item:hover h5 { color: #0a0a0a; }
.tech-click-hint {
    font-size: 8.5px; letter-spacing: 0.11em; text-transform: uppercase;
    color: #ddd; transition: color 0.3s; white-space: nowrap;
}
.tech-logo-item:hover .tech-click-hint { color: #aaa; }

/* ── Companies strip (Hired By + Collaborated With) — block layout ── */
.companies-strip {
    width: 100%;
    flex-shrink: 0;
    margin-top: 1px;
    border-top: 1px solid var(--border);
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;
    background: var(--border);
}
.companies-block {
    background: #fff;
    padding: 14px 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.companies-block-label {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--muted);
}
.companies-block-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: stretch;
}
.company-card {
    flex: 1;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 12px 10px 9px;
    min-height: 84px;
    transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.4, 0.64, 1), box-shadow 0.3s ease;
}
.company-card:hover {
    border-color: rgba(0, 0, 0, 0.18);
    background: #f8f8f6;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}
.company-logo {
    max-width: 116px;
    max-height: 32px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    filter: grayscale(0) opacity(1);
    transition: filter 0.35s ease;
}
.company-card:hover .company-logo {
    filter: grayscale(1) opacity(0.55);
}
.company-name {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #888;
    transition: color 0.3s ease;
    text-align: center;
    line-height: 1.3;
}
.company-card:hover .company-name { color: #bbb; }

/* ── Service gallery — 4 thumbnail strip ── */
.svc-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    flex-shrink: 0;
    height: 120px;
    overflow: hidden;
}
.svc-gallery--single {
    grid-template-columns: 1fr;
    gap: 0;
    height: 128px;
}
.svc-thumb {
    width: 100%; height: 100%;
    object-fit: cover;
    cursor: pointer;
    display: block;
    filter: brightness(0.8) saturate(0.6);
    transition: filter 0.35s ease, transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.svc-thumb:hover {
    filter: brightness(1.05) saturate(1);
    transform: scale(1.08);
    position: relative;
    z-index: 1;
}

/* ── Service image carousel overlay ── */
.svc-gallery--single .svc-thumb {
    filter: brightness(0.88) saturate(0.92);
}
.svc-gallery--single .svc-thumb:hover {
    filter: brightness(1.02) saturate(1.04);
    transform: scale(1.035);
}
.svc-wide-image {
    width: 184px;
    height: 82px;
    object-fit: cover;
    display: block;
    filter: brightness(0.9) saturate(0.9);
}

.svc-carousel-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.94);
    z-index: 9002;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.svc-carousel-overlay.active {
    opacity: 1;
    pointer-events: all;
}
.svc-carousel-inner {
    position: relative;
    max-width: min(1100px, 90vw);
    width: 100%;
}
#svc-carousel-img {
    width: 100%;
    max-height: 76vh;
    object-fit: contain;
    display: block;
}
.svc-carousel-close {
    position: absolute;
    top: -46px; right: 0;
    background: none; border: none;
    color: rgba(255, 255, 255, 0.65);
    font-size: 32px; cursor: pointer; line-height: 1;
    transition: color 0.2s;
}
.svc-carousel-close:hover { color: #fff; }
.svc-carousel-prev, .svc-carousel-next {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #fff; font-size: 20px;
    width: 50px; height: 50px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s ease;
}
.svc-carousel-prev { left: -68px; }
.svc-carousel-next { right: -68px; }
.svc-carousel-prev:hover, .svc-carousel-next:hover { background: rgba(255, 255, 255, 0.18); }
.svc-carousel-counter {
    position: absolute;
    bottom: -30px; left: 50%; transform: translateX(-50%);
    font-size: 9px; letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
}

/* ── Custom ring cursor — disabled ── */
#cursor-ring { display: none; }

/* ── Ambient mouse spotlight ── */
/* mix-blend-mode: screen makes it invisible on white, subtle on dark */
#mouse-glow {
    position: fixed;
    width: 520px; height: 520px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 5;
    transform: translate(-50%, -50%);
    will-change: transform;
    background: radial-gradient(circle, rgba(255,255,255,0.055) 0%, transparent 62%);
    mix-blend-mode: screen;
    opacity: 1;
    transition: opacity 1.4s ease;
}
body.mouse-idle #mouse-glow { opacity: 0; }

/* ── Idle state — nav active underline slow-pulses ── */
body.mouse-idle .nav-item.active::after {
    animation: idle-nav-pulse 2.6s ease-in-out infinite;
}
@keyframes idle-nav-pulse {
    0%, 100% { transform: scaleX(1); opacity: 1; }
    50%       { transform: scaleX(0.45); opacity: 0.3; }
}

/* ── Idle state — scroll indicator bounces to invite scroll ── */
body.mouse-idle .scroll-line {
    animation: idle-scroll-bounce 1.9s ease-in-out infinite;
}
@keyframes idle-scroll-bounce {
    0%, 100% { transform: scaleY(1);   opacity: 1; }
    50%       { transform: scaleY(0.3); opacity: 0.25; }
}

/* ── Tech popup modal ── */
.tech-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(6px);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.tech-popup-overlay.active {
    opacity: 1;
    pointer-events: all;
}
.tech-popup-inner {
    background: #ffffff;
    max-width: 480px; width: 90%;
    padding: 48px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}
.tech-popup-overlay.active .tech-popup-inner { transform: translateY(0); }
.tech-popup-close {
    position: absolute; top: 16px; right: 20px;
    background: none; border: none;
    font-size: 24px; cursor: pointer;
    color: #888; line-height: 1;
    transition: color 0.2s;
}
.tech-popup-close:hover { color: #0a0a0a; }
.tech-popup-logo {
    width: 52px; height: 38px;
    object-fit: contain;
    margin-bottom: 18px; display: block;
}
.tech-popup-inner h3 {
    font-size: 25px; font-weight: 700;
    margin-bottom: 14px; letter-spacing: -0.02em; color: #0a0a0a;
}
.tech-popup-inner p {
    font-size: 16px; color: var(--text-secondary); line-height: 1.75;
}

/* ── Portfolio Lightbox ── */
.lightbox-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.88);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}
.lightbox-overlay.active { opacity: 1; pointer-events: all; }
.lightbox-inner {
    position: relative;
    max-width: min(1280px, 92vw);
    max-height: 86vh;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
    background: #0a0a0a;
    transform: scale(0.95);
    transition: transform 0.35s ease;
    height: 86vh;
}
.lightbox-overlay.active .lightbox-inner { transform: scale(1); }
.lightbox-inner > img {
    width: 100%;
    height: 100%;
    max-height: calc(86vh - 150px);
    object-fit: contain;
    display: block;
    background: #050505;
}
.lightbox-info {
    padding: 22px 28px 24px;
    display: flex; flex-direction: column;
    justify-content: flex-end;
    border-top: 1px solid #222;
}
.lightbox-info h4 {
    font-size: 19px; font-weight: 700; color: #fff;
    margin-bottom: 10px; letter-spacing: -0.01em;
}
.lightbox-info p {
    font-size: 14px; color: rgba(255,255,255,0.65); line-height: 1.7; margin-bottom: 18px;
}
.lightbox-info .p-tools {
    font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.35);
}
.lightbox-close {
    position: absolute; top: -42px; right: 0;
    background: none; border: none;
    color: rgba(255,255,255,0.7); font-size: 28px;
    cursor: pointer; line-height: 1;
    transition: color 0.2s;
}
.lightbox-close:hover { color: #fff; }
.lightbox-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255,255,255,0.22);
    background: rgba(0,0,0,0.52);
    color: #ffffff;
    font-size: 22px;
    line-height: 1;
    display: grid;
    place-items: center;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }
.lightbox-nav:hover {
    background: rgba(255,255,255,0.14);
    border-color: rgba(255,255,255,0.42);
    transform: translateY(-50%) scale(1.04);
}

/* ============= TEAM SECTION ============= */
.team-section {
    background: #ffffff;
    padding: 44px 80px 16px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}
.team-intro-row {
    width: 100%;
    display: flex;
    align-items: baseline;
    gap: 48px;
    margin-bottom: 28px;
    flex-shrink: 0;
}
.team-intro-row h2 {
    font-size: clamp(26px, 3.2vw, 46px);
    font-weight: 700; line-height: 1.1;
    letter-spacing: -0.03em; color: #0a0a0a; white-space: nowrap;
}
.team-intro-row p {
    font-size: 15px; color: var(--text-secondary); line-height: 1.7; max-width: 460px;
}
.team-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px; width: 100%; flex: 1; align-items: stretch; min-height: 0;
}
.team-card {
    border: 1px solid var(--border);
    padding: 26px 28px;
    transition: box-shadow 0.4s, border-color 0.4s;
    background: #fff;
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.team-card:hover {
    box-shadow: 0 24px 64px rgba(0,0,0,0.07);
    border-color: rgba(0,0,0,0.18);
}
.team-avatar {
    width: 100%;
    height: auto;
    min-height: 0;
    background: #ffffff; border-radius: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; font-weight: 700; color: #fff; margin: 0 0 18px;
    overflow: hidden; position: relative;
    flex: 1 1 0;
}
.team-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center top; border-radius: 0; }
.team-avatar span { display: none; position: absolute; }
.team-card h3 { font-size: 24px; font-weight: 700; margin-bottom: 5px; letter-spacing: -0.01em; }
.team-role {
    font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--muted); margin-bottom: 16px; display: block;
}
.team-bio { font-size: 15px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 18px; flex: 0 0 auto; }
.team-link {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 600; color: #fff;
    background: #0077b5; border-radius: 6px;
    text-decoration: none; padding: 8px 16px;
    letter-spacing: 0.04em;
    transition: gap 0.3s, background 0.2s;
}
.team-link:hover { gap: 14px; background: #005f8e; }

/* ============= CTA / CONTACT SECTION ============= */
.cta-section {
    background: #0a0a0a;
    color: #ffffff;
    flex-direction: column;
    padding: 28px 80px 0;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
}
.cta-section .section-label { color: #333; }
.cta-section .section-label::after { background: #222; }

/* ── Hero row: big heading left + map right ── */
.cta-hero-row {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
    gap: 44px;
    align-items: stretch;
    margin-top: 22px;
    flex: 1;
    min-height: clamp(320px, 50vh, 520px);
}
.cta-left {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-bottom: 4px;
}
.cta-left h2 {
    font-size: clamp(42px, 4.8vw, 76px);
    font-weight: 700;
    line-height: 0.97;
    letter-spacing: -0.035em;
    color: #fff;
    margin-bottom: 28px;
}
.cta-left p {
    font-size: 16px;
    color: #626262;
    line-height: 1.75;
    max-width: 520px;
    margin-top: auto;
}

/* ── Map — contained, framed ── */
.cta-map {
    border: 1px solid #1c1c1c;
    overflow: hidden;
    flex-shrink: 0;
    min-height: 100%;
    height: 100%;
    background: #111111;
    align-self: stretch;
    filter: grayscale(1);
}
.cta-map #contact-map {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    pointer-events: none;
}
.cta-map .leaflet-tile-pane {
    filter: grayscale(1) brightness(0.85) contrast(1.08);
    opacity: 1;
}

/* ── Contact details — 4-col horizontal strip ── */
.cta-details {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid #181818;
    border-bottom: 1px solid #181818;
    margin-top: 24px;
    flex-shrink: 0;
}
.cta-detail-item {
    padding: 24px 32px 24px 0;
    border-right: 1px solid #181818;
}
.cta-detail-item:last-child { border-right: none; }
.cta-detail-item span {
    display: block;
    font-size: 11px;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: #383838;
    margin-bottom: 8px;
}
.cta-detail-item a,
.cta-detail-item p {
    font-size: 17px;
    font-weight: 500;
    color: #d0d0d0;
    text-decoration: none;
    line-height: 1.5;
    transition: color 0.25s;
}
.cta-detail-item a:hover { color: #fff; }

/* ── Action buttons ── */
.cta-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

/* ── Footer strip — full-bleed ── */
.cta-footer {
    flex-shrink: 0;
    width: calc(100% + 160px);
    margin-left: -80px;
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 80px;
    border-top: 1px solid #111;
    background: #060606;
}
.cta-footer-copy {
    font-size: 11px;
    color: #2e2e2e;
    letter-spacing: 0.06em;
}
.cta-footer-links {
    display: flex;
    gap: 28px;
}
.cta-footer-links span {
    font-size: 11px;
    color: #2e2e2e;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: default;
    user-select: none;
    transition: color 0.2s;
}
.cta-footer-links span:hover { color: #555; }
.cta-btn {
    padding: 11px 28px;
    font-size: 12px; font-weight: 600;
    letter-spacing: 0.1em; text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-flex; align-items: center; gap: 8px;
    cursor: pointer;
}
.primary-btn { background: #fff; color: #0a0a0a; }
.primary-btn:hover { background: #e0e0e0; }
.secondary-btn { background: transparent; color: #aaa; border: 1px solid #333; }
.secondary-btn:hover { border-color: #666; color: #fff; }

/* Disabled "Work with Us" button */
.disabled-btn {
    background: transparent;
    color: #444;
    border: 1px solid #222;
    opacity: 0.5;
    cursor: not-allowed;
    position: relative;
}
.disabled-btn::before {
    content: 'Coming Soon';
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: rgba(255,255,255,0.8);
    font-size: 10px;
    padding: 4px 10px;
    white-space: nowrap;
    letter-spacing: 0.1em;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}
.disabled-btn:hover::before { opacity: 1; }

/* ============= BOTTOM NAVIGATION ============= */
.bottom-nav {
    position: fixed; bottom: 0; left: 0; right: 0;
    height: var(--menu-height);
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: center;
    align-items: stretch;
    z-index: 1000;
}
.nav-item {
    padding: 0 22px;
    font-size: 12px; font-weight: 600;
    letter-spacing: 0.18em; text-transform: uppercase;
    text-decoration: none; color: #aaa;
    display: flex; align-items: center;
    position: relative;
    transition: color 0.3s;
    border-right: 1px solid var(--border);
}
.nav-item:first-child { border-left: 1px solid var(--border); }
.nav-item::after {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 2px; background: #0a0a0a;
    transform: scaleX(0); transition: transform 0.35s ease;
}
.nav-item:hover { color: #0a0a0a; }
.nav-item:hover::after,
.nav-item.active::after { transform: scaleX(1); }
.nav-item.active { color: #0a0a0a; }

/* ============= KEYFRAMES ============= */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes slideDown {
    0%, 20% { opacity: 1; }
    100% { opacity: 0; transform: translateY(20px); }
}

/* ============= RESPONSIVE ============= */
@media (max-width: 1280px) {
    .hero-section { padding: 0 60px 56px; }
    .services-section,
    .portfolio-section,
    .team-section,
    .cta-section { padding-left: 60px; padding-right: 60px; }
    .tech-clients-section { padding-left: 48px; padding-right: 48px; }
    .cta-footer { width: calc(100% + 120px); margin-left: -60px; padding-left: 60px; padding-right: 60px; }

    .tech-logos-grid { grid-template-columns: 76px repeat(4, 1fr); }
}

@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(3, 1fr) auto; }
    .svc-card--wide { grid-template-columns: 36px 160px 1fr 1.4fr auto; gap: 16px; }
    .services-section .svc-card--wide { grid-template-columns: 36px 1fr 1.5fr auto; }
    .portfolio-service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-areas: none; grid-template-rows: none; }
    .portfolio-service-item { grid-area: auto !important; }
    .portfolio-service-item--large { grid-column: span 2; grid-row: span 1; }

    .tech-logos-grid { grid-template-columns: 64px repeat(2, 1fr); }
    .company-card { min-height: 68px; }
    .svc-gallery { height: 36px; }
    .svc-gallery--single { height: 110px; }
    .svc-wide-image { width: 160px; height: 72px; }

    .lightbox-inner { grid-template-columns: 1fr; max-width: 480px; }
    .lightbox-info { border-left: none; border-top: 1px solid #222; padding: 24px; }

    .team-cards-grid { grid-template-columns: 1fr; gap: 14px; }
    .team-intro-row { flex-direction: column; gap: 10px; }

    .cta-hero-row { grid-template-columns: 1fr; gap: 28px; }
    .cta-map { min-height: clamp(260px, 42vh, 380px); height: auto; }
    .cta-details { grid-template-columns: repeat(2, 1fr); }
    .cta-detail-item:nth-child(2) { border-right: none; }
    .cta-detail-item:nth-child(3),
    .cta-detail-item:nth-child(4) { border-top: 1px solid #181818; }
    .cta-footer { flex-direction: column; gap: 10px; align-items: flex-start; }
    .cta-footer-links { flex-wrap: wrap; gap: 16px; }
}

@media (max-width: 900px) {
    .hero-wrapper { grid-template-columns: 1fr; gap: 24px; }
    .hero-right { border-left: none; padding-left: 0; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; }
    .scroll-indicator { display: none; }
    .hero-section { padding: 0 40px 48px; }
    .hero-stats { gap: 20px; }
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(3, 1fr); }
    .portfolio-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: none; grid-template-rows: none; }
    .portfolio-service-item { grid-area: auto !important; }
    .portfolio-service-item--large { grid-column: span 2; grid-row: span 1; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .svc-card--wide { grid-template-columns: 36px 140px 1fr; grid-template-rows: auto auto; gap: 10px 14px; padding: 12px 16px; }
    .services-section .svc-card--wide { grid-template-columns: 36px 1fr; }
    .svc-card--wide .svc-card-tools { display: none; }
    .svc-card--wide .svc-card-desc { grid-column: 2 / -1; }
    .svc-wide-image { width: 140px; height: 68px; }
    .companies-block-logos { flex-wrap: wrap; gap: 4px; }
    .company-card { min-height: 62px; flex: none; width: calc(33.33% - 4px); }
    .company-logo { max-width: 92px; max-height: 24px; }
}

@media (max-width: 640px) {
    .hero-section,
    .services-section,
    .portfolio-section,
    .tech-clients-section,
    .team-section,
    .cta-section { padding-left: 24px; padding-right: 24px; }
    .cta-footer { width: calc(100% + 48px); margin-left: -24px; padding-left: 24px; padding-right: 24px; }
    .cta-details { grid-template-columns: 1fr 1fr; }
    .cta-detail-item:nth-child(2) { border-right: none; }

    .portfolio-grid { grid-template-columns: 1fr; grid-template-rows: repeat(6, 1fr); }
    .portfolio-service-grid { grid-template-columns: 1fr; grid-template-areas: none; grid-template-rows: none; grid-auto-rows: minmax(220px, auto); }
    .portfolio-service-item { grid-area: auto !important; }
    .portfolio-service-item--large { grid-column: auto; grid-row: auto; }
    .tech-logos-grid { grid-template-columns: 52px repeat(2, 1fr); }
    .tech-group-label { font-size: 7.5px; padding: 4px 3px; }
    .companies-strip { grid-template-columns: 1fr; }
    .company-logo { max-width: 84px; max-height: 22px; }
    .svc-gallery { height: 32px; }
    .svc-gallery--single { height: 108px; }
    .nav-item { padding: 0 12px; font-size: 10px; letter-spacing: 0.08em; }
    .team-card { padding: 28px 22px; }
    .tech-popup-inner { padding: 32px 24px; }
    .cta-buttons { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 1024px) {
    #snap-container {
        height: calc(100svh - var(--menu-height));
    }

    .full-page {
        min-height: calc(100svh - var(--menu-height));
    }

    .hero-stats-row {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .team-intro-row h2 {
        white-space: normal;
    }

    .portfolio-item {
        min-height: 220px;
    }

    .cta-left p {
        max-width: none;
    }

    .cta-detail-item {
        padding-right: 16px;
    }
}

@media (max-width: 900px) {
    #snap-container {
        scroll-snap-type: y proximity;
    }

    .full-page {
        height: auto;
        overflow: visible;
        padding-top: 18px;
        padding-bottom: calc(var(--menu-height) + 20px);
    }

    .hero-section,
    .portfolio-section,
    .services-section,
    .team-section,
    .cta-section,
    .tech-clients-section {
        justify-content: flex-start;
    }

    .hero-section {
        align-items: flex-start;
        padding-top: 28px;
    }

    .hero-wrapper {
        align-items: start;
        gap: 18px;
    }

    .hero-title {
        font-size: clamp(46px, 12vw, 86px);
        letter-spacing: 0.02em;
    }

    .hero-tagline {
        letter-spacing: 0.18em;
    }

    .hero-subtitle {
        font-size: 17px;
        line-height: 1.55;
    }

    .hero-stats-row {
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 18px 24px;
        justify-content: space-between;
    }

    .hero-cta-btn {
        width: 100%;
        justify-content: center;
    }

    .portfolio-section,
    .services-section,
    .team-section,
    .cta-section {
        padding-top: 18px;
    }

    .tech-clients-section {
        padding-top: 18px;
        padding-bottom: calc(var(--menu-height) + 20px);
    }

    .portfolio-grid,
    .services-grid {
        gap: 8px;
        background: transparent;
    }

    .portfolio-item,
    .svc-card,
    .svc-card--wide {
        border: 1px solid var(--border);
    }

    .services-grid {
        grid-auto-rows: auto;
    }

    .svc-card {
        min-height: 0;
    }

    .svc-card--wide {
        align-items: start;
    }

    .tech-clients-section .tga-wrap {
        min-height: 230px;
        max-height: 300px;
    }

    .companies-block {
        padding: 14px 14px 12px;
        gap: 8px;
    }

    .company-card {
        width: calc(50% - 4px);
        min-height: 74px;
        padding: 10px 8px 8px;
    }

    .team-intro-row {
        margin-bottom: 20px;
    }

    .cta-hero-row {
        min-height: 0;
        gap: 18px;
    }

    .cta-left {
        justify-content: flex-start;
        gap: 14px;
    }

    .cta-left h2 {
        margin-bottom: 0;
    }

    .cta-left p {
        line-height: 1.7;
    }

    .cta-map {
        min-height: 220px;
    }
}

@media (max-width: 768px) {
    html,
    body {
        --menu-height: 60px;
    }

    #snap-container {
        height: calc(100svh - var(--menu-height));
    }

    .full-page {
        padding-top: 24px;
        padding-bottom: calc(var(--menu-height) + 24px);
    }

    .section-label {
        margin-bottom: 16px;
        gap: 12px;
        letter-spacing: 0.22em;
    }

    .hero-section {
        padding-top: 20px;
        padding-bottom: calc(var(--menu-height) + 32px);
    }

    .hero-eyebrow,
    .hero-meta {
        letter-spacing: 0.18em;
    }

    .hero-tagline {
        font-size: 12px;
        letter-spacing: 0.14em;
    }

    .hero-stat-num {
        font-size: 40px;
    }

    .portfolio-grid,
    .services-grid,
    .team-cards-grid {
        grid-template-columns: 1fr;
        grid-template-rows: none;
    }

    .portfolio-item {
        min-height: 260px;
    }

    .portfolio-pagination {
        gap: 18px;
        padding-top: 18px;
    }

    .portfolio-prev,
    .portfolio-next {
        width: 42px;
        height: 42px;
    }

    .portfolio-nav-hint {
        display: none;
    }

    .svc-card {
        padding: 18px 18px 0;
        gap: 10px;
    }

    .svc-card-desc {
        -webkit-line-clamp: 5;
    }

    .svc-card--wide {
        grid-template-columns: 28px 1fr;
        grid-template-rows: auto auto auto;
        gap: 10px 14px;
        padding: 18px;
    }
    .services-section .svc-card--wide {
        grid-template-columns: 28px 1fr;
    }

    .svc-card--wide .svc-card-title,
    .svc-card--wide .svc-card-desc,
    .svc-card--wide .svc-card-tools {
        grid-column: 2;
    }

    .svc-wide-image {
        width: 100%;
        height: 118px;
        grid-column: 2;
    }

    .svc-card--wide .svc-card-tools {
        display: block;
        white-space: normal;
    }

    .tech-clients-section .tga-wrap {
        min-height: 210px;
        max-height: 250px;
    }

    .companies-block-logos {
        gap: 8px;
    }

    .company-logo {
        max-width: 96px;
        max-height: 28px;
    }

    .company-name {
        font-size: 10px;
        letter-spacing: 0.06em;
    }

    .team-card {
        padding: 24px 20px;
    }

    .team-card h3 {
        font-size: 22px;
    }

    .cta-section {
        gap: 18px;
    }

    .cta-hero-row {
        gap: 14px;
    }

    .cta-left {
        gap: 10px;
    }

    .cta-map {
        min-height: 190px;
    }

    .cta-left p {
        font-size: 13px;
        line-height: 1.6;
    }

    .cta-details {
        grid-template-columns: 1fr;
        margin-top: 16px;
    }

    .cta-detail-item {
        border-right: none;
        border-top: 1px solid #181818;
        padding: 16px 0;
    }

    .cta-detail-item:first-child {
        border-top: none;
    }

    .cta-actions {
        width: 100%;
        flex-direction: column;
        margin-top: 16px;
    }

    .cta-btn {
        width: 100%;
        justify-content: center;
    }

    .cta-footer {
        gap: 14px;
    }

    .bottom-nav {
        justify-content: flex-start;
        overflow-x: auto;
        overflow-y: hidden;
        padding-left: 12px;
        padding-right: 12px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .bottom-nav::-webkit-scrollbar {
        display: none;
    }

    .nav-item {
        flex: 0 0 auto;
        min-width: max-content;
    }
}

@media (max-width: 560px) {
    .hero-section,
    .portfolio-section,
    .services-section,
    .tech-clients-section,
    .team-section,
    .cta-section {
        padding-left: 18px;
        padding-right: 18px;
    }

    .hero-title {
        font-size: clamp(40px, 14vw, 64px);
        line-height: 0.95;
    }

    .hero-subtitle {
        font-size: 15px;
    }

    .hero-stats {
        gap: 14px 18px;
    }

    .portfolio-item {
        min-height: 220px;
    }

    .portfolio-overlay {
        padding: 16px;
    }

    .portfolio-overlay h4 {
        font-size: 15px;
    }

    .portfolio-overlay p {
        font-size: 12px;
    }

    .company-card {
        width: 100%;
    }

    .tech-popup-inner,
    .lightbox-info {
        padding: 24px 18px;
    }

    .cta-left h2 {
        font-size: clamp(26px, 9vw, 34px);
        line-height: 0.94;
    }

    .cta-left p {
        font-size: 12.5px;
        line-height: 1.55;
    }

    .cta-map {
        order: 0;
        min-height: 160px;
        background: #1b232b;
        border-color: #2d3946;
        box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
    }

    .cta-map #contact-map {
        background: #2b3540;
    }

    .cta-map .leaflet-tile-pane {
        filter: grayscale(0.18) brightness(1.18) contrast(0.92);
        opacity: 1;
    }

    .cta-footer {
        width: calc(100% + 36px);
        margin-left: -18px;
        padding-left: 18px;
        padding-right: 18px;
    }
}

@media (hover: none), (pointer: coarse) {
    .portfolio-item img,
    .svc-card,
    .team-card,
    .tech-logo-item,
    .tga-logo {
        transform: none !important;
    }

    .portfolio-overlay {
        opacity: 1;
        background: linear-gradient(to top, rgba(0,0,0,0.76) 0%, rgba(0,0,0,0.14) 68%, transparent 100%);
    }

    .portfolio-overlay p {
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
    }

    .portfolio-item img {
        filter: brightness(0.72);
    }

    .svc-card:hover,
    .team-card:hover,
    .tech-logo-item:hover,
    .tga-logo:hover {
        transform: none;
        box-shadow: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .portfolio-service-item img {
        animation: none;
    }
}
