/* ================================================================
   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;
    perspective: 1200px;
    transform-style: preserve-3d;
}

.kinetic-letter {
    display: inline-block;
    position: relative;
    will-change: transform, opacity, filter;
    transform-origin: center;
    transform-style: preserve-3d;
    /* metaliczny połysk sunący po literach */
    background: linear-gradient(100deg,
        #fafafa 18%, #f6ead2 38%, #d9b479 49%, #f6ead2 60%, #fafafa 82%);
    background-size: 260% 100%;
    background-position: 130% 0;
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: kineticSheen 5.5s linear infinite;
}
.kinetic-letter:nth-child(1) { animation-delay: -0.0s; }
.kinetic-letter:nth-child(2) { animation-delay: -0.35s; }
.kinetic-letter:nth-child(3) { animation-delay: -0.7s; }
.kinetic-letter:nth-child(4) { animation-delay: -1.05s; }
.kinetic-letter:nth-child(5) { animation-delay: -1.4s; }

@keyframes kineticSheen {
    to { background-position: -130% 0; }
}

.kinetic-letter::before {
    content: attr(data-letter);
    position: absolute;
    inset: 0;
    color: transparent;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 1.5px rgba(250, 250, 250, 0.10);
    z-index: -1;
    transform: translateZ(-40px) scale(1.06);
    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);
    /* usztywniona do wysokości ekranu — pin nie obcina dołu kart */
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.horiz-head {
    flex: 0 0 auto;
    max-width: var(--max);
    width: 100%;
    margin: 0 auto;
    padding: clamp(40px, 7vh, 80px) var(--pad-x) clamp(20px, 3vh, 40px);
}

.horiz-stage {
    position: relative;
    overflow: hidden;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
}

.horiz-track {
    display: flex;
    align-items: center;
    gap: clamp(20px, 2.4vw, 32px);
    padding: 0 var(--pad-x);
    will-change: transform;
}

.horiz-card {
    position: relative;
    /* wysokość-driven: cała karta (miniatura + opis) mieści się w stage */
    flex: 0 0 auto;
    height: clamp(380px, 60vh, 560px);
    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; }

.mock-sable      { background: #f6f1ea; color: #3a322b; }
.mock-sable .mock-tag { color: #b0855f; opacity: 1; }
.mock-sable .mock-title { font-family: 'Playfair Display', serif; color: #3a322b; }

.mock-brume      { background: #edefef; color: #3a4248; }
.mock-brume .mock-tag { color: #8aa0ab; opacity: 1; }
.mock-brume .mock-title { font-family: 'Cormorant Garamond', serif; color: #3a4248; }

.mock-maree      { background: #12303d; color: #f4ece1; }
.mock-maree .mock-tag { color: #e8806a; opacity: 1; }
.mock-maree .mock-title { font-family: 'Cormorant Garamond', serif; color: #f4ece1; }

.mock-soie       { background: #f7f3ec; color: #2b241d; }
.mock-soie .mock-tag { color: #a9825f; opacity: 1; }
.mock-soie .mock-title { font-family: 'Playfair Display', serif; color: #2b241d; }

.mock-ligne      { background: #f6f2eb; color: #26211c; }
.mock-ligne .mock-tag { color: #8f6552; opacity: 1; }
.mock-ligne .mock-title { font-family: 'Playfair Display', serif; color: #26211c; }

.mock-miroir     { background: #f6f4f1; color: #29262e; }
.mock-miroir .mock-tag { color: #6f5d7a; opacity: 1; }
.mock-miroir .mock-title { font-family: 'Playfair Display', serif; color: #29262e; }

.mock-souffle    { background: #f8f5f0; color: #262019; }
.mock-souffle .mock-tag { color: #b4694c; opacity: 1; }
.mock-souffle .mock-title { font-family: 'Playfair Display', serif; color: #262019; }


.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-pin {
        height: auto;
        display: block;
    }
    .horiz-stage {
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        display: block;
    }
    .horiz-track {
        align-items: stretch;
        padding: 4vh var(--pad-x) 6vh;
    }
    .horiz-card {
        flex: 0 0 78vw;
        height: auto;
        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; }
    .kinetic-letter { animation: none; background-position: 0 0; }
}


/* ===============================================================
   STOŁOWNIA — kafelek w railu demo
   =============================================================== */
.mock-stolownia   { background: #f1ece1; color: #3d4432; }
.mock-stolownia .mock-tag { color: #a86a45; opacity: 1; }
.mock-stolownia .mock-title { font-family: 'Playfair Display', serif; color: #3d4432; }


/* ===============================================================
   WSTĄŻKA „FLAGOWE" na kartach w railu demo
   =============================================================== */
.nav-link-star { position: relative; }
.nav-link-star::after {
    content: "★";
    font-size: 8px;
    color: var(--accent-warm, #f5e8d4);
    position: absolute;
    top: -2px;
    right: -9px;
    opacity: 0.85;
}

.horiz-card.is-flagship {
    border-color: rgba(224, 190, 130, 0.32);
    box-shadow: 0 0 0 1px rgba(224, 190, 130, 0.12), 0 20px 50px -30px rgba(224, 190, 130, 0.5);
}
.horiz-card.is-flagship:hover {
    border-color: rgba(224, 190, 130, 0.6);
}
.horiz-flag-ribbon {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 3;
    font-family: var(--font-mono);
    font-size: 9.5px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #1a140a;
    padding: 5px 10px;
    border-radius: 999px;
    background: linear-gradient(120deg, #f6e2ad, #e3b667 55%, #f6e2ad);
    box-shadow: 0 6px 18px -8px rgba(227, 182, 103, 0.9);
    white-space: nowrap;
}


/* ===============================================================
   FLAGSHIP SHOWCASE — sekcja „Wyróżnione"
   =============================================================== */
.flagship {
    position: relative;
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: clamp(72px, 12vh, 140px) 0 clamp(80px, 13vh, 150px);
    overflow: hidden;
}
.flagship-glow {
    position: absolute;
    top: -12%;
    left: 50%;
    width: min(120vw, 1400px);
    height: 640px;
    transform: translateX(-50%);
    pointer-events: none;
    background:
        radial-gradient(60% 55% at 30% 40%, rgba(224, 190, 130, 0.10), transparent 70%),
        radial-gradient(55% 60% at 75% 30%, rgba(150, 130, 180, 0.09), transparent 72%);
    filter: blur(8px);
    z-index: 0;
}
.flagship .container { position: relative; z-index: 1; }

.flagship-head { max-width: 780px; margin-bottom: clamp(40px, 6vh, 72px); }
.flagship-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #e6c583;
    padding: 7px 14px 7px 12px;
    border: 1px solid rgba(224, 190, 130, 0.28);
    border-radius: 999px;
    background: rgba(224, 190, 130, 0.05);
    margin-bottom: 22px;
}
.flagship-eyebrow svg { color: #e6c583; }
.flagship-title {
    font-size: clamp(28px, 4.2vw, 48px);
    line-height: 1.06;
    letter-spacing: -0.03em;
    font-weight: 600;
    margin-bottom: 20px;
}
.flagship-lead {
    color: var(--text-2);
    font-size: clamp(15px, 1.35vw, 17px);
    line-height: 1.6;
    max-width: 62ch;
}

.flagship-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(18px, 2vw, 28px);
}

.flag-card {
    --fa: #e0be82;
    --fpaper: #f2ece2;
    --fink: #2b2620;
    --ftag: #a06a45;
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 22px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.5s ease;
    will-change: transform;
}
.flag-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 22px;
    padding: 1px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--fa) 55%, transparent), transparent 40%, transparent 60%, color-mix(in srgb, var(--fa) 35%, transparent));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.45s ease;
    pointer-events: none;
    z-index: 2;
}
.flag-card:hover {
    transform: translateY(-6px);
    border-color: color-mix(in srgb, var(--fa) 45%, var(--border));
    box-shadow: 0 40px 80px -50px color-mix(in srgb, var(--fa) 90%, black);
}
.flag-card:hover::before { opacity: 1; }

.flag-card-media {
    position: relative;
    padding: 20px 20px 0;
}
.flag-preview {
    position: relative;
    border-radius: 14px 14px 0 0;
    overflow: hidden;
    background: var(--fpaper);
    color: var(--fink);
    aspect-ratio: 16 / 10;
    box-shadow: 0 30px 60px -40px rgba(0,0,0,0.8);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.flag-card:hover .flag-preview { transform: translateY(-4px) scale(1.015); }

.prev-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: color-mix(in srgb, var(--fpaper) 82%, black);
    border-bottom: 1px solid color-mix(in srgb, var(--fink) 12%, transparent);
}
.prev-bar span {
    width: 8px; height: 8px; border-radius: 50%;
    background: color-mix(in srgb, var(--fink) 22%, transparent);
}
.prev-bar em {
    margin-left: 10px;
    font-family: var(--font-mono);
    font-style: normal;
    font-size: 9.5px;
    letter-spacing: 0.04em;
    color: color-mix(in srgb, var(--fink) 55%, transparent);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.prev-body {
    padding: 22px 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: calc(100% - 39px);
}
.prev-tag {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.16em;
    color: var(--ftag);
}
.prev-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(24px, 2.6vw, 34px);
    line-height: 1.02;
    letter-spacing: -0.01em;
}
.prev-title i { font-style: italic; opacity: 0.85; }

/* — dekoracje podglądów — */
.prev-plan { margin-top: auto; }
.prev-plan-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 8px;
    letter-spacing: 0.14em;
    color: color-mix(in srgb, var(--fink) 45%, transparent);
    margin-bottom: 7px;
}
.prev-tables { display: grid; grid-template-columns: repeat(8, 1fr); gap: 5px; }
.prev-tables b {
    aspect-ratio: 1;
    border-radius: 4px;
    background: color-mix(in srgb, var(--fink) 12%, transparent);
    border: 1px solid transparent;
}
.prev-tables b.busy { background: color-mix(in srgb, var(--ftag) 55%, transparent); }
.prev-tables b.sel {
    background: transparent;
    border-color: var(--ftag);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--ftag) 25%, transparent);
}

.prev-threads {
    margin-top: auto;
    display: flex;
    align-items: flex-end;
    gap: 10px;
    height: 46px;
}
.prev-threads i {
    flex: 1;
    background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--ftag) 60%, transparent));
    border-radius: 999px 999px 0 0;
    transform-origin: bottom;
}
.prev-threads i:nth-child(1) { height: 70%; }
.prev-threads i:nth-child(2) { height: 100%; }
.prev-threads i:nth-child(3) { height: 55%; }
.prev-threads i:nth-child(4) { height: 88%; }
.prev-threads i:nth-child(5) { height: 66%; }

.prev-line { margin-top: auto; width: 100%; height: auto; color: var(--ftag); }

.prev-mirror { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.prev-bulbs { display: flex; gap: 8px; }
.prev-bulbs b {
    width: 9px; height: 9px; border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff, var(--ftag));
    box-shadow: 0 0 8px color-mix(in srgb, var(--ftag) 70%, transparent);
}
.prev-beforeafter { display: flex; gap: 6px; }
.prev-beforeafter u {
    flex: 1;
    text-align: center;
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 8px;
    letter-spacing: 0.12em;
    padding: 5px 0;
    border-radius: 5px;
    background: color-mix(in srgb, var(--fink) 8%, transparent);
    color: color-mix(in srgb, var(--fink) 60%, transparent);
}
.prev-beforeafter u:last-child {
    background: color-mix(in srgb, var(--ftag) 22%, transparent);
    color: var(--ftag);
}

/* — badge „Flagowe" na podglądzie — */
.flag-badge {
    position: absolute;
    top: 34px;
    left: 34px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-mono);
    font-size: 9.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #1a140a;
    padding: 5px 11px;
    border-radius: 999px;
    background: linear-gradient(120deg, #f6e2ad, #e3b667 55%, #f6e2ad);
    box-shadow: 0 8px 22px -8px rgba(227, 182, 103, 0.95);
}
.flag-badge-star { font-size: 10px; line-height: 1; }

/* — treść karty — */
.flag-card-body { padding: 24px clamp(22px, 2vw, 30px) clamp(26px, 2.4vw, 32px); }
.flag-tag {
    display: block;
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-3);
    margin-bottom: 9px;
}
.flag-name {
    font-size: clamp(22px, 2.2vw, 28px);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 11px;
}
.flag-desc {
    color: var(--text-2);
    font-size: 14.5px;
    line-height: 1.6;
    margin-bottom: 18px;
}
.flag-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 20px; }
.flag-chips span {
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.02em;
    color: var(--text-2);
    padding: 5px 10px;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    background: rgba(255,255,255,0.015);
    transition: border-color 0.3s ease, color 0.3s ease;
}
.flag-card:hover .flag-chips span {
    border-color: color-mix(in srgb, var(--fa) 40%, var(--border-strong));
    color: var(--text);
}
.flag-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text);
}
.flag-cta svg { transition: transform 0.2s ease; }
.flag-card:hover .flag-cta svg { transform: translate(2px, -2px); }
.flag-card:hover .flag-cta { color: color-mix(in srgb, var(--fa) 75%, var(--text)); }

/* per-demo akcenty */
.flag-stolownia { --fa: #cf9a5f; --fpaper: #f1ece1; --fink: #3d4432; --ftag: #a86a45; }
.flag-soie      { --fa: #c79a6d; --fpaper: #f7f3ec; --fink: #2b241d; --ftag: #a9825f; }
.flag-ligne     { --fa: #b98a63; --fpaper: #f6f2eb; --fink: #26211c; --ftag: #8f6552; }
.flag-miroir    { --fa: #9a86a8; --fpaper: #f6f4f1; --fink: #29262e; --ftag: #6f5d7a; }
.flag-souffle   { --fa: #c98a66; --fpaper: #f8f5f0; --fink: #262019; --ftag: #b4694c; }

/* stagger wejścia kart flagowych */
.flagship-grid .reveal:nth-child(1) { transition-delay: 0ms; }
.flagship-grid .reveal:nth-child(2) { transition-delay: 90ms; }
.flagship-grid .reveal:nth-child(3) { transition-delay: 150ms; }
.flagship-grid .reveal:nth-child(4) { transition-delay: 220ms; }
.flagship-grid .reveal:nth-child(5) { transition-delay: 280ms; }

/* Ligne — linia gotowa do obrotu/lotu */
.prev-line path { transform-box: fill-box; transform-origin: center; }
.prev-ligne .prev-body { overflow: hidden; }

/* Souffle — pasma na wietrze + kropka oddechu */
.prev-breath {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}
.prev-strands { flex: 1; height: 34px; color: var(--ftag); }
.prev-strands path { animation: souffle-sway 5s ease-in-out infinite alternate; }
.prev-strands path:nth-child(2) { animation-delay: -1.6s; }
.prev-strands path:nth-child(3) { animation-delay: -3.2s; }
@keyframes souffle-sway {
    from { transform: translateY(-1.5px); }
    to   { transform: translateY(1.5px); }
}
.prev-breath-dot {
    width: 11px; height: 11px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff, var(--ftag));
    box-shadow: 0 0 10px color-mix(in srgb, var(--ftag) 70%, transparent);
    animation: souffle-breathe 4.5s ease-in-out infinite;
}
@keyframes souffle-breathe {
    0%, 100% { transform: scale(.7); opacity: .6; }
    50%      { transform: scale(1.15); opacity: 1; }
}
.prev-breath-label {
    font-family: var(--font-mono);
    font-size: 8px;
    letter-spacing: 0.14em;
    color: color-mix(in srgb, var(--fink) 55%, transparent);
}

/* Miroir — suwak metamorfozy przed/po */
.prev-beforeafter { position: relative; overflow: hidden; }
.prev-swipe {
    position: absolute;
    top: -2px; bottom: -2px;
    left: 50%;
    width: 2px;
    background: var(--ftag);
    box-shadow: 0 0 10px color-mix(in srgb, var(--ftag) 80%, transparent);
    border-radius: 2px;
    pointer-events: none;
}
.prev-swipe::after {
    content: "";
    position: absolute;
    top: 50%; left: 50%;
    width: 12px; height: 12px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff, var(--ftag));
    box-shadow: 0 0 10px color-mix(in srgb, var(--ftag) 80%, transparent);
}

@media (max-width: 760px) {
    .flagship-grid { grid-template-columns: 1fr; }
    .flag-badge { top: 30px; left: 30px; }
}
