/* ═══════════════════════════════════════════════════════
   WARENEROX — Editorial Landing
   Warm ochre Pantone · Instrument Serif + Inter
   ═══════════════════════════════════════════════════════ */

/* ── Palette ── */
:root {
    --wx-cream:      #F5EDE0;
    --wx-paper:      #EBE1D1;
    --wx-ivory:      #FAF7F2;
    --wx-ochre:      #C17529;
    --wx-ochre-light:#D4A96A;
    --wx-ochre-dim:  rgba(193, 117, 41, 0.10);
    --wx-bark:       #2C1D0E;
    --wx-earth:      #5A4635;
    --wx-sand:       #D5C4AB;
    --wx-muted:      #9A8B78;
    --wx-rule:       rgba(44, 29, 14, 0.10);

    /* Type */
    --font-display: 'Instrument Serif', Georgia, serif;
    --font-body:    'Inter', system-ui, -apple-system, sans-serif;
    --font-mono:    'JetBrains Mono', 'SF Mono', monospace;

    --fs-display: clamp(3.5rem, 10vw, 9rem);
    --fs-h1:      clamp(2rem, 5vw, 4rem);
    --fs-h2:      clamp(1.5rem, 3vw, 2.5rem);
    --fs-body:    1rem;
    --fs-small:   0.75rem;
    --fs-micro:   0.625rem;

    /* Motion */
    --t-fast: 120ms;
    --t-norm: 400ms;
    --t-slow: 800ms;
    --e-norm: cubic-bezier(0.22, 1, 0.36, 1);
    --e-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    background: #1a1410;
}

body {
    font-family: var(--font-body);
    background: transparent;
    color: var(--wx-bark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ═══ B&W BACKGROUND SLIDESHOW ═══ */
.wx-bg-slides {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.wx-bg-slide {
    position: absolute;
    inset: -40px;
    background-size: cover;
    background-position: center;
    filter: grayscale(1) contrast(1.1) brightness(0.85);
    opacity: 0;
    transition: opacity 1.8s cubic-bezier(0.76, 0, 0.24, 1);
    will-change: opacity;
}
.wx-bg-slide.active {
    opacity: 1;
}

/* Cream veil over photos — tints B&W into warm sepia */
.wx-bg-overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    background: rgba(245, 237, 224, 0.86);
    pointer-events: none;
}

/* All real content sits above the overlay */
.wx-grain  { z-index: 9998; /* already set */ }
.wx-nav    { z-index: 100;  /* already set */ }
.wx-hero,
.wx-marquee,
.wx-section,
.wx-footer,
hr.wx-rule,
.wx-modal-overlay { position: relative; z-index: 2; }

a { color: var(--wx-ochre); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--wx-bark); }
img { max-width: 100%; height: auto; }
em { font-family: var(--font-display); font-style: italic; }

/* ── Utilities ── */
.wx-container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.wx-section { padding: clamp(5rem, 10vh, 10rem) 0; }
.wx-mono {
    font-family: var(--font-mono);
    font-size: var(--fs-small);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 500;
}
.wx-label {
    font-family: var(--font-mono);
    font-size: var(--fs-small);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--wx-ochre);
    font-weight: 500;
}
.wx-arrow { transition: transform var(--t-norm) var(--e-spring); display: inline-block; }
.wx-rule {
    border: none;
    height: 1px;
    background: var(--wx-rule);
    margin: 0;
}

/* ── Film grain overlay ── */
.wx-grain {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    opacity: 1;
}

/* ── Reveal animation ── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity var(--t-slow) var(--e-norm), transform var(--t-slow) var(--e-norm);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal:nth-child(2) { transition-delay: 80ms; }
.reveal:nth-child(3) { transition-delay: 160ms; }
.reveal:nth-child(4) { transition-delay: 240ms; }

/* ═══ GLITCH TEXT ═══ */
.wx-glitch-text {
    position: relative;
    display: inline-block;
}
.wx-glitch-text::before,
.wx-glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    pointer-events: none;
    font-family: inherit; font-size: inherit;
    font-weight: inherit; letter-spacing: inherit;
    text-transform: inherit;
}
.wx-glitch-text::before { color: #d43a4c; }
.wx-glitch-text::after  { color: #2ad4bf; }

/* ── Glitch mode: color split + scan lines ── */
.wx-glitch-text.g-split::before {
    opacity: 0.85;
    animation: gSplitR 300ms steps(3) 1;
}
.wx-glitch-text.g-split::after {
    opacity: 0.85;
    animation: gSplitL 300ms steps(3) 1;
}
@keyframes gSplitR {
    0%   { clip-path: inset(0 0 60% 0); transform: translate(-4px, -1px) scaleX(1.02); }
    33%  { clip-path: inset(30% 0 20% 0); transform: translate(3px, 1px) scaleX(0.98); }
    66%  { clip-path: inset(60% 0 0 0); transform: translate(-2px, 0); }
    100% { clip-path: inset(0); transform: translate(0); opacity: 0; }
}
@keyframes gSplitL {
    0%   { clip-path: inset(50% 0 0 0); transform: translate(4px, 1px) scaleX(1.03); }
    33%  { clip-path: inset(0 0 50% 0); transform: translate(-3px, -1px) scaleX(0.97); }
    66%  { clip-path: inset(20% 0 40% 0); transform: translate(2px, 0); }
    100% { clip-path: inset(0); transform: translate(0); opacity: 0; }
}

/* ── Glitch mode: blur sweep ── */
.wx-glitch-text.g-blur {
    animation: gBlur 250ms ease-out 1;
}
@keyframes gBlur {
    0%   { filter: blur(0); transform: translate(0); }
    20%  { filter: blur(3px); transform: translate(2px, -1px) skewX(5deg); }
    40%  { filter: blur(0); transform: translate(-3px, 1px) skewX(-8deg); }
    60%  { filter: blur(2px); transform: translate(1px, 0) skewX(3deg); }
    80%  { filter: blur(0); transform: translate(-1px, -1px); }
    100% { filter: blur(0); transform: translate(0); }
}

/* ── Glitch mode: horizontal scanline wipe ── */
.wx-glitch-text.g-scan::before {
    opacity: 1;
    color: inherit;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(186,35,53,0.3) 48%,
        rgba(42,212,191,0.2) 52%,
        transparent 100%
    );
    background-size: 100% 8px;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gScan 400ms linear 1;
}
@keyframes gScan {
    0%   { clip-path: inset(0 0 100% 0); transform: translate(-2px, 0); }
    50%  { clip-path: inset(0 0 30% 0); transform: translate(2px, 0); }
    100% { clip-path: inset(0); transform: translate(0); opacity: 0; }
}

/* ── Glitch mode: full jitter (shake entire word) ── */
.wx-glitch-text.g-shake {
    animation: gShake 200ms steps(1) 2;
}
@keyframes gShake {
    0%   { transform: translate(0); }
    10%  { transform: translate(-3px, 1px) skewX(6deg); }
    20%  { transform: translate(2px, -2px) skewX(-4deg); }
    30%  { transform: translate(-1px, 2px) skewX(2deg); }
    40%  { transform: translate(3px, -1px) skewX(-6deg); }
    50%  { transform: translate(-2px, 0) skewX(3deg); }
    60%  { transform: translate(1px, 1px) skewX(-2deg); }
    70%  { transform: translate(-3px, -1px) skewX(5deg); }
    80%  { transform: translate(2px, 2px) skewX(-3deg); }
    90%  { transform: translate(-1px, -2px) skewX(1deg); }
    100% { transform: translate(0); }
}

/* ── Individual corrupted char styling ── */
.wx-glitch-text .g-char {
    display: inline;
    animation: gCharFlick 100ms steps(1) infinite;
    color: var(--wx-ochre);
    text-shadow: 0 0 4px rgba(186,35,53,0.6), 0 0 8px rgba(42,212,191,0.3);
}
@keyframes gCharFlick {
    0%   { opacity: 1; }
    50%  { opacity: 0.5; }
    100% { opacity: 1; }
}

/* ═══ NAVBAR ═══ */
.wx-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.25rem 0;
    transition: all var(--t-norm) var(--e-norm);
}
.wx-nav.scrolled {
    background: rgba(245, 237, 224, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.75rem 0;
    box-shadow: 0 1px 0 var(--wx-rule);
}
.wx-nav.hidden { transform: translateY(-100%); }
.wx-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.wx-nav-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--wx-bark);
    text-decoration: none;
}
.wx-nav-brand img {
    height: 34px;
    width: auto;
    opacity: 0.85;
    transition: opacity var(--t-fast);
}
.wx-nav-brand:hover img { opacity: 1; }
.wx-nav-brand span {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--wx-bark);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.wx-nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.wx-nav-links {
    display: flex;
    gap: 2rem;
}
.wx-nav-links a {
    font-size: 0.875rem;
    color: var(--wx-earth);
    font-weight: 500;
    position: relative;
}
.wx-nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--wx-ochre);
    transition: width var(--t-norm) var(--e-norm);
}
.wx-nav-links a:hover::after { width: 100%; }
.wx-nav-links a:hover { color: var(--wx-bark); }
.wx-nav-cta {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--wx-bark);
    border: 1px solid var(--wx-bark);
    padding: 0.5rem 1.25rem;
    transition: all var(--t-norm) var(--e-norm);
}
.wx-nav-cta:hover {
    background: var(--wx-bark);
    color: var(--wx-cream);
}
.wx-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 32px;
    height: 24px;
    position: relative;
}
.wx-nav-toggle span {
    display: block;
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--wx-bark);
    transition: all var(--t-norm) var(--e-norm);
    left: 0;
}
.wx-nav-toggle span:nth-child(1) { top: 0; }
.wx-nav-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.wx-nav-toggle span:nth-child(3) { bottom: 0; }
.wx-nav-toggle.open span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.wx-nav-toggle.open span:nth-child(2) { opacity: 0; }
.wx-nav-toggle.open span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

/* ═══ HERO ═══ */
.wx-hero {
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    position: relative;
    padding: 0 0 4rem;
    overflow: hidden;
}
.wx-hero-ambient {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.wx-hero-ambient::before,
.wx-hero-ambient::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
}
.wx-hero-ambient::before {
    width: 60vw;
    height: 60vw;
    background: var(--wx-ochre-light);
    top: -20%;
    right: -15%;
    animation: drift1 30s ease-in-out infinite alternate;
}
.wx-hero-ambient::after {
    width: 40vw;
    height: 40vw;
    background: var(--wx-sand);
    bottom: -10%;
    left: -10%;
    animation: drift2 25s ease-in-out infinite alternate;
}
@keyframes drift1 { to { transform: translate(-20vw, 15vh); } }
@keyframes drift2 { to { transform: translate(15vw, -10vh); } }

.wx-hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
}
.wx-hero-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-top: 8rem;
}
.wx-divider {
    width: 3rem;
    height: 1px;
    background: var(--wx-bark);
    opacity: 0.3;
}
.wx-hero-headline {
    font-family: var(--font-display);
    font-size: var(--fs-display);
    line-height: 0.95;
    letter-spacing: -0.03em;
    font-weight: 400;
    max-width: 900px;
    margin-bottom: 3rem;
    word-break: keep-all;
    overflow-wrap: normal;
}
.wx-hero-headline em {
    color: var(--wx-ochre);
}
.wx-hero-body {
    max-width: 560px;
    margin-bottom: 4rem;
}
.wx-hero-body p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--wx-earth);
    margin-bottom: 2rem;
}
.wx-hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.wx-hero-stats {
    display: flex;
    gap: 3rem;
    padding-top: 3rem;
    border-top: 1px solid var(--wx-rule);
}
.wx-stat { display: flex; flex-direction: column; gap: 0.25rem; }
.wx-stat-num {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--wx-bark);
}
.wx-stat-label {
    font-family: var(--font-mono);
    font-size: var(--fs-micro);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--wx-muted);
}

.wx-scroll-hint {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 1;
    color: var(--wx-muted);
}
.wx-scroll-line {
    width: 1px;
    height: 40px;
    background: var(--wx-bark);
    opacity: 0.2;
    animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
    0%, 100% { transform: scaleY(1); opacity: 0.2; }
    50% { transform: scaleY(1.5); opacity: 0.5; }
}

/* ═══ HERO SPLIT ═══ */
.wx-hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: end;
    width: 100%;
}
.wx-hero-text { display: flex; flex-direction: column; }

.wx-hero-visual {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding-bottom: 1rem;
}

/* ═══ MOCKUP ═══ */
.wx-mockup {
    width: 100%;
    max-width: 420px;
    background: var(--wx-bark);
    border: 1px solid rgba(44, 29, 14, 0.2);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(44, 29, 14, 0.15);
}
.wx-mockup--sm { max-width: 360px; }
.wx-mockup-bar {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 0.8rem;
    background: rgba(0,0,0,0.2);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.wx-mockup-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.wx-mockup-url {
    margin-left: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.55rem;
    color: rgba(255,255,255,0.3);
    letter-spacing: 0.05em;
}
.wx-mockup-body {
    display: flex;
    min-height: 200px;
}
.wx-mockup-sidebar {
    width: 36px;
    background: rgba(0,0,0,0.15);
    padding: 0.5rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    border-right: 1px solid rgba(255,255,255,0.05);
}
.wx-mockup-sidebar-item {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    color: rgba(255,255,255,0.25);
}
.wx-mockup-sidebar-item.active {
    color: var(--wx-ochre-light);
    background: rgba(193,117,41,0.15);
}
.wx-mockup-content {
    flex: 1;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.wx-mockup-stats {
    display: flex;
    gap: 0.5rem;
}
.wx-mockup-stat-card {
    flex: 1;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    padding: 0.5rem;
}
.wx-mockup-stat-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.5rem;
    color: rgba(255,255,255,0.35);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.2rem;
}
.wx-mockup-stat-val {
    display: block;
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--wx-cream);
    line-height: 1;
}
.wx-mockup-stat-delta {
    font-family: var(--font-mono);
    font-size: 0.5rem;
    color: #5ab84a;
}

/* Chart bars */
.wx-mockup-chart {
    flex: 1;
    display: flex;
    align-items: flex-end;
    gap: 3px;
    padding-top: 0.25rem;
}
.wx-chart-bar {
    flex: 1;
    background: rgba(193,117,41,0.2);
    min-height: 4px;
    transition: background var(--t-fast);
}
.wx-chart-bar.active,
.wx-chart-bar:last-child {
    background: var(--wx-ochre);
}

/* Mockup list (POS view) */
.wx-mockup-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.wx-mockup-list-item {
    display: flex;
    justify-content: space-between;
    padding: 0.3rem 0.4rem;
    font-size: 0.55rem;
    color: rgba(255,255,255,0.45);
    font-family: var(--font-mono);
    background: rgba(255,255,255,0.02);
}
.wx-mockup-list-item.total {
    border-top: 1px solid rgba(255,255,255,0.1);
    color: var(--wx-cream);
    font-weight: 600;
    margin-top: 0.25rem;
    padding-top: 0.4rem;
}

/* ═══ MATAPP PREVIEW ═══ */
.wx-matapp-preview {
    width: 100%;
    max-width: 360px;
    background: #080810;
    border: 1px solid rgba(186,35,53,0.2);
    padding: 1.5rem;
    overflow: hidden;
}
.wx-matapp-header {
    text-align: center;
    margin-bottom: 1.25rem;
}
.wx-matapp-title {
    display: block;
    font-size: 1.5rem;
    font-weight: 400;
    color: #BA2335;
    font-family: var(--font-display);
    margin-bottom: 0.25rem;
}
.wx-matapp-title strong { color: #e0ddd0; }
.wx-matapp-sub {
    font-size: 0.75rem;
    color: #706e65;
}
.wx-matapp-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}
.wx-matapp-stat {
    background: #101020;
    padding: 0.6rem;
    text-align: center;
}
.wx-matapp-stat-val {
    display: block;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1;
    margin-bottom: 0.15rem;
}
.wx-matapp-stat-label {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    color: #706e65;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.wx-matapp-nodes {
    position: relative;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 40px;
}
.wx-matapp-node {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    position: relative;
    z-index: 1;
}
.wx-matapp-node.n1 { background: #ffd700; box-shadow: 0 0 8px rgba(255,215,0,0.4); }
.wx-matapp-node.n2 { background: #00e676; box-shadow: 0 0 8px rgba(0,230,118,0.4); }
.wx-matapp-node.n3 { background: #BA2335; box-shadow: 0 0 8px rgba(186,35,53,0.5); }
.wx-matapp-node.n4 { background: #d43a4c; box-shadow: 0 0 6px rgba(212,58,76,0.3); }
.wx-matapp-node.n5 { background: rgba(255,255,255,0.15); border: 1px dashed rgba(255,255,255,0.2); }
.wx-matapp-links {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* ═══ PRODUCT SPLIT ═══ */
.wx-product--split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}
.wx-product-visual {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: flex-end;
}

/* ═══ BUTTONS ═══ */
.wx-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font-body);
    color: var(--wx-cream);
    background: var(--wx-bark);
    border: 1px solid var(--wx-bark);
    cursor: pointer;
    transition: all var(--t-norm) var(--e-norm);
}
.wx-btn:hover {
    background: var(--wx-ochre);
    border-color: var(--wx-ochre);
    color: #fff;
}
.wx-btn:hover .wx-arrow { transform: translateX(4px); }
.wx-btn--ghost {
    background: transparent;
    color: var(--wx-bark);
}
.wx-btn--ghost:hover {
    background: var(--wx-bark);
    color: var(--wx-cream);
}
.wx-btn--full { width: 100%; justify-content: center; }
.wx-btn--alt {
    background: #BA2335;
    border-color: #BA2335;
}
.wx-btn--alt:hover { background: #a01e2e; border-color: #a01e2e; }

/* ═══ MARQUEE ═══ */
.wx-marquee {
    overflow: hidden;
    border-top: 1px solid var(--wx-rule);
    border-bottom: 1px solid var(--wx-rule);
    background: rgba(250, 247, 242, 0.92);
}
.wx-marquee-inner {
    display: flex;
    gap: 2rem;
    padding: 1.25rem 0;
    animation: marquee 30s linear infinite;
    white-space: nowrap;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: var(--wx-earth);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ═══ SPLIT LAYOUT ═══ */
.wx-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}
.wx-split-left h2 {
    font-family: var(--font-display);
    font-size: var(--fs-h1);
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-weight: 400;
}
.wx-split-right p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--wx-earth);
    margin-bottom: 1.25rem;
}

/* ═══ SECTION TITLES ═══ */
.wx-section-title {
    font-family: var(--font-display);
    font-size: var(--fs-h1);
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-weight: 400;
    margin-top: 0.75rem;
    margin-bottom: 3rem;
}
.wx-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
}

/* ═══ PRODUCTS ═══ */
.wx-product {
    background: var(--wx-ivory);
    border: 1px solid var(--wx-rule);
    padding: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 2rem;
    transition: border-color var(--t-norm);
}
.wx-product:hover { border-color: var(--wx-ochre-light); }
.wx-product-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: var(--fs-micro);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.35rem 0.75rem;
    background: var(--wx-ochre-dim);
    color: var(--wx-ochre);
    margin-bottom: 1.25rem;
}
.wx-product-badge--alt { background: rgba(186,35,53,0.1); color: #BA2335; }
.wx-product-name {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}
.wx-product-desc {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--wx-earth);
    max-width: 600px;
    margin-bottom: 2rem;
}
.wx-product-features {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.75rem;
    margin-bottom: 2rem;
}
.wx-feat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--wx-earth);
}
.wx-feat i { color: var(--wx-ochre); font-size: 1rem; }
.wx-product--alt .wx-feat i { color: #BA2335; }
.wx-product-modules { margin-bottom: 2rem; }
.wx-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.wx-pills span {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.3rem 0.75rem;
    border: 1px solid var(--wx-sand);
    color: var(--wx-earth);
    transition: all var(--t-fast);
}
.wx-pills span:hover {
    border-color: var(--wx-ochre);
    color: var(--wx-ochre);
}

/* ═══ SERVICES ═══ */
.wx-services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--wx-rule);
    border: 1px solid var(--wx-rule);
    margin-top: 1rem;
}
.wx-service {
    background: var(--wx-ivory);
    padding: clamp(1.5rem, 3vw, 2.5rem);
    transition: background var(--t-norm);
}
.wx-service:hover { background: var(--wx-cream); }
.wx-service-num {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--wx-sand);
    display: block;
    margin-bottom: 1rem;
    line-height: 1;
}
.wx-service h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 0.75rem;
}
.wx-service p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--wx-earth);
    margin-bottom: 1.25rem;
}
.wx-service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.wx-service-tags span {
    font-family: var(--font-mono);
    font-size: var(--fs-micro);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.2rem 0.5rem;
    border: 1px solid var(--wx-sand);
    color: var(--wx-muted);
}

/* ═══ DARK SECTION ═══ */
.wx-section--dark {
    background: rgba(44, 29, 14, 0.93);
    color: var(--wx-cream);
}
.wx-section--dark .wx-label { color: var(--wx-ochre-light); }
.wx-section--dark .wx-section-title { color: var(--wx-cream); }
.wx-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.08);
}
.wx-stat-card {
    padding: clamp(1.5rem, 3vw, 2.5rem);
    background: var(--wx-bark);
}
.wx-stat-card-num {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: var(--wx-ochre-light);
    display: block;
    margin-bottom: 0.5rem;
    line-height: 1;
}
.wx-stat-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--wx-cream);
}
.wx-stat-card p {
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--wx-sand);
}

/* ═══ TEAM ═══ */
.wx-team-card {
    padding: 1.5rem;
    border: 1px solid var(--wx-rule);
    margin-bottom: 1rem;
    transition: border-color var(--t-norm);
}
.wx-team-card:hover { border-color: var(--wx-ochre-light); }
.wx-team-card--open { border-style: dashed; opacity: 0.6; }
.wx-team-info {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.5rem;
}
.wx-team-info h4 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 400;
}
.wx-team-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--wx-earth);
}

/* ═══ CONTACT ═══ */
.wx-contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}
.wx-contact-info h2 {
    font-family: var(--font-display);
    font-size: var(--fs-h1);
    line-height: 1.1;
    font-weight: 400;
    margin-top: 0.75rem;
    margin-bottom: 1rem;
}
.wx-contact-info > p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--wx-earth);
    margin-bottom: 2rem;
}
.wx-contact-methods { display: flex; flex-direction: column; gap: 1.25rem; }
.wx-contact-method {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}
.wx-contact-method i {
    font-size: 1.1rem;
    color: var(--wx-ochre);
    margin-top: 0.2rem;
}
.wx-contact-method strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
}
.wx-contact-method .wx-mono {
    font-size: var(--fs-micro);
    color: var(--wx-muted);
    display: block;
    margin-bottom: 0.15rem;
}

/* ── Forms ── */
.wx-contact-form,
.wx-modal form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.wx-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.wx-form-group { display: flex; flex-direction: column; gap: 0.35rem; }
.wx-form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--wx-earth);
    letter-spacing: 0.03em;
}
.wx-form-group input,
.wx-form-group select,
.wx-form-group textarea {
    font-family: var(--font-body);
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--wx-sand);
    background: var(--wx-ivory);
    color: var(--wx-bark);
    outline: none;
    transition: border-color var(--t-fast);
}
.wx-form-group input:focus,
.wx-form-group select:focus,
.wx-form-group textarea:focus {
    border-color: var(--wx-ochre);
}
.wx-form-group textarea { resize: vertical; min-height: 100px; }

/* ═══ MODAL ═══ */
.wx-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(44, 29, 14, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--t-norm);
}
.wx-modal-overlay.open { opacity: 1; pointer-events: all; }
.wx-modal {
    background: var(--wx-ivory);
    padding: clamp(2rem, 4vw, 3rem);
    max-width: 540px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px);
    transition: transform var(--t-norm) var(--e-norm);
}
.wx-modal-overlay.open .wx-modal { transform: translateY(0); }
.wx-modal-close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    background: none;
    border: none;
    font-size: 1.75rem;
    color: var(--wx-muted);
    cursor: pointer;
    line-height: 1;
}
.wx-modal h3 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 400;
    margin: 0.5rem 0;
}
.wx-modal-desc {
    font-size: 0.9rem;
    color: var(--wx-earth);
    margin-bottom: 1.5rem;
}

/* ═══ FOOTER ═══ */
.wx-footer {
    background: rgba(44, 29, 14, 0.96);
    color: var(--wx-sand);
    padding: clamp(3rem, 6vh, 5rem) 0 2rem;
}
.wx-footer-top {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-bottom: 3rem;
}
.wx-footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}
.wx-footer-logo span {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--wx-cream);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.wx-footer-brand p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--wx-muted);
}
.wx-footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.wx-footer-col h4 {
    font-family: var(--font-mono);
    font-size: var(--fs-small);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--wx-cream);
    margin-bottom: 1rem;
}
.wx-footer-col ul { list-style: none; }
.wx-footer-col li { margin-bottom: 0.5rem; }
.wx-footer-col a {
    font-size: 0.85rem;
    color: var(--wx-muted);
}
.wx-footer-col a:hover { color: var(--wx-cream); }
.wx-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 0.8rem;
    color: var(--wx-muted);
}
.wx-footer-social { display: flex; gap: 1rem; }
.wx-footer-social a { color: var(--wx-muted); font-size: 1rem; }
.wx-footer-social a:hover { color: var(--wx-cream); }

/* ═══ BLOG / NEWS CARDS ═══ */
.wx-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.wx-blog-grid--sm { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.wx-blog-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--wx-rule);
    background: var(--wx-ivory);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: border-color var(--t-norm), transform var(--t-norm);
}
.wx-blog-card:hover {
    border-color: var(--wx-ochre-light);
    transform: translateY(-4px);
}
.wx-blog-card-img {
    height: 200px;
    overflow: hidden;
}
.wx-blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--t-slow);
}
.wx-blog-card:hover .wx-blog-card-img img { transform: scale(1.05); }
.wx-blog-card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.wx-blog-date {
    color: var(--wx-muted);
    margin-bottom: 0.5rem;
    display: block;
}
.wx-blog-card-body h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}
.wx-blog-card-body p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--wx-earth);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}
.wx-blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 0.75rem;
}
.wx-blog-tags span {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    background: var(--wx-ochre-dim);
    color: var(--wx-ochre);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ── News grid ── */
.wx-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.wx-news-card {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    border: 1px solid var(--wx-rule);
    background: var(--wx-ivory);
    text-decoration: none;
    color: inherit;
    transition: border-color var(--t-norm);
}
.wx-news-card:hover { border-color: var(--wx-ochre-light); }
.wx-news-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 3rem;
    padding: 0.5rem;
    background: var(--wx-ochre-dim);
}
.wx-news-date .day {
    font-family: var(--font-display);
    font-size: 1.75rem;
    line-height: 1;
    color: var(--wx-ochre);
}
.wx-news-date .month {
    font-family: var(--font-mono);
    font-size: var(--fs-micro);
    letter-spacing: 0.1em;
    color: var(--wx-ochre);
}
.wx-news-body h4 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 0.35rem;
}
.wx-news-body p {
    font-size: 0.82rem;
    color: var(--wx-earth);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ═══ ARTICLE DETAIL ═══ */
.wx-article-container { max-width: 820px; padding-bottom: 4rem; }
.wx-breadcrumb { display: flex; align-items: center; gap: .5rem; font-size: .78rem; color: var(--wx-muted); margin-bottom: 1.5rem; }
.wx-breadcrumb a { color: var(--wx-ochre); }
.wx-breadcrumb a:hover { text-decoration: underline; }
.wx-article-hero { overflow: hidden; margin-bottom: 2rem; max-height: 400px; }
.wx-article-hero img { width: 100%; height: 100%; object-fit: cover; }
.wx-article-header { margin-bottom: 2.5rem; }
.wx-article-header h1 { font-family: var(--font-display); font-size: 2rem; font-weight: 400; line-height: 1.2; margin-bottom: .75rem; }
.wx-article-meta { display: flex; flex-wrap: wrap; gap: 1.25rem; font-size: .8rem; color: var(--wx-muted); margin-bottom: .75rem; }
.wx-article-meta span, .wx-article-meta time { display: inline-flex; align-items: center; gap: .35rem; }
.wx-article-meta i { color: var(--wx-ochre); }
.wx-article-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }
.wx-article-tags span { font-size: .7rem; padding: .2rem .6rem; background: var(--wx-ochre-dim); color: var(--wx-ochre); font-weight: 600; }
.wx-article-content { font-size: .95rem; line-height: 1.8; color: #1a1a1a; background: #fff; padding: 2rem 2.5rem; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.wx-article-content h1, .wx-article-content h2, .wx-article-content h3 { color: #111; font-weight: 700; margin-top: 2rem; margin-bottom: .75rem; }
.wx-article-content h2 { font-size: 1.4rem; }
.wx-article-content h3 { font-size: 1.15rem; }
.wx-article-content p { margin-bottom: 1.2rem; }
.wx-article-content img { max-width: 100%; margin: 1.5rem 0; }
.wx-article-content a { color: var(--wx-ochre); text-decoration: underline; }
.wx-article-content blockquote { border-left: 3px solid var(--wx-ochre); padding: .75rem 1.25rem; margin: 1.5rem 0; background: var(--wx-ivory); font-style: italic; color: #444; }
.wx-article-content code { background: #f1f3f5; padding: .15rem .45rem; font-size: .85rem; color: #333; }
.wx-article-content pre { background: #1e1e2e; color: #e0e0e0; padding: 1.25rem; overflow-x: auto; margin: 1.5rem 0; }
.wx-article-content ul, .wx-article-content ol { padding-left: 1.5rem; margin-bottom: 1.2rem; }
.wx-article-content li { margin-bottom: .4rem; color: #1a1a1a; }
.wx-article-related { margin-top: 3.5rem; padding-top: 2.5rem; border-top: 1px solid var(--wx-rule); }
.wx-article-related h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 1rem; }

/* ═══ PAGINATION ═══ */
.wx-pagination { display: flex; justify-content: center; align-items: center; gap: .5rem; margin-top: 3rem; }
.wx-page-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 .75rem; background: var(--wx-ivory); border: 1px solid var(--wx-rule); color: var(--wx-muted); font-size: .82rem; font-weight: 600; text-decoration: none; transition: all .2s; }
.wx-page-btn:hover { border-color: var(--wx-ochre); color: var(--wx-ochre); }
.wx-page-btn.active { background: var(--wx-ochre); border-color: var(--wx-ochre); color: #fff; }
.wx-page-btn.disabled { opacity: .4; pointer-events: none; }

/* ═══ EMPTY STATE ═══ */
.wx-empty-state { text-align: center; padding: 4rem 1rem; color: var(--wx-muted); }
.wx-empty-state i { font-size: 3rem; display: block; margin-bottom: 1rem; opacity: .4; }
.wx-empty-state p { font-size: .95rem; max-width: 400px; margin: 0 auto; }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1024px) {
    .wx-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .wx-services { grid-template-columns: 1fr; }
    .wx-blog-grid { grid-template-columns: repeat(2, 1fr); }
    .wx-news-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .wx-nav-toggle { display: block; }
    .wx-nav-menu {
        position: fixed;
        inset: 0;
        background: var(--wx-cream);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        opacity: 0;
        pointer-events: none;
        transition: opacity var(--t-norm);
        z-index: 99;
    }
    .wx-nav-menu.open { opacity: 1; pointer-events: all; }
    .wx-nav-links { flex-direction: column; text-align: center; gap: 1.5rem; }
    .wx-nav-links a { font-size: 1.25rem; }

    .wx-hero { padding-bottom: 3rem; }
    .wx-hero-split { grid-template-columns: 1fr; gap: 2rem; }
    .wx-hero-visual { justify-content: center; padding-bottom: 0; }
    .wx-hero-headline { font-size: clamp(2.5rem, 12vw, 5rem); }
    .wx-hero-stats { flex-wrap: wrap; gap: 2rem; }
    .wx-product--split { grid-template-columns: 1fr; gap: 1.5rem; }
    .wx-product-visual { align-items: center; }
    .wx-mockup, .wx-matapp-preview { max-width: 100%; }

    .wx-split { grid-template-columns: 1fr; gap: 2rem; }
    .wx-contact { grid-template-columns: 1fr; gap: 3rem; }
    .wx-footer-top { grid-template-columns: 1fr; gap: 2rem; }
    .wx-footer-cols { grid-template-columns: repeat(3, 1fr); }
    .wx-stats-grid { grid-template-columns: 1fr 1fr; }

    .wx-blog-grid, .wx-blog-grid--sm { grid-template-columns: 1fr; gap: 1.25rem; }
    .wx-news-grid { grid-template-columns: 1fr; }
    .wx-form-row { grid-template-columns: 1fr; }

    .wx-section-head { flex-direction: column; align-items: flex-start; gap: 1rem; }

    .wx-article-header h1 { font-size: 1.5rem; }
    .wx-article-content { font-size: .9rem; padding: 1.5rem; }
}

@media (max-width: 480px) {
    .wx-container { padding: 0 1.25rem; }
    .wx-hero-label { flex-direction: column; gap: 0.5rem; align-items: flex-start; }
    .wx-divider { display: none; }
    .wx-footer-cols { grid-template-columns: 1fr 1fr; }
    .wx-footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
    .wx-scroll-hint { display: none; }
    .wx-blog-card-img { height: 150px; }
    .wx-article-hero { max-height: 250px; }
    .wx-pagination { flex-wrap: wrap; }
}

/* ═══ DYNAMIC TRANSITIONS ═══ */

/* -- Character-level text reveal -- */
.split-chars { overflow: hidden; }
.split-chars .char {
    display: inline-block;
    transform: translateY(120%) rotate(8deg);
    opacity: 0;
    transition:
        transform 800ms cubic-bezier(0.22, 1, 0.36, 1),
        opacity 600ms ease-out;
    transition-delay: calc(var(--i) * 25ms);
}
.split-chars.go .char {
    transform: translateY(0) rotate(0);
    opacity: 1;
}

/* -- Image/mockup clip-path reveal -- */
.image-reveal {
    clip-path: inset(0 100% 0 0);
    transition: clip-path 1200ms cubic-bezier(0.76, 0, 0.24, 1);
}
.image-reveal.visible {
    clip-path: inset(0 0 0 0);
}
.image-reveal .wx-mockup,
.image-reveal .wx-matapp-preview {
    transform: scale(1.08);
    transition: transform 1400ms cubic-bezier(0.76, 0, 0.24, 1);
}
.image-reveal.visible .wx-mockup,
.image-reveal.visible .wx-matapp-preview {
    transform: scale(1);
}

/* -- Expanding horizontal rule -- */
.wx-hero-rule {
    width: 100%;
    height: 1px;
    background: var(--wx-bark);
    opacity: 0.15;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 800ms cubic-bezier(0.76, 0, 0.24, 1);
}
.wx-hero-rule.expand { transform: scaleX(1); }

/* -- Enhanced reveals (multi-property) -- */
.reveal-up {
    opacity: 0;
    transform: translateY(60px) scale(0.97);
    transition:
        opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
        transform 800ms cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-up.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition:
        opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
        transform 800ms cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition:
        opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
        transform 800ms cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* -- Stagger children (for grids) -- */
.stagger-children > .reveal:nth-child(1) { transition-delay: 0ms; }
.stagger-children > .reveal:nth-child(2) { transition-delay: 80ms; }
.stagger-children > .reveal:nth-child(3) { transition-delay: 160ms; }
.stagger-children > .reveal:nth-child(4) { transition-delay: 240ms; }
.stagger-children > .reveal-up:nth-child(1) { transition-delay: 0ms; }
.stagger-children > .reveal-up:nth-child(2) { transition-delay: 100ms; }
.stagger-children > .reveal-up:nth-child(3) { transition-delay: 200ms; }
.stagger-children > .reveal-up:nth-child(4) { transition-delay: 300ms; }

/* -- Magnetic button -- */
[data-magnet] {
    transition: transform 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
[data-magnet] span {
    display: inline-block;
    transition: transform 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* -- Hero entry states -- */
body:not(.hero-ready) .wx-scroll-hint { opacity: 0; }
body.hero-ready .wx-scroll-hint {
    animation: fadeSlideIn 600ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ═══ SECTION BACKGROUNDS ═══ */

/* -- Geometric mesh pattern for problem section -- */
.wx-section--mesh {
    position: relative;
    overflow: hidden;
}
.wx-section--mesh::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 50%;
    height: 100%;
    background:
        radial-gradient(ellipse 600px 400px at 80% 30%, rgba(193,117,41,0.06) 0%, transparent 70%),
        radial-gradient(ellipse 400px 300px at 60% 80%, rgba(213,196,171,0.08) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}
.wx-section--mesh > .wx-container { position: relative; z-index: 1; }

/* -- Dot grid pattern for services section -- */
.wx-section--dots {
    position: relative;
    overflow: hidden;
}
.wx-section--dots::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle 1px, rgba(44,29,14,0.08) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
    z-index: 0;
}
.wx-section--dots > .wx-container { position: relative; z-index: 1; }

/* -- Diagonal line accent behind dark section -- */
.wx-section--dark {
    position: relative;
    overflow: hidden;
}
.wx-section--dark::before {
    content: '';
    position: absolute;
    top: -50%; left: -20%;
    width: 140%;
    height: 200%;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 80px,
        rgba(255,255,255,0.015) 80px,
        rgba(255,255,255,0.015) 81px
    );
    pointer-events: none;
    z-index: 0;
}
.wx-section--dark > .wx-container { position: relative; z-index: 1; }

/* -- Ochre gradient wash for contact section -- */
.wx-section--glow {
    position: relative;
    overflow: hidden;
}
.wx-section--glow::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 60%;
    height: 60%;
    background: radial-gradient(ellipse at 20% 80%, rgba(193,117,41,0.07), transparent 70%);
    pointer-events: none;
    z-index: 0;
}
.wx-section--glow > .wx-container { position: relative; z-index: 1; }

/* -- Topographic lines for team section -- */
.wx-section--topo {
    position: relative;
    overflow: hidden;
}
.wx-section--topo::after {
    content: '';
    position: absolute;
    top: 10%; right: -5%;
    width: 400px;
    height: 400px;
    border: 1px solid rgba(193,117,41,0.06);
    border-radius: 50%;
    box-shadow:
        0 0 0 40px transparent,
        0 0 0 80px rgba(193,117,41,0.04),
        0 0 0 120px transparent,
        0 0 0 160px rgba(193,117,41,0.03),
        0 0 0 200px transparent,
        0 0 0 240px rgba(193,117,41,0.02);
    pointer-events: none;
    z-index: 0;
}
.wx-section--topo > .wx-container { position: relative; z-index: 1; }

/* ═══ SECTION SCENE TRANSITIONS — Card-deal feather ═══ */
/* Sections enter alternating left/right like dealing cards,
   with a gentle feather-settle motion */

[data-scene] {
    will-change: transform, opacity;
}

/* ── Feather from left ── */
[data-scene="left"] {
    opacity: 0;
    transform: translateX(-70px) translateY(20px) rotate(-0.8deg) scale(0.97);
    transition:
        opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
        transform 1.3s cubic-bezier(0.16, 1.08, 0.38, 0.98);
}
[data-scene="left"].scene-in {
    opacity: 1;
    transform: translateX(0) translateY(0) rotate(0) scale(1);
}

/* ── Feather from right ── */
[data-scene="right"] {
    opacity: 0;
    transform: translateX(70px) translateY(20px) rotate(0.8deg) scale(0.97);
    transition:
        opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
        transform 1.3s cubic-bezier(0.16, 1.08, 0.38, 0.98);
}
[data-scene="right"].scene-in {
    opacity: 1;
    transform: translateX(0) translateY(0) rotate(0) scale(1);
}

/* Inner content waits for scene card to land — then staggers in */
[data-scene]:not(.scene-in) .reveal,
[data-scene]:not(.scene-in) .reveal-up,
[data-scene]:not(.scene-in) .reveal-left,
[data-scene]:not(.scene-in) .reveal-right,
[data-scene]:not(.scene-in) .image-reveal {
    transition-delay: 0ms !important;
}
[data-scene].scene-in .reveal,
[data-scene].scene-in .reveal-up {
    transition-delay: 250ms;
}
[data-scene].scene-in .stagger-children > :nth-child(1) { transition-delay: 300ms; }
[data-scene].scene-in .stagger-children > :nth-child(2) { transition-delay: 400ms; }
[data-scene].scene-in .stagger-children > :nth-child(3) { transition-delay: 500ms; }
[data-scene].scene-in .stagger-children > :nth-child(4) { transition-delay: 600ms; }

/* ═══ REDUCED MOTION ═══ */
@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;
    }
    .reveal, .reveal-up, .reveal-left, .reveal-right { opacity: 1; transform: none; }
    .split-chars .char { opacity: 1; transform: none; transition: none; }
    .image-reveal { clip-path: none; }
    .wx-hero-rule { transform: scaleX(1); }
    .wx-hero-ambient::before, .wx-hero-ambient::after { animation: none; }
    .wx-bg-slide { transition: none; }
    .wx-bg-slides { transform: none !important; }
    [data-scene] {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }
}
