/* ================================================================
   wanat.dev — kinetic art layer
   (custom cursor + pinned hero + scroll-jacked story + horizontal gallery + split-text)
   ================================================================ */

/* ---------------------------------------------------------------
   1. Custom cursor (desktop / fine pointer only)
   --------------------------------------------------------------- */
@media (hover: hover) and (pointer: fine) {
    html, body { cursor: none; }
    a, button, summary, input, textarea, select, label,
    .demo-card, .horiz-card, .project, .faq-item,
    [data-cursor], .magnetic { cursor: none !important; }

    .cursor {
        position: fixed;
        top: 0;
        left: 0;
        width: 14px;
        height: 14px;
        background: #fafafa;
        border-radius: 999px;
        mix-blend-mode: difference;
        pointer-events: none;
        z-index: 9999;
        will-change: transform, width, height, padding;
        transform: translate3d(-50%, -50%, 0);
        transition:
            width 0.32s cubic-bezier(0.2, 0.8, 0.2, 1),
            height 0.32s cubic-bezier(0.2, 0.8, 0.2, 1),
            padding 0.32s cubic-bezier(0.2, 0.8, 0.2, 1),
            border-radius 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    .cursor.is-hover  { width: 44px; height: 44px; }
    .cursor.is-label  {
        width: auto; height: auto;
        min-width: 88px; min-height: 36px;
        padding: 0 18px;
        border-radius: 999px;
    }
    .cursor.is-press  { transform: translate3d(-50%, -50%, 0) scale(0.85); }

    .cursor-label {
        font-family: 'Geist Mono', ui-monospace, monospace;
        font-size: 11px;
        font-weight: 500;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: #000;
        white-space: nowrap;
        opacity: 0;
        transform: scale(0.5);
        transition: opacity 0.22s ease, transform 0.22s ease;
        pointer-events: none;
    }
    .cursor.is-label .cursor-label { opacity: 1; transform: scale(1); }
}

/* ---------------------------------------------------------------
   1b. Click feedback — strong press shrink + glow pulse + bounce
   --------------------------------------------------------------- */
.btn,
.project-link,
.demo-card,
.horiz-card,
.faq-item summary,
.story-links a,
.nav-cta,
.mobile-cta,
.footer-up,
.kf-opt,
.horiz-card-cta,
.demo-cta {
    transition-property: transform, background, border-color, color, opacity, box-shadow;
    transition-duration: 0.22s;
    transition-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* PRESS — squeeze fast */
.btn:active,
.project-link:active,
.faq-item summary:active,
.story-links a:active,
.nav-cta:active,
.mobile-cta:active,
.footer-up:active,
.kf-opt:active {
    transform: scale(0.92);
    transition-duration: 0.05s;
}
.demo-card:active   { transform: scale(0.97) translateY(0); transition-duration: 0.05s; }
.horiz-card:active  { transform: scale(0.97); transition-duration: 0.05s; }
.btn-primary:active { transform: scale(0.92) translateY(0); transition-duration: 0.05s; }

/* RELEASE — JS adds .is-clicked for one render → glow pulse + bounce */
.is-clicked {
    animation:
        clickBounce 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
        clickPulse  0.6s  ease-out;
}
.btn-primary.is-clicked,
.cta-primary.is-clicked,
.btn-primary.is-clicked {
    animation:
        clickBounce 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
        clickPulseDark 0.6s ease-out;
}

@keyframes clickBounce {
    0%   { transform: scale(0.92); }
    55%  { transform: scale(1.05); }
    100% { transform: scale(1); }
}
@keyframes clickPulse {
    0%   { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.35); }
    100% { box-shadow: 0 0 0 22px rgba(255, 255, 255, 0); }
}
@keyframes clickPulseDark {
    0%   { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.28); }
    100% { box-shadow: 0 0 0 22px rgba(0, 0, 0, 0); }
}

/* big cards get a calmer bounce */
.demo-card.is-clicked,
.horiz-card.is-clicked,
.faq-item.is-clicked {
    animation:
        clickBounceSoft 0.5s cubic-bezier(0.34, 1.5, 0.64, 1),
        clickPulse 0.6s ease-out;
}
@keyframes clickBounceSoft {
    0%   { transform: scale(0.97); }
    55%  { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* form submit button while disabled (sending) */
button[type="submit"]:disabled { transform: scale(0.97); opacity: 0.7; }

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

/* ---------------------------------------------------------------
   2. Magnetic helper
   --------------------------------------------------------------- */
.magnetic { display: inline-block; will-change: transform; }
.magnetic-inner { display: inline-block; will-change: transform; transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); }

/* ---------------------------------------------------------------
   3. Split-text reveal (used by hero-title, section-title, etc.)
   --------------------------------------------------------------- */
.split-word {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
    padding-bottom: 0.12em;
    margin-bottom: -0.12em;
}
.split-inner {
    display: inline-block;
    transform: translate3d(0, 110%, 0) rotate(2.5deg);
    filter: blur(6px);
    opacity: 0;
    will-change: transform, opacity, filter;
}
.is-revealed .split-inner {
    transform: translate3d(0, 0, 0) rotate(0deg);
    filter: blur(0);
    opacity: 1;
    transition:
        transform 0.95s cubic-bezier(0.16, 1, 0.3, 1),
        opacity   0.7s ease,
        filter    0.6s ease;
    transition-delay: calc(var(--i, 0) * 0.045s);
}

/* respect existing color spans inside split */
.split-word .text-muted { color: var(--text-3); }

/* ---------------------------------------------------------------
   4. Kinetic intro section ("WANAT")
   --------------------------------------------------------------- */
.kinetic {
    position: relative;
    background: var(--bg);
    overflow: hidden;
    border-top: 1px solid var(--border);
}

.kinetic-stage {
    height: 100vh;
    height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.kinetic-bg {
    position: absolute;
    inset: -20%;
    background:
        radial-gradient(circle at 30% 40%, rgba(99, 102, 241, 0.08), transparent 55%),
        radial-gradient(circle at 70% 60%, rgba(245, 232, 212, 0.06), transparent 55%);
    filter: blur(80px);
    pointer-events: none;
    will-change: transform;
}

.kinetic-word {
    display: flex;
    gap: clamp(4px, 1vw, 18px);
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: clamp(20vw, 24vw, 28vw);
    line-height: 0.84;
    letter-spacing: -0.08em;
    color: var(--text);
    position: relative;
    z-index: 2;
}

.kinetic-letter {
    display: inline-block;
    position: relative;
    will-change: transform, opacity;
    transform-origin: center;
}

.kinetic-letter::before {
    content: attr(data-letter);
    position: absolute;
    inset: 0;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(250, 250, 250, 0.08);
    z-index: -1;
    transform: scale(1.05);
    pointer-events: none;
}

.kinetic-meta {
    position: absolute;
    bottom: clamp(24px, 6vh, 56px);
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0 var(--pad-x);
    z-index: 3;
    pointer-events: none;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-3);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.kinetic-meta-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 260px;
}
.kinetic-meta-stack span:first-child { color: var(--text); }

.kinetic-scroll {
    display: flex;
    align-items: center;
    gap: 12px;
}
.kinetic-scroll-line {
    width: 36px; height: 1px;
    background: var(--text-3);
    position: relative;
    overflow: hidden;
}
.kinetic-scroll-line::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--text);
    transform: translateX(-100%);
    animation: scrollLine 2.2s ease-in-out infinite;
}
@keyframes scrollLine {
    0%   { transform: translateX(-100%); }
    50%  { transform: translateX(0); }
    100% { transform: translateX(100%); }
}

.kinetic-tag {
    position: absolute;
    top: clamp(20px, 5vh, 50px);
    left: var(--pad-x);
    z-index: 3;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-3);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
}
.kinetic-tag::before {
    content: "";
    width: 24px;
    height: 1px;
    background: var(--text-3);
}

@media (max-width: 880px) {
    .kinetic-stage { height: 70vh; height: 70svh; }
    .kinetic-word { font-size: 30vw; gap: 0; }
    .kinetic-meta { font-size: 10px; }
    .kinetic-meta-stack { max-width: 50%; }
}

/* ---------------------------------------------------------------
   5. Scroll-jacked story (Studio Aurora case study)
   --------------------------------------------------------------- */
.story-pin {
    position: relative;
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
}

.story-wrap {
    max-width: var(--max);
    margin: 0 auto;
    padding: clamp(60px, 10vh, 100px) var(--pad-x);
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
    min-height: 78vh;
}

.story-head {
    margin-bottom: clamp(24px, 4vh, 48px);
}
.story-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-3);
    letter-spacing: 0.06em;
    margin-bottom: 12px;
}
.story-name {
    font-size: clamp(28px, 3.4vw, 44px);
    letter-spacing: -0.03em;
    font-weight: 600;
    line-height: 1.05;
}

.story-text {
    display: flex;
    flex-direction: column;
    gap: 28px;
}
.story-steps {
    display: grid;
}
.story-step {
    grid-area: 1 / 1 / 2 / 2;
    opacity: 0;
    transform: translate3d(0, 24px, 0);
    pointer-events: none;
    transition:
        opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.story-step.is-active {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    pointer-events: auto;
}

.story-step-num {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-3);
    letter-spacing: 0.06em;
    margin-bottom: 18px;
}
.story-step-num::before {
    content: "";
    width: 28px;
    height: 1px;
    background: var(--text-3);
}

.story-step-title {
    font-size: clamp(26px, 2.8vw, 38px);
    letter-spacing: -0.025em;
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 18px;
}

.story-step-text {
    color: var(--text-2);
    font-size: clamp(15px, 1.2vw, 16.5px);
    line-height: 1.7;
    max-width: 480px;
}

.story-progress {
    display: flex;
    gap: 8px;
    margin-top: 40px;
}
.story-progress-bar {
    flex: 1;
    height: 2px;
    background: var(--border);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}
.story-progress-bar::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--text);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}
.story-progress-bar.is-done::after { transform: scaleX(1); }

.story-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 32px;
}

/* browser frame */
.story-frame {
    position: relative;
    aspect-ratio: 16/10.5;
    background: var(--surface);
    border-radius: 14px;
    border: 1px solid var(--border-strong);
    overflow: hidden;
    box-shadow:
        0 1px 0 0 rgba(255, 255, 255, 0.04) inset,
        0 80px 140px -60px rgba(0, 0, 0, 0.75),
        0 0 0 1px rgba(255, 255, 255, 0.02);
}

.story-frame-bar {
    height: 34px;
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 14px;
}
.story-frame-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-strong);
}
.story-frame-dot:nth-child(1) { background: #ff5f56; }
.story-frame-dot:nth-child(2) { background: #ffbd2e; }
.story-frame-dot:nth-child(3) { background: #27c93f; }
.story-frame-url {
    margin-left: 14px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-3);
    letter-spacing: 0.02em;
}

.story-frame-stage {
    position: relative;
    height: calc(100% - 34px);
    overflow: hidden;
}

.story-frame-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    clip-path: inset(0 100% 0 0);
    transition:
        opacity 0.5s ease,
        clip-path 0.95s cubic-bezier(0.7, 0, 0.2, 1);
}
.story-frame-slide.is-active {
    opacity: 1;
    clip-path: inset(0 0 0 0);
}

/* slide 1: wireframe */
.slide-wire {
    background: #131313;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.wire-block {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
}
.wire-block.h-sm { height: 10px; width: 22%; }
.wire-block.h-md { height: 22px; width: 65%; }
.wire-block.h-xs { height: 8px; width: 45%; opacity: 0.7; }
.wire-grid {
    margin-top: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.wire-grid > div {
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 6px;
}

/* slide 2: brand */
.slide-brand {
    background: #fdfcfa;
    color: #2a1d20;
    padding: 36px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-family: 'Manrope', system-ui, sans-serif;
}
.slide-brand-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: 'Geist Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.14em;
    color: rgba(42, 29, 32, 0.55);
}
.slide-brand-title {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: clamp(28px, 3.4vw, 44px);
    letter-spacing: -0.02em;
    line-height: 1.02;
    margin: 14px 0 8px;
    color: #2a1d20;
}
.slide-brand-sub {
    font-size: 13px;
    color: #75575c;
    max-width: 280px;
}
.slide-brand-swatches {
    display: flex;
    gap: 10px;
}
.slide-brand-swatches span {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

/* slide 3: mobile */
.slide-mobile {
    background: linear-gradient(160deg, #1a1612 0%, #2a1d20 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    gap: 30px;
}
.slide-mobile-frame {
    width: 32%;
    min-width: 130px;
    aspect-ratio: 9/19;
    background: #fdfcfa;
    color: #2a1d20;
    border-radius: 20px;
    padding: 14px 10px;
    box-shadow:
        0 30px 60px -20px rgba(0, 0, 0, 0.6),
        0 0 0 8px #0a0a0a,
        0 0 0 9px rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-family: 'Manrope', sans-serif;
}
.slide-mobile-frame .nav-mock {
    font-family: 'Playfair Display', serif;
    font-size: 11px;
    text-align: center;
    letter-spacing: 0.1em;
    margin-bottom: 6px;
}
.slide-mobile-frame .strip {
    height: 4px;
    background: rgba(212, 134, 154, 0.32);
    border-radius: 2px;
}
.slide-mobile-frame .strip.full { width: 100%; }
.slide-mobile-frame .strip.three-q { width: 75%; }
.slide-mobile-frame .strip.half { width: 50%; }
.slide-mobile-frame .cta {
    margin-top: auto;
    background: #2a1d20;
    color: #fff;
    font-size: 9px;
    text-align: center;
    padding: 7px 0;
    border-radius: 4px;
    letter-spacing: 0.08em;
}
.slide-mobile-notes {
    flex: 1;
    color: rgba(255, 255, 255, 0.55);
    font-family: 'Geist Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.06em;
    line-height: 1.8;
    max-width: 180px;
}
.slide-mobile-notes div::before {
    content: "→ ";
    color: rgba(212, 134, 154, 0.7);
}

/* slide 4: live */
.slide-live {
    background: #fdfcfa;
    color: #2a1d20;
    padding: 32px 40px;
    position: relative;
    overflow: hidden;
    font-family: 'Manrope', sans-serif;
}
.slide-live::before {
    content: "";
    position: absolute;
    top: -60%; right: -20%;
    width: 90%; height: 180%;
    background: radial-gradient(ellipse, rgba(212, 134, 154, 0.18), transparent 60%);
    pointer-events: none;
}
.slide-live-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Geist Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.16em;
    color: rgba(42, 29, 32, 0.6);
    margin-bottom: 28px;
}
.slide-live-title {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: clamp(28px, 4vw, 52px);
    letter-spacing: -0.025em;
    line-height: 1;
    color: #2a1d20;
    max-width: 80%;
}
.slide-live-sub {
    margin-top: 14px;
    font-size: 13px;
    color: #75575c;
    max-width: 380px;
}
.slide-live-cta {
    margin-top: 24px;
    display: inline-block;
    background: #2a1d20;
    color: #fdfcfa;
    padding: 11px 22px;
    border-radius: 999px;
    font-size: 12px;
    letter-spacing: 0.05em;
    position: relative;
    z-index: 1;
}
.slide-live-meta {
    position: absolute;
    bottom: 24px;
    right: 32px;
    font-family: 'Geist Mono', monospace;
    font-size: 10px;
    color: rgba(42, 29, 32, 0.5);
    letter-spacing: 0.1em;
}

@media (max-width: 920px) {
    .story-pin { background: var(--bg-alt); }
    .story-wrap { padding: 56px var(--pad-x); }

    /* flatten the DOM tree so step+slide pairs can interleave */
    .story-grid {
        display: flex;
        flex-direction: column;
        gap: 0;
        min-height: auto;
    }
    .story-text,
    .story-steps,
    .story-frame,
    .story-frame-stage {
        display: contents;
    }
    .story-frame-bar,
    .story-progress { display: none; }

    .story-step {
        grid-area: auto;
        opacity: 1;
        transform: none;
        pointer-events: auto;
        padding: 0;
        margin: 0 0 18px;
    }
    .story-step-title { font-size: clamp(22px, 6vw, 30px); }

    .story-frame-slide {
        position: relative;
        inset: auto;
        opacity: 1;
        clip-path: none;
        aspect-ratio: 4/3;
        border-radius: 14px;
        border: 1px solid var(--border-strong);
        overflow: hidden;
        box-shadow: 0 24px 50px -28px rgba(0,0,0,0.5);
        margin: 0 0 56px;
    }

    .story-links {
        margin-top: 8px;
        padding-top: 28px;
        border-top: 1px solid var(--border);
    }

    /* interleave: step1 → slide1 → step2 → slide2 → ... → links */
    .story-step:nth-of-type(1)        { order: 1; }
    .story-frame-slide:nth-of-type(1) { order: 2; }
    .story-step:nth-of-type(2)        { order: 3; }
    .story-frame-slide:nth-of-type(2) { order: 4; }
    .story-step:nth-of-type(3)        { order: 5; }
    .story-frame-slide:nth-of-type(3) { order: 6; }
    .story-step:nth-of-type(4)        { order: 7; }
    .story-frame-slide:nth-of-type(4) { order: 8; }
    .story-links                      { order: 9; }

    /* per-slide mobile tweaks */
    .slide-wire { padding: 20px; }

    .slide-brand { padding: 24px 26px; }
    .slide-brand-title { font-size: clamp(24px, 6.5vw, 34px); }
    .slide-brand-sub  { font-size: 12px; }
    .slide-brand-swatches span { width: 38px; height: 38px; }

    .slide-mobile { padding: 18px; gap: 0; justify-content: center; }
    .slide-mobile-frame { width: 46%; min-width: 130px; }
    .slide-mobile-notes { display: none; }

    .slide-live { padding: 26px; }
    .slide-live-title { font-size: clamp(24px, 6.5vw, 36px); max-width: 100%; }
    .slide-live-sub   { font-size: 12px; }
    .slide-live-meta  { bottom: 14px; right: 18px; }
}

/* ---------------------------------------------------------------
   6. Horizontal pinned gallery
   --------------------------------------------------------------- */
.horiz-pin {
    position: relative;
    overflow: hidden;
    background: var(--bg);
    border-top: 1px solid var(--border);
}

.horiz-head {
    max-width: var(--max);
    margin: 0 auto;
    padding: clamp(60px, 10vh, 100px) var(--pad-x) clamp(30px, 5vh, 60px);
}

.horiz-stage {
    position: relative;
    overflow: hidden;
}

.horiz-track {
    display: flex;
    gap: clamp(20px, 2.4vw, 32px);
    padding: 4vh var(--pad-x) clamp(60px, 10vh, 100px);
    will-change: transform;
}

.horiz-card {
    position: relative;
    flex: 0 0 clamp(300px, 32vw, 460px);
    aspect-ratio: 3/4;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: border-color 0.3s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    will-change: transform;
}
.horiz-card:hover {
    border-color: var(--border-hover);
}

.horiz-card-num {
    position: absolute;
    top: 18px;
    right: 22px;
    z-index: 3;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-3);
    letter-spacing: 0.06em;
}

.horiz-card-thumb {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.horiz-card-mock {
    height: 100%;
    width: 100%;
    padding: 32px 30px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    will-change: transform;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.horiz-card:hover .horiz-card-mock { transform: scale(1.04); }

.horiz-card-mock .mock-tag {
    font-family: 'Geist Mono', monospace;
    font-size: 9px;
    letter-spacing: 0.18em;
    opacity: 0.55;
}
.horiz-card-mock .mock-title {
    font-size: 22px;
    line-height: 1.05;
    font-weight: 600;
    letter-spacing: -0.02em;
    max-width: 80%;
}
.horiz-card-mock .mock-bars {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 6px;
}
.horiz-card-mock .mock-bars span {
    height: 5px;
    background: currentColor;
    opacity: 0.18;
    border-radius: 2px;
}
.horiz-card-mock .mock-bars span:nth-child(1) { width: 70%; }
.horiz-card-mock .mock-bars span:nth-child(2) { width: 50%; }
.horiz-card-mock .mock-bars span:nth-child(3) { width: 60%; }
.horiz-card-mock .mock-grid {
    margin-top: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}
.horiz-card-mock .mock-grid div {
    aspect-ratio: 1;
    background: currentColor;
    opacity: 0.16;
    border-radius: 4px;
}

.mock-boutique   { background: #fdfcfa; color: #2a1d20; }
.mock-boutique .mock-tag { color: #d4869a; opacity: 1; }
.mock-boutique .mock-title { font-family: 'Playfair Display', serif; color: #2a1d20; }
.mock-elegant    { background: #1a1612; color: #c8a572; }
.mock-elegant .mock-title { font-family: 'Cormorant Garamond', serif; color: #c8a572; }
.mock-restaurant { background: #2b1d14; color: #d97757; }
.mock-restaurant .mock-title { font-family: 'Playfair Display', serif; color: #f5e8d4; }
.mock-editorial  { background: #f5e8d4; color: #2a1d20; }
.mock-editorial .mock-tag { color: #b2746a; opacity: 1; }
.mock-editorial .mock-title { font-family: 'Cormorant Garamond', serif; font-style: italic; }

/* — kolejne dema salonów — */
.mock-vogue      { background: #efe3e3; color: #3b2230; }
.mock-vogue .mock-tag { color: #9a4a68; opacity: 1; }
.mock-vogue .mock-title { font-family: 'Cormorant Garamond', serif; font-style: italic; color: #3b2230; }

.mock-atelier    { background: #f5f1ec; color: #2c2722; }
.mock-atelier .mock-tag { color: #bd9a72; opacity: 1; }
.mock-atelier .mock-title { font-family: 'Playfair Display', serif; color: #2c2722; }

.mock-prive      { background: #f5f3f0; color: #1c1a19; }
.mock-prive .mock-tag { color: #c2918c; opacity: 1; }
.mock-prive .mock-title { font-family: 'Cormorant Garamond', serif; color: #1c1a19; }

.mock-noir       { background: #0b0b0b; color: #f4efe6; }
.mock-noir .mock-tag { color: #bfbfbf; opacity: 1; }
.mock-noir .mock-title { font-family: 'Cormorant Garamond', serif; color: #f4efe6; }

.mock-botanique  { background: #e9e4d7; color: #36422f; }
.mock-botanique .mock-tag { color: #7f8a56; opacity: 1; }
.mock-botanique .mock-title { font-family: 'Cormorant Garamond', serif; color: #36422f; }

.mock-dore       { background: #14110d; color: #e7c884; }
.mock-dore .mock-tag { color: #5aa07e; opacity: 1; }
.mock-dore .mock-title { font-family: 'Playfair Display', serif; color: #e7c884; }

.mock-helios     { background: #efe9dd; color: #1c4f6b; }
.mock-helios .mock-tag { color: #c2a14e; opacity: 1; }
.mock-helios .mock-title { font-family: 'Playfair Display', serif; color: #1c4f6b; }

.mock-rouge      { background: #f1ede5; color: #2a2a2a; }
.mock-rouge .mock-tag { color: #c2410c; opacity: 1; }
.mock-rouge .mock-title { font-family: 'Playfair Display', serif; color: #2a2a2a; }

.mock-lumiere    { background: #faf7f1; color: #2a241c; }
.mock-lumiere .mock-tag { color: #c8a675; opacity: 1; }
.mock-lumiere .mock-title { font-family: 'Playfair Display', serif; color: #2a241c; }


.horiz-card-info {
    padding: 22px 26px 26px;
}
.horiz-card-tag {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}
.horiz-card-name {
    font-size: clamp(18px, 1.5vw, 21px);
    font-weight: 600;
    letter-spacing: -0.015em;
    margin-bottom: 8px;
}
.horiz-card-desc {
    color: var(--text-2);
    font-size: 13.5px;
    line-height: 1.55;
    margin-bottom: 14px;
}
.horiz-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--text);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.horiz-card-cta svg { transition: transform 0.2s ease; }
.horiz-card:hover .horiz-card-cta svg { transform: translate(2px, -2px); }

.horiz-counter {
    position: absolute;
    bottom: clamp(24px, 5vh, 50px);
    right: var(--pad-x);
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-3);
    letter-spacing: 0.1em;
    z-index: 3;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 16px;
}
.horiz-counter-bar {
    width: 80px;
    height: 1px;
    background: var(--border);
    position: relative;
    overflow: hidden;
}
.horiz-counter-bar::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--text);
    transform-origin: left;
    transform: scaleX(var(--p, 0));
    transition: transform 0.15s linear;
}

/* mobile fallback: native horizontal scroll, no pin */
@media (max-width: 880px) {
    .horiz-stage {
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }
    .horiz-track {
        padding: 4vh var(--pad-x) 6vh;
    }
    .horiz-card {
        flex: 0 0 78vw;
        aspect-ratio: 4/5;
        scroll-snap-align: center;
    }
    .horiz-counter { display: none; }
}

/* ---------------------------------------------------------------
   7. Reduced motion fallback
   --------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .split-inner { transform: none; opacity: 1; filter: none; }
    .cursor { display: none !important; }
    html, body, a, button, summary, input, textarea, select, label,
    .demo-card, .horiz-card, .project, .faq-item, [data-cursor], .magnetic
    { cursor: auto !important; }
    .kinetic-stage { height: auto; padding: 80px 0; }
    .story-step { position: relative; opacity: 1; transform: none; pointer-events: auto; margin-bottom: 48px; }
}
