/* ============================================
   AI SEO DOMINATION — aiseodomination.com
   V2: Distinctive, not default
   ============================================ */

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

:root {
    --bg-deep: #07080d;
    --bg-surface: #0c0d14;
    --bg-card: #111219;
    --border: #1a1c28;
    --border-light: #252836;

    --text-primary: #e8e9ed;
    --text-secondary: #8e92a4;
    --text-muted: #5a5e72;
    --text-dim: #3a3e52;

    --accent: #FF4D4D;
    --accent-hover: #FF6B6B;
    --danger: #E53170;
    --blue: #3B82F6;
    --blue-light: #60A5FA;
    --violet: #A855F7;
    --violet-light: #C084FC;
    --green: #22C55E;
    --amber: #F59E0B;

    --fs-xs: clamp(0.8rem, 0.75rem + 0.2vw, 0.875rem);
    --fs-sm: clamp(0.9rem, 0.85rem + 0.25vw, 1rem);
    --fs-body: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
    --fs-lg: clamp(1.2rem, 1.05rem + 0.6vw, 1.4rem);
    --fs-xl: clamp(1.5rem, 1.2rem + 1.3vw, 2.25rem);
    --fs-2xl: clamp(2rem, 1.5rem + 2.2vw, 3.5rem);
    --fs-3xl: clamp(2.75rem, 1.8rem + 4vw, 5rem);
    --fs-massive: clamp(6rem, 4rem + 10vw, 14rem);

    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 3rem;
    --space-xl: 5rem;
    --space-2xl: 8rem;
    --space-3xl: 12rem;

    --max-width: 1440px;
    --content-width: 1440px;
    --narrow: 1440px;
}

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

body {
    font-family: 'Space Grotesk', system-ui, sans-serif;
    font-size: var(--fs-body);
    line-height: 1.65;
    color: var(--text-primary);
    background: var(--bg-deep);
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Outfit', system-ui, sans-serif;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.03em;
}

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

.wrap {
    max-width: var(--max-width);
    margin: 0 auto;
    padding-left: clamp(1.5rem, 3vw, 4rem);
    padding-right: clamp(1.5rem, 3vw, 4rem);
}

/* ---- CURSOR GLOW ---- */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 77, 77, 0.07) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s;
}
.cursor-glow.active {
    opacity: 1;
}

/* ---- SCROLL PROGRESS ---- */
.scroll-progress {
    position: fixed;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: var(--accent);
    z-index: 200;
    transition: width 0.05s linear;
}

/* ---- NAV ---- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0.85rem 0;
    background: rgba(7, 8, 13, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}
.nav.scrolled { border-bottom-color: var(--border); }

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 3vw, 4rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: var(--fs-lg);
    letter-spacing: -0.03em;
}
.logo-mark {
    color: var(--accent);
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}
.nav-logo:hover .logo-mark {
    transform: rotate(-90deg) scale(1.1);
}

/* "Domination" in coral */
.glitch {
    color: var(--accent);
}

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    transition: color 0.2s;
    position: relative;
}
.nav-links a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}
.nav-links a:not(.nav-cta):hover::after {
    width: 100%;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-cta {
    padding: 0.45rem 1.1rem;
    background: var(--accent);
    color: var(--bg-deep) !important;
    border-radius: 5px;
    font-weight: 700;
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: background 0.2s;
}
.nav-cta:hover { background: var(--accent-hover); }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 28px;
    height: 20px;
}
.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
}
.nav-toggle span:first-child { margin-bottom: 6px; }

/* ---- HERO ---- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: var(--space-3xl) 0 var(--space-xl);
    position: relative;
    overflow: hidden;
}

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

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    transform: scale(1.1);
    transform-origin: center center;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(7, 8, 13, 0.6) 70%, var(--bg-deep) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-tag {
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent);
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.hero-tag::before {
    content: '';
    display: block;
    width: 32px;
    height: 1px;
    background: var(--accent);
}

.hero-headline {
    font-size: var(--fs-3xl);
    font-weight: 800;
    margin-bottom: var(--space-md);
    line-height: 1.08;
}
.hero-accent { color: var(--accent); }

.hero-sub {
    font-size: var(--fs-lg);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
    max-width: 999px;
}

.hero-actions {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
    align-items: center;
}

/* ---- BUTTONS ---- */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 1.8rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: var(--fs-sm);
    letter-spacing: 0;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    border-radius: 5px;
}
.btn-primary {
    background: var(--accent);
    color: var(--bg-deep);
}
.btn-primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 4px 24px rgba(255, 77, 77, 0.2);
    transform: translateY(-1px);
}
.btn-primary:active {
    transform: scale(0.97);
    box-shadow: none;
    transition-duration: 0.1s;
}
.btn-ghost {
    background: none;
    color: var(--text-muted);
    border: 1px solid var(--border-light);
}
.btn-ghost:hover {
    color: var(--text-primary);
    border-color: var(--text-muted);
    transform: translateY(-1px);
}
.btn-ghost:active {
    transform: scale(0.97);
    transition-duration: 0.1s;
}
.btn-large {
    padding: 1rem 2.5rem;
    font-size: var(--fs-body);
}

/* ---- PROBLEM ---- */
.problem {
    padding: var(--space-2xl) 0;
}

.problem-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: start;
}

.problem-label {
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--blue);
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.problem-label::before {
    content: '';
    display: block;
    width: 32px;
    height: 1px;
    background: var(--blue);
}

.problem h2 {
    font-size: var(--fs-2xl);
    margin-bottom: var(--space-lg);
}

.problem-text p {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    font-size: var(--fs-body);
    line-height: 1.75;
    max-width: 999px;
}
.problem-text p:last-child { margin-bottom: 0; }

.problem-highlight {
    color: var(--text-primary) !important;
    font-weight: 500;
}

.problem-aside {
    position: sticky;
    top: 120px;
}

.problem-stat {
    margin-bottom: var(--space-lg);
}
.problem-stat-number {
    font-family: 'Outfit', sans-serif;
    font-size: var(--fs-massive);
    font-weight: 800;
    line-height: 0.85;
    letter-spacing: -0.05em;
    color: var(--danger);
    text-shadow: 0 0 60px rgba(229, 49, 112, 0.2);
}
.problem-stat-label {
    font-size: var(--fs-lg);
    color: var(--text-muted);
    margin-top: var(--space-sm);
    line-height: 1.4;
}

.inline-stats {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border);
}

.inline-stat {
    display: flex;
    align-items: baseline;
    gap: var(--space-sm);
}

.inline-stat-num {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: var(--fs-xl);
    letter-spacing: -0.03em;
    flex-shrink: 0;
    min-width: 70px;
}

.inline-stat:nth-child(1) .inline-stat-num { color: var(--accent); }
.inline-stat:nth-child(2) .inline-stat-num { color: var(--blue-light); }
.inline-stat:nth-child(3) .inline-stat-num { color: var(--violet-light); }

.inline-stat-text {
    font-size: var(--fs-sm);
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ---- PILLARS ---- */
.pillars {
    padding: var(--space-2xl) 0;
    border-top: 1px solid var(--border);
}

.pillars-header {
    margin-bottom: var(--space-xl);
}
.pillars-tag {
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--violet);
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.pillars-tag::before {
    content: '';
    display: block;
    width: 32px;
    height: 1px;
    background: var(--violet);
}
.pillars h2 {
    font-size: var(--fs-2xl);
    margin-bottom: var(--space-sm);
}
.pillars-intro {
    font-size: var(--fs-body);
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 999px;
}

.pillar-list {
    display: flex;
    flex-direction: column;
}

.pillar-row {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: var(--space-md);
    padding: var(--space-lg) 0;
    border-bottom: 1px solid var(--border);
    align-items: baseline;
    transition: background 0.2s;
}
.pillar-row:first-child {
    border-top: 1px solid var(--border);
}
.pillar-row:hover {
    background: var(--bg-surface);
    margin: 0 calc(var(--space-md) * -1);
    padding-left: var(--space-md);
    padding-right: var(--space-md);
}
.pillar-row {
    transform-style: preserve-3d;
    perspective: 800px;
}

.pillar-num {
    font-family: 'Outfit', sans-serif;
    font-size: var(--fs-xl);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.pillar-row:nth-child(1) .pillar-num { color: var(--accent); }
.pillar-row:nth-child(2) .pillar-num { color: var(--blue); }
.pillar-row:nth-child(3) .pillar-num { color: var(--violet); }
.pillar-row:nth-child(4) .pillar-num { color: var(--green); }
.pillar-row:nth-child(5) .pillar-num { color: var(--danger); }
.pillar-row:nth-child(6) .pillar-num { color: var(--amber); }

.pillar-body h3 {
    font-size: var(--fs-lg);
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.pillar-body p {
    font-size: var(--fs-sm);
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ---- INDUSTRIES ---- */
.industries {
    padding: var(--space-xl) 0 var(--space-2xl);
}

.industries-tag {
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--green);
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.industries-tag::before {
    content: '';
    display: block;
    width: 32px;
    height: 1px;
    background: var(--green);
}

.industries h2 {
    font-size: var(--fs-2xl);
    margin-bottom: var(--space-xl);
}

.industries-flow {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.industry-pill {
    padding: 0.6rem 1.2rem;
    border: 1px solid var(--border-light);
    border-radius: 100px;
    font-size: var(--fs-sm);
    color: var(--text-secondary);
    transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: default;
}
.industry-pill:hover {
    color: var(--text-primary);
    transform: translateY(-2px);
}
.industry-pill:nth-child(6n+1):hover { border-color: var(--accent); background: rgba(255, 77, 77, 0.06); }
.industry-pill:nth-child(6n+2):hover { border-color: var(--blue); background: rgba(59, 130, 246, 0.06); }
.industry-pill:nth-child(6n+3):hover { border-color: var(--violet); background: rgba(168, 85, 247, 0.06); }
.industry-pill:nth-child(6n+4):hover { border-color: var(--green); background: rgba(34, 197, 94, 0.06); }
.industry-pill:nth-child(6n+5):hover { border-color: var(--danger); background: rgba(229, 49, 112, 0.06); }
.industry-pill:nth-child(6n+6):hover { border-color: var(--amber); background: rgba(245, 158, 11, 0.06); }

/* ---- PROCESS ---- */
.process {
    padding: var(--space-2xl) 0;
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.process-tag {
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent);
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.process-tag::before {
    content: '';
    display: block;
    width: 32px;
    height: 1px;
    background: var(--accent);
}

.process h2 {
    font-size: var(--fs-2xl);
    margin-bottom: var(--space-xl);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.process-step {
    position: relative;
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border);
}

.step-label {
    font-family: 'Outfit', sans-serif;
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: var(--space-sm);
}
.process-step:nth-child(1) .step-label { color: var(--accent); }
.process-step:nth-child(2) .step-label { color: var(--blue); }
.process-step:nth-child(3) .step-label { color: var(--violet); }

.step-number-bg {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(4rem, 3rem + 4vw, 7rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    color: transparent;
    -webkit-text-stroke: 1px var(--border-light);
    position: absolute;
    top: var(--space-md);
    right: 0;
    opacity: 0.5;
    pointer-events: none;
}
.process-step:nth-child(1) .step-number-bg { -webkit-text-stroke-color: rgba(255, 77, 77, 0.15); }
.process-step:nth-child(2) .step-number-bg { -webkit-text-stroke-color: rgba(59, 130, 246, 0.15); }
.process-step:nth-child(3) .step-number-bg { -webkit-text-stroke-color: rgba(168, 85, 247, 0.15); }

.step-title {
    font-size: var(--fs-xl);
    margin-bottom: var(--space-xs);
}

.step-text {
    font-size: var(--fs-sm);
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 999px;
}

/* ---- FAQ ---- */
.faq {
    padding: var(--space-2xl) 0;
}

.faq-tag {
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--blue);
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.faq-tag::before {
    content: '';
    display: block;
    width: 32px;
    height: 1px;
    background: var(--blue);
}

.faq h2 {
    font-size: var(--fs-2xl);
    margin-bottom: var(--space-xl);
}

.faq-list { }

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

.faq-item summary {
    padding: var(--space-md) 0;
    font-family: 'Outfit', sans-serif;
    font-size: var(--fs-lg);
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-primary);
    transition: color 0.2s;
}
.faq-item summary:hover { color: var(--accent); }
.faq-item summary::after {
    content: '+';
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--text-dim);
    transition: transform 0.3s;
    flex-shrink: 0;
    margin-left: 2rem;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary::-webkit-details-marker { display: none; }

.faq-answer {
    padding-bottom: var(--space-md);
    overflow: hidden;
    animation: faqOpen 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}
@keyframes faqOpen {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.75;
    max-width: 999px;
}

/* ---- CTA ---- */
.final-cta {
    padding: var(--space-3xl) 0;
    border-top: 1px solid var(--border);
    background: linear-gradient(170deg, var(--bg-deep) 0%, #1a0a0a 40%, #0d0610 70%, var(--bg-deep) 100%);
    position: relative;
}
.final-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.cta-layout {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--space-xl);
    align-items: center;
}

.cta-headline {
    font-size: var(--fs-2xl);
    margin-bottom: var(--space-md);
}
.cta-text {
    font-size: var(--fs-body);
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 600px;
}
.cta-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
}
.cta-sub {
    font-size: var(--fs-xs);
    color: var(--text-dim);
    text-align: center;
    max-width: 220px;
}

/* ---- FOOTER ---- */
.footer {
    padding: var(--space-xl) 0 var(--space-lg);
    border-top: 1px solid var(--border);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-lg);
}
.footer-brand {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: var(--fs-lg);
    margin-bottom: var(--space-sm);
}
.footer-desc {
    font-size: var(--fs-sm);
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 440px;
    margin-bottom: var(--space-xs);
}
.footer-location {
    font-size: var(--fs-xs);
    color: var(--text-dim);
}
.footer-col-title {
    font-family: 'Outfit', sans-serif;
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
}
.footer-nav-col a,
.footer-contact-col a {
    display: block;
    font-size: var(--fs-sm);
    color: var(--text-dim);
    transition: color 0.2s;
    margin-bottom: 0.4rem;
}
.footer-nav-col a:hover,
.footer-contact-col a:hover { color: var(--text-primary); }
.footer-bottom {
    padding-top: var(--space-md);
    border-top: 1px solid var(--border);
}
.footer-copy {
    font-size: var(--fs-xs);
    color: var(--text-dim);
}

/* ---- ANIMATIONS ---- */
[data-animate] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s cubic-bezier(0.25, 0.1, 0.25, 1),
                transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}
[data-animate].visible {
    opacity: 1;
    transform: translateY(0);
}

.pillar-row:nth-child(2) { transition-delay: 0.04s; }
.pillar-row:nth-child(3) { transition-delay: 0.08s; }
.pillar-row:nth-child(4) { transition-delay: 0.12s; }
.pillar-row:nth-child(5) { transition-delay: 0.16s; }
.pillar-row:nth-child(6) { transition-delay: 0.2s; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
    .problem-grid { grid-template-columns: 1fr; }
    .problem-aside { position: static; }
    .problem-stat-number { font-size: clamp(4rem, 3rem + 5vw, 8rem); }
    .process-steps { grid-template-columns: 1fr; gap: var(--space-lg); }
    .cta-layout { grid-template-columns: 1fr; }
    .cta-action { align-items: flex-start; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 6px;
    }
    .hero-headline { font-size: var(--fs-2xl); }
    .pillar-row { grid-template-columns: 60px 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: var(--space-lg); }
}

@media (max-width: 480px) {
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .inline-stat { flex-direction: column; gap: 0.25rem; }
}

/* ================================================================
   OVERDRIVE: Scroll-Driven Parallax Storytelling
   Progressive enhancement — falls back to static for Firefox/old browsers
   ================================================================ */

@supports (animation-timeline: view()) {

    /* --- Hero video parallax: scrolls slower than content --- */
    .hero-video {
        animation: heroParallax linear both;
        animation-timeline: scroll();
        animation-range: 0% 50%;
    }
    @keyframes heroParallax {
        from { transform: translateY(0) scale(1.1); }
        to { transform: translateY(-15%) scale(1.1); }
    }

    /* --- Section tags slide in from left --- */
    .problem-label,
    .pillars-tag,
    .industries-tag,
    .process-tag,
    .faq-tag {
        animation: slideFromLeft linear both;
        animation-timeline: view();
        animation-range: entry -20% entry 30%;
    }
    @keyframes slideFromLeft {
        from { opacity: 0; transform: translateX(-60px); }
        to { opacity: 1; transform: translateX(0); }
    }

    /* --- Section headlines slide in from right (alternating) --- */
    .problem h2,
    .pillars h2,
    .faq h2 {
        animation: slideFromRight linear both;
        animation-timeline: view();
        animation-range: entry -20% entry 30%;
    }
    @keyframes slideFromRight {
        from { opacity: 0; transform: translateX(60px); }
        to { opacity: 1; transform: translateX(0); }
    }

    .industries h2,
    .process h2 {
        animation: slideFromLeft linear both;
        animation-timeline: view();
        animation-range: entry -20% entry 30%;
    }

    /* --- The "0" stat scales up as you scroll into it --- */
    .problem-stat-number {
        animation: zeroGrow linear both !important;
        animation-timeline: view() !important;
        animation-range: entry -20% entry 30% !important;
    }
    @keyframes zeroGrow {
        from { opacity: 0; transform: scale(0.3); filter: blur(8px); }
        60% { opacity: 1; filter: blur(0); }
        to { opacity: 1; transform: scale(1); filter: blur(0); }
    }

    /* --- Pillar rows stagger in from alternating sides --- */
    .pillar-row {
        animation: pillarReveal linear both;
        animation-timeline: view();
        animation-range: entry -20% entry 25%;
    }
    .pillar-row:nth-child(odd) {
        animation-name: slideFromLeft;
    }
    .pillar-row:nth-child(even) {
        animation-name: slideFromRight;
    }

    /* --- Process steps rise up with parallax offset --- */
    .process-step {
        animation: riseUp linear both;
        animation-timeline: view();
        animation-range: entry -20% entry 25%;
    }
    @keyframes riseUp {
        from { opacity: 0; transform: translateY(60px); }
        to { opacity: 1; transform: translateY(0); }
    }

    /* --- FAQ items slide in --- */
    .faq-item {
        animation: slideFromRight linear both;
        animation-timeline: view();
        animation-range: entry -20% entry 25%;
    }

    /* --- CTA scales in dramatically --- */
    .cta-layout {
        animation: ctaReveal linear both;
        animation-timeline: view();
        animation-range: entry -20% entry 25%;
    }
    @keyframes ctaReveal {
        from { opacity: 0; transform: scale(0.9) translateY(40px); }
        to { opacity: 1; transform: scale(1) translateY(0); }
    }

    /* --- Industry pills cascade with scroll --- */
    .industries-flow {
        animation: riseUp linear both;
        animation-timeline: view();
        animation-range: entry -20% entry 30%;
    }

    /* --- Inline stats slide up staggered --- */
    .inline-stat:nth-child(1) {
        animation: riseUp linear both;
        animation-timeline: view();
        animation-range: entry -20% entry 25%;
    }
    .inline-stat:nth-child(2) {
        animation: riseUp linear both;
        animation-timeline: view();
        animation-range: entry -10% entry 30%;
    }
    .inline-stat:nth-child(3) {
        animation: riseUp linear both;
        animation-timeline: view();
        animation-range: entry 0% entry 35%;
    }

    /* Disable the JS-based [data-animate] since scroll-driven handles it */
    [data-animate] {
        opacity: 1 !important;
        transform: none !important;
    }

    /* Scroll progress bar driven by scroll (no JS needed) */
    .scroll-progress {
        animation: scrollGrow linear both;
        animation-timeline: scroll();
        transition: none;
    }
    @keyframes scrollGrow {
        from { width: 0%; }
        to { width: 100%; }
    }
}

/* --- REDUCED MOTION --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
