@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --black: #000000;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
}

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

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--black);
    background: var(--white);
    overflow-x: hidden;
}

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}

.header.scrolled {
    border-bottom-color: var(--gray-200);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.logo svg {
    flex-shrink: 0;
}

.nav {
    display: flex;
    gap: 36px;
}

.nav a {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-700);
    letter-spacing: -0.01em;
    position: relative;
    transition: color 0.3s;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--black);
    transition: width 0.3s;
}

.nav a:hover {
    color: var(--black);
}

.nav a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    height: 28px;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--black);
    border-radius: 1px;
    transition: all 0.3s;
    transform-origin: center;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: -0.01em;
}

.btn-primary {
    background: var(--black);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--gray-800);
    transform: translateY(-1px);
}

.btn-large {
    padding: 16px 32px;
    font-size: 15px;
}

.btn-outline {
    background: transparent;
    color: var(--black);
    border: 1px solid var(--gray-300);
}

.btn-outline:hover {
    border-color: var(--black);
    background: var(--gray-50);
}

/* Mobile Menu */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
}

.menu-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    text-align: center;
}

.mobile-menu a {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--gray-800);
    transition: color 0.3s;
}

.mobile-menu a:hover {
    color: var(--black);
}

/* Hero */
.hero {
    padding: 180px 0 120px;
    position: relative;
}

.hero-title {
    font-size: clamp(40px, 6vw, 80px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--black);
}

.hero-title-accent {
    color: var(--gray-500);
}

.hero-subtitle {
    font-size: 18px;
    color: var(--gray-500);
    max-width: 620px;
    margin-top: 24px;
    line-height: 1.6;
}

/* Sections */
.section {
    padding: 100px 0;
}

.section-gray {
    background: var(--gray-50);
}

.section-label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-500);
    margin-bottom: 16px;
}

.section-intro {
    font-size: 18px;
    color: var(--gray-500);
    max-width: 780px;
    line-height: 1.6;
    margin-bottom: 64px;
}

.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-600);
    margin-bottom: 48px;
    transition: color 0.3s;
}

.view-all-link:hover {
    color: var(--black);
}

.view-all-link span {
    transition: transform 0.3s;
}

.view-all-link:hover span {
    transform: translateX(4px);
}

/* Services — Hover Swap Display with cinematic image panel */
.swap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: stretch;
}
.swap-list { list-style: none; }
.sp {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 26px 12px;
    cursor: pointer;
    border-bottom: 1px solid var(--gray-200);
    color: var(--gray-500);
    transition: color .35s, padding .35s, background .35s, border-color .35s;
}
.sp b {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--gray-400);
    transition: color .35s;
}
.sp span {
    font-size: clamp(20px, 2.6vw, 30px);
    font-weight: 700;
    letter-spacing: -0.01em;
}
.sp:hover, .sp.active { color: var(--ink); padding-left: 20px; }
.sp.active { border-color: var(--ink); }
.sp.active b { color: var(--ink); }

/* per-service image+description: only shown on mobile (desktop uses the hover-swap panel) */
.sp-mobile { display: none; }

.swap-panel {
    position: relative;
    min-height: 440px;
    border-radius: 22px;
    overflow: hidden;
    background: #0c0d10;
}
.swap-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1) contrast(1.03);
    opacity: 0;
    transform: scale(1.04);
    transition: opacity .7s ease, transform 7s ease;
    z-index: 0;
}
.swap-img.is-active {
    opacity: 1;
    transform: scale(1.12);
}
.swap-scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(8,9,12,0.10) 0%, rgba(8,9,12,0.30) 45%, rgba(8,9,12,0.82) 100%),
        linear-gradient(90deg, rgba(8,9,12,0.35), rgba(8,9,12,0) 55%);
}
.swap-copy {
    position: relative;
    z-index: 2;
    height: 100%;
    min-height: 440px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 44px;
    color: #fff;
}
.swap-copy .pn {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.72);
    margin-bottom: 12px;
}
.swap-copy h2 {
    font-size: clamp(26px, 3.4vw, 40px);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
}
.swap-copy p {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255,255,255,0.86);
    max-width: 440px;
}

@media (max-width: 860px) {
    .swap { grid-template-columns: 1fr; gap: 28px; }
    .swap-panel { display: none; }
    .sp { flex-wrap: wrap; padding: 20px 0; }
    .sp:hover, .sp.active { padding-left: 0; }
    .sp-mobile { display: none; }
    .sp.active .sp-mobile {
        display: block;
        flex: 1 1 100%;
        margin-top: 18px;
        border-radius: 14px;
        overflow: hidden;
        background: #0c0d10;
        animation: spMobileIn .4s ease both;
    }
    .sp.active .sp-mobile img {
        width: 100%;
        aspect-ratio: 16 / 10;
        object-fit: cover;
        filter: grayscale(1) contrast(1.03);
        display: block;
    }
    .sp.active .sp-mobile p {
        padding: 16px 18px 20px;
        font-size: 15px;
        line-height: 1.7;
        color: rgba(255, 255, 255, 0.86);
    }
}

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

/* Clients */
.clients-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
}

.client-logo {
    flex: 1 1 calc(33% - 32px);
    min-width: 150px;
    height: 56px;
    background: var(--white);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.05em;
    border: 1px solid var(--gray-200);
    padding: 8px;
}

.client-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.client-logo .placeholder-logo {
    color: var(--gray-400);
    font-size: 13px;
    font-weight: 600;
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.project-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

.project-card.project-card-tall .project-image {
    aspect-ratio: 2/3;
}

.project-image {
    aspect-ratio: 4/3;
    border-radius: 6px;
    overflow: hidden;
    background: var(--gray-100);
    margin-bottom: 16px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s;
}

.project-card:hover .project-image img {
    transform: scale(1.03);
}

.project-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--gray-700);
    line-height: 1.5;
    letter-spacing: -0.01em;
    transition: color 0.3s;
}

.project-card:hover .project-title {
    color: var(--black);
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.testimonial-card {
    background: var(--white);
    border-radius: 8px;
    padding: 36px;
    border: 1px solid var(--gray-200);
    transition: border-color 0.3s;
}

.testimonial-card:hover {
    border-color: var(--gray-300);
}

.testimonial-card p {
    font-size: 15px;
    color: var(--gray-700);
    line-height: 1.65;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

.testimonial-card footer {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-500);
}

/* About / Why */
.about-lead {
    font-size: 18px;
    color: var(--gray-500);
    max-width: 900px;
    line-height: 1.65;
    margin-bottom: 64px;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
}

.stat-label {
    font-size: 13px;
    color: var(--gray-500);
    font-weight: 500;
}

/* Blog */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.blog-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

.blog-image {
    aspect-ratio: 16/10;
    border-radius: 8px;
    overflow: hidden;
    background: var(--gray-100);
    margin-bottom: 16px;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.blog-tag {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray-400);
}

.blog-meta time {
    font-size: 12px;
    color: var(--gray-400);
    font-weight: 500;
}

.blog-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-800);
    line-height: 1.5;
    letter-spacing: -0.01em;
    transition: color 0.3s;
}

.blog-card:hover .blog-title {
    color: var(--black);
}

/* FAQ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--gray-200);
}

.faq-item {
    border-bottom: 1px solid var(--gray-200);
}

.faq-item summary {
    padding: 28px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-800);
    cursor: pointer;
    letter-spacing: -0.01em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 22px;
    font-weight: 400;
    transition: transform 0.3s;
    color: var(--gray-500);
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-item p {
    padding-bottom: 28px;
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.65;
}

/* CTA */
.cta-section {
    text-align: center;
    padding: 120px 0;
}

.cta-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 32px;
}

.cta-contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin-top: 32px;
    font-size: 15px;
    font-weight: 500;
    color: var(--gray-500);
}

.cta-contact-info a {
    color: var(--gray-600);
    transition: color 0.3s;
}

.cta-contact-info a:hover {
    color: var(--black);
}

/* Footer */
.footer {
    padding: 72px 0 32px;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--gray-200);
}

.footer-logo {
    display: inline-block;
    margin-bottom: 14px;
}

.footer-logo img {
    height: 46px;
    width: auto;
    object-fit: contain;
    display: block;
}

.footer-tagline {
    font-size: 14px;
    color: var(--gray-500);
    max-width: 300px;
    line-height: 1.6;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}

.footer-col-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-400);
    margin-bottom: 6px;
}

.footer-col a,
.footer-contact span {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-600);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--black);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 28px;
}

.footer-bottom span,
.footer-bottom a {
    font-size: 13px;
    color: var(--gray-500);
    text-decoration: none;
}

.footer-bottom a:hover {
    color: var(--black);
}
/* Placeholder images */
.placeholder-img {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    font-size: 13px;
    background: var(--gray-100);
    width: 100%;
    height: 100%;
}

/* Responsive */
@media (max-width: 1024px) {
    .projects-grid,
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 48px;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav,
    .header-actions .btn {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .hero {
        padding: 140px 0 80px;
    }

    .section {
        padding: 64px 0;
    }

    .projects-grid,
    .blog-grid,
    .clients-row {
        grid-template-columns: 1fr;
    }

    .stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 36px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .cta-contact-info {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .stats-row {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }

    .hero-title {
        font-size: 36px;
    }

    .testimonial-card {
        padding: 24px;
    }
}

/* Animations (controlled by JS) */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
}

/* Contact Form Styles */
form input,
form textarea,
form select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--black);
    transition: border-color 0.3s;
}

form input:focus,
form textarea:focus,
form select:focus {
    outline: none;
    border-color: var(--black);
}

form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 6px;
}

form .form-group {
    margin-bottom: 20px;
}

form textarea {
    min-height: 120px;
    resize: vertical;
}

.alert {
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 24px;
    line-height: 1.5;
}

.alert-success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}


/* ===== PRELOADER ===== */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease;
    pointer-events: none;
    animation: preloaderFade 0.6s ease 1s forwards;
}
@keyframes preloaderFade {
    to { opacity: 0; visibility: hidden; }
}
.preloader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}
.preloader-logo {
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}
.preloader-bar {
    width: 160px;
    height: 2px;
    background: var(--gray-200);
    overflow: hidden;
    border-radius: 2px;
}
.preloader-bar span {
    display: block;
    height: 100%;
    width: 40%;
    background: var(--black);
    animation: preload 1s ease-in-out infinite;
}
@keyframes preload {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(350%); }
}

/* ===== CUSTOM CURSOR ===== */
.cursor, .cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
}
.cursor {
    width: 6px;
    height: 6px;
    background: var(--black);
    margin: -3px 0 0 -3px;
}
.cursor-follower {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(0,0,0,0.25);
    margin: -18px 0 0 -18px;
    transition: width 0.3s, height 0.3s, background 0.3s, border-color 0.3s;
    will-change: transform;
}
.cursor.is-hover, .cursor-follower.is-hover {
    width: 56px;
    height: 56px;
    margin: -28px 0 0 -28px;
    background: rgba(0,0,0,0.06);
    border-color: rgba(0,0,0,0.4);
}
@media (hover: none) {
    .cursor, .cursor-follower { display: none; }
}

/* ===== CLIENT MARQUEE ===== */
.marquee {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
    display: flex;
    gap: 32px;
    width: max-content;
}

/* ===== SPLIT TEXT HERO ===== */
.hero-title .split-line {
    display: block;
    overflow: hidden;
}
.hero-title .split-inner {
    display: block;
}

/* ===== MAGNETIC BUTTON ===== */
[data-magnetic] {
    display: inline-flex;
    will-change: transform;
}

/* =========================================================
   CINEMATIC HERO (dark video hero, adapted to MIG Red Sea Co)
   ========================================================= */
:root {
    --u: calc(100vh / 1058);
    --uw: calc(100vw / 1487);
    --h: clamp(var(--u), calc(var(--u) * 0.65 + var(--uw) * 0.35), calc(var(--u) * 1.16));
}
@supports (height: 100dvh) { :root { --u: calc(100dvh / 1058); } }

/* ---- Header: transparent + light over hero, white when scrolled ---- */
.header {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom-color: transparent;
}
.header.scrolled {
    background: #fff;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom-color: var(--gray-200);
}
.header-inner { position: relative; }
.header .logo { color: #fafafa; transition: color 0.3s; }
.header.scrolled .logo { color: var(--black); }
.logo-img {
    display: inline-flex;
    align-items: center;
    line-height: 0;
}

.logo-img img {
    height: 40px;
    width: auto;
    object-fit: contain;
    border-radius: 8px;
    display: block;
}
.header .nav {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}
.header:not(.scrolled) .nav a { color: rgba(250, 250, 250, 0.82); }
.header:not(.scrolled) .nav a:hover { color: #fff; }
.header.scrolled .nav a { color: var(--gray-700); }
.header:not(.scrolled) .menu-toggle span { background: #fafafa; }
.header.scrolled .menu-toggle span { background: var(--black); }

.nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 26px;
    border-radius: 999px;
    background: #fff;
    color: #050505;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.01em;
    text-decoration: none;
    transition: all 0.3s;
}
.nav-cta:hover { transform: translateY(-1px); }
.header.scrolled .nav-cta { background: var(--black); color: #fff; }
.menu-overlay .nav-cta { background: #fff; color: #050505; }
.menu-overlay .nav-cta:hover { background: #e9e9e9; }

/* ---- Stage ---- */
.hero-cinematic {
    position: relative;
    height: 100vh;
    min-height: 620px;
    background: #050505;
    overflow: hidden;
    color: #fafafa;
}
.plate {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}
.plate-video {
    position: absolute;
    left: 50%;
    top: calc(1 * var(--u));
    width: calc(1492 * var(--u));
    height: calc(1054 * var(--u));
    transform: translateX(calc(-50% - 0.5 * var(--u)));
    object-fit: cover;
    pointer-events: none;
}
.hero-cinematic::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background:
        radial-gradient(105% 105% at 50% 50%,
            rgba(5,5,5,0) 0%,
            rgba(5,5,5,0) 4%,
            rgba(5,5,5,0.7) 26%,
            rgba(5,5,5,0.95) 52%,
            rgba(5,5,5,0.99) 74%,
            #050505 100%),
        linear-gradient(to bottom,
            rgba(5,5,5,0.6) 0%, rgba(5,5,5,0) 12%,
            rgba(5,5,5,0) 58%, rgba(5,5,5,0.6) 88%, #050505 100%);
}

/* ---- Hero content (absolute, height-locked units) ---- */
.headline {
    position: absolute;
    z-index: 2;
    left: calc(130 * var(--u));
    top: calc(230.5 * var(--u));
    margin: 0;
    font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-weight: 400;
    font-size: calc(71.6 * var(--h));
    line-height: calc(80.5 * var(--h));
    letter-spacing: calc(0.3 * var(--h));
    color: #fafafa;
    white-space: nowrap;
    text-rendering: geometricPrecision;
}
.headline span { display: block; }

.sub {
    position: absolute;
    z-index: 2;
    left: calc(130 * var(--u));
    top: calc(445 * var(--u));
    margin: 0;
    font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: calc(20.7 * var(--h));
    line-height: calc(23.5 * var(--h));
    font-weight: 400;
    word-spacing: calc(1.8 * var(--h));
    color: #a7a6a6;
    white-space: nowrap;
}
.sub span { display: block; }

.pill-cta {
    position: absolute;
    z-index: 2;
    left: calc(130 * var(--u));
    top: calc(525 * var(--u));
    width: calc(175.6 * var(--h));
    height: calc(50 * var(--h));
    font-size: calc(20.6 * var(--h));
    font-weight: 500;
    background: #fff;
    color: #050505;
    border-radius: 999px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.pill-cta span { transform: translateY(calc(1 * var(--u))); }

.ghost {
    position: absolute;
    z-index: 2;
    left: calc(130 * var(--u) + 220.6 * var(--h));
    top: calc(540 * var(--u));
    font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: calc(20.6 * var(--h));
    font-weight: 500;
    letter-spacing: calc(0.12 * var(--h));
    color: #fff;
    text-decoration: none;
}
.ghost:hover { opacity: 0.8; }

/* ---- Bottom client strip (marquee) ---- */
.logos {
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(63.3 * var(--u));
    z-index: 2;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.logos-track {
    display: flex;
    align-items: center;
    gap: calc(48 * var(--u));
    width: max-content;
    padding: 0 calc(24 * var(--u));
    animation: logoScroll 30s linear infinite;
}
.logos-track img {
    height: calc(20 * var(--u));
    width: auto;
    max-width: calc(150 * var(--u));
    object-fit: contain;
    filter: grayscale(1) brightness(0) invert(1);
    opacity: 0.62;
    flex-shrink: 0;
}
@keyframes logoScroll {
    to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
    .logos-track { animation: none; }
}

/* ---- Entrance animations ---- */
@media (prefers-reduced-motion: no-preference) {
    @keyframes rise {
        from { opacity: 0; transform: translateY(calc(14 * var(--u))); }
    }
    @keyframes riseNav {
        from { opacity: 0; transform: translate(-50%, calc(-50% + 14 * var(--u))); }
        to { opacity: 1; transform: translate(-50%, -50%); }
    }
    @keyframes fade { from { opacity: 0; } }

    .header .logo, .header .nav, .header .header-actions { animation: rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) both; }
    .headline { animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.06s both; }
    .sub { animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.14s both; }
    .pill-cta { animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.22s both; }
    .ghost { animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.22s both; }
    .logos { animation: fade 1.1s ease 0.34s both; }
}

/* ---- Mobile overlay (dark) ---- */
.menu-overlay { background: #050505; }
.mobile-menu a { color: #fafafa; }
.mobile-menu a:hover { color: #fff; }

/* ---- Custom cursor over dark hero ---- */
.hero-dark .cursor { background: #fff; }
.hero-dark .cursor-follower { border-color: rgba(255, 255, 255, 0.4); background: rgba(255, 255, 255, 0.06); }
.hero-dark .cursor.is-hover, .hero-dark .cursor-follower.is-hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
}

/* ---- Portrait / narrow ---- */
@media (max-aspect-ratio: 11/10) {
    .plate-video {
        left: 0; top: 0;
        width: 100%; height: 100%;
        transform: none;
        object-position: 43% center;
    }
    .hero-cinematic::after {
        background:
            linear-gradient(to bottom,
                rgba(5,5,5,0.88) 0%,
                rgba(5,5,5,0.62) 18%,
                rgba(5,5,5,0.55) 40%,
                rgba(5,5,5,0.5) 60%,
                rgba(5,5,5,0.8) 82%,
                #050505 100%),
            radial-gradient(125% 95% at 50% 40%,
                rgba(5,5,5,0) 0%,
                rgba(5,5,5,0.35) 62%,
                rgba(5,5,5,0.7) 100%);
    }
    .hero-cinematic {
        display: flex;
        flex-direction: column;
        height: 100vh;
        height: 100svh;
        min-height: 100svh;
        padding: 72px 0 26px;
    }
    .hero-z1 {
        position: relative;
        z-index: 2;
        flex: 0.8 1 0;
        display: flex;
        align-items: flex-end;
        padding: 0 24px;
    }
    .hero-z2 {
        position: relative;
        z-index: 2;
        flex: 1.2 1 0;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        gap: 16px;
        padding: 0 24px;
    }
    .headline, .sub, .pill-cta, .ghost, .logos {
        position: static;
        transform: none;
        animation: none;
        white-space: normal;
    }
    .headline {
        font-size: clamp(34px, 9vw, 56px);
        line-height: 1.05;
        letter-spacing: -0.02em;
        color: #ffffff;
        text-shadow: 0 2px 22px rgba(0,0,0,0.6);
    }
    .sub {
        font-size: 16px;
        line-height: 1.5;
        color: #ededed;
        word-spacing: 0;
        margin-top: 14px;
        text-shadow: 0 1px 14px rgba(0,0,0,0.55);
    }
    .actions {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 18px;
        margin-top: 0;
    }
    .pill-cta {
        position: static;
        width: auto;
        height: auto;
        padding: 14px 28px;
        font-size: 16px;
    }
    .pill-cta span { transform: none; }
    .ghost {
        position: static;
        font-size: 16px;
    }
    .logos {
        position: relative;
        z-index: 2;
        left: 0; right: 0;
        bottom: auto;
        margin-top: 20px;
        flex: 0 0 auto;
        -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
        mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    }
    .logos-track {
        gap: 30px;
        padding: 0 24px;
        animation: logoScroll 30s linear infinite;
        flex-wrap: nowrap;
        justify-content: flex-start;
    }
    .logos-track img { height: 22px; max-width: 130px; opacity: 0.9; }
    .header .nav { display: none; }
    .header .nav-cta { display: none; }
    .menu-toggle { display: flex; }
}
@media (min-aspect-ratio: 11/10) {
    .menu-toggle { display: none; }
}

/* =========================================================
   LIGHT EDITORIAL MOTION — dividers, accents, spotlights, tilt
   ========================================================= */
.section { position: relative; }

/* hairline divider that wipes in when a section enters view */
.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 6%;
    right: 6%;
    height: 1px;
    background: linear-gradient(90deg,
        transparent, var(--gray-300) 18%, var(--gray-300) 82%, transparent);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 1.1s cubic-bezier(.2,.7,.2,1);
}
.section.in-view::before { transform: scaleX(1); }

/* section label: accent line that grows in on enter */
.section-label { position: relative; }
.section-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: -14px;
    width: 30px;
    height: 2px;
    background: var(--black);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .7s cubic-bezier(.2,.7,.2,1) .15s;
}
.section.in-view .section-label::before { transform: scaleX(1); }

/* cards: cursor spotlight + 3D tilt + lift */
.project-card, .testimonial-card, .blog-card, .client-logo {
    position: relative;
}
.project-card, .testimonial-card, .blog-card {
    transition: box-shadow 0.45s ease;
    will-change: transform;
    transform-style: preserve-3d;
}
.project-card:hover, .testimonial-card:hover, .blog-card:hover {
    box-shadow: 0 26px 60px -30px rgba(20,22,28,0.4);
}
.project-card::after,
.testimonial-card::after,
.blog-card::after,
.client-logo::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.45s ease;
    background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%),
        rgba(255,255,255,0.5), rgba(255,255,255,0) 60%);
    mix-blend-mode: soft-light;
    z-index: 2;
}
.project-card:hover::after,
.testimonial-card:hover::after,
.blog-card:hover::after,
.client-logo:hover::after { opacity: 1; }

/* ============ ABOUT SECTION — centered ============ */
#about { text-align: center; }
#about .section-label { display: inline-block; }
#about .section-label::before {
    left: 50%;
    transform: translateX(-50%) scaleX(0);
}
#about.in-view .section-label::before { transform: translateX(-50%) scaleX(1); }
#about .about-lead { margin-left: auto; margin-right: auto; text-align: center; }
#about .stats-row { justify-content: center; }

/* ============ PROJECTS — view more ============ */
.projects-grid:not(.show-all) .project-card:nth-child(n+7) { display: none; }
.projects-more { text-align: center; margin-top: 48px; }
.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    font-size: 15px;
    font-weight: 600;
    color: var(--black);
    background: transparent;
    border: 1px solid var(--gray-300);
    border-radius: 999px;
    cursor: pointer;
    transition: border-color 0.3s, background 0.3s, color 0.3s, transform 0.3s;
}
.btn-outline:hover {
    border-color: var(--black);
    background: var(--black);
    color: #fff;
    transform: translateY(-2px);
}
.btn-outline .btn-arrow { transition: transform 0.3s; }
.btn-outline:hover .btn-arrow { transform: translateY(2px); }
