/* ═══════════════════════════════════════════════════════════════
   MOVALS LOGISTICS, EDITORIAL DESIGN SYSTEM v7.0
   Warm ivory · graphite ink · logo amber
   Display: Instrument Serif  ·  UI/Body: Inter Tight  ·  Data: JetBrains Mono
   ═══════════════════════════════════════════════════════════════ */

/* ── DESIGN TOKENS ──────────────────────────────────────────── */
:root {
    /* Surfaces, warm ivory family, pulled from the logo's paper white */
    --bg-primary: #FDFCF9;
    --bg-secondary: #F5F2EB;
    --bg-card: #FFFFFF;
    --bg-ink: #14140F;
    --bg-ink-soft: #1E1E17;

    /* Accent, the amber bars in the Movals mark */
    --accent-gold: #C08419;
    --accent-gold-hover: #E3A21E;
    --accent-amber: #F0A81C;
    --accent-gold-glow: rgba(192, 132, 25, 0.14);
    --accent-gold-wash: rgba(192, 132, 25, 0.06);

    /* Graphite, the swoosh arrow */
    --graphite: #4A4A46;

    /* Type */
    --text-primary: #14140F;
    --text-secondary: #6C685E;
    --text-tertiary: #9A958A;
    --text-inverse: #F7F4ED;

    /* Lines */
    --border-color: #E6E1D6;
    --border-strong: #D6D0C2;
    --border-hover: rgba(192, 132, 25, 0.45);
    --navbar-border: #E9E4D9;

    /* Motion */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-premium: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Rhythm */
    --shadow-soft: 0 1px 2px rgba(20, 20, 15, 0.03), 0 8px 32px rgba(20, 20, 15, 0.04);
    --shadow-lift: 0 2px 4px rgba(20, 20, 15, 0.03), 0 24px 56px rgba(20, 20, 15, 0.08);
}

/* ── RESET & BASE ───────────────────────────────────────────── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter Tight', 'Inter', system-ui, sans-serif;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11', 'ss01';
    font-synthesis: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    line-height: 1.7;
    letter-spacing: -0.005em;
    opacity: 0;
    transition: opacity 0.45s ease;
}
body.page-loaded { opacity: 1; }
body.page-exit {
    opacity: 0;
    transition: opacity 0.25s ease;
}

::selection {
    background: var(--accent-gold);
    color: #fff;
}

/* ── TYPOGRAPHY ─────────────────────────────────────────────── */

/* Editorial display serif, used for every major headline */
.font-display-headline,
.font-editorial {
    font-family: 'Instrument Serif', 'Cormorant Garamond', Georgia, serif;
    font-weight: 400;
    letter-spacing: -0.018em;
    line-height: 1.04;
    font-feature-settings: 'liga', 'kern';
}

/* Gold italic emphasis inside serif headlines */
.font-display-headline em,
.font-editorial em,
.serif-accent {
    font-style: italic;
    color: var(--accent-gold);
}

/* Small structural label, mono, wide-tracked */
.eyebrow {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent-gold);
    line-height: 1;
}
.eyebrow-muted { color: var(--text-tertiary); }

/* Numeric / data type */
.font-data {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

/* Body copy that should read like a printed profile */
.prose-editorial {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    letter-spacing: -0.002em;
}
.prose-editorial + .prose-editorial { margin-top: 1.1em; }

/* Drop-cap opener for the About narrative */
.dropcap::first-letter {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 3.7em;
    line-height: 0.82;
    float: left;
    padding: 0.06em 0.12em 0 0;
    color: var(--accent-gold);
}

/* ── SCROLLBAR ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-gold); }

/* ── SCROLL PROGRESS BAR ────────────────────────────────────── */
#scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-amber));
    z-index: 9999;
    transition: width 0.1s linear;
    will-change: width;
    box-shadow: 0 0 8px rgba(192, 132, 25, 0.45);
}

/* ── PAPER GRAIN OVERLAY ────────────────────────────────────── */
.noise-bg {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    opacity: 0.025;
    z-index: 99;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Faint vertical rules, the "ledger" grid behind hero sections */
.rule-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image: linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
    background-size: 25% 100%;
    opacity: 0.45;
    mask-image: linear-gradient(180deg, transparent, #000 20%, #000 70%, transparent);
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 20%, #000 70%, transparent);
}

/* ── NAVBAR ─────────────────────────────────────────────────── */
header {
    transform: translateY(-100%);
    animation: nav-slide-down 0.7s var(--ease-out-expo) 0.1s forwards;
    will-change: transform;
}
@keyframes nav-slide-down { to { transform: translateY(0); } }

header.scroll-active {
    background-color: rgba(253, 252, 249, 0.86) !important;
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border-bottom: 1px solid var(--navbar-border) !important;
    height: 64px !important;
    box-shadow: 0 1px 30px rgba(20, 20, 15, 0.05);
    transition: height 0.35s var(--ease-out-expo), box-shadow 0.3s ease, background-color 0.3s ease;
}

header nav a {
    position: relative;
    padding-bottom: 3px;
    text-decoration: none;
}
header nav a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0%;
    height: 1px;
    background-color: var(--accent-gold);
    transition: width 0.3s var(--ease-out-expo);
}
header nav a:hover::after { width: 100%; }
header nav a.nav-active { color: var(--text-primary); }
header nav a.nav-active::after { width: 100%; background-color: var(--accent-gold); }

/* Mobile drawer: solid opaque panel above every overlay.
   (Tailwind's bg-bg-primary/98 and z-45 are non-standard values the Play CDN
   doesn't emit, so the drawer was rendering transparent and un-layered.) */
#mobile-menu {
    background-color: var(--bg-primary) !important;
    z-index: 9990 !important;
}
#mobile-menu a { transition: color 0.2s ease, transform 0.2s ease; }
#mobile-menu a:hover { transform: translateY(-1px); }

/* Shiny gold "Movals AI" call-to-action in the mobile drawer. */
.drawer-ai-btn {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 15px 32px;
    border-radius: 999px;
    background: linear-gradient(100deg, #B0760F 0%, #E3A21E 38%, #F7CE5A 50%, #E3A21E 62%, #B0760F 100%);
    background-size: 220% auto;
    color: #14140F;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(192, 132, 25, 0.42), 0 0 0 1px rgba(192, 132, 25, 0.25) inset;
    animation: drawer-ai-flow 5s linear infinite, drawer-ai-glow 2.6s ease-in-out infinite;
    will-change: background-position, box-shadow;
}
.drawer-ai-btn .material-symbols-outlined { font-size: 17px; }
/* Sweeping reflective sheen */
.drawer-ai-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -140%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
    transform: skewX(-22deg);
    animation: drawer-ai-sheen 3.6s ease-in-out infinite;
    z-index: -1;
}
.drawer-ai-btn:hover { transform: translateY(-2px) scale(1.02); }
@keyframes drawer-ai-flow { to { background-position: 220% center; } }
@keyframes drawer-ai-glow {
    0%, 100% { box-shadow: 0 10px 30px rgba(192, 132, 25, 0.35), 0 0 0 1px rgba(192, 132, 25, 0.25) inset; }
    50% { box-shadow: 0 12px 40px rgba(240, 168, 28, 0.6), 0 0 22px rgba(240, 168, 28, 0.35), 0 0 0 1px rgba(240, 168, 28, 0.4) inset; }
}
@keyframes drawer-ai-sheen {
    0% { left: -140%; }
    45% { left: 160%; }
    100% { left: 160%; }
}

/* While the drawer is open, suppress overlays that would otherwise poke through it. */
body:has(#mobile-menu.translate-x-0) #mobile-ci-bar,
body:has(#mobile-menu.translate-x-0) #movals-ai-float,
body:has(#mobile-menu.translate-x-0) #movals-email-float,
body:has(#mobile-menu.translate-x-0) #scroll-progress-bar {
    display: none !important;
}

/* ── MOBILE CI FLOATING BAR ─────────────────────────────────── */
#mobile-ci-bar {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: rgba(20, 20, 15, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 48;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    gap: 12px;
    cursor: pointer;
    transition: top 0.3s var(--ease-out-expo), transform 0.4s var(--ease-out-expo);
    transform: translateY(-100%);
    will-change: transform;
    border-bottom: 1px solid rgba(192, 132, 25, 0.18);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}
#mobile-ci-bar.ci-bar-visible { transform: translateY(0%); }
#mobile-ci-bar.ci-bar-dismissed { transform: translateY(-200%); pointer-events: none; }
header.scroll-active ~ * #mobile-ci-bar,
body.header-compressed #mobile-ci-bar { top: 64px; }
#ci-bar-content { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
#ci-bar-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--accent-gold); flex-shrink: 0;
    animation: ci-dot-pulse 1.6s ease-in-out infinite;
}
@keyframes ci-dot-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(192, 132, 25, 0.7); }
    50% { box-shadow: 0 0 0 7px rgba(192, 132, 25, 0); }
}
#ci-bar-text {
    font-size: 13px; font-weight: 500; color: var(--text-inverse);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#ci-bar-arrow { color: var(--accent-gold); transition: transform 0.3s var(--ease-out-expo); flex-shrink: 0; display: inline-flex; align-items: center; }
#mobile-ci-bar:hover #ci-bar-arrow { transform: translateX(4px); }
#ci-bar-close { background: none; border: none; cursor: pointer; flex-shrink: 0; z-index: 2; }
@media (max-width: 640px) { #ci-bar-text-full { display: none; } #ci-bar-text-short { display: inline; } }
@media (min-width: 641px) { #ci-bar-text-full { display: inline; } #ci-bar-text-short { display: none; } }

/* ── AI BUTTON PULSE ────────────────────────────────────────── */
@keyframes ai-glow-pulse {
    0% { box-shadow: 0 0 0 0 rgba(192, 132, 25, 0.6); }
    70% { box-shadow: 0 0 0 10px rgba(192, 132, 25, 0); }
    100% { box-shadow: 0 0 0 0 rgba(192, 132, 25, 0); }
}
.ai-glow-btn { animation: ai-glow-pulse 2.4s infinite; }

/* ── HERO ENTRANCE ──────────────────────────────────────────── */
.hero-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px);
    will-change: opacity, transform;
    animation: word-reveal 0.75s var(--ease-out-expo) forwards;
}
@keyframes word-reveal { to { opacity: 1; transform: translateY(0); } }
.hero-subtext-reveal {
    opacity: 0; transform: translateY(16px);
    animation: word-reveal 0.7s var(--ease-out-expo) 0.7s forwards;
}
.hero-cta-reveal {
    opacity: 0; transform: translateY(16px);
    animation: word-reveal 0.7s var(--ease-out-expo) 0.92s forwards;
}
.hero-illustration-wrap {
    animation: ken-burns 9s ease-in-out infinite alternate;
    will-change: transform;
}
@keyframes ken-burns { from { transform: scale(1.0); } to { transform: scale(1.03); } }

/* ── SCROLL REVEAL ──────────────────────────────────────────── */
.reveal-item {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.75s var(--ease-out-expo), transform 0.75s var(--ease-out-expo);
    will-change: transform, opacity;
}
.reveal-item.revealed { opacity: 1; transform: translateY(0); }

.reveal-left {
    opacity: 0; transform: translateX(-36px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
    will-change: transform, opacity;
}
.reveal-left.revealed { opacity: 1; transform: translateX(0); }

.reveal-right {
    opacity: 0; transform: translateX(36px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
    will-change: transform, opacity;
}
.reveal-right.revealed { opacity: 1; transform: translateX(0); }

.pop-in {
    opacity: 0; transform: scale(0.9);
    transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
    will-change: transform, opacity;
}
.pop-in.revealed { opacity: 1; transform: scale(1); }

.stagger-1 { transition-delay: 0s; }
.stagger-2 { transition-delay: 0.07s; }
.stagger-3 { transition-delay: 0.14s; }
.stagger-4 { transition-delay: 0.21s; }
.stagger-5 { transition-delay: 0.28s; }
.stagger-6 { transition-delay: 0.35s; }
.stagger-7 { transition-delay: 0.42s; }
.stagger-8 { transition-delay: 0.49s; }

/* ── CARDS ──────────────────────────────────────────────────── */
.feature-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: transform 0.4s var(--ease-out-expo),
                border-color 0.3s ease,
                box-shadow 0.4s var(--ease-out-expo),
                background-color 0.3s ease;
    will-change: transform;
}
.feature-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lift);
}

/* Editorial numbered card, a hairline card with an index in the corner */
.card-indexed {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: transform 0.4s var(--ease-out-expo), border-color 0.3s ease, box-shadow 0.4s var(--ease-out-expo);
}
.card-indexed::before {
    content: attr(data-index);
    position: absolute;
    top: 20px;
    right: 22px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.14em;
    color: var(--text-tertiary);
    transition: color 0.3s ease;
}
.card-indexed:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lift);
}
.card-indexed:hover::before { color: var(--accent-gold); }

/* Service card, gold rule slides in on the left edge */
.service-card {
    position: relative;
    transition: var(--transition-smooth);
    border-left: 2px solid transparent;
}
.service-card::after {
    content: '';
    position: absolute;
    left: -1px; top: 0; bottom: 0;
    width: 2px;
    background: var(--accent-gold);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.45s var(--ease-out-expo);
}
.service-card:hover { background-color: var(--accent-gold-wash); }
.service-card:hover::after { transform: scaleY(1); }

.feature-card:hover .card-icon,
.card-indexed:hover .card-icon { transform: translateY(-2px) scale(1.08); color: var(--accent-gold); }
.card-icon { transition: transform 0.4s var(--ease-out-expo), color 0.3s ease; }

/* Partner logo tiles, full colour by default */
.partner-logo-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: border-color 0.3s ease, box-shadow 0.35s ease, transform 0.35s var(--ease-out-expo);
}
.partner-logo-card img {
    opacity: 1;
    transform: translateZ(0);
    transition: transform 0.4s var(--ease-out-expo);
}
.partner-logo-card:hover img {
    transform: scale(1.05);
}
.partner-logo-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-soft);
}

/* Arrow nudge */
.arrow-link .arrow-icon { transition: transform 0.3s var(--ease-out-expo); display: inline-block; }
.arrow-link:hover .arrow-icon { transform: translateX(5px); }

/* Underline-on-hover text link */
.link-underline {
    position: relative;
    text-decoration: none;
}
.link-underline::after {
    content: '';
    position: absolute;
    left: 0; bottom: -2px;
    width: 100%; height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s var(--ease-out-expo);
}
.link-underline:hover::after { transform: scaleX(1); transform-origin: left; }

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn-primary {
    position: relative;
    overflow: hidden;
    background: var(--text-primary);
    color: var(--text-inverse);
    border: 1px solid var(--text-primary);
    transition: color 0.4s ease, border-color 0.4s ease;
    isolation: isolate;
}
.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-gold);
    transform: translateY(101%);
    transition: transform 0.5s var(--ease-out-expo);
    z-index: -1;
}
.btn-primary:hover { border-color: var(--accent-gold); }
.btn-primary:hover::before { transform: translateY(0); }

.btn-ghost {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-strong);
    color: var(--text-primary);
    background: transparent;
    transition: color 0.4s ease, border-color 0.4s ease;
    isolation: isolate;
}
.btn-ghost::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--text-primary);
    transform: translateY(101%);
    transition: transform 0.5s var(--ease-out-expo);
    z-index: -1;
}
.btn-ghost:hover { color: var(--text-inverse); border-color: var(--text-primary); }
.btn-ghost:hover::before { transform: translateY(0); }

/* ── MARQUEE / TICKER ───────────────────────────────────────── */
@keyframes marquee {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-50%); }
}
.animate-marquee {
    display: inline-flex;
    white-space: nowrap;
    animation: marquee 34s linear infinite;
    will-change: transform;
}
.ticker-wrap:hover .animate-marquee { animation-duration: 70s; }

/* Partner logo marquee, slower, and pauses on hover */
.logo-marquee { animation: marquee 52s linear infinite; }
.logo-marquee-wrap:hover .logo-marquee { animation-play-state: paused; }
.logo-marquee-wrap {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

@keyframes text-shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}
.ticker-shimmer {
    background: linear-gradient(90deg, #C08419 0%, #E3A21E 30%, #F5C842 50%, #E3A21E 70%, #C08419 100%);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: text-shimmer 3.4s linear infinite;
}

/* ── PROCESS TIMELINE ───────────────────────────────────────── */
.process-timeline-container { position: relative; }
.process-progress-line-track {
    position: absolute;
    left: 23px;
    top: 24px;
    bottom: 24px;
    width: 1px;
    background: var(--border-color);
    z-index: 0;
}
.process-progress-line-fill {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 0%;
    background: linear-gradient(180deg, var(--accent-gold), var(--accent-amber));
    transition: height 0.1s linear;
    will-change: height;
    box-shadow: 0 0 10px rgba(192, 132, 25, 0.45);
}
.step-number {
    font-family: 'JetBrains Mono', monospace;
    font-variant-numeric: tabular-nums;
    transition: border-color 0.4s ease, background-color 0.4s ease, color 0.4s ease;
}
.timeline-step:hover .step-number {
    border-color: var(--accent-gold);
    background-color: var(--accent-gold);
    color: #fff;
}

/* ── COMPLIANCE CHECKLIST ───────────────────────────────────── */
.check-row {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 18px 0;
    border-bottom: 1px solid rgba(230, 225, 214, 0.12);
    transition: padding-left 0.4s var(--ease-out-expo);
}
.check-row:last-child { border-bottom: none; }
.check-row:hover { padding-left: 8px; }
.check-mark {
    flex-shrink: 0;
    width: 22px; height: 22px;
    border: 1px solid rgba(192, 132, 25, 0.5);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--accent-amber);
    font-size: 11px;
    margin-top: 3px;
    transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}
.check-row:hover .check-mark {
    background-color: var(--accent-gold);
    border-color: var(--accent-gold);
    color: #fff;
}

/* ── STATS ──────────────────────────────────────────────────── */
.stat-number {
    display: inline-block;
    will-change: contents;
    font-variant-numeric: tabular-nums;
}

/* ── SPLIT TEXT ─────────────────────────────────────────────── */
.split-char {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: char-reveal 0.45s var(--ease-out-expo) forwards;
    will-change: opacity, transform;
}
@keyframes char-reveal { to { opacity: 1; transform: translateY(0); } }

/* ── CALC FLIP ──────────────────────────────────────────────── */
@keyframes digit-flip {
    0% { transform: rotateX(0deg); }
    50% { transform: rotateX(-90deg); }
    100% { transform: rotateX(0deg); }
}
.calc-flip {
    animation: digit-flip 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    transform-style: preserve-3d;
    display: inline-block;
}

/* ── FORM ───────────────────────────────────────────────────── */
.btn-fill-hover {
    position: relative;
    overflow: hidden;
    transition: color 0.3s ease;
}
.btn-fill-hover::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-gold-hover);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.45s var(--ease-out-expo);
    z-index: 0;
}
.btn-fill-hover:hover::before { transform: scaleX(1); }
.btn-fill-hover > * { position: relative; z-index: 1; }

input, select, textarea {
    font-family: 'Inter Tight', sans-serif;
    border-radius: 3px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}
input:focus, select:focus, textarea:focus {
    border-color: var(--accent-gold) !important;
    box-shadow: 0 0 0 3px rgba(192, 132, 25, 0.14) !important;
    outline: none;
}
input::placeholder, textarea::placeholder { color: var(--text-tertiary); }

@keyframes btn-shimmer {
    0% { transform: translateX(-200%) skewX(-20deg); }
    100% { transform: translateX(500%) skewX(-20deg); }
}
.submit-btn { position: relative; overflow: hidden; }
.submit-btn::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 40%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.28), transparent);
    transform: translateX(-200%) skewX(-20deg);
}
.submit-btn:hover::after { animation: btn-shimmer 0.85s ease forwards; }

@keyframes spin { to { transform: rotate(360deg); } }
.submit-spinner {
    width: 20px; height: 20px;
    border: 2.5px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    display: inline-block;
}

/* ── DARK CTA BANNER ────────────────────────────────────────── */
@keyframes banner-gradient-shift {
    0% { background-color: #14140F; }
    100% { background-color: #1B1709; }
}
.cta-banner {
    background-color: #14140F;
    animation: banner-gradient-shift 4s ease-in-out infinite alternate;
}
@keyframes headline-glow {
    0% { text-shadow: none; }
    100% { text-shadow: 0 0 40px rgba(192, 132, 25, 0.22), 0 0 80px rgba(192, 132, 25, 0.1); }
}
.cta-headline-glow { animation: headline-glow 3.5s ease-in-out infinite alternate; }

/* ── WATERMARK ──────────────────────────────────────────────── */
.watermark-text {
    position: absolute;
    font-family: 'Instrument Serif', Georgia, serif;
    font-weight: 400;
    font-size: clamp(90px, 15vw, 230px);
    color: rgba(20, 20, 15, 0.032);
    white-space: nowrap;
    user-select: none;
    pointer-events: none;
    z-index: 0;
    line-height: 1;
    letter-spacing: -0.03em;
}
.watermark-text.on-dark { color: rgba(247, 244, 237, 0.028); }

/* ── DIVIDERS ───────────────────────────────────────────────── */
.gold-divider {
    width: 0;
    height: 1px;
    background: var(--accent-gold);
    transition: width 1s var(--ease-out-expo);
}
.gold-divider.revealed { width: 56px; }

.hairline {
    height: 1px;
    background: var(--border-color);
    width: 100%;
}

/* Section index marker, "01 / VISION" style */
.section-index {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-tertiary);
}
.section-index .idx-num { color: var(--accent-gold); }
.section-index .idx-rule {
    display: inline-block;
    width: 32px;
    height: 1px;
    background: var(--border-strong);
}

/* ── PARALLAX ───────────────────────────────────────────────── */
.parallax-wrap { will-change: transform; transition: transform 0.1s linear; }

/* ── SVG ANIMATIONS ─────────────────────────────────────────── */
@keyframes orbit-cw { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes orbit-ccw { from { transform: rotate(0deg); } to { transform: rotate(-360deg); } }
.orbit-ring-1 { transform-origin: 250px 250px; animation: orbit-cw 28s linear infinite; }
.orbit-ring-2 { transform-origin: 250px 250px; animation: orbit-ccw 40s linear infinite; }

@keyframes draw-path { to { stroke-dashoffset: 0; } }
@keyframes pulse-marker {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.3); opacity: 1; }
}
@keyframes move-cargo {
    0% { offset-distance: 0%; }
    100% { offset-distance: 100%; }
}
.route-line {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: draw-path 3.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.map-marker { transform-origin: center; animation: pulse-marker 2.2s ease-in-out infinite; }
.cargo-dot { animation: move-cargo 6s linear infinite; }

/* ── HERO INDIA NETWORK ─────────────────────────────────────── */
.net-draw {
    stroke-dasharray: 620;
    stroke-dashoffset: 620;
    animation: net-draw 2.2s var(--ease-out-expo) forwards;
    will-change: stroke-dashoffset;
}
@keyframes net-draw { to { stroke-dashoffset: 0; } }

.net-ping {
    transform-box: fill-box;
    transform-origin: center;
    animation: net-ping 2.6s var(--ease-out-expo) infinite;
}
@keyframes net-ping {
    0%   { transform: scale(1); opacity: 0.9; }
    70%  { transform: scale(3.4); opacity: 0; }
    100% { transform: scale(3.4); opacity: 0; }
}
.net-dot { opacity: 0; animation: net-dot-in 0.5s ease forwards; }
@keyframes net-dot-in { to { opacity: 1; } }
.hero-net-wrap { animation: net-float 12s ease-in-out infinite alternate; }
@keyframes net-float {
    from { transform: translateY(-6px); }
    to   { transform: translateY(6px); }
}

/* ── LOGO IMMERSION ─────────────────────────────────────────── */
/* Transparent PNG on ivory: no card, no border, just the mark on paper. */
.logo-mark { 
    display: block; 
    height: auto; 
    background: transparent !important;
    mix-blend-mode: multiply;
    object-fit: contain;
}
.logo-mark--footer { filter: none; mix-blend-mode: normal; }

/* ── LOGISTICS TOOLKIT ──────────────────────────────────────── */
.no-scrollbar { scrollbar-width: none; -ms-overflow-style: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }

.tk-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    padding: 16px 22px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}
.tk-tab .material-symbols-outlined { font-size: 16px; color: var(--text-tertiary); transition: color 0.25s ease; }
.tk-tab:hover { color: var(--text-primary); background: var(--accent-gold-wash); }
.tk-tab.is-active { color: var(--text-primary); border-bottom-color: var(--accent-gold); }
.tk-tab.is-active .material-symbols-outlined { color: var(--accent-gold); }

.tk-panel { display: none; animation: tk-fade 0.4s var(--ease-out-expo); }
.tk-panel.is-active { display: block; }
@keyframes tk-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.tk-input {
    width: 100%;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 3px;
    padding: 12px 14px;
    font-size: 14px;
    color: var(--text-primary);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.tk-panel[data-panel="convert"] .tk-input { background: var(--bg-secondary); }

.tk-result-good { color: #2F7D55; }
.tk-result-warn { color: #B4531A; }

/* ── TACTILE PRESS ──────────────────────────────────────────── */
button, a.btn-tactile { transition: transform 0.12s ease; }
button:active, a.btn-tactile:active { transform: scale(0.98) !important; }

/* ── PORTRAIT FRAME (leadership) ────────────────────────────── */
.portrait-frame {
    position: relative;
    overflow: hidden;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 3px;
}
.portrait-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transform: translateZ(0);
    transition: transform 0.9s var(--ease-out-expo);
}
.portrait-frame:hover img { transform: scale(1.04); }
.portrait-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(20, 20, 15, 0.42));
    pointer-events: none;
}

/* Expertise pill list */
.pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-card);
    transition: border-color 0.25s ease, color 0.25s ease, background-color 0.25s ease, transform 0.25s var(--ease-out-expo);
}
.pill:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
    background: var(--accent-gold-wash);
    transform: translateY(-1px);
}

/* ── CHAT DRAWER ────────────────────────────────────────────── */
#ai-chat-drawer {
    background-color: rgba(253, 252, 249, 0.98) !important;
    border-left: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
}
.ai-message-bubble {
    font-size: 13px;
    line-height: 1.55;
    border-radius: 14px;
    padding: 12px 16px;
    max-width: 85%;
}
.ai-bubble-user {
    background-color: var(--accent-gold) !important;
    color: #FFFFFF !important;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}
.ai-bubble-assistant {
    background-color: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    border: 1px solid var(--border-color) !important;
}
.ai-chat-chip {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 11px;
    transition: var(--transition-fast);
}
.ai-chat-chip:hover {
    border-color: var(--accent-gold) !important;
    color: var(--accent-gold) !important;
    background-color: var(--accent-gold-wash) !important;
}

/* ── SIDE PANEL ─────────────────────────────────────────────── */
#detail-panel {
    background-color: rgba(253, 252, 249, 0.97) !important;
    border-left: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
    transition: transform 0.5s var(--ease-out-expo);
}
#detail-panel.panel-open { transform: translateX(0) !important; }
#detail-panel-body::-webkit-scrollbar-thumb { background: var(--border-strong); }
#detail-panel-body::-webkit-scrollbar-thumb:hover { background: var(--accent-gold); }

#detail-backdrop {
    background-color: rgba(20, 20, 15, 0.32) !important;
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
    position: fixed;
    inset: 0;
    z-index: 49;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}
#detail-backdrop.backdrop-active { opacity: 1; pointer-events: all; }

/* ── FOOTER ─────────────────────────────────────────────────── */
.footer-col {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.footer-col.revealed { opacity: 1; transform: translateY(0); }

/* ── FLOATING WIDGETS ───────────────────────────────────────── */
#movals-ai-float {
    position: fixed;
    bottom: 24px; right: 24px;
    z-index: 9999;
    display: flex; align-items: center; gap: 12px;
}
#movals-ai-float-close {
    position: absolute;
    top: -6px; right: -6px;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--text-primary);
    color: #FFFFFF;
    border: 1px solid var(--border-color);
    font-size: 9px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: all 0.2s ease;
    z-index: 10;
}
#movals-ai-float-close:hover { background: var(--accent-gold); transform: scale(1.1); }
#movals-ai-float-bubble {
    background: rgba(253, 252, 249, 0.96);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 9px 13px;
    box-shadow: var(--shadow-soft);
    display: flex; flex-direction: column; gap: 2px;
    max-width: 180px;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    cursor: pointer;
    opacity: 0;
    transform: translateX(10px);
    animation: float-bubble-in 0.6s ease 0.9s forwards;
}
@keyframes float-bubble-in { to { opacity: 1; transform: translateX(0); } }
#movals-ai-float-bubble:hover {
    border-color: var(--accent-gold);
    box-shadow: 0 6px 24px rgba(192, 132, 25, 0.14);
}
#movals-ai-float-btn {
    width: 54px; height: 54px;
    border-radius: 50%;
    background: var(--accent-gold);
    color: #FFFFFF;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 24px rgba(192, 132, 25, 0.32);
    cursor: pointer;
    transition: all 0.4s var(--ease-out-expo);
    position: relative;
}
#movals-ai-float-btn:hover {
    background: #A8720F;
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 10px 32px rgba(192, 132, 25, 0.42);
}
#movals-ai-float-btn::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    border: 1.5px solid var(--accent-gold);
    opacity: 0.4;
    animation: float-btn-ping 2.4s var(--ease-out-expo) infinite;
}
@keyframes float-btn-ping {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.32); opacity: 0; }
}
@media (max-width: 640px) {
    #movals-ai-float { bottom: 16px; right: 16px; }
    #movals-ai-float-bubble { display: none !important; }
}

#movals-email-float {
    position: fixed;
    bottom: 24px; left: 24px;
    z-index: 9999;
    width: 54px; height: 54px;
    border-radius: 50%;
    background: var(--accent-gold);
    color: #FFFFFF;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(192, 132, 25, 0.32);
    transition: all 0.4s var(--ease-out-expo);
    overflow: hidden;
}
#movals-email-float:hover {
    background: #A8720F;
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 10px 32px rgba(192, 132, 25, 0.48);
}
#movals-email-float::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    border: 1.5px solid var(--accent-gold);
    opacity: 0.5;
    animation: email-pulse-blink 2s ease-in-out infinite;
}
@keyframes email-pulse-blink {
    0% { transform: scale(1); opacity: 0.6; box-shadow: 0 0 0 0 rgba(192, 132, 25, 0.7); }
    70% { transform: scale(1.2); opacity: 0; box-shadow: 0 0 0 8px rgba(192, 132, 25, 0); }
    100% { transform: scale(1.2); opacity: 0; }
}
#movals-email-float::after {
    content: '';
    position: absolute;
    top: 0; left: -150%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    animation: email-shiny-sheen 3.8s ease-in-out infinite;
}
@keyframes email-shiny-sheen {
    0% { left: -150%; }
    15% { left: 150%; }
    100% { left: 150%; }
}
@media (max-width: 640px) {
    #movals-email-float { bottom: 16px; left: 16px; width: 48px; height: 48px; }
}

/* ── ANNOUNCEMENT PILLS ─────────────────────────────────────── */
.ci-action-pill {
    text-decoration: none !important;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.ci-action-pill:hover {
    color: #14140F !important;
    background-color: var(--accent-gold) !important;
    border-color: var(--accent-gold) !important;
    box-shadow: 0 0 12px rgba(192, 132, 25, 0.4);
}

/* ── REDUCED MOTION ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
    .hero-word, .hero-subtext-reveal, .hero-cta-reveal { opacity: 1; transform: none; }
    .reveal-item, .reveal-left, .reveal-right, .pop-in { opacity: 1; transform: none; }
    body { opacity: 1; }
    header { transform: translateY(0); }
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 768px) {
    body { line-height: 1.68; }
    .watermark-text { font-size: clamp(64px, 24vw, 130px); }
    .process-progress-line-track,
    .process-progress-line-fill { display: none; }
    .rule-grid { background-size: 50% 100%; }
    .dropcap::first-letter { font-size: 3.1em; }
}
