/* ================================================================
   ANCHOR DIGITAL — Premium Dark Design System
   ================================================================ */

:root {
    --color-primary: #A020F0;
    --color-primary-light: #C56CF0;
    --color-primary-dark: #7B16B8;
    --color-primary-glow: rgba(160, 32, 240, 0.35);

    --color-bg: #FFFFFF;
    --color-bg-card: #F5F5F8;
    --color-bg-card-hover: #ECECF2;
    --color-border: rgba(15, 15, 25, 0.10);

    --color-text: #0A0A12;
    --color-text-secondary: rgba(10, 10, 18, 0.72);
    --color-text-tertiary: rgba(10, 10, 18, 0.62);

    --gradient-primary: linear-gradient(135deg, #A020F0 0%, #C56CF0 50%, #E040FB 100%);
    --gradient-text: linear-gradient(135deg, #C56CF0 0%, #E040FB 50%, #A020F0 100%);

    --font-display: 'Space Grotesk', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --font-serif: 'Fraunces', 'Times New Roman', serif;

    --shadow-xs: 0 1px 2px rgba(15,15,25,0.04);
    --shadow-sm: 0 6px 16px -8px rgba(15,15,25,0.10);
    --shadow-md: 0 18px 40px -22px rgba(15,15,25,0.16);
    --shadow-lg: 0 32px 64px -32px rgba(15,15,25,0.22);
    --shadow-glow: 0 24px 50px -28px rgba(160,32,240,0.32);

    --section-pad: clamp(80px, 10vw, 140px);
    --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-quart: cubic-bezier(0.25, 1, 0.5, 1);

    /* Legacy compat vars */
    --acc:  #A020F0;
    --acc2: #C56CF0;
    --acc3: #7B16B8;
    --lav:  #7B16B8;
    --lav2: #4A0B70;
    --mute: rgba(10,10,18,0.62);
    --ink:  #0A0A12;
    --surface: #F5F5F8;
    --line:  rgba(15,15,25,0.10);
    --bg:    #FFFFFF;
    --dark-ink: #0A0A12;
    --dark-mute: rgba(10,10,18,0.55);
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; overflow-x: hidden; }

/* Accessibility: global focus-visible indicator */
*:focus { outline: none; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 3px;
    border-radius: 6px;
}

/* Skip-to-content link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 10001;
    padding: 12px 20px;
    background: var(--color-text);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

/* Reduced motion safeguard */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .preloader { display: none !important; }
    .hero-canvas, .cursor-glow, .hero-glow { display: none; }
    .trust-bar__logos { animation: none !important; }
}

body {
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

body.is-loading { overflow: hidden; }

a { color: inherit; text-decoration: none; transition: color 0.2s; }
img { max-width: 100%; height: auto; display: block; }

.wrap {
    width: min(1280px, calc(100% - clamp(32px, 6vw, 120px)));
    margin: 0 auto;
}

/* ----------------------------------------------------------------
   Typography
---------------------------------------------------------------- */
h1, h2, h3 {
    font-family: var(--font-display);
    line-height: 1.06;
    letter-spacing: -0.035em;
    font-weight: 700;
}

h1 { font-size: clamp(44px, 8vw, 96px); }
h2 { font-size: clamp(32px, 5vw, 60px); }
h3 { font-size: clamp(18px, 2.2vw, 24px); }

/* Editorial italic accent — used inside <em> in display headings */
h1 em, h2 em, .case-hero h1 em, .feature-row__body h2 em, .cta-band h2 em, .cta-inner h2 em {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    font-optical-sizing: auto;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #A020F0 0%, #6B10B8 90%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding-right: 0.04em;
}

.text-gradient {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #A020F0 0%, #6B10B8 90%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.body-lg {
    font-size: clamp(16px, 1.6vw, 18px);
    color: var(--color-text-secondary);
    line-height: 1.75;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-primary);
    font-weight: 700;
    margin-bottom: 18px;
}

.eyebrow::before {
    content: '';
    display: inline-block;
    width: 20px; height: 1.5px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
    border-radius: 1px;
    flex-shrink: 0;
}

/* ----------------------------------------------------------------
   Buttons
---------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    border: none;
    background: var(--gradient-primary);
    color: #fff;
    padding: 14px 32px;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s var(--ease-expo), box-shadow 0.3s;
    box-shadow: 0 0 28px rgba(160,32,240,0.28), 0 4px 14px rgba(0,0,0,0.3);
    white-space: nowrap;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.14) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 50px rgba(160,32,240,0.5), 0 8px 24px rgba(0,0,0,0.4);
}

.btn:hover::before { opacity: 1; }

.btn-ghost {
    background: rgba(15,15,25,0.04);
    border: 1px solid rgba(15,15,25,0.12);
    color: var(--color-text);
    box-shadow: none;
}

.btn-ghost:hover {
    background: rgba(15,15,25,0.08);
    border-color: rgba(160,32,240,0.4);
    color: var(--color-text);
    box-shadow: none;
}

.btn-small { padding: 10px 22px; font-size: 13px; }
.btn-lg    { padding: 18px 44px; font-size: 16px; }

/* ----------------------------------------------------------------
   Cursor Glow
---------------------------------------------------------------- */
.cursor-glow {
    position: fixed;
    width: 500px; height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(160,32,240,0.055) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
    opacity: 0;
}

body:hover .cursor-glow { opacity: 1; }

/* ----------------------------------------------------------------
   Preloader
---------------------------------------------------------------- */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.7s var(--ease-expo), visibility 0.7s;
}

.preloader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader__inner { text-align: center; }

/* ─────────── PRELOADER · ANCHOR DIGITAL BRAND MARK ANIMATION ───────────
   Each part of the real Anchor icon draws itself in sequentially,
   then the whole mark fades and the cycle repeats.
─────────────────────────────────────────────────────────────────────── */
.preloader__icon {
    width: 84px;
    height: 93px;
    margin: 0 auto 28px;
}
.preloader__icon svg {
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
}

/* Common starting state */
.preloader__top-tick,
.preloader__top-line,
.preloader__top-square,
.preloader__hook,
.preloader__bottom-frame {
    opacity: 0;
    transform-box: fill-box;
    animation: anchorPartLoop 2.4s var(--ease-expo) infinite;
}

/* Top tick: tiny vertical tab on the far left of the top line.
   Drops in from above. */
.preloader__top-tick {
    transform-origin: top center;
    animation-name: anchorTickIn;
    animation-delay: 0s;
}

/* Top horizontal line — draws left → right via scaleX */
.preloader__top-line {
    transform-origin: left center;
    animation-name: anchorLineDraw;
    animation-delay: 0.10s;
}

/* Top-right purple square — pops in scaling from its center */
.preloader__top-square {
    transform-origin: 123.26px 14.71px;   /* center of the square */
    animation-name: anchorSquareIn;
    animation-delay: 0.50s;
}

/* The big hook arc — fades + scales in from its top */
.preloader__hook {
    transform-origin: 64.6px 63px;
    animation-name: anchorHookIn;
    animation-delay: 0.30s;
}

/* Bottom-left frame with the circular knockout — pops in last */
.preloader__bottom-frame {
    transform-origin: 19.19px 133.53px;
    animation-name: anchorFrameIn;
    animation-delay: 0.70s;
}

/* ─────────── KEYFRAMES ─────────── */
@keyframes anchorTickIn {
    0%      { opacity: 0; transform: translateY(-10px) scaleY(0.4); }
    25%, 80%{ opacity: 1; transform: translateY(0)     scaleY(1); }
    100%    { opacity: 0; transform: translateY(-4px)  scaleY(0.8); }
}
@keyframes anchorLineDraw {
    0%      { opacity: 1; transform: scaleX(0); }
    30%, 80%{ opacity: 1; transform: scaleX(1); }
    100%    { opacity: 0; transform: scaleX(1); }
}
@keyframes anchorSquareIn {
    0%      { opacity: 0; transform: scale(0); }
    18%     { opacity: 1; transform: scale(1.18); }
    32%, 80%{ opacity: 1; transform: scale(1); }
    100%    { opacity: 0; transform: scale(0.85); }
}
@keyframes anchorHookIn {
    0%      { opacity: 0; transform: scale(0.7) translateY(-6px); }
    34%, 80%{ opacity: 1; transform: scale(1)   translateY(0); }
    100%    { opacity: 0; transform: scale(0.95) translateY(0); }
}
@keyframes anchorFrameIn {
    0%      { opacity: 0; transform: scale(0) rotate(-12deg); }
    22%     { opacity: 1; transform: scale(1.15) rotate(0); }
    36%, 80%{ opacity: 1; transform: scale(1)    rotate(0); }
    100%    { opacity: 0; transform: scale(0.9)  rotate(0); }
}

/* Fallback — the generic "anchorPartLoop" rule above gets overridden by
   the part-specific animation-name; we just need a no-op so any element
   without its own keyframes still respects the loop timing */
@keyframes anchorPartLoop {
    from, to { opacity: 1; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .preloader__top-tick,
    .preloader__top-line,
    .preloader__top-square,
    .preloader__hook,
    .preloader__bottom-frame {
        opacity: 1;
        animation: none;
    }
}

.preloader__bar {
    width: 180px; height: 2px;
    background: rgba(15,15,25,0.08);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.preloader__progress {
    height: 100%; width: 0;
    background: var(--gradient-primary);
    border-radius: 2px;
    animation: loadBar 2s var(--ease-expo) forwards;
}

@keyframes loadBar { to { width: 100%; } }

/* ----------------------------------------------------------------
   Header
---------------------------------------------------------------- */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s var(--ease-expo);
}

.site-header.is-scrolled {
    padding: 12px 0;
    background: rgba(255,255,255,0.82);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
}

.nav-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand { display: inline-flex; align-items: center; z-index: 10; }

.brand-logo {
    height: 30px;
    width: auto;
}

.site-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.site-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-secondary);
    padding: 12px 14px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
}

.site-links a:hover {
    color: var(--color-text);
    background: rgba(15,15,25,0.05);
}

.site-links .btn-small { margin-left: 8px; }

.menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1010;
}

.menu-btn span {
    display: block;
    width: 24px; height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all 0.35s var(--ease-expo);
}

.menu-btn.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn.is-active span:nth-child(2) { opacity: 0; }
.menu-btn.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile overlay nav */
.mobile-nav {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(24px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s var(--ease-expo);
}

.mobile-nav.is-open { opacity: 1; visibility: visible; }

.mobile-nav__inner {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.mobile-nav__link {
    font-family: var(--font-display);
    font-size: clamp(28px, 8vw, 42px);
    font-weight: 600;
    color: var(--color-text-secondary);
    transition: color 0.2s;
}

.mobile-nav__link:hover { color: var(--color-text); }
.mobile-nav__cta { margin-top: 12px; }

/* ----------------------------------------------------------------
   Hero
---------------------------------------------------------------- */
.hero-home {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero-canvas {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-canvas canvas {
    width: 100% !important;
    height: 100% !important;
}

.hero-glow {
    position: absolute;
    top: -20%; right: -10%;
    width: 70%; height: 120%;
    background: radial-gradient(ellipse, rgba(160,32,240,0.07) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
}

.hero-grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(15,15,25,0.013) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15,15,25,0.013) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 1;
    mask-image: radial-gradient(ellipse at 30% 50%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at 30% 50%, black 20%, transparent 70%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0;
}

.hero-text { max-width: 780px; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    background: rgba(160,32,240,0.07);
    border: 1px solid rgba(160,32,240,0.14);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--color-primary-light);
    margin-bottom: 28px;
}

.hero-badge__dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--color-primary);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(160,32,240,0.5); }
    50% { box-shadow: 0 0 0 7px rgba(160,32,240,0); }
}

.hero-home h1 { margin-bottom: 24px; }

.hero-home > .wrap > .hero-text > p,
.hero-home p.body-intro {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--color-text-secondary);
    max-width: 560px;
    line-height: 1.7;
    margin-bottom: 36px;
}

.hero-home p { margin-top: 0; max-width: 560px; color: var(--color-text-secondary); font-size: clamp(16px, 2vw, 20px); line-height: 1.7; margin-bottom: 36px; }

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 36px;
}

.hero-kpis {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-top: 56px;
}

.hero-kpi { display: block; }

.hero-kpi__prefix,
.hero-kpi__val,
.hero-kpi__suffix {
    font-family: var(--font-display);
    font-size: clamp(26px, 3.5vw, 38px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1;
    display: inline;
}

.hero-kpi__suffix { color: var(--color-primary-light); }

.hero-kpi__lab {
    font-size: 12px;
    color: var(--color-text-tertiary);
    font-weight: 500;
    letter-spacing: 0.03em;
    margin-top: 6px;
}

.hero-kpi-div {
    width: 1px; height: 44px;
    background: var(--color-border);
    flex-shrink: 0;
}

.hero-scroll {
    position: absolute;
    bottom: 36px; left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.hero-scroll span {
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-text-tertiary);
}

.hero-scroll__line {
    width: 1px; height: 36px;
    background: linear-gradient(to bottom, var(--color-primary), transparent);
    animation: scrollAnim 2s infinite;
}

@keyframes scrollAnim {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    50.1% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ----------------------------------------------------------------
   Trust Bar
---------------------------------------------------------------- */
.trust-bar {
    padding: 52px 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    overflow: hidden;
}

.trust-bar__label {
    text-align: center;
    font-size: 12px;
    color: var(--color-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 600;
    margin-bottom: 28px;
}

.trust-bar__track {
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
}

.trust-bar__logos {
    display: flex;
    gap: 72px;
    width: max-content;
    animation: trustScroll 28s linear infinite;
}

.trust-bar__logos span {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text-tertiary);
    white-space: nowrap;
    opacity: 0.5;
    user-select: none;
    transition: opacity 0.2s;
}

.trust-bar__logos span:hover { opacity: 0.8; }

.trust-bar__logos img.trust-logo {
    height: 38px;
    width: auto;
    max-width: 170px;
    object-fit: contain;
    filter: brightness(0);
    opacity: 0.55;
    transition: opacity 0.3s, filter 0.3s;
    flex-shrink: 0;
    user-select: none;
}
.trust-bar__logos img.trust-logo:hover { opacity: 0.95; }

.trust-bar__logos .trust-text {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--color-text);
    opacity: 0.55;
    white-space: nowrap;
    flex-shrink: 0;
    user-select: none;
    transition: opacity 0.3s;
    line-height: 38px;
}
.trust-bar__logos .trust-text:hover { opacity: 0.95; }

@keyframes trustScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ----------------------------------------------------------------
   Sections
---------------------------------------------------------------- */
.section { padding: var(--section-pad) 0; }
.section + .section { padding-top: 0; }
.section--alt + .section--alt { padding-top: var(--section-pad); }

.section-head { margin-bottom: 44px; }

.section-head p {
    margin: 16px 0 0;
    max-width: 600px;
    color: var(--color-text-secondary);
    font-size: 17px;
    line-height: 1.7;
}

/* ─── SECTION VARIANTS ───────────────────────────────────────── */
.section--alt { background: var(--color-bg-card); }

/* ----------------------------------------------------------------
   About Grid
---------------------------------------------------------------- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-media {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 4/5;
}
.about-media img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s var(--ease-expo);
}
.about-media:hover img { transform: scale(1.03); }

.about-media__badge {
    position: absolute;
    bottom: 24px; left: 24px;
    background: rgba(5,5,7,0.88);
    border: 1px solid rgba(160,32,240,0.35);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 14px 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.about-media__num {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    color: var(--color-primary-light);
    line-height: 1;
}
.about-media__lab {
    font-size: 12px;
    color: rgba(255,255,255,0.75);
    letter-spacing: 0.03em;
}
.about-body { display: flex; flex-direction: column; }

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 44px;
    padding-top: 40px;
    border-top: 1px solid var(--color-border);
}

.about-stat-prefix,
.about-stat__val,
.about-stat__suffix {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
    display: inline;
}

.about-stat__suffix { color: var(--color-primary-light); }
.about-stat__prefix { display: inline; font-family: var(--font-display); font-size: 36px; font-weight: 700; }

.about-stat__lab {
    display: block;
    font-size: 13px;
    color: var(--color-text-tertiary);
    margin-top: 6px;
}

/* ----------------------------------------------------------------
   Services Grid
---------------------------------------------------------------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.svc-card {
    position: relative;
    padding: 32px 26px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    transition: all 0.4s var(--ease-expo);
    overflow: hidden;
}

.svc-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.svc-card:hover {
    background: var(--color-bg-card-hover);
    border-color: rgba(160,32,240,0.14);
    transform: translateY(-4px);
}

.svc-card:hover::before { opacity: 1; }

.svc-card__glow {
    position: absolute;
    bottom: -60%; left: 50%;
    transform: translateX(-50%);
    width: 200%; height: 100%;
    background: radial-gradient(ellipse, rgba(160,32,240,0.04) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.svc-card:hover .svc-card__glow { opacity: 1; }

.svc-card__icon {
    width: 44px; height: 44px;
    background: linear-gradient(145deg, rgba(160,32,240,0.2), rgba(160,32,240,0.05));
    border: 1px solid rgba(160,32,240,0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    color: var(--color-primary-light);
}

.svc-card__icon svg { width: 20px; height: 20px; }

.svc-card__num {
    font-size: 11px;
    font-weight: 700;
    color: var(--color-text-tertiary);
    letter-spacing: 0.1em;
    margin-bottom: 10px;
    display: block;
}

.svc-card__title {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.svc-card__desc {
    font-size: 13px;
    color: var(--color-text-secondary);
    line-height: 1.65;
    margin-bottom: 18px;
}

.svc-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.svc-card__tags span {
    padding: 3px 9px;
    font-size: 11px;
    font-weight: 500;
    color: var(--color-text-tertiary);
    background: rgba(15,15,25,0.04);
    border: 1px solid rgba(15,15,25,0.04);
    border-radius: 999px;
}

/* ----------------------------------------------------------------
   Why Grid
---------------------------------------------------------------- */
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.why-card {
    padding: 40px 32px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    transition: all 0.4s var(--ease-expo);
    position: relative;
    overflow: hidden;
}

.why-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 3px; height: 0;
    background: var(--gradient-primary);
    transition: height 0.4s var(--ease-expo);
    border-radius: 0 3px 3px 0;
}

.why-card:hover {
    background: var(--color-bg-card-hover);
    border-color: rgba(160,32,240,0.1);
}

.why-card:hover::after { height: 100%; }

.why-card__num {
    font-family: var(--font-display);
    font-size: 44px;
    font-weight: 700;
    color: rgba(160,32,240,0.1);
    line-height: 1;
    margin-bottom: 16px;
}

.why-card__title {
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.why-card__desc {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.65;
}

/* ----------------------------------------------------------------
   Work Grid
---------------------------------------------------------------- */
.work-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 48px;
}

.work-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 16px;
}

.work-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s var(--ease-expo);
    color: inherit;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.work-card__visual { flex-shrink: 0; }
.work-card--large .work-card__visual { flex: 1; min-height: 320px; }

.work-card:hover {
    border-color: rgba(160,32,240,0.25);
    transform: translateY(-4px);
    box-shadow: 0 24px 50px -28px rgba(160,32,240,0.4);
}
.work-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
    letter-spacing: 0.02em;
    transition: gap 0.2s;
}
.work-card:hover .work-card__cta { gap: 14px; }

.work-card--large { grid-row: 1 / -1; }

.work-card__visual {
    height: 220px;
    position: relative;
    overflow: hidden;
    background: var(--color-bg-card);
}

.work-card--large .work-card__visual { height: 320px; }

.work-card__visual img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s var(--ease-expo);
    filter: brightness(0.85) saturate(1.1);
}
.work-card:hover .work-card__visual img {
    transform: scale(1.06);
    filter: brightness(0.95) saturate(1.2);
}
.work-card__visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(5,5,7,0.7) 100%);
    pointer-events: none;
}

.work-card__shape {
    position: absolute;
    border-radius: 50%;
}

.work-card__shape--ring {
    width: 120px; height: 120px;
    border: 2px solid rgba(160,32,240,0.35);
    top: 30%; left: 30%;
    animation: floatShift 7s ease-in-out infinite;
}

.work-card__shape--dot {
    width: 70px; height: 70px;
    background: rgba(160,32,240,0.12);
    top: 50%; right: 22%;
    animation: floatShift 9s ease-in-out infinite reverse;
}

.work-card__shape--ring2 {
    width: 100px; height: 100px;
    border: 2px solid rgba(59,130,246,0.25);
    top: 30%; left: 30%;
    animation: floatShift 6s ease-in-out infinite;
}

.work-card__shape--box {
    width: 80px; height: 80px;
    background: rgba(160,32,240,0.09);
    top: 30%; left: 30%;
    border-radius: 20%;
    animation: floatShift 5s ease-in-out infinite reverse;
}

@keyframes floatShift {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-14px) rotate(4deg); }
}

.work-card__content { padding: 24px; }

.work-card__tags {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.work-card__tags span {
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 600;
    color: var(--color-primary-light);
    background: rgba(160,32,240,0.08);
    border-radius: 999px;
}

.work-card h3 {
    font-size: 21px;
    margin-bottom: 8px;
}

.work-card p {
    font-size: 13px;
    color: var(--color-text-secondary);
    line-height: 1.65;
    margin-bottom: 18px;
}

.work-card__metrics { display: flex; gap: 20px; }

.work-card__metric { display: flex; flex-direction: column; gap: 2px; }

.work-card__metric-val {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--color-primary-light);
}

.work-card__metric-lab {
    font-size: 11px;
    color: var(--color-text-tertiary);
}

/* ----------------------------------------------------------------
   Growth Section
---------------------------------------------------------------- */
.growth-section {
    padding: var(--section-pad) 0;
}

.growth-card {
    background: #0a0a12;
    border: 1px solid rgba(160,32,240,0.12);
    border-radius: 24px;
    padding: 56px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.growth-card::before {
    content: '';
    position: absolute;
    top: -60px; right: -40px;
    width: 320px; height: 320px;
    background: radial-gradient(circle, rgba(160,32,240,0.1) 0%, transparent 65%);
    pointer-events: none;
}

.growth-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(160,32,240,0.5), transparent);
}

.growth-metrics { display: flex; flex-direction: column; gap: 20px; }

.growth-row { display: flex; align-items: center; gap: 16px; }

.growth-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.62);
    width: 80px;
    flex-shrink: 0;
}

.growth-bar-wrap {
    flex: 1;
    height: 5px;
    background: rgba(255,255,255,0.08);
    border-radius: 999px;
    overflow: hidden;
}

.growth-bar {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
    width: 0;
    transition: width 1.2s var(--ease-expo);
}

.growth-bar--2 { background: linear-gradient(90deg, var(--color-primary-light), #E040FB); }
.growth-bar--green { background: linear-gradient(90deg, #2cc47a, #1a9960); }

.growth-val {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    width: 52px;
    text-align: right;
    flex-shrink: 0;
}

.growth-big { text-align: center; position: relative; z-index: 1; }

.growth-big__num {
    font-family: var(--font-display);
    font-size: clamp(44px, 6vw, 72px);
    font-weight: 700;
    letter-spacing: -0.03em;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.growth-big__lab {
    font-size: 13px;
    color: rgba(255,255,255,0.62);
    margin-top: 10px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.growth-mini-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 28px;
}

.gms { text-align: center; }

.gms-val {
    display: block;
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.gms-lab {
    display: block;
    font-size: 11px;
    color: rgba(255,255,255,0.62);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ----------------------------------------------------------------
   Process Grid
---------------------------------------------------------------- */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.process-card {
    padding: 36px 28px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    transition: all 0.4s var(--ease-expo);
    position: relative;
    overflow: hidden;
}

.process-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease-expo);
}

.process-card:hover {
    background: var(--color-bg-card-hover);
    border-color: rgba(160,32,240,0.12);
}

.process-card:hover::after { transform: scaleX(1); }

.process-card__marker {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: rgba(160,32,240,0.08);
    border: 1px solid rgba(160,32,240,0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.process-card__marker span {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    color: var(--color-primary-light);
}

.process-card__step {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--color-primary-light);
    font-weight: 700;
    margin-bottom: 10px;
}

.process-card__title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.process-card__desc {
    font-size: 13px;
    color: var(--color-text-secondary);
    line-height: 1.65;
    margin-bottom: 18px;
}

.process-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.process-card__tags span {
    padding: 3px 9px;
    font-size: 11px;
    color: var(--color-text-tertiary);
    background: rgba(15,15,25,0.04);
    border: 1px solid rgba(15,15,25,0.04);
    border-radius: 999px;
}

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

.testi-card {
    padding: 36px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    transition: all 0.4s var(--ease-expo);
    display: flex;
    flex-direction: column;
}

.testi-card:hover {
    border-color: rgba(160,32,240,0.14);
    transform: translateY(-3px);
}

.testi-card__stars {
    color: #F59E0B;
    font-size: 16px;
    letter-spacing: 2px;
    margin-bottom: 18px;
}

.testi-card__quote {
    font-size: 16px;
    color: var(--color-text-secondary);
    line-height: 1.72;
    margin-bottom: 28px;
    flex: 1;
    font-style: italic;
}

.testi-card__author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.testi-card__avatar {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text);
    flex-shrink: 0;
    object-fit: cover;
    border: 2px solid rgba(160,32,240,0.4);
}

.testi-card__name {
    font-size: 15px;
    font-weight: 600;
    display: block;
}

.testi-card__role {
    font-size: 13px;
    color: var(--color-text-tertiary);
    display: block;
}

/* ----------------------------------------------------------------
   FAQ
---------------------------------------------------------------- */
.faq { display: flex; flex-direction: column; gap: 10px; }

.faq details {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 14px;
    padding: 20px 24px;
    transition: border-color 0.3s;
}

.faq details[open] { border-color: rgba(160,32,240,0.2); }

.faq summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--color-text);
}

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

.faq summary::after {
    content: '+';
    color: var(--color-primary-light);
    font-size: 22px;
    font-weight: 300;
    transition: transform 0.25s;
    flex-shrink: 0;
}

.faq details[open] summary::after { transform: rotate(45deg); }

.faq p {
    margin: 14px 0 0;
    color: var(--color-text-secondary);
    line-height: 1.7;
    font-size: 15px;
}

/* ----------------------------------------------------------------
   CTA Section
---------------------------------------------------------------- */
.cta-section {
    padding: clamp(60px, 8vw, 110px) 0;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.cta-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 80%; height: 110%;
    background: radial-gradient(ellipse, rgba(160,32,240,0.08) 0%, transparent 60%);
    pointer-events: none;
}

.cta-inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }

.cta-inner .eyebrow { margin-bottom: 18px; }
.cta-inner h2 { font-size: clamp(32px, 4.6vw, 54px); margin-bottom: 14px; line-height: 1.1; }

.cta-inner > p {
    font-size: 17px;
    color: var(--color-text-secondary);
    line-height: 1.6;
    max-width: 540px;
    margin: 0 auto 28px;
}

.cta-actions {
    justify-content: center;
    align-items: center;
    margin-top: 0;
    gap: 14px;
    flex-wrap: wrap;
}
.cta-actions .btn { min-width: 200px; justify-content: center; }

.cta-inner > p.cta-note,
.cta-note {
    margin: 14px auto 0 !important;
    font-size: 14px;
    color: var(--color-text-tertiary);
    display: block;
    max-width: none;
}

.cta-note a {
    color: var(--color-primary-light);
    border-bottom: 1px solid rgba(160,32,240,0.3);
}

.cta-note a:hover { border-bottom-color: var(--color-primary-light); }

/* ----------------------------------------------------------------
   Link Arrow
---------------------------------------------------------------- */
.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 14px;
    padding: 12px 4px;
    min-height: 44px;
    transition: gap 0.2s, color 0.2s;
}

.link-arrow:hover { gap: 10px; color: var(--color-text); }

/* ----------------------------------------------------------------
   Footer
---------------------------------------------------------------- */
.site-footer {
    border-top: 1px solid var(--color-border);
    padding-top: 72px;
    margin-top: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 56px;
}

.footer-brand p {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.65;
    max-width: 280px;
    margin-top: 14px;
    margin-bottom: 24px;
}

/* "Let's make something unforgettable." block in 16 non-home page footers */
.footer-title {
    font-size: 22px;
    line-height: 1.25;
    font-weight: 600;
    margin: 0 0 18px;
    letter-spacing: -0.01em;
}
.footer-grid > section > p {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.65;
    max-width: 320px;
    margin: 0;
}

.footer-logo {
    height: 26px;
    width: auto;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.footer-social__link {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: rgba(15,15,25,0.05);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary);
    transition: all 0.2s;
}

.footer-social__link:hover {
    background: rgba(160,32,240,0.1);
    border-color: rgba(160,32,240,0.2);
    color: var(--color-primary-light);
}

.footer-col h4 {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--color-primary-light);
    font-weight: 700;
    margin-bottom: 18px;
    font-family: var(--font-body);
}

.footer-col a,
.footer-col p {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--color-text-secondary);
    transition: color 0.2s;
}

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

.foot-bottom {
    border-top: 1px solid var(--color-border);
    padding: 20px 0 40px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--color-text-tertiary);
}

/* ----------------------------------------------------------------
   Scroll Animations
---------------------------------------------------------------- */
[data-animate] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s var(--ease-expo), transform 0.8s var(--ease-expo);
}

[data-animate="fade-right"] { transform: translateX(-24px); }
[data-animate="fade-left"]  { transform: translateX(24px); }

[data-animate].is-visible {
    opacity: 1;
    transform: translate(0);
}

/* ----------------------------------------------------------------
   Responsive
---------------------------------------------------------------- */
@media (max-width: 1100px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .process-grid  { grid-template-columns: repeat(2, 1fr); }
    .why-grid      { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .site-links { display: none; }
    .menu-btn   { display: flex; }
    .about-grid, .work-header { display: block; }
    .about-grid > *:first-child { margin-bottom: 40px; }
    .about-media { aspect-ratio: 16/9; }
    .work-header > *:last-child { display: none; }
    .work-grid { grid-template-columns: 1fr; }
    .work-card--large { grid-row: auto; }
    .growth-card { grid-template-columns: 1fr; gap: 40px; padding: 36px; }
    .testi-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 680px) {
    h1 { font-size: clamp(38px, 11vw, 60px); }
    .hero-kpis { flex-direction: column; align-items: flex-start; gap: 16px; }
    .hero-kpi-div { display: none; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }
    .services-grid, .why-grid, .process-grid { grid-template-columns: 1fr; }
    .about-stats { grid-template-columns: 1fr; gap: 16px; }
    .footer-grid { grid-template-columns: 1fr; }
    .foot-bottom { flex-direction: column; }
    .growth-mini-stats { gap: 20px; }
    .growth-card { padding: 28px 24px; }
}

/* ─── REEL / VIDEO SECTION ───────────────────────────────────── */
.reel-section { overflow: hidden; }

.reel-wrap { margin-top: 48px; }

.reel-thumb {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 16/7;
    cursor: pointer;
    background: var(--color-bg-card);
}
.reel-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s var(--ease-expo);
    filter: brightness(0.7) saturate(1.2);
}
.reel-thumb:hover img { transform: scale(1.04); }

.reel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(160,32,240,0.25) 0%, rgba(5,5,7,0.5) 100%);
}

.reel-play {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 80px; height: 80px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.4);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: transform 0.3s var(--ease-out), background 0.3s;
    cursor: pointer;
}
.reel-play svg { width: 28px; height: 28px; margin-left: 4px; }
.reel-thumb:hover .reel-play {
    transform: translate(-50%, -50%) scale(1.12);
    background: rgba(160,32,240,0.6);
    border-color: rgba(197,108,240,0.7);
}

.reel-label {
    position: absolute;
    bottom: 24px; left: 28px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.reel-label__tag {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.95);
    background: rgba(160,32,240,0.8);
    backdrop-filter: blur(8px);
    padding: 6px 14px;
    border-radius: 100px;
}
.reel-label__time {
    font-size: 13px;
    color: rgba(255,255,255,0.85);
}

/* ─── SUB-PAGE COMPATIBILITY ────────────────────────────────── */

.page-hero {
    padding: 140px 0 56px;
    text-align: center;
    background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(160,32,240,0.12) 0%, transparent 70%);
}
.page-hero .eyebrow { margin-bottom: 16px; }
.page-hero h1 { max-width: 820px; margin: 0 auto 24px; }
.page-hero p { max-width: 600px; margin: 0 auto; color: var(--color-text-secondary); font-size: 18px; line-height: 1.7; }

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

.card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: border-color 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.card:hover {
    border-color: rgba(160,32,240,0.35);
    transform: translateY(-4px);
}
.card h3 { font-size: 18px; font-weight: 600; margin-bottom: 10px; color: var(--color-text-primary); }
.card p { font-size: 15px; color: var(--color-text-secondary); line-height: 1.65; }

.svc-icon {
    width: 44px; height: 44px;
    background: linear-gradient(145deg, rgba(160,32,240,0.2), rgba(160,32,240,0.05));
    border: 1px solid rgba(160,32,240,0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    color: var(--color-primary-light);
}
.svc-icon svg { width: 20px; height: 20px; }

.cta-band {
    position: relative;
    background: linear-gradient(135deg, rgba(160,32,240,0.08) 0%, rgba(160,32,240,0.03) 100%);
    border: 1px solid rgba(160,32,240,0.2);
    border-radius: var(--radius-xl);
    padding: 64px 56px;
    text-align: center;
    overflow: hidden;
    margin: 40px 0;
}
.cta-top-line {
    position: absolute;
    top: 0; left: 10%; right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(160,32,240,0.6), transparent);
}
.cta-gem {
    position: absolute;
    right: 40px; top: 40px;
    width: 90px; height: 90px;
    opacity: 0.25;
}
.cta-band h2 { font-size: clamp(28px, 4vw, 48px); margin-bottom: 16px; }
.cta-band p { color: var(--color-text-secondary); max-width: 560px; margin: 0 auto 32px; }
.btn-gold {
    background: linear-gradient(135deg, #f5c842, #e8a800);
    color: #000;
    font-weight: 700;
    border: none;
}
.btn-gold:hover { opacity: 0.9; transform: translateY(-2px); }

@media (max-width: 900px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .cta-band { padding: 48px 24px; }
}

/* ----------------------------------------------------------------
   Hero image band, feature rows, media cards (sub-page content)
---------------------------------------------------------------- */
.hero-image-band {
    margin: 0 auto;
    width: min(1280px, calc(100% - clamp(32px, 6vw, 120px)));
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 16 / 7;
    margin-top: -32px;
    margin-bottom: 24px;
    box-shadow: 0 24px 60px -28px rgba(160,32,240,0.35);
}
.hero-image-band img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.hero-image-band::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(160,32,240,0.18) 100%);
    pointer-events: none;
}

.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.feature-row.is-reverse .feature-row__media { order: 2; }
.feature-row__media {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 5 / 4;
    box-shadow: 0 18px 50px -24px rgba(15,15,25,0.18);
}
.feature-row__media img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s var(--ease-expo);
}
.feature-row__media:hover img { transform: scale(1.04); }
.feature-row__body h2 { font-size: clamp(28px, 4vw, 44px); margin-bottom: 18px; }
.feature-row__body p { color: var(--color-text-secondary); font-size: 17px; line-height: 1.75; margin-bottom: 16px; }
.feature-row__body ul {
    list-style: none;
    padding: 0;
    margin: 18px 0 0;
    display: grid;
    gap: 10px;
}
.feature-row__body ul li {
    position: relative;
    padding-left: 28px;
    color: var(--color-text-secondary);
    line-height: 1.6;
}
.feature-row__body ul li::before {
    content: '';
    position: absolute;
    left: 0; top: 10px;
    width: 14px; height: 2px;
    background: var(--color-primary);
    border-radius: 2px;
}

.media-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    transition: transform 0.3s var(--ease-expo), box-shadow 0.3s var(--ease-expo);
}
.media-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 50px -28px rgba(160,32,240,0.35);
}
.media-card__visual {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}
.media-card__visual img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s var(--ease-expo);
}
.media-card:hover .media-card__visual img { transform: scale(1.05); }
.media-card__tag {
    position: absolute;
    top: 16px; left: 16px;
    background: #7B16B8;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 100px;
}
.media-card__body { padding: 24px 24px 26px; }
.media-card__body h3 { font-size: 22px; margin-bottom: 8px; }
.media-card__body p { color: var(--color-text-secondary); font-size: 15px; line-height: 1.6; }
.media-card__metrics {
    margin-top: 18px;
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    border-top: 1px solid var(--color-border);
    padding-top: 16px;
}
.media-card__metric {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.media-card__metric strong {
    font-family: var(--font-display);
    font-size: 20px;
    color: var(--color-primary);
    line-height: 1;
}
.media-card__metric span {
    font-size: 12px;
    color: var(--color-text-tertiary);
    letter-spacing: 0.06em;
}

@media (max-width: 900px) {
    .feature-row { grid-template-columns: 1fr; gap: 32px; }
    .feature-row.is-reverse .feature-row__media { order: 0; }
    .hero-image-band { aspect-ratio: 4 / 3; }
}

/* ----------------------------------------------------------------
   Contact page: info stack + form card
---------------------------------------------------------------- */
.contact-grid {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) 1.4fr;
    gap: 56px;
    align-items: start;
}

.info-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: sticky;
    top: 110px;
}

.info-item {
    padding: 22px 0;
    border-bottom: 1px solid var(--color-border);
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 16px;
    align-items: baseline;
}
.info-item:last-child { border-bottom: none; }

.info-item b {
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-text-tertiary);
    font-weight: 700;
}

.info-item a,
.info-item span {
    font-size: 17px;
    color: var(--color-text);
    font-weight: 500;
    line-height: 1.4;
    transition: color 0.2s;
}
.info-item a {
    border-bottom: 1px solid transparent;
}
.info-item a:hover {
    color: var(--color-primary);
    border-bottom-color: rgba(160,32,240,0.4);
}

/* Contact form card overrides */
.contact-grid > .card {
    padding: 36px 36px 32px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    box-shadow: 0 30px 60px -32px rgba(15,15,25,0.12);
}
.contact-grid > .card h3 {
    font-size: 24px;
    margin-bottom: 6px;
}
.contact-grid > .card > p {
    color: var(--color-text-secondary) !important;
    font-size: 15px;
    margin: 6px 0 24px !important;
}

.contact-grid form {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-grid form label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-tertiary);
    margin-top: 14px;
    margin-bottom: 4px;
}
.contact-grid form label:first-child { margin-top: 0; }

.contact-grid form input,
.contact-grid form select,
.contact-grid form textarea {
    width: 100%;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 14px 16px;
    font: inherit;
    font-size: 15px;
    color: var(--color-text);
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    appearance: none;
    -webkit-appearance: none;
}

.contact-grid form input::placeholder,
.contact-grid form textarea::placeholder {
    color: var(--color-text-tertiary);
}

.contact-grid form input:focus,
.contact-grid form select:focus,
.contact-grid form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(160,32,240,0.12);
    background: #fff;
}

.contact-grid form select {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%230a0a12' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat: no-repeat;
    background-position: right 18px center;
    padding-right: 44px;
    cursor: pointer;
}

.contact-grid form textarea {
    min-height: 140px;
    resize: vertical;
    line-height: 1.5;
    font-family: inherit;
}

.contact-grid form button {
    margin-top: 22px;
    align-self: flex-start;
    padding: 16px 36px;
    font-size: 15px;
    cursor: pointer;
    border: none;
}

/* Screen-reader-only utility */
.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}

.form-status {
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.5;
    min-height: 22px;
}
.form-status--success { color: #166534; }
.form-status--error { color: #b91c1c; }

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .info-stack { position: static; }
    .info-item { grid-template-columns: 1fr; gap: 4px; padding: 18px 0; }
    .contact-grid > .card { padding: 28px 24px 28px; }
    .contact-grid form button { width: 100%; align-self: stretch; text-align: center; justify-content: center; }
}

/* ----------------------------------------------------------------
   Case Study Page
---------------------------------------------------------------- */
.case-hero {
    padding: 140px 0 40px;
    text-align: left;
}
.case-hero .wrap { max-width: 920px; margin: 0 auto; }

.case-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--color-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 700;
    margin-bottom: 20px;
    transition: color 0.2s, gap 0.2s;
}
.case-back:hover { color: var(--color-primary); gap: 10px; }

.case-hero h1 {
    font-size: clamp(36px, 5.4vw, 64px);
    margin: 18px 0 24px;
    line-height: 1.08;
}
.case-hero p.lead {
    font-size: clamp(17px, 1.8vw, 20px);
    color: var(--color-text-secondary);
    line-height: 1.6;
    max-width: 720px;
    margin: 0;
}

.case-cover {
    width: min(1280px, calc(100% - clamp(32px, 6vw, 120px)));
    margin: 40px auto 0;
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 16 / 8;
    box-shadow: 0 28px 70px -32px rgba(160,32,240,0.32);
}
.case-cover img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}

.case-meta-bar {
    width: min(1280px, calc(100% - clamp(32px, 6vw, 120px)));
    margin: 56px auto 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 32px;
    padding: 32px 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}
.case-meta-bar > div { display: flex; flex-direction: column; gap: 8px; }
.case-meta-bar dt {
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-text-tertiary);
    font-weight: 700;
}
.case-meta-bar dd {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.35;
    margin: 0;
}

.case-body {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 40px);
}
.case-body h2 {
    font-size: clamp(28px, 3.4vw, 38px);
    margin: 72px 0 20px;
    line-height: 1.18;
}
.case-body h2:first-child { margin-top: 40px; }
.case-body > p {
    color: var(--color-text-secondary);
    font-size: 18px;
    line-height: 1.75;
    margin-bottom: 18px;
}
.case-body .lead-emph {
    color: var(--color-text);
    font-weight: 500;
}
.case-body ul.case-bullets {
    list-style: none;
    padding: 0;
    margin: 28px 0;
    display: grid;
    gap: 14px;
}
.case-body ul.case-bullets li {
    position: relative;
    padding: 20px 22px 20px 56px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 14px;
    color: var(--color-text-secondary);
    line-height: 1.6;
    font-size: 16px;
}
.case-body ul.case-bullets li::before {
    content: '';
    position: absolute;
    left: 22px; top: 30px;
    width: 18px; height: 2px;
    background: var(--color-primary);
    border-radius: 2px;
}
.case-body ul.case-bullets li strong { color: var(--color-text); font-weight: 600; }

.case-deliverables {
    list-style: none !important;
    padding: 0 !important;
    margin: 24px 0 !important;
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
    gap: 12px !important;
}
.case-deliverables li {
    padding: 18px 20px !important;
    background: var(--color-bg-card) !important;
    border: 1px solid var(--color-border) !important;
    border-radius: 12px !important;
    font-size: 15px;
    line-height: 1.45;
    color: var(--color-text);
}
.case-deliverables li::before { display: none !important; }

.case-quote {
    margin: 56px 0;
    padding: 40px 40px;
    border-left: 3px solid var(--color-primary);
    background: linear-gradient(135deg, rgba(160,32,240,0.06) 0%, transparent 70%);
    border-radius: 0 16px 16px 0;
}
.case-quote p {
    font-family: var(--font-display);
    font-size: clamp(22px, 2.6vw, 28px);
    line-height: 1.4;
    color: var(--color-text);
    margin: 0 0 16px;
    font-weight: 600;
}
.case-quote cite {
    font-style: normal;
    font-size: 13px;
    color: var(--color-text-tertiary);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 700;
}

.case-outcomes {
    list-style: none !important;
    padding: 0 !important;
    margin: 28px 0 !important;
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
    gap: 16px !important;
}
.case-outcomes li {
    padding: 28px 24px !important;
    background: var(--color-bg-card) !important;
    border: 1px solid var(--color-border) !important;
    border-radius: 16px !important;
    color: var(--color-text-secondary) !important;
    line-height: 1.55 !important;
    font-size: 15px !important;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.case-outcomes li::before { display: none !important; }
.case-outcomes li strong {
    font-family: var(--font-display);
    font-size: 18px;
    color: var(--color-primary);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.case-related {
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
    margin-top: 64px;
}

/* Services page — services grid (3x3) */
.svc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--color-border);
    border: 1px solid var(--color-border);
    border-radius: 24px;
    overflow: hidden;
}
.svc-tile {
    position: relative;
    background: var(--color-bg);
    padding: 40px 36px 44px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: background 0.3s var(--ease-expo);
    min-height: 280px;
}
.svc-tile:hover {
    background: var(--color-bg-card);
}
.svc-tile__num {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.18em;
    color: var(--color-text-tertiary);
    margin-bottom: 28px;
}
.svc-tile__icon {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(160,32,240,0.12), rgba(160,32,240,0.04));
    color: var(--color-primary);
    margin-bottom: 22px;
    transition: transform 0.4s var(--ease-expo), background 0.4s var(--ease-expo);
}
.svc-tile__icon svg { width: 24px; height: 24px; }
.svc-tile:hover .svc-tile__icon {
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(160,32,240,0.22), rgba(160,32,240,0.08));
}
.svc-tile h3 {
    font-size: 22px;
    line-height: 1.2;
    margin-bottom: 10px;
    font-weight: 600;
}
.svc-tile p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-text-secondary);
    margin-bottom: 0;
    flex: 1;
}
.svc-tile__arrow {
    position: absolute;
    bottom: 28px;
    right: 32px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    color: var(--color-text-tertiary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s var(--ease-expo);
    opacity: 0;
}
.svc-tile:hover .svc-tile__arrow {
    opacity: 1;
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
    transform: translateX(2px);
}

@media (max-width: 900px) {
    .svc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .svc-grid { grid-template-columns: 1fr; }
    .svc-tile { padding: 32px 28px 40px; min-height: auto; }
}

/* ----------------------------------------------------------------
   Minimal motion layer — quiet reveals + restrained styling
---------------------------------------------------------------- */

/* Reveal on scroll — applied selectively to a few primary blocks */
.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-in { opacity: 1; transform: none; }

/* Hide legacy decorative layers */
.cursor-glow { display: none !important; }
.hero-glow { display: none !important; }
.hero-canvas { display: none !important; }
.hero-orb { display: none !important; }
.hero-vlabel, .hero-side-line, .marquee-band { display: none !important; }

/* Hero text always visible */
.hero-home [data-animate] { opacity: 1; transform: none; }
body.is-loading .hero-home [data-animate] { opacity: 0; }

/* ── HERO LAYOUT — full-bleed cinematic video background ── */
.hero-cinema {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 100px;
    padding-bottom: 0;
    overflow: hidden;
    background: #0A0A12;
}
.hero-cinema .hero-content { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.hero-cinema .hero-stats-row { margin-top: 0; }
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-bg__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.45) saturate(1.2) contrast(1.05);
}
.hero-bg__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(8,6,15,0.55) 0%, rgba(8,6,15,0.2) 50%, rgba(8,6,15,0.7) 100%),
        radial-gradient(ellipse 90% 70% at 30% 50%, rgba(160,32,240,0.32) 0%, transparent 60%);
    pointer-events: none;
}
.hero-mesh--soft { mix-blend-mode: screen; opacity: 0.45; }
.hero-mesh--soft .hero-mesh__blob { filter: blur(120px); }

/* Animated gradient mesh hero background */
.hero-mesh {
    position: absolute;
    inset: 0;
    overflow: hidden;
    filter: blur(0px);
}
.hero-mesh__blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    will-change: transform;
    opacity: 0.7;
}
.hero-mesh__blob--1 {
    width: 720px; height: 720px;
    background: radial-gradient(circle, #A020F0 0%, transparent 70%);
    top: -10%; left: -10%;
    animation: meshDrift1 22s ease-in-out infinite;
}
.hero-mesh__blob--2 {
    width: 560px; height: 560px;
    background: radial-gradient(circle, #E040FB 0%, transparent 70%);
    top: 20%; right: -8%;
    animation: meshDrift2 28s ease-in-out infinite;
}
.hero-mesh__blob--3 {
    width: 640px; height: 640px;
    background: radial-gradient(circle, #6B10B8 0%, transparent 70%);
    bottom: -20%; left: 30%;
    animation: meshDrift3 26s ease-in-out infinite;
}
.hero-mesh__blob--4 {
    width: 480px; height: 480px;
    background: radial-gradient(circle, #C56CF0 0%, transparent 65%);
    top: 50%; left: 55%;
    opacity: 0.55;
    animation: meshDrift4 30s ease-in-out infinite;
}
@keyframes meshDrift1 {
    0%,100% { transform: translate(0, 0) scale(1); }
    33%     { transform: translate(15%, 10%) scale(1.15); }
    66%     { transform: translate(-8%, 18%) scale(0.92); }
}
@keyframes meshDrift2 {
    0%,100% { transform: translate(0, 0) scale(1); }
    50%     { transform: translate(-18%, 20%) scale(1.2); }
}
@keyframes meshDrift3 {
    0%,100% { transform: translate(0, 0) scale(1); }
    50%     { transform: translate(-20%, -25%) scale(1.1); }
}
@keyframes meshDrift4 {
    0%,100% { transform: translate(0, 0) scale(1); }
    50%     { transform: translate(20%, -15%) scale(0.85); }
}

/* Subtle dot grid overlay */
.hero-bg__grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 80%);
    pointer-events: none;
}

/* Grain texture */
.hero-bg__grain {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.08;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.6 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
}

/* Darker base */
.hero-cinema { background: #08060F; }

.hero-cinema .hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
    padding-bottom: clamp(80px, 12vw, 140px);
}
.hero-cinema h1 {
    color: #fff;
    max-width: 680px;
    font-size: clamp(34px, 4.8vw, 60px);
    letter-spacing: -0.035em;
    line-height: 1.08;
    margin-bottom: 20px;
}
.hero-cinema h1 .text-gradient {
    background: linear-gradient(135deg, #E0BFFF 0%, #C56CF0 50%, #A020F0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-cinema .hero-lead {
    color: rgba(255,255,255,0.78);
    max-width: 560px;
    font-size: clamp(16px, 1.8vw, 19px);
    line-height: 1.6;
    margin-bottom: 36px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.95);
    margin-bottom: 32px;
    max-width: max-content;
}
.hero-eyebrow__dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #C56CF0;
    box-shadow: 0 0 0 4px rgba(197,108,240,0.25);
    animation: ehPulse 2s infinite;
}
@keyframes ehPulse {
    0%,100% { box-shadow: 0 0 0 4px rgba(197,108,240,0.25); }
    50%     { box-shadow: 0 0 0 9px rgba(197,108,240,0); }
}

/* Ghost button — light variant for dark hero */
.btn-ghost--light {
    background: rgba(255,255,255,0.08) !important;
    border: 1px solid rgba(255,255,255,0.25) !important;
    color: #fff !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.btn-ghost--light:hover {
    background: rgba(255,255,255,0.16) !important;
    border-color: rgba(255,255,255,0.4) !important;
    color: #fff !important;
}

/* Hero stats row sits at bottom of viewport */
.hero-stats-row {
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(255,255,255,0.12);
    padding: 28px 0;
    background: linear-gradient(180deg, transparent, rgba(0,0,0,0.25));
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.hero-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.hero-stat {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #fff;
}
.hero-stat__val {
    font-family: var(--font-display);
    font-size: clamp(28px, 3.4vw, 40px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
    color: #fff;
    font-feature-settings: "tnum" 1;
}
.hero-stat__val small {
    font-weight: 700;
    color: #C56CF0;
    font-size: 0.7em;
}
.hero-stat__lab {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero-cinema .hero-scroll { display: none; }

/* Invert header on the cinema hero (until user scrolls) */
body:has(.hero-cinema) .site-header:not(.is-scrolled) .brand-logo {
    filter: brightness(0) invert(1);
}
body:has(.hero-cinema) .site-header:not(.is-scrolled) .site-links a:not(.btn) {
    color: rgba(255,255,255,0.85);
}
body:has(.hero-cinema) .site-header:not(.is-scrolled) .site-links a:not(.btn):hover {
    color: #fff;
    background: rgba(255,255,255,0.08);
}
body:has(.hero-cinema) .site-header:not(.is-scrolled) .menu-btn span { background: #fff; }

@media (max-width: 900px) {
    .hero-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 18px 24px; }
}
@media (max-width: 500px) {
    .hero-stats-grid { grid-template-columns: 1fr 1fr; }
    .hero-stat__val { font-size: 24px; }
}

/* Subtle card hover lift */
.media-card:hover, .work-card:hover {
    transform: translateY(-4px);
    border-color: rgba(160,32,240,0.18);
    box-shadow: 0 18px 40px -28px rgba(160,32,240,0.28);
}

/* Subtle card lift on hover */
.card, .media-card, .work-card, .svc-tile {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.4s ease, background 0.3s ease;
}
.media-card:hover, .work-card:hover {
    transform: translateY(-4px);
    border-color: rgba(160,32,240,0.18);
    box-shadow: 0 18px 40px -28px rgba(160,32,240,0.32);
}
.card:not(.media-card):not(.work-card):hover {
    border-color: rgba(160,32,240,0.14);
}

/* Soft image zoom on card hover */
.feature-row__media img,
.media-card__visual img,
.work-card__visual img {
    transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.feature-row__media:hover img,
.media-card:hover .media-card__visual img,
.work-card:hover .work-card__visual img {
    transform: scale(1.04);
}

/* Pull-quote in editorial italic serif */
.case-quote p {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    line-height: 1.36;
    letter-spacing: -0.012em;
}

/* Headline letter-spacing for case hero */
.case-hero h1 { letter-spacing: -0.04em; }

/* Tabular figures on stat numbers */
.hero-kpi__val,
.about-stat__val,
.hero-kpi__suffix,
.about-stat__suffix {
    font-feature-settings: "tnum" 1;
}

/* Page-hero halo — minimal */
.page-hero {
    background: radial-gradient(ellipse 60% 40% at 50% -10%, rgba(160,32,240,0.06) 0%, transparent 60%);
}

/* Reduced motion: kill reveal transforms */
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1 !important; transform: none !important; }
}

/* ================================================================
   ABOUT PAGE — additional sections
   ================================================================ */

/* About cinematic hero — no video variant */
.hero-cinema--about .hero-bg__video { display: none; }
.hero-cinema--about .hero-bg__overlay {
    background: radial-gradient(ellipse at 30% 0%, rgba(160,32,240,0.18), transparent 55%),
                radial-gradient(ellipse at 80% 100%, rgba(123,22,184,0.22), transparent 60%),
                linear-gradient(180deg, #0a0612 0%, #06040c 100%);
}
.hero-cinema--about .hero-content {
    padding-top: clamp(120px, 18vh, 200px);
    padding-bottom: clamp(60px, 10vh, 120px);
}
.hero-cinema--about .eyebrow {
    color: rgba(197,108,240,0.85);
    margin-bottom: 18px;
    display: inline-block;
}

/* ----------------------------------------------------------------
   MANIFESTO
---------------------------------------------------------------- */
.manifesto {
    background: #0a0612;
    padding: clamp(80px, 12vw, 160px) 0;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(160,32,240,0.12);
    border-bottom: 1px solid rgba(160,32,240,0.12);
}
.manifesto::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 900px; height: 900px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(160,32,240,0.15) 0%, transparent 60%);
    pointer-events: none;
}
.manifesto__inner {
    position: relative;
    z-index: 1;
    max-width: 980px;
    text-align: center;
}
.manifesto__inner .eyebrow {
    color: rgba(197,108,240,0.85);
    margin-bottom: 28px;
    display: inline-block;
}
.manifesto__quote {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    color: #fff;
    font-size: clamp(26px, 3.4vw, 46px);
    line-height: 1.3;
    letter-spacing: -0.01em;
}
.manifesto__sign {
    margin-top: 40px;
    color: rgba(255,255,255,0.6);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 12px;
}

/* ----------------------------------------------------------------
   TIMELINE
---------------------------------------------------------------- */
.timeline {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 56px;
    position: relative;
    padding-left: 0;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 120px;
    top: 12px; bottom: 12px;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(160,32,240,0.4), rgba(160,32,240,0.4), transparent);
}
.timeline__row {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 28px;
    align-items: flex-start;
    position: relative;
}
.timeline__row::after {
    content: '';
    position: absolute;
    left: 115px; top: 22px;
    width: 11px; height: 11px;
    background: var(--color-primary);
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(160,32,240,0.18);
    z-index: 1;
}
.timeline__year {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: -0.01em;
    padding-top: 14px;
    line-height: 1;
}
.timeline__card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 24px 28px;
    transition: border-color 0.3s, transform 0.3s var(--ease-expo);
    position: relative;
}
.timeline__card:hover {
    border-color: rgba(160,32,240,0.22);
    transform: translateX(4px);
}
.timeline__card h3 {
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-text);
}
.timeline__card p {
    color: var(--color-text-secondary);
    font-size: 15px;
    line-height: 1.7;
}
.timeline__card--now {
    border-color: rgba(160,32,240,0.32);
    background: linear-gradient(180deg, rgba(160,32,240,0.06), var(--color-bg-card));
}
.timeline__chip {
    display: inline-block;
    background: var(--gradient-primary);
    color: #fff;
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 600;
    margin-bottom: 12px;
}

@media (max-width: 720px) {
    .timeline::before { left: 8px; }
    .timeline__row { grid-template-columns: 1fr; gap: 8px; padding-left: 32px; }
    .timeline__row::after { left: 3px; top: 8px; }
    .timeline__year { padding-top: 0; font-size: 22px; }
}

/* ----------------------------------------------------------------
   LEADERSHIP / TEAM — editorial portrait cards
---------------------------------------------------------------- */
.section--dark-soft {
    background: linear-gradient(180deg, #0a0612 0%, #06040c 100%);
    color: #fff;
    border-top: 1px solid rgba(160,32,240,0.10);
    border-bottom: 1px solid rgba(160,32,240,0.10);
    position: relative;
    overflow: hidden;
}
.section--dark-soft::before {
    content: '';
    position: absolute;
    top: -240px; left: -160px;
    width: 520px; height: 520px;
    background: radial-gradient(circle, rgba(160,32,240,0.18), transparent 60%);
    pointer-events: none;
}
.section--dark-soft::after {
    content: '';
    position: absolute;
    bottom: -260px; right: -180px;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(123,22,184,0.18), transparent 60%);
    pointer-events: none;
}
.section--dark-soft .section-head h2,
.section--dark-soft .section-head { color: #fff; position: relative; z-index: 1; }
.section--dark-soft .section-head p { color: rgba(255,255,255,0.66); }
.section--dark-soft .eyebrow { color: rgba(197,108,240,0.85); }

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    margin-top: 56px;
    position: relative;
    z-index: 1;
}

.team-card {
    background: #0f0a18;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 20px;
    padding: 0;
    overflow: hidden;
    position: relative;
    transition: transform 0.5s var(--ease-expo),
                box-shadow 0.5s var(--ease-expo),
                border-color 0.3s;
    display: flex;
    flex-direction: column;
}
.team-card:hover {
    transform: translateY(-6px);
    border-color: rgba(160,32,240,0.4);
    box-shadow: 0 28px 60px -28px rgba(160,32,240,0.45);
}

.team-card__portrait {
    position: relative;
    aspect-ratio: 4 / 5;
    background: #1a1320;
    overflow: hidden;
}
.team-card__portrait img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: 50% 22%;
    display: block;
    filter: grayscale(100%) contrast(1.08) brightness(0.96);
    transition: transform 0.9s var(--ease-expo), filter 0.6s;
}
.team-card:hover .team-card__portrait img {
    transform: scale(1.05);
    filter: grayscale(100%) contrast(1.12) brightness(1.02);
}
.team-card__portrait::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        transparent 0%,
        transparent 45%,
        rgba(10,6,18,0.4) 78%,
        rgba(10,6,18,0.92) 100%);
    pointer-events: none;
}
.team-card__index {
    position: absolute;
    top: 16px; right: 18px;
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    color: rgba(255,255,255,0.92);
    letter-spacing: -0.02em;
    line-height: 1;
    z-index: 2;
    mix-blend-mode: difference;
}
.team-card__dept {
    position: absolute;
    bottom: 18px; left: 20px;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.78);
    background: rgba(160,32,240,0.22);
    border: 1px solid rgba(197,108,240,0.4);
    padding: 6px 12px;
    border-radius: 999px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2;
}
.team-card__body {
    padding: 24px 24px 26px;
    background: #0f0a18;
    position: relative;
}
.team-card__body::before {
    content: '';
    position: absolute;
    top: 0; left: 24px; right: 24px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(160,32,240,0.32), transparent);
}
.team-card__name {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}
.team-card__role {
    font-size: 12.5px;
    color: var(--color-primary-light);
    letter-spacing: 0.06em;
    margin-bottom: 14px;
    text-transform: uppercase;
    font-weight: 500;
}
.team-card__bio {
    font-size: 14px;
    color: rgba(255,255,255,0.65);
    line-height: 1.65;
    margin-bottom: 18px;
}
.team-card__tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.team-card__tags span {
    font-size: 10.5px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.72);
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 5px 11px;
    border-radius: 999px;
}

@media (max-width: 1024px) {
    .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .team-grid { grid-template-columns: 1fr; }
}

/* ----------------------------------------------------------------
   STACK BAND — tool marquee
---------------------------------------------------------------- */
.stack-band {
    padding: clamp(48px, 6vw, 80px) 0 clamp(56px, 7vw, 96px);
    background: #0a0612;
    color: #fff;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(160,32,240,0.12);
    border-bottom: 1px solid rgba(160,32,240,0.12);
}
.stack-band__label {
    text-align: center;
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
    margin-bottom: 30px;
}
.stack-band__track {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.stack-band__logos {
    display: flex;
    gap: 56px;
    width: max-content;
    animation: stackScroll 40s linear infinite;
    align-items: center;
}
.stack-band .stack-text {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    color: rgba(255,255,255,0.62);
    letter-spacing: -0.01em;
    white-space: nowrap;
    transition: color 0.3s;
}
.stack-band .stack-text:hover { color: #fff; }
@keyframes stackScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
    .stack-band__logos { animation: none !important; }
}

/* ----------------------------------------------------------------
   TEAM SLIDER — 2-slide carousel
---------------------------------------------------------------- */
.team-slider {
    margin-top: 56px;
    position: relative;
    z-index: 1;
}
.team-slider__track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin: 0 -4px;
}
.team-slider__track::-webkit-scrollbar { display: none; }

.team-slide {
    flex: 0 0 100%;
    min-width: 0;
    scroll-snap-align: start;
    padding: 0 4px;
}
.team-slide .team-grid { margin-top: 0; }

.team-slider__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    margin-top: 36px;
}
.team-slider__arrow {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.85);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.3s var(--ease-expo);
    -webkit-appearance: none;
    appearance: none;
}
.team-slider__arrow:hover {
    background: rgba(160,32,240,0.22);
    border-color: rgba(197,108,240,0.55);
    color: #fff;
    transform: translateY(-1px);
}
.team-slider__arrow:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none;
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.10);
}

.team-slider__dots {
    display: flex;
    gap: 10px;
    align-items: center;
}
.team-slider__dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.32);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: all 0.35s var(--ease-expo);
    -webkit-appearance: none;
    appearance: none;
}
.team-slider__dot:hover { border-color: rgba(255,255,255,0.7); }
.team-slider__dot.is-active {
    width: 32px;
    background: var(--gradient-primary);
    border-color: transparent;
}

/* ----------------------------------------------------------------
   SECTION VIDEO BACKGROUND (reusable pattern for non-hero sections)
   Use on any block-level section by adding the modifier class
---------------------------------------------------------------- */
.has-video-bg { position: relative; isolation: isolate; }
.section-video {
    position: absolute;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
}
.section-video__media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.04);
    will-change: transform;
}
.section-video__overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}
/* Default overlay — keeps text readable on top of any video */
.section-video__overlay {
    background:
        linear-gradient(180deg, rgba(7,2,14,0.85) 0%, rgba(7,2,14,0.65) 40%, rgba(7,2,14,0.92) 100%),
        radial-gradient(circle at 70% 30%, rgba(160,32,240,0.18) 0%, transparent 55%);
}
/* Variant overlays for different moods */
.section-video__overlay--money {
    background:
        linear-gradient(180deg, rgba(6,4,16,0.78) 0%, rgba(10,5,24,0.55) 45%, rgba(6,4,16,0.94) 100%),
        radial-gradient(ellipse at 20% 50%, rgba(160,32,240,0.22) 0%, transparent 55%);
}
.section-video__overlay--anchor {
    background:
        linear-gradient(180deg, rgba(0,0,0,0.78) 0%, rgba(8,4,18,0.7) 50%, rgba(0,0,0,0.92) 100%),
        radial-gradient(circle at 50% 60%, rgba(160,32,240,0.18) 0%, transparent 60%);
}
.section-video__overlay--professional {
    background:
        linear-gradient(180deg, rgba(7,2,14,0.86) 0%, rgba(7,2,14,0.74) 45%, rgba(7,2,14,0.95) 100%),
        radial-gradient(ellipse at 80% 30%, rgba(160,32,240,0.20) 0%, transparent 55%);
}
.section-video__overlay--strategy {
    background:
        linear-gradient(180deg, rgba(4,2,10,0.82) 0%, rgba(8,3,18,0.6) 40%, rgba(4,2,10,0.95) 100%),
        radial-gradient(circle at 30% 70%, rgba(160,32,240,0.20) 0%, transparent 60%);
}

/* Tighter vertical rhythm for sections with a video backdrop —
   avoids a tall empty dark band below the content */
.section.has-video-bg {
    padding-top: clamp(60px, 6vw, 90px);
    padding-bottom: clamp(60px, 6vw, 90px);
    margin-bottom: clamp(40px, 5vw, 80px);
}
/* Restore the next section's top padding when it follows a video section
   (the global ".section + .section { padding-top: 0 }" would otherwise
   collapse the gap, gluing the next section to the dark band) */
.has-video-bg + .section {
    padding-top: clamp(60px, 7vw, 110px);
}

/* When growth-card sits on top of video, drop its solid bg + show through */
.growth-section.has-video-bg .growth-card {
    background: rgba(12,6,22,0.55);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-color: rgba(255,255,255,0.10);
}

/* When manifesto has a video, dial down its built-in radial */
.manifesto.has-video-bg { background: transparent; }
.manifesto.has-video-bg::before { opacity: 0.4; }

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .section-video__media { display: none; }
    .section-video__overlay { background: linear-gradient(180deg,#070210,#0a0612); }
}

/* On small screens, drop video to save data — keep overlay as solid */
@media (max-width: 720px) {
    .section-video__media { display: none; }
}

/* ----------------------------------------------------------------
   SHOWREEL — inline autoplay video (replaces static thumbnail)
---------------------------------------------------------------- */
.reel-thumb--video .reel-thumb__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: inherit;
    transform: scale(1.02);
    transition: transform 0.5s var(--ease-out);
}
.reel-thumb--video:hover .reel-thumb__video {
    transform: scale(1.04);
}
.reel-thumb--video .reel-overlay {
    background: linear-gradient(180deg, rgba(0,0,0,0.10) 0%, rgba(0,0,0,0.30) 70%, rgba(0,0,0,0.55) 100%);
}
.reel-thumb--video .reel-label__tag {
    background: linear-gradient(135deg, rgba(160,32,240,0.95), rgba(197,108,240,0.95));
    color: #fff;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 11px;
    letter-spacing: 0.18em;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 6px 20px rgba(160,32,240,0.35);
    animation: reel-pulse 2s ease-in-out infinite;
}
@keyframes reel-pulse {
    0%, 100% { box-shadow: 0 6px 20px rgba(160,32,240,0.35); }
    50%      { box-shadow: 0 6px 28px rgba(160,32,240,0.65); }
}


/* ──────────────────────────────────────────────────────────────
   ANCHOR ASSISTANT — CHAT BOT WIDGET
────────────────────────────────────────────────────────────── */
.bot-fab,
.bot-fab *,
.bot-chat,
.bot-chat * { box-sizing: border-box; }

/* Launcher button */
.bot-fab {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #A020F0 0%, #6a0fc7 100%);
    color: #fff;
    border: 0;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(160,32,240,0.42), 0 2px 6px rgba(0,0,0,0.18);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    animation: botFabPulse 2.6s ease-in-out infinite;
}
.bot-fab:hover  { transform: scale(1.06); }
.bot-fab:active { transform: scale(0.94); }
.bot-fab svg    { width: 28px; height: 28px; display: block; }
.bot-fab[aria-expanded="true"] { transform: rotate(8deg); }

.bot-fab__dot {
    position: absolute;
    top: 6px; right: 6px;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: #25D366;
    border: 2px solid #fff;
}

@keyframes botFabPulse {
    0%, 100% { box-shadow: 0 8px 22px rgba(160,32,240,0.42), 0 2px 6px rgba(0,0,0,0.18); }
    50%      { box-shadow: 0 8px 32px rgba(160,32,240,0.72), 0 2px 6px rgba(0,0,0,0.18); }
}

/* Chat popup */
.bot-chat {
    position: fixed;
    right: 24px;
    bottom: 96px;
    z-index: 9998;
    width: min(380px, calc(100vw - 32px));
    height: min(560px, calc(100vh - 130px));
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.22), 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform-origin: bottom right;
    transform: translateY(14px) scale(0.92);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), opacity 0.22s ease;
    font-family: var(--font-sans, system-ui);
}
.bot-chat.is-open {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}

/* Header */
.bot-chat__header {
    background: linear-gradient(135deg, #1a0a2e 0%, #0a0612 60%, #1a0a2e 100%);
    color: #fff;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    border-bottom: 1px solid rgba(160,32,240,0.25);
}
.bot-chat__header::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(160,32,240,0.6), transparent);
}
.bot-chat__avatar {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 6px;
}
.bot-chat__avatar img { width: 100%; height: 100%; object-fit: contain; }
.bot-chat__head-text { flex: 1; min-width: 0; }
.bot-chat__title {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
}
.bot-chat__status {
    margin: 4px 0 0;
    font-size: 11.5px;
    opacity: 0.85;
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 6px;
}
.bot-chat__pulse {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 0 rgba(74,222,128,0.7);
    animation: botStatusPulse 1.8s ease-in-out infinite;
}
@keyframes botStatusPulse {
    0%   { box-shadow: 0 0 0 0   rgba(74,222,128,0.7); }
    70%  { box-shadow: 0 0 0 8px rgba(74,222,128,0); }
    100% { box-shadow: 0 0 0 0   rgba(74,222,128,0); }
}
.bot-chat__close {
    background: transparent;
    border: 0;
    color: rgba(255,255,255,0.8);
    width: 32px; height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.bot-chat__close:hover { background: rgba(255,255,255,0.1); color: #fff; }
.bot-chat__close svg { width: 18px; height: 18px; }

/* Body (message stream) */
.bot-chat__body {
    flex: 1;
    overflow-y: auto;
    padding: 18px 16px 14px;
    background: linear-gradient(180deg, #f8f7fc 0%, #fff 100%);
    scroll-behavior: smooth;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.bot-chat__body::-webkit-scrollbar { width: 6px; }
.bot-chat__body::-webkit-scrollbar-thumb { background: rgba(160,32,240,0.2); border-radius: 6px; }

/* Message bubbles */
.bot-msg {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
    animation: botMsgIn 0.32s cubic-bezier(0.16,1,0.3,1) backwards;
}
@keyframes botMsgIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.bot-msg--bot {
    background: #f1edf9;
    color: #1a0a2e;
    border-radius: 4px 16px 16px 16px;
    align-self: flex-start;
}
.bot-msg--user {
    background: linear-gradient(135deg, #A020F0 0%, #6a0fc7 100%);
    color: #fff;
    border-radius: 16px 16px 4px 16px;
    align-self: flex-end;
}
.bot-msg--bot a { color: #6a0fc7; font-weight: 600; }
.bot-msg--user a { color: #fff; text-decoration: underline; }

/* Typing indicator */
.bot-typing {
    display: flex;
    gap: 4px;
    padding: 14px 16px;
    width: fit-content;
}
.bot-typing span {
    width: 7px; height: 7px;
    background: #A020F0;
    border-radius: 50%;
    opacity: 0.5;
    animation: botTypingDot 1s ease-in-out infinite;
}
.bot-typing span:nth-child(2) { animation-delay: 0.15s; }
.bot-typing span:nth-child(3) { animation-delay: 0.30s; }
@keyframes botTypingDot {
    0%, 60%, 100% { transform: translateY(0);   opacity: 0.45; }
    30%           { transform: translateY(-4px); opacity: 1; }
}

/* Quick-reply chips */
.bot-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-self: flex-start;
    padding: 4px 0 8px;
    animation: botMsgIn 0.35s backwards;
    animation-delay: 0.1s;
}
.bot-chip {
    background: #fff;
    color: #1a0a2e;
    border: 1px solid rgba(160,32,240,0.3);
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.18s;
    line-height: 1.3;
    font-family: inherit;
}
.bot-chip:hover {
    background: linear-gradient(135deg, #A020F0 0%, #6a0fc7 100%);
    color: #fff;
    border-color: transparent;
    transform: translateY(-1px);
}

/* Input bar */
.bot-chat__input {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    background: #fff;
    border-top: 1px solid rgba(0,0,0,0.06);
}
.bot-chat__input input {
    flex: 1;
    height: 40px;
    padding: 0 14px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 20px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    background: #f8f7fc;
    color: #1a0a2e;
    font-family: inherit;
}
.bot-chat__input input:focus {
    border-color: #A020F0;
    background: #fff;
}
.bot-chat__send {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #A020F0 0%, #6a0fc7 100%);
    color: #fff;
    border: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.15s;
}
.bot-chat__send:hover  { transform: scale(1.06); }
.bot-chat__send:active { transform: scale(0.92); }
.bot-chat__send svg    { width: 18px; height: 18px; }

/* Mobile adjustments */
@media (max-width: 480px) {
    .bot-fab   { right: 16px; bottom: 16px; width: 56px; height: 56px; }
    .bot-fab svg { width: 26px; height: 26px; }
    .bot-chat  {
        right: 12px; left: 12px;
        bottom: 84px;
        width: auto;
        height: min(72vh, 560px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .bot-fab,
    .bot-chat__pulse,
    .bot-typing span,
    .bot-msg,
    .bot-chips { animation: none; }
}

/* Proactive teaser bubble (appears next to the FAB after a few seconds) */
.bot-teaser {
    position: fixed;
    right: 96px;            /* sits just left of the 60px FAB */
    bottom: 30px;
    z-index: 9997;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    color: #1a0a2e;
    padding: 12px 14px 12px 12px;
    border-radius: 16px 16px 4px 16px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.18), 0 2px 6px rgba(160,32,240,0.10);
    max-width: 280px;
    cursor: pointer;
    animation: botTeaserIn 0.45s cubic-bezier(0.16,1,0.3,1);
    border: 1px solid rgba(160,32,240,0.12);
    font-family: var(--font-sans, system-ui);
}
.bot-teaser.is-leaving {
    animation: botTeaserOut 0.28s ease forwards;
}
.bot-teaser__avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #A020F0 0%, #6a0fc7 100%);
    padding: 6px;
    flex-shrink: 0;
}
.bot-teaser__avatar img { width: 100%; height: 100%; object-fit: contain; filter: brightness(0) invert(1); }
.bot-teaser__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 12.5px;
    line-height: 1.35;
}
.bot-teaser__body strong { font-size: 13px; font-weight: 600; color: #1a0a2e; }
.bot-teaser__body span   { color: #555; }
.bot-teaser__close {
    position: absolute;
    top: -8px; right: -8px;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: #1a0a2e;
    color: #fff;
    border: 0;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.85;
    transition: transform 0.15s, opacity 0.2s;
}
.bot-teaser__close:hover { transform: scale(1.1); opacity: 1; }

@keyframes botTeaserIn {
    from { opacity: 0; transform: translateX(20px) scale(0.92); }
    to   { opacity: 1; transform: translateX(0)    scale(1); }
}
@keyframes botTeaserOut {
    from { opacity: 1; transform: translateX(0)    scale(1); }
    to   { opacity: 0; transform: translateX(20px) scale(0.92); }
}

@media (max-width: 540px) {
    .bot-teaser {
        right: 12px;
        bottom: 86px;            /* sits above the FAB on mobile */
        max-width: calc(100vw - 24px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .bot-teaser { animation: none; }
}
