/* ============================================================
   AfriSkill AI — Luxury Agency Layer
   Loaded last. Transforms layout, motion, and theme without
   changing PHP/CMS contracts.
   ============================================================ */

html { color-scheme: dark; }
[data-theme="light"] { color-scheme: light; }

body {
    background:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(214, 179, 106, 0.06), transparent 50%),
        var(--bg-primary);
    font-size: var(--text-base);
    letter-spacing: -0.011em;
}

.gradient-text {
    background: var(--gradient-text);
    background-size: 180% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-style: italic;
}

.gold-word {
    font-style: italic;
    color: var(--accent-gold);
    background: none;
    -webkit-text-fill-color: var(--accent-gold);
}

/* --- Page loader --- */
.page-loader {
    background: var(--bg-primary);
}
.loader-logo { letter-spacing: -0.04em; }
.loader-progress { background: var(--gradient-gold); }
.logo-accent {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cursor-glow {
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(214, 179, 106, 0.07) 0%, transparent 68%);
    mix-blend-mode: screen;
}
[data-theme="light"] .cursor-glow {
    background: radial-gradient(circle, rgba(184, 146, 58, 0.08) 0%, transparent 68%);
    mix-blend-mode: multiply;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.navbar {
    height: var(--nav-height);
    background: transparent;
    border-bottom: 1px solid transparent;
}
.navbar.scrolled {
    height: 68px;
    background: rgba(7, 8, 12, 0.72);
    backdrop-filter: blur(22px) saturate(1.3);
    -webkit-backdrop-filter: blur(22px) saturate(1.3);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.28);
}
[data-theme="light"] .navbar.scrolled {
    background: rgba(246, 243, 237, 0.82);
}
.navbar.compact { height: 64px; }

.navbar-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: 100%;
    gap: 16px;
}
.navbar-logo img.logo-img { height: 28px; width: auto; display: block; }
.navbar-menu {
    justify-self: center;
    display: flex;
    align-items: center;
    gap: 2px;
}
.navbar-actions { justify-self: end; }

.nav-link {
    padding: 10px 14px;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-secondary);
    background: none;
    border-radius: 0;
}
.nav-link::after {
    content: '';
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 6px;
    height: 1px;
    background: var(--accent-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s var(--ease-out);
}
.nav-link:hover,
.nav-item.active .nav-link {
    color: var(--text-primary);
    background: none;
    box-shadow: none;
}
.nav-link:hover::after,
.nav-item.active .nav-link::after { transform: scaleX(1); }

.nav-cta {
    border-radius: 100px;
    padding: 10px 18px;
    font-size: 0.8125rem;
    box-shadow: none;
}

.dropdown-menu,
.mega-menu {
    background: rgba(13, 16, 23, 0.96);
    border: 1px solid var(--border);
    backdrop-filter: blur(24px);
    box-shadow: var(--shadow-lg);
}
[data-theme="light"] .dropdown-menu,
[data-theme="light"] .mega-menu {
    background: rgba(255, 255, 255, 0.96);
}

.nav-action-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid transparent;
}
.nav-action-btn:hover {
    border-color: var(--border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
}

.search-overlay {
    background: rgba(7, 8, 12, 0.94);
    backdrop-filter: blur(28px);
}
[data-theme="light"] .search-overlay {
    background: rgba(246, 243, 237, 0.96);
}
.search-input:focus { border-color: var(--accent-gold); }

/* Full-screen mobile navigation */
.mobile-menu {
    background: var(--bg-primary);
    backdrop-filter: none;
    padding: 0;
    transform: translateY(-8px);
    transition: opacity 0.4s var(--ease-out), visibility 0.4s, transform 0.45s var(--ease-out);
}
.mobile-menu.active { transform: translateY(0); }
.mobile-menu-inner {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: calc(var(--nav-height) + 12px) clamp(1.5rem, 6vw, 3rem) 3rem;
}
.mobile-nav { margin-bottom: 32px; }
.mobile-nav-link {
    font-family: var(--font-display);
    font-size: clamp(2rem, 8vw, 3.25rem);
    font-weight: 400;
    letter-spacing: -0.03em;
    padding: 10px 0;
    border-bottom: 0;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out), color 0.3s;
}
.mobile-menu.active .mobile-nav-link {
    opacity: 1;
    transform: none;
}
.mobile-menu.active .mobile-nav li:nth-child(1) .mobile-nav-link { transition-delay: 0.05s; }
.mobile-menu.active .mobile-nav li:nth-child(2) .mobile-nav-link { transition-delay: 0.1s; }
.mobile-menu.active .mobile-nav li:nth-child(3) .mobile-nav-link { transition-delay: 0.15s; }
.mobile-menu.active .mobile-nav li:nth-child(4) .mobile-nav-link { transition-delay: 0.2s; }
.mobile-menu.active .mobile-nav li:nth-child(5) .mobile-nav-link { transition-delay: 0.25s; }
.mobile-menu.active .mobile-nav li:nth-child(6) .mobile-nav-link { transition-delay: 0.3s; }
.mobile-nav-link:hover {
    color: var(--accent-gold);
    padding-left: 0;
    text-shadow: none;
}
.mobile-submenu { padding: 0 0 12px 4px; }
.mobile-submenu a {
    font-size: 0.9375rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.mobile-menu .btn {
    margin-top: 8px;
    border-radius: 100px;
    max-width: 280px;
}

@media (min-width: 1101px) {
    .hamburger { display: none !important; }
    .navbar-menu { display: flex !important; }
}

@media (max-width: 1100px) {
    .navbar-menu,
    .nav-cta { display: none; }
    .hamburger { display: flex; }
    .navbar-inner {
        display: flex;
        justify-content: space-between;
    }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    min-height: 100svh;
    background: var(--bg-primary);
}
.hero-bg::after {
    background: var(--gradient-mesh);
    animation: none;
    opacity: 1;
}
.hero-gradient { opacity: 0.55; }
.shape {
    filter: blur(90px);
    opacity: 0.18;
}
.shape-1 { background: radial-gradient(circle, #D6B36A, transparent 70%); }
.shape-2 { background: radial-gradient(circle, #F0D38A, transparent 70%); opacity: 0.12; }
.shape-3 { background: radial-gradient(circle, #171C26, transparent 70%); opacity: 0.5; }
.shape-4 { background: radial-gradient(circle, #D6B36A, transparent 70%); opacity: 0.12; }

.hero-mesh {
    opacity: 0.28;
    background-size: 72px 72px;
}

.hero-content {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 5rem);
    padding: clamp(4rem, 10vh, 7rem) 0 clamp(5rem, 12vh, 8rem);
}

.hero-eyebrow,
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    color: var(--accent-gold);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-bottom: 28px;
}
.hero-badge { color: var(--accent-gold); }

.hero-title {
    font-family: var(--font-display);
    font-size: var(--text-hero);
    font-weight: 400;
    line-height: 0.98;
    letter-spacing: -0.035em;
    max-width: 14ch;
    margin-bottom: 28px;
}
.hero-title .typing-text {
    background: none;
    -webkit-text-fill-color: inherit;
    color: inherit;
    animation: none;
}
.hero-title .line { display: block; }

.hero-subtitle {
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 34rem;
    line-height: 1.75;
    margin-bottom: 40px;
}

.hero-buttons { gap: 12px; margin-bottom: 40px; }
.hero-buttons .btn { border-radius: 100px; padding: 14px 26px; }

.hero-visual {
    position: relative;
    min-height: min(520px, 70vh);
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-orb {
    position: absolute;
    inset: 8%;
    border-radius: 50%;
    border: 1px solid rgba(214, 179, 106, 0.18);
    animation: heroOrbit 28s linear infinite;
}
.hero-orb::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-gold);
    box-shadow: 0 0 16px rgba(214, 179, 106, 0.6);
}
.hero-orb-2 {
    inset: 20%;
    animation-duration: 18s;
    animation-direction: reverse;
    border-color: rgba(255, 255, 255, 0.08);
}
.hero-core {
    width: min(280px, 56vw);
    height: min(280px, 56vw);
    border-radius: 50%;
    background:
        radial-gradient(circle at 40% 35%, rgba(240, 211, 138, 0.18), transparent 42%),
        radial-gradient(circle at 60% 70%, rgba(214, 179, 106, 0.12), transparent 50%),
        var(--surface);
    border: 1px solid var(--border);
    box-shadow: inset 0 0 80px rgba(214, 179, 106, 0.06), 0 30px 80px rgba(0, 0, 0, 0.4);
}
.hero-grid-fade {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(circle at 50% 50%, #000 20%, transparent 72%);
    -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 20%, transparent 72%);
    pointer-events: none;
}
@keyframes heroOrbit { to { transform: rotate(360deg); } }

.hero-stats {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    max-width: none;
    width: min(320px, 100%);
    z-index: 2;
}
.hero-stat-card {
    padding: 18px 20px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(18, 22, 31, 0.72);
    border: 1px solid var(--border);
    backdrop-filter: blur(16px);
    border-radius: var(--radius-md);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}
.hero-stat-card:hover {
    border-color: rgba(214, 179, 106, 0.28);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
.stat-icon { color: var(--accent-gold); margin: 0; }
.stat-value { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.03em; }
.stat-label { font-size: 0.75rem; color: var(--text-muted); }

.scroll-indicator {
    animation: none;
    opacity: 0.55;
    letter-spacing: 0.18em;
}
.scroll-line { background: linear-gradient(to bottom, var(--accent-gold), transparent); }

/* Hero load choreography */
.hero-enter .hero-eyebrow,
.hero-enter .hero-badge,
.hero-enter .hero-title,
.hero-enter .hero-subtitle,
.hero-enter .hero-buttons,
.hero-enter .hero-visual {
    animation: agencyReveal 0.9s var(--ease-out) both;
}
.hero-enter .hero-eyebrow,
.hero-enter .hero-badge { animation-delay: 0.15s; }
.hero-enter .hero-title { animation-delay: 0.28s; }
.hero-enter .hero-subtitle { animation-delay: 0.42s; }
.hero-enter .hero-buttons { animation-delay: 0.55s; }
.hero-enter .hero-visual { animation-delay: 0.35s; animation-name: agencyScaleIn; }
@keyframes agencyReveal {
    from { opacity: 0; transform: translateY(18px); filter: blur(8px); }
    to { opacity: 1; transform: none; filter: none; }
}
@keyframes agencyScaleIn {
    from { opacity: 0; transform: scale(0.94); }
    to { opacity: 1; transform: none; }
}

/* ============================================================
   TRUST / SOCIAL PROOF
   ============================================================ */
.trust-section {
    padding: 28px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-secondary);
}
.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}
.trust-card {
    padding: 36px 20px;
    text-align: left;
    background: transparent;
    border: 0;
    border-radius: 0;
    border-right: 1px solid var(--border);
    box-shadow: none;
}
.trust-card:last-child { border-right: 0; }
.trust-card:hover,
.trust-card.glass-card:hover {
    transform: none;
    background: transparent;
    box-shadow: none;
}
.trust-card.glass-card::before { display: none; }
.trust-icon { color: var(--accent-gold); justify-content: flex-start; margin-bottom: 12px; }
.trust-number {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    font-weight: 400;
    letter-spacing: -0.03em;
}
.trust-label { font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase; }

/* ============================================================
   SERVICES
   ============================================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.service-card {
    padding: 32px 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    min-height: 280px;
    display: flex;
    flex-direction: column;
}
.service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(214, 179, 106, 0.07), transparent 50%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}
.service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(214, 179, 106, 0.28);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}
.service-card:hover::after { opacity: 1; }
.service-icon {
    background: rgba(214, 179, 106, 0.08);
    border: 1px solid rgba(214, 179, 106, 0.18);
    color: var(--accent-gold);
    border-radius: 16px;
}
.service-icon-glow { background: radial-gradient(circle, rgba(214, 179, 106, 0.28), transparent 70%); }
.service-title { font-size: 1.35rem; font-weight: 600; letter-spacing: -0.03em; }
.service-link { color: var(--accent-gold); margin-top: auto; }
.service-link:hover { color: var(--accent-gold-light); }

/* ============================================================
   EDITORIAL PROJECTS
   ============================================================ */
.projects-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    grid-auto-rows: minmax(280px, auto);
    gap: 20px;
}
.project-card:nth-child(3n+1) {
    grid-column: 1 / -1;
}
.project-card:nth-child(3n+1) .project-image-wrap { aspect-ratio: 21 / 9; }
.project-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
}
.project-image-wrap { aspect-ratio: 16 / 11; }
.project-overlay {
    opacity: 1;
    background: linear-gradient(180deg, transparent 35%, rgba(7, 8, 12, 0.78) 100%);
}
.project-featured-badge {
    background: rgba(214, 179, 106, 0.92);
    color: #07080C;
    letter-spacing: 0.08em;
}
.project-price { color: var(--accent-gold); }
.filter-btn {
    border-radius: 100px;
    min-height: 40px;
}
.filter-btn:hover,
.filter-btn.active {
    background: var(--accent-interactive);
    color: var(--bg-primary);
    border-color: var(--accent-interactive);
}
[data-theme="light"] .filter-btn.active {
    background: #16181D;
    color: #F5F7FA;
}

.project-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 18px;
}
.form-group--float input:focus + label,
.form-group--float input:not(:placeholder-shown) + label,
.form-group--float textarea:focus + label,
.form-group--float textarea:not(:placeholder-shown) + label {
    color: var(--accent-gold);
}
.skip-link:focus { background: var(--accent-gold); color: #07080C; }
.ix-map-svg stop { stop-color: rgba(214, 179, 106, 0.18); }

/* Featured carousel */
.fx-showcase .fx-slide {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
}
.fx-chip {
    border: 1px solid rgba(214, 179, 106, 0.28) !important;
    background: rgba(214, 179, 106, 0.1) !important;
    color: var(--accent-gold) !important;
}
.fx-visual {
    position: relative;
    width: 100%;
    min-height: 420px;
    border-radius: 20px;
    overflow: hidden;
    background:
        radial-gradient(ellipse 80% 60% at 20% 10%, rgba(214, 179, 106, 0.14), transparent 55%),
        linear-gradient(160deg, #171C26 0%, #0D1017 100%);
    border: 1px solid rgba(214, 179, 106, 0.16);
}
.fx-visual img {
    width: 100% !important;
    max-width: none !important;
    min-height: 420px;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: none;
}
.fx-visual.is-fallback::after,
.fx-visual:not(:has(img))::after {
    content: attr(data-title);
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.4rem);
    color: #F0D38A;
    text-align: center;
    letter-spacing: -0.03em;
}
.fx-btn:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    box-shadow: 0 0 0 6px rgba(214, 179, 106, 0.12);
}
.fx-dot.is-active {
    background: var(--gradient-gold) !important;
}

/* ============================================================
   PROCESS TIMELINE
   ============================================================ */
.process-section .process-timeline {
    display: grid !important;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px !important;
    overflow: visible !important;
    padding: 0 !important;
    max-width: none !important;
    position: relative;
}
.process-section .process-timeline::before {
    content: '';
    position: absolute;
    top: 28px;
    left: 4%;
    right: 4%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    opacity: 0.35;
}
.process-section .process-timeline .timeline-line,
.process-section .process-timeline .timeline-progress { display: none !important; }
.process-section .process-step {
    flex: none !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 16px;
    margin: 0 !important;
    width: auto !important;
}
.process-section .step-left .step-card,
.process-section .step-right .step-card,
.process-section .step-left .step-marker,
.process-section .step-right .step-marker {
    grid-column: auto !important;
    text-align: left !important;
}
.process-section .step-number {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--accent-gold);
    letter-spacing: -0.03em;
}
.process-section .step-dot {
    background: var(--accent-gold);
    box-shadow: 0 0 0 6px rgba(214, 179, 106, 0.12);
    border: 0;
    width: 10px;
    height: 10px;
}
.process-section .step-card {
    min-height: 200px;
    background: var(--surface);
    border: 1px solid var(--border);
}
.process-section .step-icon {
    background: rgba(214, 179, 106, 0.1);
    color: var(--accent-gold);
}
.process-section .process-step.active .step-card {
    border-color: rgba(214, 179, 106, 0.35);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

/* ============================================================
   ABOUT / WHY
   ============================================================ */
.why-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(2rem, 5vw, 5rem);
}
.why-content .section-title { max-width: 12ch; }
.why-story {
    margin-top: 28px;
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.0625rem;
}
.why-values {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}
.why-value {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text-secondary);
}
.why-card { background: var(--surface); }
.why-icon { background: rgba(214, 179, 106, 0.1); color: var(--accent-gold); }

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 36px;
}
.about-stat-val {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--accent-gold);
}

/* ============================================================
   AI ADVANTAGE
   ============================================================ */
.ai-section { background: var(--bg-secondary); }
.ai-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.ai-card {
    padding: 28px 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    min-height: 200px;
    transition: transform 0.35s var(--ease-out), border-color 0.35s;
}
.ai-card:hover {
    transform: translateY(-4px);
    border-color: rgba(214, 179, 106, 0.28);
}
.ai-card-index {
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    color: var(--accent-gold);
    margin-bottom: 18px;
}
.ai-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}
.ai-card p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.65; }
.ai-note {
    margin-top: 28px;
    font-size: 0.875rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

/* ============================================================
   TECH MARQUEE
   ============================================================ */
.tech-section .tech-grid { display: none; }
.tech-marquee {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
}
.tech-marquee-track {
    display: flex;
    gap: 12px;
    width: max-content;
    animation: techScroll 36s linear infinite;
}
.tech-marquee:hover .tech-marquee-track { animation-play-state: paused; }
.tech-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 22px;
    border: 1px solid var(--border);
    border-radius: 100px;
    background: var(--surface);
    white-space: nowrap;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-secondary);
}
.tech-pill img { width: 22px; height: 22px; object-fit: contain; }
@keyframes techScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-section .section-title { max-width: 16ch; margin-left: auto; margin-right: auto; }
.contact-layout {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: clamp(1.75rem, 4vw, 3rem);
}
.contact-form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    box-shadow: none;
}
.inquiry-form-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 400;
    border-bottom: 0;
}
.form-group label { color: var(--text-secondary); }
.form-group:focus-within label { color: var(--accent-gold); }
.form-group input,
.form-group textarea,
.form-group select {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    border-radius: var(--radius-md);
    min-height: 48px;
    color-scheme: dark;
}
[data-theme="light"] .form-group input,
[data-theme="light"] .form-group textarea,
[data-theme="light"] .form-group select {
    background: #FFFFFF;
    color: #16181D;
    color-scheme: light;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(214, 179, 106, 0.16);
    background: var(--bg-primary);
}
.form-group select option,
.form-group select optgroup {
    background: #12161F;
    color: #F5F7FA;
}
[data-theme="light"] .form-group select option,
[data-theme="light"] .form-group select optgroup {
    background: #FFFFFF;
    color: #16181D;
}

.file-drop {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px;
    border: 1px dashed var(--border-hover);
    border-radius: var(--radius-md);
    min-height: 56px;
}
.file-meta { font-size: 0.8125rem; color: var(--text-secondary); }
.file-progress {
    display: none;
    height: 3px;
    background: var(--border);
    border-radius: 3px;
    margin-top: 8px;
    overflow: hidden;
}
.file-progress span {
    display: block;
    height: 100%;
    width: 0;
    background: var(--accent-gold);
}
.file-remove {
    min-width: 44px;
    min-height: 44px;
    color: var(--text-muted);
}

.contact-info-card {
    background: var(--surface);
    border: 1px solid var(--border);
}
.contact-info-card:hover {
    border-color: rgba(214, 179, 106, 0.3);
    transform: translateY(-2px);
    box-shadow: none;
}
.contact-info-icon {
    background: rgba(214, 179, 106, 0.1);
    color: var(--accent-gold);
}
.contact-visual {
    min-height: 160px;
    background:
        radial-gradient(circle at 30% 30%, rgba(214, 179, 106, 0.16), transparent 50%),
        var(--surface);
}
.inquiry-trust-card { background: var(--surface); }

/* ============================================================
   NEWSLETTER + FOOTER
   ============================================================ */
.newsletter-section { padding: clamp(4rem, 8vw, 6rem) 0; }
.newsletter-card {
    padding: clamp(2.5rem, 6vw, 4.5rem);
    text-align: left;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
}
.newsletter-glow { background: radial-gradient(circle, rgba(214, 179, 106, 0.1) 0%, transparent 70%); }
.newsletter-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 400;
}
.newsletter-input-wrap {
    background: var(--bg-primary);
    border-radius: 100px;
    padding: 6px 6px 6px 18px;
}
.newsletter-input-wrap .btn { border-radius: 100px; }

.footer {
    background: var(--bg-secondary);
    padding: clamp(4rem, 8vw, 6rem) 0 2rem;
}
.footer-glow { background: radial-gradient(ellipse, rgba(214, 179, 106, 0.08), transparent 70%); }
.footer-top {
    display: grid;
    grid-template-columns: 1.4fr repeat(4, 1fr) 1.1fr;
    gap: clamp(1.5rem, 3vw, 2.25rem);
}
.footer-links a:hover { color: var(--accent-gold); }
.footer-copyright {
    background: none;
    -webkit-text-fill-color: var(--text-muted);
    animation: none;
    color: var(--text-muted);
}
.social-link:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    background: rgba(214, 179, 106, 0.08);
}

.back-to-top {
    background: var(--surface-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}
.back-to-top:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    box-shadow: var(--shadow-lg);
}

/* ============================================================
   CASE STUDY
   ============================================================ */
.case-hero {
    padding: calc(var(--nav-height) + 48px) 0 40px;
}
.case-kicker {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 8px;
}
.case-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 28px;
    min-height: 44px;
}
.case-back:hover { color: var(--accent-gold); }
.case-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 6vw, 5rem);
    font-weight: 400;
    line-height: 1.02;
    letter-spacing: -0.035em;
}
.case-meta-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 40px 0 0;
    padding: 24px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.case-meta-label {
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.case-hero-media {
    position: relative;
    min-height: 280px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: linear-gradient(160deg, #171C26, #0D1017);
}
.case-hero-media.is-fallback::after {
    content: 'Case study';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-gold);
    font-family: var(--font-display);
    font-size: 2rem;
}
.case-cta-band {
    margin-top: 48px;
    padding: clamp(2rem, 5vw, 3.5rem);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    text-align: center;
}

/* ============================================================
   TESTIMONIALS / FAQ / LEGAL
   ============================================================ */
.tm-card {
    background: var(--surface);
    border: 1px solid var(--border);
}
.tm-featured-badge { background: var(--accent-gold); color: #07080C; }
.faq-question:hover { color: var(--accent-gold); }
.legal-content h2 { font-family: var(--font-display); font-weight: 400; margin: 1.75rem 0 0.75rem; }
.legal-content a { color: var(--accent-gold); text-decoration: underline; text-underline-offset: 3px; }

/* Video */
.video-play-btn,
.video-slide-play,
.video-gallery-play {
    background: rgba(7, 8, 12, 0.55);
    border-color: rgba(214, 179, 106, 0.4);
}
.video-card:hover .video-play-btn {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: #07080C;
}

/* Chat / dock — gold, parked at the bottom (not mid-hero) */
.ix-dock a,
.ix-dock button {
    color: var(--accent-gold) !important;
    border-color: rgba(214, 179, 106, 0.28) !important;
}
.ix-dock a:hover,
.ix-dock button:hover {
    border-color: var(--accent-gold) !important;
    box-shadow: 0 10px 30px rgba(214, 179, 106, 0.22) !important;
}
.ix-dock {
    bottom: 88px !important;
}
.ix-chat-toggle,
.ix-dock + .ix-chat-toggle,
body:has(.ix-dock) .ix-chat-toggle {
    right: 18px !important;
    bottom: 24px !important;
    background: var(--gradient-gold) !important;
    color: #07080C !important;
    border: 0 !important;
    box-shadow: 0 14px 40px rgba(214, 179, 106, 0.35) !important;
}
.ix-msg.bot {
    background: rgba(214, 179, 106, 0.1) !important;
    border-color: rgba(214, 179, 106, 0.22) !important;
}
.ix-quick button {
    color: var(--text-secondary) !important;
}
.ix-chat-form button {
    background: var(--gradient-gold) !important;
    color: #07080C !important;
}
.ix-scroll-progress {
    background: linear-gradient(90deg, #D6B36A, #F0D38A);
    box-shadow: none;
    height: 2px;
}

/* Custom cursor — gold, never on forms */
.ix-cursor { background: #F0D38A; }
.ix-cursor-trail { border-color: rgba(214, 179, 106, 0.55); }
.ix-cursor.is-hover { background: #D6B36A; }
.ix-cursor-trail.is-media { background: rgba(7, 8, 12, 0.92); color: #F0D38A; }
html.ix-cursor-on input,
html.ix-cursor-on textarea,
html.ix-cursor-on select,
html.ix-cursor-on [contenteditable] {
    cursor: text !important;
}

/* Ambient section wash — subtle charcoal, not indigo */
.section::before {
    background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(214, 179, 106, 0.04), transparent 70%);
}

/* File / toast / states */
.agency-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(12px);
    z-index: 12000;
    padding: 12px 18px;
    background: var(--surface-elevated);
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text-primary);
    font-size: 0.875rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
}
.agency-toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }
.agency-toast.is-error { border-color: rgba(239, 98, 98, 0.4); color: var(--danger); }
.agency-toast.is-ok { border-color: rgba(53, 201, 138, 0.4); color: var(--success); }

.error-state {
    text-align: center;
    padding: 80px 20px;
}
.error-state h1 { font-family: var(--font-display); font-weight: 400; }

.btn.is-loading { opacity: 0.7; pointer-events: none; }

/* Skeleton */
.skeleton {
    background: linear-gradient(90deg, var(--surface) 25%, var(--surface-elevated) 50%, var(--surface) 75%);
    background-size: 200% 100%;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1280px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .ai-grid { grid-template-columns: repeat(2, 1fr); }
    .process-section .process-timeline { grid-template-columns: repeat(3, 1fr); }
    .process-section .process-timeline::before { display: none; }
    .footer-top { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        padding-top: 3.5rem;
    }
    .hero-title { max-width: none; }
    .hero-visual { min-height: 340px; order: -1; }
    .hero-stats { width: 100%; grid-template-columns: repeat(3, 1fr); }
    .why-layout,
    .contact-layout,
    .faq-layout { grid-template-columns: 1fr; }
    .trust-grid { grid-template-columns: repeat(2, 1fr); }
    .trust-card { border-right: 0; border-bottom: 1px solid var(--border); }
    .projects-grid { grid-template-columns: 1fr 1fr; }
    .case-meta-row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .process-section .process-timeline {
        grid-template-columns: 1fr !important;
        padding-left: 28px !important;
    }
    .process-section .process-timeline::before {
        display: block;
        top: 0;
        bottom: 0;
        left: 8px;
        right: auto;
        width: 1px;
        height: auto;
        background: linear-gradient(180deg, var(--accent-gold), transparent);
        opacity: 0.4;
    }
    .hero-stats { grid-template-columns: 1fr; }
    .services-grid,
    .projects-grid,
    .ai-grid,
    .why-grid,
    .about-stats { grid-template-columns: 1fr; }
    .project-card:nth-child(3n+1) { grid-column: auto; }
    .project-card:nth-child(3n+1) .project-image-wrap { aspect-ratio: 16 / 10; }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .hero-buttons .btn { width: 100%; }
    .hero-particles,
    .hero-orb { display: none; }
    .newsletter-input-wrap { border-radius: var(--radius-md); }
}

@media (max-width: 480px) {
    .footer-top { grid-template-columns: 1fr; }
    .trust-grid { grid-template-columns: 1fr; }
    .case-meta-row { grid-template-columns: 1fr; }
}

@media (max-width: 320px) {
    .nav-action-btn { width: 40px; height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-orb,
    .tech-marquee-track,
    .hero-enter .hero-eyebrow,
    .hero-enter .hero-badge,
    .hero-enter .hero-title,
    .hero-enter .hero-subtitle,
    .hero-enter .hero-buttons,
    .hero-enter .hero-visual,
    .hero-enter .navbar,
    .floating-card,
    .shape {
        animation: none !important;
    }
    [data-reveal] { opacity: 1; transform: none; filter: none; }
}

@media (pointer: coarse) {
    html.ix-cursor-on,
    html.ix-cursor-on body { cursor: auto !important; }
    .ix-cursor,
    .ix-cursor-trail,
    .cursor-glow { display: none !important; }
}
