/* ============================================================
   POLARITY — Prismatic Studio
   Design System: pastel refraction over deep space
   ============================================================ */

:root {
    /* Deep base palette */
    --ink-0: #050510;
    --ink-1: #0a0a18;
    --ink-2: #121222;
    --ink-3: #1a1a2e;

    /* Apple Intelligence / Siri-inspired palette */
    --ai-blue:   #3d8bff;
    --ai-pink:   #ff60ad;
    --ai-purple: #9c5cff;
    --ai-orange: #ff9d5c;
    --ai-mint:   #5ffad4;

    /* Legacy pastel palette aliases (referenced throughout) */
    --p-pink: #ff60ad;
    --p-sky:  #3d8bff;
    --p-lav:  #9c5cff;
    --p-mint: #5ffad4;
    --p-peach: #ff9d5c;

    /* Utility accent */
    --blue: #3d8bff;
    --blue-hover: #5a9fff;

    /* Muted text */
    --text: #f5f5fa;
    --text-soft: rgba(245, 245, 250, 0.72);
    --text-mute: rgba(245, 245, 250, 0.48);
    --text-faint: rgba(245, 245, 250, 0.28);

    /* Glass System */
    --glass: rgba(255, 255, 255, 0.03);
    --glass-strong: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.08);
    --line: rgba(255, 255, 255, 0.08);
    --line-soft: rgba(255, 255, 255, 0.04);
    --line-bright: rgba(255, 255, 255, 0.18);
    --blur: saturate(180%) blur(20px);

    /* The signature "Apple Intelligence" Flow — Smoothed with more stops */
    --rainbow: linear-gradient(
        90deg, 
        #3d8bff 0%, 
        #6e74ff 15%, 
        #9c5cff 30%, 
        #cd5eff 45%, 
        #ff60ad 60%, 
        #ff7e85 75%, 
        #ff9d5c 85%, 
        #aff4d9 95%, 
        #5ffad4 100%
    );
    --rainbow-soft: linear-gradient(
        90deg,
        rgba(61,139,255,0.3) 0%, 
        rgba(156,92,255,0.3) 30%, 
        rgba(255,96,173,0.3) 60%, 
        rgba(255,157,92,0.3) 85%, 
        rgba(95,250,212,0.3) 100%
    );

    /* Motion */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-smooth: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html {
    background: var(--ink-0);
    scroll-behavior: auto;
}

body {
    color: var(--text);
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    background: transparent;
    position: relative;
    min-height: 100vh;
}

/* Hide entrance elements until GSAP kicks in to prevent flash-of-unstyled */
.js-ready .hero-eyebrow,
.js-ready .hero-sub,
.js-ready .hero-actions,
.js-ready .hero-meta,
.js-ready .hero-meta-row,
.js-ready .hero-scroll-cue,
.js-ready .hero-title .line-inner,
.js-ready .nav {
    opacity: 0;
}

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

img { display: block; max-width: 100%; }
button { font: inherit; background: none; border: 0; color: inherit; cursor: pointer; }
button:disabled { cursor: wait; opacity: 0.68; }

::selection {
    background: rgba(156, 92, 255, 0.3);
    color: #fff;
}

/* Rainbow flow keyframes — used for color motion on UI accents only */
@keyframes rainbow-flow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* ============================================================
   BACKGROUND STACK
   ============================================================ */
.bg-stack {
    position: fixed;
    inset: 0;
    z-index: -10;
    overflow: hidden;
    background: var(--ink-0);
    pointer-events: none;
}

.bg-deep {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, var(--ink-1) 0%, var(--ink-0) 100%);
}

.bg-nebula {
    position: absolute;
    inset: -50%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(61, 139, 255, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(156, 92, 255, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(255, 96, 173, 0.03) 0%, transparent 50%);
    filter: blur(100px);
    opacity: 0.6;
    animation: nebulaDrift 30s ease-in-out infinite alternate;
}

@keyframes nebulaDrift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(2%, 2%) scale(1.1); }
}

.bg-grain {
    position: absolute;
    inset: 0;
    background-image: url("https://grainy-gradients.vercel.app/noise.svg");
    opacity: 0.08;
    mix-blend-mode: overlay;
}

.bg-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(var(--line-soft) 1px, transparent 1px),
        linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
    background-size: 60px 60px;
    -webkit-mask-image: radial-gradient(circle at 50% 50%, black 30%, transparent 70%);
    mask-image: radial-gradient(circle at 50% 50%, black 30%, transparent 70%);
    opacity: 0.3;
}

.bg-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, transparent 20%, rgba(5, 5, 16, 0.6) 100%);
}

.aurora-wrap, .shooting-stars, .prism-orbit { display: none !important; }

/* ============================================================
   GLASS SYSTEM BASE
   ============================================================ */
.glass {
    background: var(--glass);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 
        0 4px 24px -1px rgba(0, 0, 0, 0.2),
        inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.glass-hover {
    transition: all 0.5s var(--ease-out);
}

.glass-hover:hover {
    background: var(--glass-strong);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
    box-shadow: 
        0 20px 40px -10px rgba(0, 0, 0, 0.4),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse 75% 55% at 50% 50%, #000 30%, transparent 85%);
    -webkit-mask-image: radial-gradient(ellipse 75% 55% at 50% 50%, #000 30%, transparent 85%);
    opacity: 0.6;
}

.bg-grain {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.07;
    mix-blend-mode: overlay;
    pointer-events: none;
}

/* Auroras — barely-there color glow. Apple's pages whisper; ours does too. */
.aurora-wrap {
    position: absolute;
    inset: 0;
    filter: blur(120px);
    opacity: 0.32;
}

.aurora {
    position: absolute;
    width: 55vw;
    height: 55vw;
    border-radius: 50%;
    mix-blend-mode: screen;
    will-change: transform;
}

.aurora-1 {
    top: -10%; left: -10%;
    background: radial-gradient(circle, rgba(201, 168, 255, 0.42), transparent 65%);
    animation: float-1 38s ease-in-out infinite;
}

.aurora-2 {
    top: 20%; right: -15%;
    background: radial-gradient(circle, rgba(168, 216, 255, 0.42), transparent 65%);
    animation: float-2 46s ease-in-out infinite;
}

.aurora-3 {
    bottom: -10%; left: 20%;
    background: radial-gradient(circle, rgba(255, 181, 197, 0.32), transparent 65%);
    animation: float-3 42s ease-in-out infinite;
}

.aurora-4 {
    bottom: 10%; right: 10%;
    background: radial-gradient(circle, rgba(181, 255, 203, 0.28), transparent 65%);
    animation: float-4 50s ease-in-out infinite;
}

@keyframes float-1 {
    0%,100% { transform: translate(0,0) scale(1); }
    50% { transform: translate(10vw, 6vh) scale(1.1); }
}
@keyframes float-2 {
    0%,100% { transform: translate(0,0) scale(1); }
    50% { transform: translate(-8vw, 8vh) scale(1.15); }
}
@keyframes float-3 {
    0%,100% { transform: translate(0,0) scale(1); }
    50% { transform: translate(6vw, -8vh) scale(1.08); }
}
@keyframes float-4 {
    0%,100% { transform: translate(0,0) scale(1); }
    50% { transform: translate(-10vw, -6vh) scale(1.12); }
}

.bg-caustics {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1px 1px at 10% 20%, rgba(255, 245, 181, 0.4), transparent),
        radial-gradient(1px 1px at 80% 40%, rgba(168, 216, 255, 0.4), transparent),
        radial-gradient(1px 1px at 40% 70%, rgba(255, 181, 197, 0.4), transparent),
        radial-gradient(1px 1px at 90% 90%, rgba(201, 168, 255, 0.4), transparent),
        radial-gradient(1px 1px at 30% 10%, rgba(181, 255, 203, 0.4), transparent),
        radial-gradient(1px 1px at 60% 60%, rgba(255, 203, 164, 0.4), transparent);
    background-size: 300px 300px;
    opacity: 0.4;
    animation: twinkle 4s ease-in-out infinite alternate;
}

@keyframes twinkle {
    from { opacity: 0.3; }
    to { opacity: 0.55; }
}

/* ============================================================
   STAR FIELD — generated in JS, twinkles + sparkles
   ============================================================ */
.star-field {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.tw-star {
    position: absolute;
    will-change: opacity, transform;
    mix-blend-mode: screen;
    animation: twinkle-fade ease-in-out infinite;
    pointer-events: none;
}

.tw-dot {
    border-radius: 50%;
    box-shadow:
        0 0 4px currentColor,
        0 0 8px currentColor;
    color: #fff;
    background: currentColor;
}

.tw-sparkle {
    color: #fff;
}

.tw-sparkle svg {
    width: 100%;
    height: 100%;
    overflow: visible;
    filter: drop-shadow(0 0 4px currentColor) drop-shadow(0 0 10px currentColor);
    animation: tw-sparkle-spin 14s linear infinite;
    transform-origin: center;
}

.tw-sparkle path { fill: currentColor; }

@keyframes twinkle-fade {
    0%, 100% { opacity: 0.12; transform: translate(-50%, -50%) scale(0.55); }
    50%      { opacity: 1;    transform: translate(-50%, -50%) scale(1.2); }
}

@keyframes tw-sparkle-spin {
    to { transform: rotate(360deg); }
}

/* ============================================================
   SHOOTING STARS
   ============================================================ */
.shooting-stars {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.shooting-star {
    position: absolute;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 4px #fff, 0 0 10px rgba(255, 255, 255, 0.6);
    transform-origin: center;
    animation: shoot linear forwards;
    mix-blend-mode: screen;
}

.shooting-star::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 100%;
    height: 1px;
    width: 160px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.85) 100%);
    transform: translateY(-50%);
}

@keyframes shoot {
    0%   { transform: rotate(var(--angle, 25deg)) translateX(0) scale(1);                      opacity: 0; }
    6%   { opacity: 1; }
    92%  { opacity: 1; }
    100% { transform: rotate(var(--angle, 25deg)) translateX(var(--dist, 900px)) scale(0.55); opacity: 0; }
}

/* ============================================================
   NEBULA — painterly drifting color mist
   ============================================================ */
.bg-nebula {
    position: absolute;
    inset: -10%;
    background:
        radial-gradient(40% 30% at 18% 22%, rgba(255, 181, 197, 0.07), transparent 70%),
        radial-gradient(35% 25% at 82% 32%, rgba(168, 216, 255, 0.08), transparent 70%),
        radial-gradient(45% 35% at 62% 78%, rgba(201, 168, 255, 0.06), transparent 70%);
    filter: blur(40px);
    opacity: 0.55;
    animation: nebula-drift 60s ease-in-out infinite alternate;
    mix-blend-mode: screen;
}

@keyframes nebula-drift {
    0%   { transform: translate(0, 0) scale(1) rotate(0deg); }
    50%  { transform: translate(-2%, 1%) scale(1.05) rotate(6deg); }
    100% { transform: translate(1%, -1%) scale(1.02) rotate(-4deg); }
}

/* Two extra aurora blobs layered for density */
.aurora-5 {
    top: 40%; left: 35%;
    width: 45vw; height: 45vw;
    background: radial-gradient(circle, rgba(255, 245, 181, 0.6), transparent 60%);
    animation: float-5 34s ease-in-out infinite;
}
.aurora-6 {
    top: 55%; right: 25%;
    width: 40vw; height: 40vw;
    background: radial-gradient(circle, rgba(255, 203, 164, 0.55), transparent 60%);
    animation: float-6 30s ease-in-out infinite;
}
@keyframes float-5 {
    0%,100% { transform: translate(0,0) scale(1); }
    50% { transform: translate(-6vw, -10vh) scale(1.12); }
}
@keyframes float-6 {
    0%,100% { transform: translate(0,0) scale(1); }
    50% { transform: translate(8vw, 6vh) scale(1.08); }
}

/* ============================================================
   PRISM ORBIT RINGS — slow-spinning elliptical gradients
   ============================================================ */
.prism-orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 140vmax;
    height: 140vmax;
    transform: translate(-50%, -50%);
    pointer-events: none;
    mix-blend-mode: screen;
    opacity: 0.18;
}

.orbit-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    border: 1px solid transparent;
    background: conic-gradient(from var(--angle, 0deg),
        transparent 0deg,
        rgba(255, 181, 197, 0.35) 60deg,
        rgba(255, 245, 181, 0.35) 120deg,
        rgba(181, 255, 203, 0.35) 180deg,
        rgba(168, 216, 255, 0.35) 240deg,
        rgba(201, 168, 255, 0.35) 300deg,
        transparent 360deg) border-box;
    -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: halo-rotate 60s linear infinite;
}

.orbit-ring-1 {
    width: 60vmax;
    height: 60vmax;
    transform: translate(-50%, -50%) rotate(-12deg);
    border-width: 2px;
}
.orbit-ring-2 {
    width: 90vmax;
    height: 90vmax;
    transform: translate(-50%, -50%) rotate(18deg);
    animation-duration: 110s;
    animation-direction: reverse;
    border-width: 2px;
}
.orbit-ring-3 {
    width: 125vmax;
    height: 125vmax;
    transform: translate(-50%, -50%) rotate(-28deg);
    animation-duration: 180s;
    border-width: 2px;
}

.bg-vignette {
    position: absolute;
    inset: 0;
    /* Subtle edge-dim — strong enough to frame the content but soft enough
       that stars and auroras stay visible all the way to the corners. */
    background: radial-gradient(ellipse 120% 95% at 50% 50%, transparent 55%, rgba(5,5,16,0.55) 100%);
    pointer-events: none;
}

.spotlight {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        500px circle at var(--mx, 50%) var(--my, 50%),
        rgba(255, 255, 255, 0.018),
        transparent 60%
    );
    transition: background 0.2s ease;
}

/* ============================================================
   SCROLL PROGRESS
   ============================================================ */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.05);
    z-index: 2000;
}

.scroll-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, rgba(255,255,255,0.9), #fff);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
    position: fixed;
    top: 0.85rem;
    left: 1rem;
    right: 1rem;
    width: auto;
    min-height: 68px;
    padding: 0.85rem clamp(1rem, 3vw, 2.5rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    z-index: 1000;
    background: rgba(5, 5, 10, 0.72);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    box-shadow:
        0 18px 60px rgba(0, 0, 0, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: all 0.4s var(--ease-out);
}

.nav:hover {
    background: rgba(5, 5, 10, 0.86);
    border-color: rgba(255, 255, 255, 0.14);
}

.nav::before {
    /* Rainbow ring removed for professional restraint. */
    content: none;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-logo {
    height: 24px;
    width: auto;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.18));
    transition: transform 0.6s var(--ease-out);
}

.nav-brand:hover .nav-logo {
    transform: rotate(0deg);
}

.nav-brand-text {
    font-family: 'Syncopate', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.3em;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.25rem;
    min-width: 0;
}

.nav-links a {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1rem;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--text-soft);
    border-radius: 100px;
    transition: color 0.4s, background 0.4s;
    position: relative;
    overflow: hidden;
}

.nav-links a span {
    font-family: 'Syncopate', sans-serif;
    font-size: 0.55rem;
    color: var(--text-faint);
    letter-spacing: 0.1em;
    transition: color 0.4s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 0.4rem;
    height: 1px;
    background: var(--rainbow);
    background-size: 200% 100%;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s var(--ease-out);
    animation: rainbow-flow 4s linear infinite;
}

.nav-links a:hover::after,
.nav-links a.is-active::after {
    transform: scaleX(1);
}

.ps-link-special {
    color: var(--ai-blue) !important;
    font-weight: 600 !important;
}

.ps-link-special::after {
    background: var(--rainbow) !important;
    transform: scaleX(1) !important;
    opacity: 0.4;
}

.ps-link-special:hover::after {
    opacity: 1;
}

.nav-cta {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    padding: 0.65rem 0.65rem 0.65rem 1.3rem;
    background: #fff;
    color: #000;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: 100px;
    position: relative;
    overflow: hidden;
}

.nav-studio-shortcut {
    display: none;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
}

.nav-user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.nav-user-info span {
    max-width: 34vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-soft);
    font-size: 0.82rem;
}

.nav-user-info.hidden {
    display: none;
}

.nav-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--rainbow);
    background-size: 200% 100%;
    opacity: 0;
    transition: opacity 0.4s;
}

.nav-cta:hover::before { opacity: 1; animation: rainbow-flow 3s linear infinite; }

.nav-cta-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-cta-arrow {
    display: inline-flex;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #000;
    color: #fff;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

/* ============================================================
   HERO TITLE — Apple Intelligence Glow
   ============================================================ */
.hero-title .line-2 .gradient-sweep {
    background: var(--rainbow);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: rainbow-flow 8s linear infinite;
}

.sub-accent {
    background: var(--rainbow);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 500;
    animation: rainbow-flow 6s linear infinite;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1.6rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: all 0.4s var(--ease-out);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.btn-primary {
    background: #fff;
    color: #000;
    border: 1px solid #fff;
}

.btn-primary:hover {
    background: transparent;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
}

.btn-secondary {
    background: var(--glass);
    color: #fff;
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--blur);
}

.btn-secondary:hover {
    background: var(--glass-strong);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.prism-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: conic-gradient(from var(--angle, 0deg),
        transparent 0deg,
        var(--ai-blue) 60deg,
        var(--ai-purple) 120deg,
        var(--ai-pink) 180deg,
        var(--ai-orange) 240deg,
        var(--ai-mint) 300deg,
        transparent 360deg);
    -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.8s var(--ease-out);
    animation: halo-rotate 8s linear infinite;
    pointer-events: none;
}

.approach-statement em:nth-of-type(1) { color: var(--ai-pink); }
.approach-statement em:nth-of-type(2) { color: var(--ai-blue); }
.approach-statement em:nth-of-type(3) { color: var(--ai-purple); }

/* Hero meta row — credibility strip (shipped / awards / lighthouse) */
.hero-meta-row {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    padding: 1rem 1.8rem;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    margin-top: 0.75rem;
}

.hm-col {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hm-num {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-size: 2rem;
    line-height: 1;
    color: #fff;
    letter-spacing: -0.02em;
}

.hm-sym {
    font-size: 1.2rem;
    margin-left: 0.05em;
    background: linear-gradient(120deg, #b5c2ff, #d4a8ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hm-lbl {
    font-family: 'Syncopate', sans-serif;
    font-size: 0.5rem;
    line-height: 1.4;
    letter-spacing: 0.22em;
    color: var(--text-mute);
    text-transform: uppercase;
}

.hm-divider {
    width: 1px;
    height: 28px;
    background: linear-gradient(180deg, transparent, rgba(255,255,255,0.12), transparent);
}

@media (max-width: 720px) {
    .hero-meta-row { gap: 0.9rem; padding: 0.85rem 1.2rem; }
    .hm-num { font-size: 1.5rem; }
    .hm-lbl { font-size: 0.44rem; letter-spacing: 0.18em; }
}

/* ============================================================
   APPLE-LIKE COMPONENTS (Titanium & Glass)
   ============================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.8rem;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 980px;
    transition: all 0.4s var(--ease-out);
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
}

.btn-primary {
    background: #fff;
    color: #000;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
    background: #f0f0f0;
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.2);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid var(--glass-border);
    color: #fff;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-label-wrap {
    position: relative;
    overflow: hidden;
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s var(--ease-out);
}

.btn:hover .btn-icon {
    transform: translateX(3px);
}

/* Glass Card */
.glass {
    background: var(--glass);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.5s var(--ease-out);
}

.vs-advanced-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 1rem 0;
}

.vs-input-wrap {
    position: relative;
}

.vs-input-glow {
    position: absolute;
    inset: 0;
    border-radius: 8px;
    background: var(--rainbow);
    opacity: 0;
    filter: blur(8px);
    transition: opacity 0.4s;
    z-index: -1;
}

.vs-input-wrap input:focus + .vs-input-glow {
    opacity: 0.3;
}

.moodboard-upload {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed var(--glass-border);
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.8rem;
    color: var(--text-mute);
    transition: all 0.3s var(--ease-out);
}

.moodboard-upload:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--ai-blue);
    color: var(--text-soft);
}

.moodboard-upload svg {
    color: var(--ai-purple);
}

.ai-edit-panel {
    background: rgba(10, 10, 24, 0.8);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(156, 92, 255, 0.2);
    box-shadow: 0 0 40px rgba(156, 92, 255, 0.1);
}

.ai-edit-section-tag {
    background: rgba(61, 139, 255, 0.15);
    color: var(--ai-blue);
    border: 1px solid rgba(61, 139, 255, 0.3);
}

.ai-edit-submit {
    background: var(--ai-purple);
    color: #fff;
    box-shadow: 0 0 15px rgba(156, 92, 255, 0.4);
}

/* Re-adding pricing styles (integrated) */
.pricing-card {
    background: var(--ink-2);
    border: 1px solid var(--glass-border);
}

.pricing-card.featured {
    border-color: var(--ai-blue);
}

.pc-tag {
    background: var(--ai-blue);
}

.pc-plus {
    color: var(--ai-purple);
}

.pc-features li::before {
    color: var(--ai-mint);
}

.pricing-maintenance {
    margin-top: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    padding: 2rem 3rem;
    flex-wrap: wrap;
}

.pm-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.pm-content p {
    color: var(--text-soft);
    font-size: 0.95rem;
    max-width: 600px;
}

.pm-cost {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.pm-cost span:first-child {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-mute);
}

.pm-price {
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
}

.pm-price small {
    font-size: 1rem;
    color: var(--text-mute);
    font-weight: 400;
}

/* ============================================================
   LIVE TWEAK BAR
   ============================================================ */
.live-tweak-bar {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(22, 22, 23, 0.8);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    padding: 0.6rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    z-index: 100;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.lt-label {
    font-family: 'Syncopate', sans-serif;
    font-size: 0.55rem;
    letter-spacing: 0.2em;
    color: var(--blue);
    font-weight: 700;
    border-right: 1px solid var(--line);
    padding-right: 1.5rem;
}

.lt-controls {
    display: flex;
    gap: 1.5rem;
}

.lt-group {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.lt-name {
    font-size: 0.75rem;
    color: var(--text-mute);
    font-weight: 500;
}

.lt-toggle {
    display: flex;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.2rem;
    border-radius: 100px;
}

.lt-toggle button {
    padding: 0.3rem 0.8rem;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-mute);
    transition: all 0.3s var(--ease-out);
}

.lt-toggle button.is-active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.lt-toggle button:hover:not(.is-active) {
    color: var(--text-soft);
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem 2.5rem;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    backdrop-filter: blur(16px);
    margin-top: 1.5rem;
}

.meta-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 120px;
}

.meta-num {
    font-family: 'Instrument Serif', serif;
    font-size: 2.4rem;
    line-height: 1;
    color: #fff;
    font-style: italic;
}

.meta-sym {
    font-family: 'Instrument Serif', serif;
    font-size: 1.6rem;
    color: var(--p-pink);
    font-style: italic;
}

.meta-label {
    font-family: 'Syncopate', sans-serif;
    font-size: 0.55rem;
    letter-spacing: 0.25em;
    color: var(--text-mute);
    margin-top: 0.4rem;
}

.meta-divider {
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, transparent, var(--line-bright), transparent);
}

.hero-scroll-cue {
    position: absolute;
    bottom: 4rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Syncopate', sans-serif;
    font-size: 0.55rem;
    letter-spacing: 0.3em;
    color: var(--text-mute);
}

.cue-line {
    width: 1px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
    position: relative;
}

.cue-line-fill {
    position: absolute;
    inset: 0;
    background: var(--rainbow);
    animation: cue-drop 2.5s ease-in-out infinite;
}

@keyframes cue-drop {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

/* ============================================================
   SECTION BASICS
   ============================================================ */
.section {
    position: relative;
    padding: 10rem 2rem;
    max-width: 1500px;
    margin: 0 auto;
}

/* Glowing divider line at top of major sections */
.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(600px, 70%);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(120, 140, 255, 0.2) 30%, rgba(200, 160, 255, 0.3) 50%, rgba(120, 140, 255, 0.2) 70%, transparent);
    opacity: 0;
    transition: opacity 0.8s ease;
}

/* Only show on sections that have scrolled into view */
.section.is-visible::before {
    opacity: 1;
}

.section-head {
    margin-bottom: 5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.section-head.center {
    align-items: center;
    text-align: center;
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Syncopate', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    color: var(--text-soft);
    width: fit-content;
}

.kicker-num {
    display: inline-block;
    padding: 0.3rem 0.6rem;
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    font-size: 0.55rem;
    color: var(--p-sky);
}

.section-title {
    font-family: 'Instrument Serif', serif;
    font-weight: 400;
    font-size: clamp(2.5rem, 5.5vw, 5.5rem);
    line-height: 1;
    letter-spacing: -0.03em;
    color: #fff;
}

/* Headline emphasis — editorial italic serif with a subtle gradient fill.
   Gives key words visual weight without crowding the composition.
   The .word-inside rule ensures split-word spans inherit the clip properly. */
.section-title em,
.contact-title em,
.approach-statement em {
    font-style: italic;
    font-weight: 400;
    background: linear-gradient(120deg,
        #ffffff 0%,
        #d4d8ff 40%,
        #c4b8ff 75%,
        #f4c4ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* If splitLinesBySpan wraps the em's text in .word spans, those spans need
   their own clip config — otherwise they inherit transparent fill without
   the gradient and render as invisible.  */
.section-title em .word,
.contact-title em .word,
.approach-statement em .word {
    background: inherit;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-lede {
    max-width: 640px;
    color: var(--text-soft);
    font-size: 1.02rem;
    line-height: 1.65;
}

/* ============================================================
   PRISM CARD (shared)
   ============================================================ */
.prism-card {
    --cx: 50%;
    --cy: 50%;
    --spot: 0;
    position: relative;
    background:
        radial-gradient(360px circle at var(--cx) var(--cy),
            rgba(255, 181, 197, calc(0.12 * var(--spot))),
            rgba(168, 216, 255, calc(0.06 * var(--spot))) 40%,
            transparent 70%),
        linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015));
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    overflow: hidden;
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.08),
        0 30px 60px -20px rgba(0, 0, 0, 0.6);
    transition: border-color 0.6s, box-shadow 0.6s, background 0.4s;
}

.prism-card:hover { --spot: 1; }

/* Holographic edge (signature) */
.prism-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: conic-gradient(from var(--angle, 0deg),
        transparent 0deg,
        rgba(255, 181, 197, 0.7) 60deg,
        rgba(255, 245, 181, 0.7) 120deg,
        rgba(181, 255, 203, 0.7) 180deg,
        rgba(168, 216, 255, 0.7) 240deg,
        rgba(201, 168, 255, 0.7) 300deg,
        transparent 360deg);
    -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.8s var(--ease-out);
    animation: halo-rotate 8s linear infinite;
    pointer-events: none;
}

.prism-card:hover::before {
    opacity: 0.85;
}

@keyframes halo-rotate {
    to { --angle: 360deg; }
}

@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

/* Iridescent sheen on hover */
.prism-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg,
        transparent 30%,
        rgba(255, 255, 255, 0.12) 45%,
        rgba(255, 245, 181, 0.08) 50%,
        rgba(255, 255, 255, 0.12) 55%,
        transparent 70%);
    transform: translateX(-100%);
    transition: transform 1.2s var(--ease-out);
    pointer-events: none;
}

.prism-card:hover::after {
    transform: translateX(100%);
}

.prism-card:hover {
    transform: translateY(-6px);
    border-color: var(--line-bright);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.15),
        0 50px 100px -20px rgba(0, 0, 0, 0.8),
        0 0 60px -10px rgba(255, 181, 197, 0.15);
}

/* ============================================================
   APPROACH (editorial prism statement + pillars)
   ============================================================ */
.approach {
    max-width: 1300px;
}

.approach-statement {
    font-family: 'Instrument Serif', serif;
    font-weight: 400;
    font-size: clamp(1.75rem, 3.2vw, 3.2rem);
    line-height: 1.28;
    letter-spacing: -0.012em;
    color: rgba(255, 255, 255, 0.92);
    max-width: 1200px;
}

.approach-statement em {
    font-style: italic;
    color: #fff;
    /* A tinted accent per emphasis — restrained, not a rainbow every time. */
}
.approach-statement em:nth-of-type(1) { color: var(--p-pink); }
.approach-statement em:nth-of-type(2) { color: var(--p-sky); }
.approach-statement em:nth-of-type(3) { color: var(--p-lav); }

.approach-foot {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 3rem;
    margin-top: 4.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
    flex-wrap: wrap;
}

.signature {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.sig-label {
    font-family: 'Syncopate', sans-serif;
    font-size: 0.55rem;
    letter-spacing: 0.3em;
    color: var(--text-faint);
}

.sig-name {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-size: 1.2rem;
    color: var(--text-soft);
}

.approach-pillars {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.pillar {
    display: flex;
    align-items: baseline;
    gap: 0.65rem;
    font-family: 'Instrument Serif', serif;
    font-size: 1.05rem;
    color: var(--text);
    letter-spacing: -0.005em;
}

.pillar span {
    font-family: 'Syncopate', sans-serif;
    font-size: 0.55rem;
    letter-spacing: 0.25em;
    color: var(--text-faint);
}

/* ============================================================
   PROCESS
   ============================================================ */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.process-card {
    padding: 2.5rem;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.5rem;
    color: var(--text);
    background: var(--glass);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    transition: all 0.5s var(--ease-out);
}

.process-card:hover {
    background: var(--glass-strong);
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.6);
}

.pc-num {
    font-family: 'Syncopate', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    color: var(--text-faint);
}

.pc-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    color: var(--p-sky);
}

.pc-icon svg { width: 24px; height: 24px; }

.process-card h3 {
    font-family: 'Instrument Serif', serif;
    font-weight: 400;
    font-size: 2rem;
    line-height: 1;
    letter-spacing: -0.02em;
}

.process-card p {
    color: var(--text-soft);
    font-size: 0.95rem;
    line-height: 1.55;
}

.pc-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}

.pc-list li {
    font-size: 0.75rem;
    color: var(--text-mute);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pc-list li::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--p-sky);
    box-shadow: 0 0 6px var(--p-sky);
}

/* ============================================================
   SERVICES
   ============================================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-card {
    padding: 3rem;
    min-height: 340px;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    position: relative;
    overflow: hidden;
    background: var(--glass);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    transition: all 0.6s var(--ease-out);
}

.service-card:hover {
    background: var(--glass-strong);
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.6);
}

/* Soft ambient glow that emerges on hover */
.service-card::after {
    content: '';
    position: absolute;
    top: -40%;
    right: -40%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(140, 170, 255, 0.18), transparent 70%);
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
    filter: blur(40px);
}

.service-card:hover::after { opacity: 1; }

/* Animated accent line at the bottom — draws in from left on hover */
.service-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(140, 170, 255, 0.8), rgba(255, 140, 220, 0.8), transparent);
    transition: width 0.7s var(--ease-out);
    pointer-events: none;
    z-index: 2;
}

.service-card:hover::before { width: 100%; }

.service-card.wide { grid-column: span 2; }

.service-head {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: relative;
    z-index: 1;
}

.service-tag {
    font-family: 'Syncopate', sans-serif;
    font-size: 0.55rem;
    letter-spacing: 0.3em;
    color: var(--p-pink);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.service-tag::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 8px currentColor;
    animation: dot-pulse 2.4s ease-in-out infinite;
}

.service-card h3 {
    font-family: 'Instrument Serif', serif;
    font-weight: 400;
    font-size: clamp(1.8rem, 2.6vw, 2.8rem);
    line-height: 1;
    letter-spacing: -0.02em;
    color: #fff;
    transition: transform 0.5s var(--ease-out);
}

.service-card:hover h3 {
    transform: translateX(4px);
}

.service-card p {
    color: var(--text-soft);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 540px;
    position: relative;
    z-index: 1;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
    position: relative;
    z-index: 1;
}

.service-tags span {
    padding: 0.4rem 0.85rem;
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    color: var(--text-soft);
    background: rgba(255,255,255,0.02);
    transition: background 0.3s, border-color 0.3s, color 0.3s;
}

.service-card:hover .service-tags span {
    border-color: rgba(140, 170, 255, 0.35);
}

.service-tags span:hover {
    background: rgba(140, 170, 255, 0.1);
    color: #fff;
    border-color: rgba(140, 170, 255, 0.6);
}

/* ============================================================
   CAPABILITIES MATRIX — 12-cell craft grid
   ============================================================ */
.capabilities .section-lede {
    max-width: 560px;
    color: var(--text-soft);
    font-size: 1rem;
    line-height: 1.6;
    text-align: center;
}

.capability-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    overflow: hidden;
    position: relative;
    isolation: isolate;
}

.capability-grid::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: conic-gradient(from var(--angle, 0deg),
        rgba(255, 181, 197, 0.55),
        rgba(255, 245, 181, 0.55),
        rgba(181, 255, 203, 0.55),
        rgba(168, 216, 255, 0.55),
        rgba(201, 168, 255, 0.55),
        rgba(255, 181, 197, 0.55));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: halo-rotate 12s linear infinite;
    opacity: 0.6;
    pointer-events: none;
    z-index: 2;
}

.cap-cell {
    position: relative;
    padding: 2.25rem 1.75rem;
    min-height: 220px;
    background:
        radial-gradient(180px circle at var(--cx, 50%) var(--cy, 50%),
            rgba(255, 181, 197, calc(0.2 * var(--spot, 0))),
            rgba(168, 216, 255, calc(0.1 * var(--spot, 0))) 40%,
            transparent 70%),
        linear-gradient(180deg, rgba(10,10,24,0.7), rgba(10,10,24,0.5));
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    transition: background 0.5s, transform 0.6s var(--ease-out);
    overflow: hidden;
}

.cap-cell::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(255,255,255,0.2),
        transparent);
    opacity: 0;
    transition: opacity 0.5s;
}

.cap-cell:hover::before { opacity: 1; }

.cap-cell:hover {
    --spot: 1;
    background:
        radial-gradient(200px circle at var(--cx, 50%) var(--cy, 50%),
            rgba(255, 181, 197, 0.22),
            rgba(168, 216, 255, 0.12) 40%,
            transparent 70%),
        linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
}

/* Capability icon — line-art SVG, monochrome → prismatic on hover */
.cap-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 0.6rem;
    transition: color 0.5s, transform 0.6s var(--ease-out);
}

.cap-icon svg {
    width: 30px;
    height: 30px;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cap-cell:hover .cap-icon {
    color: var(--p-pink);
    transform: translateY(-2px);
}

.cap-cell h4 {
    font-family: 'Instrument Serif', serif;
    font-weight: 400;
    font-size: 1.35rem;
    line-height: 1.1;
    color: #fff;
    letter-spacing: -0.01em;
}

.cap-cell p {
    font-size: 0.78rem;
    color: var(--text-mute);
    line-height: 1.5;
    letter-spacing: 0.01em;
}

/* Hidden initial state for GSAP scroll reveal */
.js-ready .cap-cell {
    opacity: 0;
}

/* ============================================================
   WORK
   ============================================================ */
.work-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.work-item {
    border-radius: 28px;
    position: relative;
}

.work-media {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    transition: border-color 0.5s;
}

.work-item:hover .work-media {
    border-color: rgba(255, 255, 255, 0.25);
}

/* Scan / sweep overlay (runs on hover) */
.work-scan {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background: linear-gradient(115deg,
        transparent 30%,
        rgba(255, 255, 255, 0.08) 45%,
        rgba(255, 245, 181, 0.15) 50%,
        rgba(255, 255, 255, 0.08) 55%,
        transparent 70%);
    transform: translateX(-120%);
    transition: transform 1.2s var(--ease-out);
    mix-blend-mode: screen;
}

.work-item:hover .work-scan {
    transform: translateX(120%);
}

/* Rainbow edge halo on hover */
.work-media::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: conic-gradient(from var(--angle, 0deg),
        transparent 0deg,
        rgba(255, 181, 197, 0.5) 60deg,
        rgba(255, 245, 181, 0.5) 120deg,
        rgba(181, 255, 203, 0.5) 180deg,
        rgba(168, 216, 255, 0.5) 240deg,
        rgba(201, 168, 255, 0.5) 300deg,
        transparent 360deg);
    -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.6s var(--ease-out);
    animation: halo-rotate 10s linear infinite;
    pointer-events: none;
    z-index: 4;
}

.work-item:hover .work-media::before {
    opacity: 1;
}

.work-gradient-1 {
    background:
        radial-gradient(ellipse at 20% 20%, rgba(255, 181, 197, 0.6), transparent 55%),
        radial-gradient(ellipse at 80% 70%, rgba(201, 168, 255, 0.5), transparent 55%),
        linear-gradient(135deg, #1a0f1f, #0a0a18);
}
.work-gradient-2 {
    background:
        radial-gradient(ellipse at 30% 30%, rgba(168, 216, 255, 0.55), transparent 55%),
        radial-gradient(ellipse at 70% 70%, rgba(181, 255, 203, 0.45), transparent 55%),
        linear-gradient(135deg, #0f1a1f, #0a0a18);
}
.work-gradient-3 {
    background:
        radial-gradient(ellipse at 30% 70%, rgba(255, 245, 181, 0.5), transparent 55%),
        radial-gradient(ellipse at 70% 30%, rgba(255, 203, 164, 0.55), transparent 55%),
        linear-gradient(135deg, #1f1a0f, #0a0a18);
}
.work-gradient-4 {
    background:
        radial-gradient(ellipse at 50% 20%, rgba(201, 168, 255, 0.55), transparent 55%),
        radial-gradient(ellipse at 50% 80%, rgba(168, 216, 255, 0.5), transparent 55%),
        linear-gradient(135deg, #141028, #0a0a18);
}

.work-preview {
    width: 75%;
    max-width: 460px;
    background: rgba(10, 10, 24, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    transition: transform 0.8s var(--ease-out);
}

.work-item:hover .work-preview {
    transform: translateY(-12px) scale(1.02);
}

.wp-row {
    height: 10px;
    border-radius: 100px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));
}

.wp-row.short { width: 60%; }

.wp-block {
    height: 80px;
    border-radius: 12px;
    background: var(--rainbow-soft);
    margin-top: 0.3rem;
}

.grid-preview {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.grid-preview > div {
    aspect-ratio: 1;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
}

.grid-preview > div:nth-child(1) { background: rgba(255, 181, 197, 0.25); }
.grid-preview > div:nth-child(2) { background: rgba(168, 216, 255, 0.25); }
.grid-preview > div:nth-child(3) { background: rgba(201, 168, 255, 0.25); }
.grid-preview > div:nth-child(4) { background: rgba(255, 245, 181, 0.25); }
.grid-preview > div:nth-child(5) { background: rgba(181, 255, 203, 0.25); }
.grid-preview > div:nth-child(6) { background: rgba(255, 203, 164, 0.25); }

.circle-preview {
    align-items: center;
}

.pv-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--rainbow);
    background-size: 200% 100%;
    animation: rainbow-flow 6s linear infinite;
    align-self: center;
    margin: 0 auto;
    box-shadow: 0 0 30px rgba(255, 181, 197, 0.5);
}

.pv-line {
    height: 8px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.15);
}

.pv-line.short { width: 60%; align-self: center; margin: 0 auto; }

.stack-preview {
    justify-content: center;
}

.pv-card {
    height: 20px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.pv-card:nth-child(1) { background: rgba(255, 181, 197, 0.2); }
.pv-card:nth-child(2) { background: rgba(168, 216, 255, 0.2); width: 80%; }
.pv-card:nth-child(3) { background: rgba(201, 168, 255, 0.2); width: 60%; }

.work-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 1.5rem 0.5rem 0;
}

.work-tag {
    display: block;
    font-family: 'Syncopate', sans-serif;
    font-size: 0.55rem;
    letter-spacing: 0.3em;
    color: var(--text-mute);
    margin-bottom: 0.4rem;
}

.work-info h3 {
    font-family: 'Instrument Serif', serif;
    font-weight: 400;
    font-size: 2rem;
    line-height: 1;
    letter-spacing: -0.02em;
}

.work-year {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-size: 1.5rem;
    color: var(--text-mute);
}

.work-foot {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-mute);
    font-size: 0.85rem;
}

.inline-link {
    color: #fff;
    border-bottom: 1px solid var(--line-bright);
    padding-bottom: 0.2rem;
    transition: border-color 0.4s, color 0.4s;
}

.inline-link:hover {
    color: var(--p-pink);
    border-color: var(--p-pink);
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.testimonial {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: var(--glass);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    transition: all 0.5s var(--ease-out);
}

.testimonial:hover {
    background: var(--glass-strong);
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.15);
}

.stars {
    font-size: 1rem;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.85);
    width: fit-content;
}

.testimonial blockquote {
    font-family: 'Instrument Serif', serif;
    font-size: 1.25rem;
    line-height: 1.45;
    color: var(--text);
    font-style: italic;
}

.testimonial figcaption {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
    margin-top: auto;
}

.t-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: #fff;
}

.t-role {
    font-size: 0.75rem;
    color: var(--text-mute);
    letter-spacing: 0.02em;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 900px;
}

/* FAQ — custom accordion with smooth height animation */
.faq-item {
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.01));
    backdrop-filter: blur(12px);
    overflow: hidden;
    transition: border-color 0.6s, background 0.6s;
    position: relative;
}

.faq-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--rainbow);
    background-size: 100% 200%;
    animation: rainbow-flow-v 4s linear infinite;
    opacity: 0;
    transition: opacity 0.6s var(--ease-out);
}

@keyframes rainbow-flow-v {
    0% { background-position: 50% 0%; }
    100% { background-position: 50% 200%; }
}

.faq-item.is-open {
    border-color: var(--line-bright);
    background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
}

.faq-item.is-open::before { opacity: 1; }

.faq-summary {
    padding: 1.6rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    cursor: pointer;
    transition: color 0.4s, padding 0.6s var(--ease-out);
    user-select: none;
}

.faq-item.is-open .faq-summary {
    padding-left: 2.5rem;
}

.faq-q {
    font-family: 'Instrument Serif', serif;
    font-size: 1.35rem;
    color: #fff;
    transition: transform 0.6s var(--ease-out);
}

.faq-item.is-open .faq-q {
    transform: translateX(4px);
}

.faq-toggle {
    position: relative;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    transition: border-color 0.5s, transform 0.6s var(--ease-out), background 0.5s;
}

.faq-toggle::before,
.faq-toggle::after {
    content: '';
    position: absolute;
    background: #fff;
    transition: transform 0.5s var(--ease-out);
}

.faq-toggle::before {
    top: 50%;
    left: 25%;
    right: 25%;
    height: 1px;
    transform: translateY(-50%);
}

.faq-toggle::after {
    left: 50%;
    top: 25%;
    bottom: 25%;
    width: 1px;
    transform: translateX(-50%);
}

.faq-item.is-open .faq-toggle {
    background: rgba(255,181,197,0.15);
    border-color: rgba(255,181,197,0.5);
    transform: rotate(180deg);
}

.faq-item.is-open .faq-toggle::after {
    transform: translateX(-50%) scaleY(0);
}

/* Custom height animation wrapper */
.faq-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.7s var(--ease-out);
}

.faq-a {
    padding: 0 2rem 1.8rem 2.5rem;
    color: var(--text-soft);
    font-size: 0.95rem;
    line-height: 1.65;
    max-width: 740px;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.6s var(--ease-out) 0.15s, transform 0.6s var(--ease-out) 0.15s;
}

.faq-item.is-open .faq-a {
    opacity: 1;
    transform: translateY(0);
}

.faq-a em {
    color: var(--p-pink);
    font-style: italic;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 5rem;
    align-items: center;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-title {
    font-family: 'Instrument Serif', serif;
    font-weight: 400;
    font-size: clamp(2.5rem, 5vw, 5rem);
    line-height: 1;
    letter-spacing: -0.03em;
    color: #fff;
}

.contact-sub {
    color: var(--text-soft);
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 480px;
}

.contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
}

.contact-list li {
    display: grid;
    grid-template-columns: 80px 1fr;
    align-items: center;
    gap: 1rem;
    font-size: 0.95rem;
}

.contact-list span {
    font-family: 'Syncopate', sans-serif;
    font-size: 0.55rem;
    letter-spacing: 0.3em;
    color: var(--text-faint);
}

.contact-list a {
    color: var(--text);
    transition: color 0.4s;
}

.contact-list a:hover { color: var(--p-pink); }

.contact-form {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.field-label {
    font-family: 'Syncopate', sans-serif;
    font-size: 0.55rem;
    letter-spacing: 0.3em;
    color: var(--text-mute);
}

.field input,
.field textarea {
    width: 100%;
    padding: 0.9rem 1.1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.4s, background 0.4s, box-shadow 0.4s;
    resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
    color: var(--text-faint);
}

.field input:focus,
.field textarea:focus {
    border-color: rgba(255, 181, 197, 0.6);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 0 4px rgba(255, 181, 197, 0.08);
}

.chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.chip {
    padding: 0.6rem 1rem;
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    font-size: 0.8rem;
    color: var(--text-soft);
    background: rgba(0, 0, 0, 0.2);
    transition: all 0.4s var(--ease-out);
}

.chip:hover {
    border-color: var(--line-bright);
    color: #fff;
}

.chip.is-active {
    background: var(--rainbow);
    background-size: 200% 100%;
    animation: rainbow-flow 4s linear infinite;
    color: #000;
    border-color: transparent;
    font-weight: 600;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    position: relative;
    padding: 6rem 2rem 2rem;
    max-width: 1500px;
    margin: 4rem auto 0;
    border-top: 1px solid var(--line);
    overflow: hidden;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    padding-bottom: 6rem;
}

.footer-mark {
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

.footer-name {
    display: block;
    font-family: 'Syncopate', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.2em;
    color: #fff;
}

.footer-tag {
    display: block;
    font-size: 0.75rem;
    color: var(--text-mute);
    margin-top: 0.25rem;
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-nav > div {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.footer-label {
    font-family: 'Syncopate', sans-serif;
    font-size: 0.55rem;
    letter-spacing: 0.3em;
    color: var(--text-faint);
    margin-bottom: 0.5rem;
}

.footer-nav a {
    color: var(--text-soft);
    font-size: 0.9rem;
    transition: color 0.4s, transform 0.4s var(--ease-out);
    width: fit-content;
}

.footer-nav a:hover {
    color: var(--p-pink);
    transform: translateX(6px);
}

.footer-bottom-left {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.footer-note {
    font-size: 0.65rem;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 2rem 0;
    border-top: 1px solid var(--line);
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: var(--text-mute);
}

.footer-signal {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.signal-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--p-mint);
    box-shadow: 0 0 8px var(--p-mint);
    animation: dot-pulse 2s ease-in-out infinite;
}

.footer-giant {
    font-family: 'Instrument Serif', serif;
    font-weight: 400;
    font-size: clamp(6rem, 22vw, 24rem);
    line-height: 0.85;
    letter-spacing: -0.05em;
    text-align: center;
    margin-top: 1rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, transparent 80%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.08);
    user-select: none;
}

/* ============================================================
   ANIMATION UTILITIES
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.char, .word {
    display: inline-block;
    will-change: transform, opacity;
}

/* ============================================================
   VISION STUDIO — section, browser preview, and modal wizard
   ============================================================ */

/* —— Section inline content —— */
.visualize-section {
    max-width: 1400px;
    position: relative;
}

/* Floating prism accent — 3D CSS object that rotates behind the section */
.vs-prism {
    position: absolute;
    top: -60px;
    right: 4%;
    width: 180px;
    height: 180px;
    transform-style: preserve-3d;
    animation: prismSpin 22s linear infinite;
    pointer-events: none;
    opacity: 0.45;
    z-index: 1;
    filter: drop-shadow(0 0 40px rgba(180, 140, 255, 0.25));
}

.vs-prism-face {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(180, 200, 255, 0.12),
        rgba(220, 150, 255, 0.08));
    border: 1px solid rgba(200, 210, 255, 0.35);
    border-radius: 8px;
    backdrop-filter: blur(8px);
}

.vs-prism-face-1 { transform: rotateY(0deg) translateZ(60px); }
.vs-prism-face-2 { transform: rotateY(60deg) translateZ(60px); }
.vs-prism-face-3 { transform: rotateY(120deg) translateZ(60px); background: linear-gradient(135deg, rgba(255,180,220,0.1), rgba(180,200,255,0.1)); }

@keyframes prismSpin {
    0%   { transform: rotateY(0deg) rotateX(15deg); }
    100% { transform: rotateY(360deg) rotateX(15deg); }
}

@media (max-width: 900px) {
    .vs-prism { display: none; }
}

.visualize-grid {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 5rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Preview glow — soft ambient light behind the browser mockup */
.vp-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    height: 80%;
    background: radial-gradient(
        circle,
        rgba(130, 150, 255, 0.25) 0%,
        rgba(180, 120, 255, 0.15) 40%,
        transparent 70%
    );
    filter: blur(60px);
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
    animation: vpGlowPulse 6s ease-in-out infinite;
}

@keyframes vpGlowPulse {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50%      { opacity: 1;   transform: translate(-50%, -50%) scale(1.1); }
}

/* Keep the browser layered above the glow */
.visualize-preview > .vp-browser { position: relative; z-index: 1; }

/* Meta line below the CTA button */
.vs-meta-line {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-mute);
    font-family: 'Inter', sans-serif;
}

.vs-meta-tick {
    color: #6a88ff;
    font-size: 0.55rem;
    line-height: 1;
    animation: dot-pulse 2.4s ease-in-out infinite;
}

/* Button with ambient glow — for the big CTA */
.btn-glow {
    position: relative;
}

.btn-glow::after {
    content: '';
    position: absolute;
    inset: -4px;
    background: linear-gradient(120deg,
        rgba(140, 170, 255, 0.6),
        rgba(220, 150, 255, 0.6),
        rgba(255, 180, 220, 0.6),
        rgba(140, 170, 255, 0.6));
    background-size: 200% 200%;
    border-radius: inherit;
    filter: blur(16px);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
    animation: glowShiftBtn 4s ease-in-out infinite;
}

.btn-glow:hover::after {
    opacity: 0.7;
}

@keyframes glowShiftBtn {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

.visualize-content {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    max-width: 560px;
}

.kicker-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--p-pink);
    box-shadow: 0 0 10px var(--p-pink);
    animation: dot-pulse 2s ease-in-out infinite;
}

.visualize-content .section-title {
    font-size: clamp(2.5rem, 4.6vw, 4.6rem);
    line-height: 1.02;
}

.visualize-lede {
    color: var(--text-soft);
    font-size: 1.05rem;
    line-height: 1.65;
    max-width: 520px;
}

.visualize-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-top: 0.5rem;
    border-top: 1px solid var(--line);
    margin-top: 0.5rem;
}

.visualize-list li {
    display: grid;
    grid-template-columns: 44px 1fr;
    align-items: baseline;
    gap: 1rem;
    font-size: 0.96rem;
    color: var(--text-soft);
    line-height: 1.5;
    padding: 0.85rem 0.6rem 0.85rem 0.2rem;
    border-top: 1px solid transparent;
    border-radius: 8px;
    transition: background 0.3s ease, transform 0.3s ease;
    position: relative;
}

.visualize-list li + li {
    border-top: 1px solid var(--line-soft);
}

.visualize-list li:hover {
    background: rgba(255, 255, 255, 0.02);
    transform: translateX(4px);
}

.visualize-list li:hover .vl-num {
    color: #9fb6ff;
    text-shadow: 0 0 8px rgba(120, 150, 255, 0.6);
}

.visualize-list li em {
    color: #fff;
    font-style: italic;
}

.vl-num {
    font-family: 'Syncopate', sans-serif;
    font-size: 0.55rem;
    letter-spacing: 0.25em;
    color: var(--p-sky);
    transition: color 0.3s ease, text-shadow 0.3s ease;
    align-self: center;
}

.vl-text {
    display: block;
}

.btn-xl {
    padding: 1.3rem 1.9rem 1.3rem 2.1rem;
    font-size: 0.88rem;
    margin-top: 1rem;
}

/* —— Browser preview —— */
.visualize-preview {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.vp-browser {
    width: 100%;
    max-width: 620px;
    aspect-ratio: 4/3;
    background: rgba(10, 10, 24, 0.78);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.7),
                0 0 0 1px rgba(255,255,255,0.02),
                inset 0 1px 0 rgba(255,255,255,0.05);
    position: relative;
    backdrop-filter: blur(20px);
}

.vp-browser::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: conic-gradient(from var(--angle, 0deg),
        rgba(255, 181, 197, 0.4), rgba(255, 245, 181, 0.4),
        rgba(181, 255, 203, 0.4), rgba(168, 216, 255, 0.4),
        rgba(201, 168, 255, 0.4), rgba(255, 181, 197, 0.4));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.45;
    animation: halo-rotate 16s linear infinite;
    pointer-events: none;
}

.vp-chrome {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.7rem 0.9rem;
    border-bottom: 1px solid var(--line);
    background: rgba(0,0,0,0.25);
}

.vp-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
}

.vp-dot:nth-of-type(1) { background: #ff5f57; }
.vp-dot:nth-of-type(2) { background: #febc2e; }
.vp-dot:nth-of-type(3) { background: #28c840; }

.vp-url {
    margin-left: 0.75rem;
    padding: 0.28rem 0.8rem;
    font-family: 'Syncopate', sans-serif;
    font-size: 0.52rem;
    letter-spacing: 0.2em;
    color: var(--text-mute);
    background: rgba(255,255,255,0.03);
    border-radius: 100px;
    border: 1px solid var(--line);
}

.vp-canvas {
    flex: 1;
    padding: 1.4rem 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow: hidden;
    position: relative;
}

/* Iframe-based mockup — AI HTML path */
.vp-canvas-iframe {
    padding: 0;
    overflow: hidden;
    background: #0a0a0a;
    position: relative;
}

/* Subtle gradient glow INSIDE the iframe frame — gives the mockup
   presence even when its own CSS is minimal. */
.vp-canvas-iframe::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 40% at 30% 0%, rgba(140, 170, 255, 0.08), transparent 60%),
        radial-gradient(ellipse 50% 40% at 80% 100%, rgba(220, 150, 255, 0.06), transparent 60%);
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: screen;
}

.mock-iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    background: transparent;
    min-height: 620px;
    position: relative;
    z-index: 2;
}

.ai-iframe-browser {
    aspect-ratio: auto;
    min-height: 720px;
    height: clamp(620px, 72vh, 900px);
    box-shadow:
        0 60px 120px -30px rgba(0, 0, 0, 0.85),
        0 20px 40px -10px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
}

.ai-iframe-browser:hover {
    transform: translateY(-2px);
    box-shadow:
        0 70px 140px -30px rgba(100, 120, 255, 0.2),
        0 25px 50px -10px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.mockup-stage .ai-iframe-browser {
    max-width: 100%;
    height: clamp(620px, 72vh, 900px);
}

/* Premium browser chrome — more realistic traffic-light buttons */
.ai-iframe-browser .vp-chrome {
    background: linear-gradient(180deg, rgba(24, 24, 36, 0.95), rgba(18, 18, 28, 0.95));
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.85rem 1.1rem;
}

.ai-iframe-browser .vp-chrome .vp-dot {
    width: 12px;
    height: 12px;
    position: relative;
}

.ai-iframe-browser .vp-chrome .vp-dot:nth-child(1) {
    background: linear-gradient(180deg, #ff6d6d, #d73a3a);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 1px 2px rgba(0, 0, 0, 0.4);
}
.ai-iframe-browser .vp-chrome .vp-dot:nth-child(2) {
    background: linear-gradient(180deg, #ffd45e, #e0a923);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 1px 2px rgba(0, 0, 0, 0.4);
}
.ai-iframe-browser .vp-chrome .vp-dot:nth-child(3) {
    background: linear-gradient(180deg, #5eee8a, #27b85c);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 1px 2px rgba(0, 0, 0, 0.4);
}

.ai-iframe-browser .vp-url {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(220, 230, 255, 0.75);
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.02em;
    padding: 0.3rem 0.85rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.ai-iframe-browser .vp-url::before {
    content: '';
    width: 10px;
    height: 10px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2380ff9e' stroke-width='2'%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4M5 11h14v10H5z'/%3E%3C/svg%3E") center/contain no-repeat;
    opacity: 0.9;
}

/* Demo example in visualize section */
.vp-canvas-demo {
    background:
        radial-gradient(ellipse at 20% 0%, rgba(255, 181, 197, 0.18), transparent 60%),
        radial-gradient(ellipse at 80% 80%, rgba(201, 168, 255, 0.14), transparent 60%),
        linear-gradient(180deg, #0f0d1a, #0a0812);
}

.vp-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-family: 'Syncopate', sans-serif;
    font-size: 0.5rem;
    letter-spacing: 0.3em;
    color: rgba(255,255,255,0.75);
}

.vp-nav-links {
    display: flex;
    gap: 0.9rem;
    color: rgba(255,255,255,0.45);
}

.vp-hero {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: auto;
    margin-bottom: auto;
}

.vp-eyebrow {
    font-family: 'Syncopate', sans-serif;
    font-size: 0.48rem;
    letter-spacing: 0.3em;
    color: var(--p-pink);
}

.vp-headline {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(1.6rem, 3vw, 2.6rem);
    line-height: 1;
    color: #fff;
    letter-spacing: -0.02em;
    font-weight: 400;
    margin: 0.1rem 0;
}

.vp-headline em {
    font-style: italic;
    color: #fff;
    font-weight: 400;
}

.vp-sub {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.62);
    line-height: 1.5;
    max-width: 320px;
}

.vp-btn {
    display: inline-flex;
    font-size: 0.68rem;
    padding: 0.5rem 0.9rem;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 100px;
    color: #fff;
    width: fit-content;
    background: rgba(255,255,255,0.03);
    letter-spacing: 0.04em;
    margin-top: 0.3rem;
}

.vp-product-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-top: 0.6rem;
}

.vp-card {
    aspect-ratio: 1;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
    border: 1px solid rgba(255,255,255,0.05);
}

.vp-card:nth-child(1) { background: linear-gradient(135deg, rgba(255,181,197,0.35), rgba(201,168,255,0.18)); }
.vp-card:nth-child(2) { background: linear-gradient(135deg, rgba(168,216,255,0.3), rgba(181,255,203,0.18)); }
.vp-card:nth-child(3) { background: linear-gradient(135deg, rgba(255,245,181,0.25), rgba(255,203,164,0.18)); }

.visualize-note {
    font-family: 'Syncopate', sans-serif;
    font-size: 0.52rem;
    letter-spacing: 0.25em;
    color: var(--text-faint);
    text-align: center;
}

/* —— Vision Board (below section) —— */
.vision-board {
    margin-top: 6rem;
    padding-top: 3rem;
    border-top: 1px solid var(--line);
}

.board-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.board-clear {
    font-family: 'Syncopate', sans-serif;
    font-size: 0.55rem;
    letter-spacing: 0.25em;
    color: var(--text-mute);
    padding: 0.5rem 0.9rem;
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    transition: color 0.4s, border-color 0.4s;
    cursor: pointer;
}

.board-clear:hover {
    color: #fff;
    border-color: var(--p-pink);
}

.board-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.board-item {
    position: relative;
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: border-color 0.5s, transform 0.5s var(--ease-out);
    backdrop-filter: blur(12px);
}

.board-item:hover {
    border-color: var(--line-bright);
    transform: translateY(-2px);
}

.board-thumb {
    aspect-ratio: 4/3;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    background: #0a0812;
    border: 1px solid var(--line);
}

.board-thumb .mini-mockup,
.board-thumb .vp-canvas {
    transform: scale(0.46);
    transform-origin: top left;
    width: 217%;
    height: auto;
    min-height: 217%;
    pointer-events: none;
}

/* Hide chrome on board thumbs since they don't have it; multi-section gets clipped naturally */
.board-thumb .mock-page {
    width: 100%;
}

.board-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.board-name {
    font-family: 'Instrument Serif', serif;
    font-size: 1.15rem;
    color: #fff;
    line-height: 1;
}

.board-date {
    font-family: 'Syncopate', sans-serif;
    font-size: 0.5rem;
    letter-spacing: 0.25em;
    color: var(--text-faint);
}

.board-tags {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.board-tag {
    font-size: 0.62rem;
    padding: 0.25rem 0.55rem;
    border-radius: 100px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--line);
    color: var(--text-soft);
    letter-spacing: 0.04em;
}

.board-item-remove {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--glass-border);
    color: var(--text-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s, color 0.4s, background 0.4s;
    cursor: pointer;
}

.board-item:hover .board-item-remove {
    opacity: 1;
}

.board-item-remove:hover {
    color: #fff;
    background: rgba(255, 80, 100, 0.4);
}

/* —— Modal shell —— */
.vision-modal {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.55s var(--ease-out);
}

.vision-modal.is-open {
    pointer-events: auto;
    opacity: 1;
}

.vision-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 3, 10, 0.72);
    backdrop-filter: blur(22px) saturate(140%);
    -webkit-backdrop-filter: blur(22px) saturate(140%);
}

.vision-card {
    position: relative;
    width: min(1040px, 100%);
    max-height: calc(100vh - 3rem);
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(400px circle at 30% 10%, rgba(201, 168, 255, 0.10), transparent 60%),
        radial-gradient(500px circle at 80% 80%, rgba(168, 216, 255, 0.08), transparent 60%),
        linear-gradient(180deg, rgba(18, 18, 34, 0.92), rgba(8, 8, 18, 0.96));
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    overflow: hidden;
    box-shadow:
        0 60px 120px -30px rgba(0, 0, 0, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.07);
    transform: translateY(60px) scale(0.9) rotateX(6deg);
    transform-style: preserve-3d;
    perspective: 1400px;
    transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.55s var(--ease-out);
    opacity: 0.4;
}

.vision-modal.is-open .vision-card {
    transform: translateY(0) scale(1) rotateX(0);
    opacity: 1;
}

.vision-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: conic-gradient(from var(--angle, 0deg),
        rgba(255, 181, 197, 0.6), rgba(255, 245, 181, 0.6),
        rgba(181, 255, 203, 0.6), rgba(168, 216, 255, 0.6),
        rgba(201, 168, 255, 0.6), rgba(255, 181, 197, 0.6));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.5;
    animation: halo-rotate 14s linear infinite;
    pointer-events: none;
    z-index: 2;
}

.vision-close {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: rgba(0,0,0,0.3);
    color: var(--text-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    cursor: pointer;
    transition: color 0.4s, background 0.4s, transform 0.5s var(--ease-out);
}

.vision-close:hover {
    color: #fff;
    background: rgba(255, 181, 197, 0.12);
    transform: rotate(90deg);
}

/* —— Stepbar —— */
.vision-stepbar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    padding: 1.6rem 2rem;
    border-bottom: 1px solid var(--line);
    font-family: 'Syncopate', sans-serif;
    font-size: 0.55rem;
    letter-spacing: 0.25em;
    color: var(--text-faint);
    flex-wrap: wrap;
}

.vision-step-item {
    transition: color 0.5s;
    white-space: nowrap;
}

.vision-step-item.is-active {
    color: #fff;
}

.vision-step-item.is-done {
    color: var(--p-pink);
}

.vision-step-divider {
    flex: 0 0 36px;
    height: 1px;
    background: var(--line);
}

/* —— Step bodies —— */
.vision-body {
    flex: 1;
    overflow-y: auto;
    padding: 2.5rem 2.5rem 1.25rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.15) transparent;
}

.vision-body::-webkit-scrollbar {
    width: 6px;
}

.vision-body::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
}

.vision-step {
    display: none;
    flex-direction: column;
    gap: 2rem;
}

.vision-step.is-active {
    display: flex;
    animation: vs-fade 0.55s var(--ease-out);
}

@keyframes vs-fade {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

.vision-step-head {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    max-width: 620px;
}

.vision-step-title {
    font-family: 'Instrument Serif', serif;
    font-weight: 400;
    font-size: clamp(1.8rem, 3.2vw, 2.8rem);
    line-height: 1.05;
    color: #fff;
    letter-spacing: -0.025em;
}

.vision-step-sub {
    color: var(--text-soft);
    font-size: 0.96rem;
    line-height: 1.55;
    max-width: 560px;
}

.vision-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.1rem;
    max-width: 760px;
}

.vision-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.vision-field:first-child,
.vision-field:last-child {
    grid-column: span 2;
}

.vision-field > span {
    font-family: 'Syncopate', sans-serif;
    font-size: 0.52rem;
    letter-spacing: 0.28em;
    color: var(--text-mute);
}

.vision-field input,
.vision-field select {
    width: 100%;
    padding: 0.9rem 1.05rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: #fff;
    font-family: inherit;
    font-size: 0.98rem;
    outline: none;
    transition: border-color 0.4s, background 0.4s, box-shadow 0.4s;
}

.vision-field select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%23a0a0b0' stroke-width='1.5'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
    padding-right: 2.4rem;
}

.vision-field input:focus,
.vision-field select:focus {
    border-color: rgba(255, 181, 197, 0.6);
    background: rgba(0, 0, 0, 0.45);
    box-shadow: 0 0 0 4px rgba(255, 181, 197, 0.08);
}

.vision-privacy {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.78rem;
    color: var(--text-mute);
    grid-column: span 2;
    line-height: 1.5;
    padding-top: 0.5rem;
    border-top: 1px solid var(--line);
    margin-top: 0.5rem;
}

.vision-privacy svg {
    flex-shrink: 0;
    color: var(--p-mint);
}

/* —— Aesthetic grid —— */
.aesthetic-grid,
.palette-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.aesthetic-card,
.palette-card {
    position: relative;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.028);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    cursor: pointer;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    transition: background 0.4s, border-color 0.4s, transform 0.45s var(--ease-out);
    color: var(--text);
}

.aesthetic-card:hover,
.palette-card:hover {
    border-color: var(--line-bright);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.aesthetic-card.is-selected,
.palette-card.is-selected {
    border-color: transparent;
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.85),
                0 24px 48px -18px rgba(255, 255, 255, 0.18);
}

.ac-preview {
    display: block;
    aspect-ratio: 16/9;
    border-radius: 9px;
    overflow: hidden;
    border: 1px solid var(--line);
    position: relative;
}

.ac-editorial {
    background:
        linear-gradient(#fff 1px, transparent 1px) top left / 100% 6px,
        linear-gradient(135deg, #1a1a22, #0e0e16);
    background-repeat: no-repeat;
}

.ac-editorial::after {
    content: 'Aa';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Instrument Serif', serif;
    font-size: 2.4rem;
    font-style: italic;
    color: #f5f5f5;
}

.ac-luminous {
    background:
        radial-gradient(ellipse at 30% 40%, rgba(255,181,197,0.55), transparent 60%),
        radial-gradient(ellipse at 70% 60%, rgba(168,216,255,0.55), transparent 60%),
        linear-gradient(135deg, #1a0f26, #08060f);
    position: relative;
}

.ac-luminous::after {
    content: '';
    position: absolute;
    inset: 25% 35%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.35), transparent 60%);
    filter: blur(8px);
}

.ac-brutalist {
    background: #f5f5f0;
    position: relative;
}

.ac-brutalist::after {
    content: '■';
    position: absolute;
    left: 14%;
    top: 18%;
    font-size: 3.6rem;
    color: #111;
    line-height: 0.8;
    font-weight: 900;
}

.ac-minimal {
    background: #fafaf8;
    position: relative;
}

.ac-minimal::after {
    content: '—';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.6rem;
    color: #111;
    font-weight: 300;
}

.ac-organic {
    background:
        radial-gradient(ellipse at 25% 25%, rgba(255,203,164,0.7), transparent 55%),
        radial-gradient(ellipse at 75% 75%, rgba(181,255,203,0.5), transparent 55%),
        linear-gradient(135deg, #e8d9c0, #c5a58a);
    position: relative;
}

.ac-organic::after {
    content: '';
    position: absolute;
    left: 30%;
    top: 25%;
    width: 40%;
    height: 50%;
    background: #3a2e1f;
    border-radius: 50%;
    opacity: 0.55;
    transform: rotate(-10deg);
}

.ac-futurist {
    background:
        linear-gradient(rgba(0,255,200,0.08) 1px, transparent 1px) top left / 100% 9px,
        linear-gradient(90deg, rgba(0,255,200,0.08) 1px, transparent 1px) top left / 9px 100%,
        #020810;
    position: relative;
}

.ac-futurist::after {
    content: '/_';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Syncopate', monospace;
    font-size: 1.4rem;
    color: #5ffad4;
    text-shadow: 0 0 8px #5ffad4;
    letter-spacing: 0.15em;
}

.ac-name,
.pal-name {
    font-family: 'Instrument Serif', serif;
    font-size: 1.25rem;
    color: #fff;
    line-height: 1;
}

.ac-desc,
.pal-desc {
    font-size: 0.78rem;
    color: var(--text-mute);
    line-height: 1.4;
}

/* —— Palette grid —— */
.pal-swatches {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    aspect-ratio: 5/1;
    border-radius: 9px;
    overflow: hidden;
    border: 1px solid var(--line);
}

.pal-swatches span {
    display: block;
    height: 100%;
}

/* —— Mockup stage —— */
.mockup-stage {
    min-height: 480px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    position: relative;
}

.mockup-stage .vp-browser {
    max-width: 920px;
    width: 100%;
    aspect-ratio: auto;
    height: auto;
    max-height: 78vh;
}

/* Inside the modal stage we let the mockup body scroll vertically so multi-section
   pages can reveal more content while keeping the browser chrome fixed up top. */
.mockup-stage .vp-browser .vp-canvas {
    overflow: hidden;
    max-height: 70vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.mockup-stage .vp-browser .vp-canvas::-webkit-scrollbar {
    width: 6px;
}

.mockup-stage .vp-browser .vp-canvas::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.12);
    border-radius: 100px;
}

.reveal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 0.4rem;
}

.reveal-meta span {
    font-family: 'Syncopate', sans-serif;
    font-size: 0.55rem;
    letter-spacing: 0.25em;
    color: var(--text-mute);
    padding: 0.45rem 0.8rem;
    border: 1px solid var(--line);
    border-radius: 100px;
    background: rgba(255,255,255,0.02);
}

/* —— Navigation bar at the bottom of the modal —— */
.vision-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem 2.5rem;
    border-top: 1px solid var(--line);
    background: rgba(5, 5, 14, 0.6);
}

.vision-back,
.vision-next {
    font-family: 'Syncopate', sans-serif;
    font-size: 0.58rem;
    letter-spacing: 0.28em;
    padding: 0.75rem 1.4rem;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.4s var(--ease-out);
}

.vision-back {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-soft);
}

.vision-back:hover {
    color: #fff;
    border-color: var(--line-bright);
    background: rgba(255,255,255,0.04);
}

.vision-back[disabled] {
    opacity: 0.25;
    cursor: not-allowed;
    pointer-events: none;
}

.vision-next {
    background: #fff;
    color: #000;
    border: 1px solid transparent;
    margin-left: auto;
    font-weight: 700;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s;
}

.vision-next:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 32px -16px rgba(255, 255, 255, 0.5);
}

.vision-next > * {
    position: relative;
    z-index: 1;
}

.vision-next[disabled] {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

.vision-progress {
    flex: 1;
    height: 2px;
    background: var(--line);
    border-radius: 100px;
    overflow: hidden;
    max-width: 260px;
    position: relative;
}

.vision-progress-fill {
    position: absolute;
    inset: 0;
    width: 20%;
    background: linear-gradient(90deg, rgba(255,255,255,0.7), #fff);
    transition: width 0.6s var(--ease-out);
}

/* —— Attach list on contact form —— */
.vision-attach .field-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.attach-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 0.6rem;
}

.attach-item {
    position: relative;
    padding: 0.7rem;
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    background: rgba(255,255,255,0.02);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: border-color 0.4s, background 0.4s;
    text-align: left;
}

.attach-item:hover {
    border-color: var(--line-bright);
    background: rgba(255,255,255,0.05);
}

.attach-item.is-selected {
    border-color: rgba(255,255,255,0.65);
    background: rgba(255,255,255,0.05);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.5);
}

.attach-item .thumb {
    aspect-ratio: 4/3;
    border-radius: 6px;
    overflow: hidden;
    background: #07060e;
    border: 1px solid var(--line);
    position: relative;
}

.attach-item .thumb .mini-mockup,
.attach-item .thumb .vp-canvas {
    transform: scale(0.28);
    transform-origin: top left;
    width: 357%;
    height: auto;
    min-height: 357%;
    pointer-events: none;
}

.attach-item .thumb .mock-page { width: 100%; }

.attach-item-name {
    font-family: 'Instrument Serif', serif;
    font-size: 0.98rem;
    color: #fff;
    line-height: 1.1;
}

.attach-item-tags {
    font-family: 'Syncopate', sans-serif;
    font-size: 0.5rem;
    letter-spacing: 0.2em;
    color: var(--text-mute);
}

.attach-item-check {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    transition: color 0.3s, background 0.3s, border-color 0.3s;
}

.attach-item.is-selected .attach-item-check {
    color: #000;
    background: #fff;
    border-color: #fff;
}

/* ============================================================
   MOCKUP TEMPLATES — rendered by JS
   Each .mini-mockup is a scaled-down version of the full mockup,
   themed per (aesthetic, palette) combination.
   ============================================================ */
.mini-mockup {
    --pal-0: #0a0a18;
    --pal-1: #1a1a2e;
    --pal-2: #4a4a66;
    --pal-3: #d0d0e0;
    --pal-4: #f5f5fa;
    --pal-accent: #ffb5c5;
    width: 100%;
    height: 100%;
    background: var(--pal-0);
    color: var(--pal-4);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    font-family: 'Inter', sans-serif;
}

/* Palette tokens */
.pal-prismatic {
    --pal-0: #0f0a1f;
    --pal-1: #1a1230;
    --pal-2: #a8d8ff;
    --pal-3: #ffb5c5;
    --pal-4: #fff5f8;
    --pal-accent: #c9a8ff;
}
.pal-mono {
    --pal-0: #0a0a0a;
    --pal-1: #1a1a1a;
    --pal-2: #757575;
    --pal-3: #d4d4d4;
    --pal-4: #f5f5f5;
    --pal-accent: #ffffff;
}
.pal-earth {
    --pal-0: #3a2e1f;
    --pal-1: #5a4a33;
    --pal-2: #8a6a43;
    --pal-3: #d2b48c;
    --pal-4: #f4ecdd;
    --pal-accent: #c58c5a;
}
.pal-midnight {
    --pal-0: #050714;
    --pal-1: #0a1030;
    --pal-2: #3a62a8;
    --pal-3: #8ab3ff;
    --pal-4: #e6f0ff;
    --pal-accent: #5ffad4;
}
.pal-bloom {
    --pal-0: #2a0c1a;
    --pal-1: #4a1230;
    --pal-2: #a02463;
    --pal-3: #ffd4a8;
    --pal-4: #fff2e0;
    --pal-accent: #ff6aa2;
}
.pal-forest {
    --pal-0: #0d2019;
    --pal-1: #1f4a3a;
    --pal-2: #5e9b80;
    --pal-3: #c5d8bd;
    --pal-4: #f1f5ec;
    --pal-accent: #b5ffcb;
}
.pal-oxblood {
    --pal-0: #1a0a0a;
    --pal-1: #3a1414;
    --pal-2: #a83232;
    --pal-3: #e8b8a0;
    --pal-4: #f5e8d8;
    --pal-accent: #ff8a5a;
}
.pal-sand {
    --pal-0: #2a2418;
    --pal-1: #4a3f2a;
    --pal-2: #8a7a52;
    --pal-3: #ede0c0;
    --pal-4: #faf4e8;
    --pal-accent: #d8c898;
}
.pal-ice {
    --pal-0: #0a1018;
    --pal-1: #1a2838;
    --pal-2: #2a4a68;
    --pal-3: #cfe4f0;
    --pal-4: #f4fafd;
    --pal-accent: #7ab0d0;
}
.pal-custom {
    /* Custom palette: CSS variables are injected inline by JS.
       Fallback values match the editor defaults. */
    --pal-0: #0a0a0a;
    --pal-1: #252530;
    --pal-2: #7a7a8a;
    --pal-3: #d4d4dc;
    --pal-4: #ffffff;
    --pal-accent: #7a7a8a;
}

/* Aesthetic base layouts */
.mm-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.6rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    flex-shrink: 0;
}

.mm-logo {
    font-family: 'Syncopate', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    color: var(--pal-4);
}

.mm-nav-links {
    display: flex;
    gap: 1.1rem;
    font-size: 0.7rem;
    color: var(--pal-3);
}

.mm-hero {
    flex: 1;
    padding: 2.2rem 1.8rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.9rem;
    position: relative;
    overflow: hidden;
}

.mm-eyebrow {
    font-family: 'Syncopate', sans-serif;
    font-size: 0.55rem;
    letter-spacing: 0.28em;
    color: var(--pal-accent);
}

.mm-headline {
    font-family: 'Instrument Serif', serif;
    font-weight: 400;
    font-size: clamp(1.6rem, 3.4vw, 3rem);
    line-height: 1.02;
    color: var(--pal-4);
    letter-spacing: -0.02em;
    max-width: 85%;
}

.mm-headline em {
    font-style: italic;
    color: var(--pal-accent);
}

.mm-sub {
    font-size: 0.85rem;
    color: var(--pal-3);
    max-width: 60%;
    line-height: 1.5;
}

.mm-cta-row {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.mm-btn {
    font-family: 'Syncopate', sans-serif;
    font-size: 0.55rem;
    letter-spacing: 0.2em;
    padding: 0.55rem 1rem;
    border-radius: 100px;
    background: var(--pal-4);
    color: var(--pal-0);
}

.mm-btn.ghost {
    background: transparent;
    border: 1px solid var(--pal-3);
    color: var(--pal-4);
}

.mm-footer {
    padding: 0.8rem 1.6rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    justify-content: space-between;
    font-family: 'Syncopate', sans-serif;
    font-size: 0.5rem;
    letter-spacing: 0.2em;
    color: var(--pal-2);
}

/* EDITORIAL variant — classic serif, rules, column */
.mm-editorial {
    background: var(--pal-0);
}

.mm-editorial .mm-hero {
    border-left: 2px solid var(--pal-accent);
    padding-left: 2.4rem;
}

.mm-editorial .mm-headline {
    font-size: clamp(1.8rem, 4vw, 3.6rem);
    max-width: 80%;
}

.mm-editorial .mm-hero::before {
    content: '01 / 04';
    position: absolute;
    top: 1.4rem;
    right: 1.6rem;
    font-family: 'Syncopate', sans-serif;
    font-size: 0.5rem;
    letter-spacing: 0.25em;
    color: var(--pal-3);
}

/* LUMINOUS variant — glow, center, prism orbs */
.mm-luminous {
    background:
        radial-gradient(ellipse at 30% 30%, rgba(255,255,255,0.22), transparent 55%),
        radial-gradient(ellipse at 70% 70%, rgba(255,255,255,0.15), transparent 55%),
        var(--pal-0);
}

.mm-luminous .mm-hero {
    align-items: center;
    text-align: center;
}

.mm-luminous .mm-sub,
.mm-luminous .mm-headline {
    max-width: 75%;
}

.mm-luminous .mm-hero::after {
    content: '';
    position: absolute;
    width: 58%;
    aspect-ratio: 1;
    border-radius: 50%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255,255,255,0.2), transparent 60%);
    filter: blur(24px);
    pointer-events: none;
    z-index: 0;
}

.mm-luminous .mm-eyebrow,
.mm-luminous .mm-headline,
.mm-luminous .mm-sub,
.mm-luminous .mm-cta-row {
    position: relative;
    z-index: 1;
}

/* BRUTALIST variant — flat, hard type, boxy */
.mm-brutalist {
    background: var(--pal-4);
    color: var(--pal-0);
}

.mm-brutalist .mm-nav {
    border-bottom: 2px solid var(--pal-0);
    background: var(--pal-4);
}

.mm-brutalist .mm-logo,
.mm-brutalist .mm-nav-links {
    color: var(--pal-0);
}

.mm-brutalist .mm-hero {
    padding: 2rem;
}

.mm-brutalist .mm-headline {
    font-family: 'Syncopate', sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: clamp(1.6rem, 3.5vw, 3rem);
    text-transform: uppercase;
    line-height: 0.95;
    color: var(--pal-0);
    letter-spacing: -0.005em;
    max-width: 85%;
}

.mm-brutalist .mm-headline em {
    font-style: normal;
    background: var(--pal-accent);
    color: var(--pal-0);
    padding: 0 0.35em;
    display: inline-block;
}

.mm-brutalist .mm-sub {
    color: var(--pal-1);
    max-width: 60%;
}

.mm-brutalist .mm-eyebrow {
    background: var(--pal-0);
    color: var(--pal-4);
    padding: 0.3rem 0.55rem;
    width: fit-content;
}

.mm-brutalist .mm-btn {
    background: var(--pal-0);
    color: var(--pal-4);
    border-radius: 0;
}

.mm-brutalist .mm-btn.ghost {
    border: 2px solid var(--pal-0);
    color: var(--pal-0);
    border-radius: 0;
}

.mm-brutalist .mm-footer {
    background: var(--pal-4);
    border-top: 2px solid var(--pal-0);
    color: var(--pal-0);
}

/* MINIMAL variant — huge white space, light serif */
.mm-minimal {
    background: var(--pal-4);
    color: var(--pal-0);
}

.mm-minimal .mm-nav {
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.mm-minimal .mm-logo,
.mm-minimal .mm-nav-links {
    color: var(--pal-0);
}

.mm-minimal .mm-hero {
    padding: 3rem 2.4rem;
    align-items: flex-start;
    justify-content: center;
}

.mm-minimal .mm-headline {
    font-size: clamp(1.6rem, 3.4vw, 3rem);
    max-width: 70%;
    color: var(--pal-0);
}

.mm-minimal .mm-headline em {
    color: var(--pal-2);
}

.mm-minimal .mm-sub {
    color: var(--pal-2);
    max-width: 50%;
}

.mm-minimal .mm-btn {
    background: var(--pal-0);
    color: var(--pal-4);
}

.mm-minimal .mm-footer {
    border-top: 1px solid rgba(0,0,0,0.08);
    color: var(--pal-2);
}

/* ORGANIC variant — soft, warm, curved frame */
.mm-organic {
    background:
        radial-gradient(ellipse at 20% 80%, var(--pal-3), transparent 60%),
        radial-gradient(ellipse at 80% 20%, var(--pal-accent), transparent 60%),
        var(--pal-1);
    color: var(--pal-4);
}

.mm-organic .mm-hero {
    padding: 2rem;
    position: relative;
}

.mm-organic .mm-hero::before {
    content: '';
    position: absolute;
    left: 8%;
    bottom: 10%;
    width: 35%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--pal-accent);
    opacity: 0.4;
    filter: blur(2px);
}

.mm-organic .mm-headline {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    max-width: 80%;
}

.mm-organic .mm-headline em {
    font-style: italic;
    color: var(--pal-accent);
}

.mm-organic .mm-btn {
    background: var(--pal-4);
    color: var(--pal-0);
    border-radius: 100px;
}

/* FUTURIST variant — grid, monospace, neon traces */
.mm-futurist {
    background:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px) top left / 100% 20px,
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px) top left / 20px 100%,
        var(--pal-0);
    color: var(--pal-4);
}

.mm-futurist .mm-headline {
    font-family: 'Syncopate', monospace;
    font-style: normal;
    font-weight: 400;
    font-size: clamp(1.4rem, 3vw, 2.4rem);
    text-transform: uppercase;
    letter-spacing: -0.01em;
    line-height: 1.02;
}

.mm-futurist .mm-headline em {
    font-style: normal;
    color: var(--pal-accent);
    text-shadow: 0 0 12px var(--pal-accent);
}

.mm-futurist .mm-eyebrow {
    border: 1px solid var(--pal-accent);
    padding: 0.25rem 0.55rem;
    border-radius: 2px;
    width: fit-content;
    color: var(--pal-accent);
}

.mm-futurist .mm-btn {
    background: transparent;
    color: var(--pal-accent);
    border: 1px solid var(--pal-accent);
    border-radius: 2px;
}

.mm-futurist .mm-btn.ghost {
    border-color: var(--pal-3);
    color: var(--pal-3);
}

.mm-futurist .mm-hero::after {
    content: '';
    position: absolute;
    top: 20%;
    right: 6%;
    width: 100px;
    height: 100px;
    border: 1px solid var(--pal-accent);
    opacity: 0.4;
    transform: rotate(45deg);
    box-shadow: inset 0 0 30px rgba(255,255,255,0.1);
}

/* ============================================================
   VISION STUDIO — Enhanced controls (textarea, tone, layout, segments)
   ============================================================ */

/* Brief textarea */
.vision-field textarea {
    width: 100%;
    min-height: 120px;
    padding: 1.1rem 1.2rem;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.55;
    transition: border-color 0.4s, background 0.4s;
    resize: vertical;
}

.vision-field textarea:focus {
    border-color: rgba(255,255,255,0.45);
    background: rgba(255, 255, 255, 0.045);
    outline: none;
}

.vs-counter {
    display: block;
    text-align: right;
    margin-top: 0.4rem;
    font-family: 'Syncopate', sans-serif;
    font-size: 0.55rem;
    letter-spacing: 0.22em;
    color: var(--text-faint);
}

.vs-opt {
    color: var(--text-faint);
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    font-weight: 400;
    margin-left: 0.5rem;
    text-transform: uppercase;
}

.vs-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.vs-row.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
    align-items: stretch;
}

.vs-row-label {
    flex: 0 0 auto;
    font-family: 'Syncopate', sans-serif;
    font-size: 0.6rem;
    letter-spacing: 0.22em;
    color: var(--text-soft);
    min-width: 130px;
}

.variant-row {
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
}

/* Tone chips — multi-select */
.tone-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.4rem;
}

.tone-chip {
    padding: 0.5rem 0.9rem;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--glass-border);
    color: var(--text-soft);
    font-family: 'Syncopate', sans-serif;
    font-size: 0.55rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.4s var(--ease-out);
}

.tone-chip:hover {
    color: #fff;
    border-color: rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.06);
}

.tone-chip.is-on {
    background: #fff;
    color: #000;
    border-color: #fff;
}

/* Segmented control */
.seg-control {
    display: inline-flex;
    background: rgba(255,255,255,0.025);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    padding: 4px;
    gap: 2px;
}

.seg {
    padding: 0.5rem 1.05rem;
    border-radius: 100px;
    background: transparent;
    color: var(--text-soft);
    font-family: 'Syncopate', sans-serif;
    font-size: 0.55rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.35s var(--ease-out);
}

.seg:hover { color: #fff; }

.seg.is-active {
    background: #fff;
    color: #000;
    box-shadow: 0 4px 14px -6px rgba(255,255,255,0.5);
}

/* Layout cards (which sections to include) */
.layout-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
}

.layout-card {
    position: relative;
    padding: 1.05rem 1.1rem;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    transition: background 0.4s, border-color 0.4s;
}

.layout-card input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 1;
}

.layout-card:hover {
    border-color: var(--line-bright);
    background: rgba(255,255,255,0.05);
}

.layout-card:has(input:checked) {
    border-color: rgba(255,255,255,0.7);
    background: rgba(255,255,255,0.06);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.55);
}

.layout-card.is-required {
    cursor: default;
    opacity: 0.85;
}

.layout-card.is-required input {
    cursor: default;
}

.lc-num {
    font-family: 'Syncopate', sans-serif;
    font-size: 0.55rem;
    letter-spacing: 0.25em;
    color: var(--text-faint);
}

.lc-name {
    font-family: 'Instrument Serif', serif;
    font-size: 1.2rem;
    color: #fff;
    line-height: 1;
}

.lc-desc {
    font-size: 0.74rem;
    color: var(--text-mute);
    line-height: 1.4;
}

/* New aesthetic preview cards */
.ac-cinematic {
    background:
        linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,0.75) 100%),
        radial-gradient(ellipse at 50% 60%, rgba(255,255,255,0.18), transparent 65%),
        linear-gradient(135deg, #0a0a0e, #050507);
    position: relative;
}

.ac-cinematic::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 18%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.7), transparent);
}

.ac-boutique {
    background:
        linear-gradient(135deg, #f4ecdd, #e8d4b8);
    position: relative;
}

.ac-boutique::after {
    content: '\201C\00A0Aa\00A0\201D';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-size: 1.8rem;
    color: #3a2e1f;
}

/* Custom palette card */
.palette-card.palette-custom {
    background:
        linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
}

.palette-card.palette-custom .pal-swatches {
    border: 1px dashed var(--line-bright);
}

.pal-edit-cue {
    font-family: 'Syncopate', sans-serif;
    font-size: 0.5rem;
    letter-spacing: 0.22em;
    color: var(--text-faint);
    margin-left: 0.5rem;
    text-transform: uppercase;
}

/* Custom palette editor */
.palette-editor {
    margin-top: 1.2rem;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

.pe-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.9rem;
}

.pe-hint {
    font-family: 'Syncopate', sans-serif;
    font-size: 0.55rem;
    letter-spacing: 0.22em;
    color: var(--text-faint);
    text-transform: uppercase;
}

.pe-stage {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.6rem;
}

.pe-swatch {
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.5rem;
    border-radius: 10px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--glass-border);
    transition: border-color 0.3s, background 0.3s;
}

.pe-swatch:hover {
    border-color: var(--line-bright);
    background: rgba(255,255,255,0.05);
}

.pe-swatch input[type="color"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    border: 0;
    padding: 0;
}

.pe-chip {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 6px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

.pe-label {
    font-family: 'Syncopate', sans-serif;
    font-size: 0.5rem;
    letter-spacing: 0.2em;
    color: var(--text-mute);
    text-transform: uppercase;
}

.pe-hex {
    font-family: 'Inter', sans-serif;
    font-size: 0.66rem;
    color: var(--text-soft);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.pe-presets {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
}

.pe-presets-label {
    font-family: 'Syncopate', sans-serif;
    font-size: 0.55rem;
    letter-spacing: 0.22em;
    color: var(--text-faint);
    margin-right: 0.4rem;
    text-transform: uppercase;
}

.pe-preset {
    padding: 0.45rem 0.85rem;
    border-radius: 100px;
    border: 1px solid var(--glass-border);
    background: transparent;
    color: var(--text-soft);
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.35s var(--ease-out);
}

.pe-preset:hover {
    color: #fff;
    background: rgba(255,255,255,0.05);
    border-color: var(--line-bright);
}

/* Lock-palette toggle — forces AI to use exact hex values */
.pe-lock {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.2rem;
    margin-top: 1rem;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--line);
    border-radius: 14px;
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s;
}
.pe-lock:hover { background: rgba(255,255,255,0.04); border-color: var(--line-bright); }
.pe-lock input { width: 18px; height: 18px; accent-color: #8896ff; cursor: pointer; }
.pe-lock.is-locked { border-color: rgba(140,170,255,0.45); background: rgba(140,170,255,0.05); }
.pe-lock.is-locked .pe-lock-icon { color: #9fb6ff; }
.pe-lock-visual { display: flex; align-items: center; gap: 0.75rem; flex: 1; }
.pe-lock-icon { color: var(--text-mute); transition: color 0.3s; flex-shrink: 0; }
.pe-lock-text { display: flex; flex-direction: column; gap: 0.2rem; }
.pe-lock-text strong {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    color: #fff;
    letter-spacing: 0.01em;
}
.pe-lock-text em {
    font-style: normal;
    font-size: 0.7rem;
    color: var(--text-mute);
    line-height: 1.4;
}

/* ============================================================
   LAYOUT STYLE CHIPS — 6 distinct compositions the user picks
   ============================================================ */
.layout-style-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
    margin-bottom: 1.5rem;
}
@media (max-width: 720px) {
    .layout-style-grid { grid-template-columns: repeat(2, 1fr); }
}

.ls-chip {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    padding: 0.7rem 0.8rem 0.75rem;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--line);
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s, transform 0.3s;
    text-align: left;
    font: inherit;
}
.ls-chip:hover {
    background: rgba(255,255,255,0.04);
    border-color: var(--line-bright);
    transform: translateY(-2px);
}
.ls-chip.is-selected {
    background: rgba(140,170,255,0.06);
    border-color: rgba(140,170,255,0.55);
    box-shadow: 0 0 0 3px rgba(140,170,255,0.1);
}

.ls-chip-preview {
    width: 100%;
    height: 68px;
    flex-shrink: 0;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(255,255,255,0.015);
    display: flex;
    gap: 3px;
    padding: 8px;
    margin-bottom: 0.25rem;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
}
.ls-chip.is-selected .ls-chip-preview { border-color: rgba(140,170,255,0.4); }

/* Editorial preview — 3 big serif-style bars */
.ls-preview-editorial { flex-direction: column; justify-content: center; }
.ls-preview-editorial .lsp-bar {
    height: 6px;
    background: rgba(255,255,255,0.7);
    border-radius: 2px;
    margin-bottom: 3px;
}
.ls-preview-editorial .lsp-bar-1 { width: 75%; }
.ls-preview-editorial .lsp-bar-2 { width: 55%; }
.ls-preview-editorial .lsp-bar-3 { width: 40%; height: 3px; background: rgba(255,255,255,0.35); }

/* Minimal preview — dot + two lines */
.ls-preview-minimal { flex-direction: column; justify-content: center; gap: 6px; }
.ls-preview-minimal .lsp-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: rgba(255,255,255,0.9);
}
.ls-preview-minimal .lsp-line {
    width: 60%; height: 3px; background: rgba(255,255,255,0.35); border-radius: 2px;
}
.ls-preview-minimal .lsp-line.short { width: 35%; }

/* Bold preview — two blocks with strong accent */
.ls-preview-bold { gap: 6px; align-items: stretch; }
.ls-preview-bold .lsp-block {
    flex: 1; background: rgba(255,255,255,0.7); border-radius: 4px;
}
.ls-preview-bold .lsp-block.lsp-accent {
    flex: 0.45; background: linear-gradient(135deg, #ff6b35, #e83e8c);
}

/* Grid preview — 3x2 */
.ls-preview-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 3px;
}
.ls-preview-grid span { background: rgba(255,255,255,0.4); border-radius: 3px; }
.ls-preview-grid span:nth-child(2n) { background: rgba(255,255,255,0.22); }

/* Magazine preview — two columns */
.ls-preview-magazine { flex-direction: row; gap: 6px; }
.ls-preview-magazine .lsp-col {
    flex: 1; background: repeating-linear-gradient(
        to bottom,
        rgba(255,255,255,0.5) 0, rgba(255,255,255,0.5) 2px,
        transparent 2px, transparent 5px
    ); border-radius: 3px;
}

/* Ecom preview — three product cards with price tags */
.ls-preview-ecom { gap: 5px; }
.ls-preview-ecom .lsp-price {
    flex: 1;
    background: rgba(255,255,255,0.35);
    border-radius: 4px;
    position: relative;
}
.ls-preview-ecom .lsp-price::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 4px;
    width: 12px;
    height: 3px;
    background: rgba(255,255,255,0.85);
    border-radius: 1px;
}

.ls-chip-name {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.82rem;
    color: #fff;
    letter-spacing: -0.01em;
}
.ls-chip-desc {
    font-family: 'Inter', sans-serif;
    font-size: 0.68rem;
    color: var(--text-mute);
    line-height: 1.3;
}

/* ============================================================
   AI THINKING — generation overlay
   ============================================================ */
.ai-thinking {
    width: 100%;
    max-width: 920px;
    aspect-ratio: 16/10;
    border-radius: 18px;
    background:
        radial-gradient(ellipse at 50% 30%, rgba(255,255,255,0.04), transparent 60%),
        linear-gradient(135deg, #0a0a14, #050508);
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.ai-thinking::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 600px 200px at 50% 50%, rgba(168, 216, 255, 0.10), transparent 70%),
        radial-gradient(ellipse 500px 200px at 30% 30%, rgba(201, 168, 255, 0.07), transparent 70%);
    animation: ai-bg-drift 8s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes ai-bg-drift {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(2%, -3%) scale(1.1); }
}

.ai-thinking[hidden] {
    display: none;
}

/* The AI orb — animated rings around a central core */
.ai-orb {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-orb-core {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 30%, #fff, #e7e7ee 50%, #c0c0d0 100%);
    box-shadow:
        0 0 18px rgba(255, 255, 255, 0.7),
        0 0 40px rgba(168, 216, 255, 0.4),
        0 0 70px rgba(201, 168, 255, 0.3);
    animation: ai-core-pulse 1.6s ease-in-out infinite;
    z-index: 2;
}

@keyframes ai-core-pulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.18); }
}

.ai-orb-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.4);
    animation: ai-ring-out 2.4s ease-out infinite;
    opacity: 0;
}

.ai-orb-ring.delay-1 { animation-delay: 0.6s; border-color: rgba(168, 216, 255, 0.45); }
.ai-orb-ring.delay-2 { animation-delay: 1.2s; border-color: rgba(201, 168, 255, 0.45); }

@keyframes ai-ring-out {
    0%   { transform: scale(0.45); opacity: 0.85; }
    100% { transform: scale(1.6);  opacity: 0; }
}

.ai-status {
    font-family: 'Instrument Serif', serif;
    font-size: 1.6rem;
    color: #fff;
    text-align: center;
    line-height: 1.2;
    min-height: 1.6em;
    letter-spacing: -0.01em;
}

.ai-progress {
    width: 220px;
    height: 2px;
    border-radius: 100px;
    background: rgba(255,255,255,0.08);
    overflow: hidden;
    position: relative;
}

.ai-progress span {
    display: block;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, rgba(255,255,255,0.5), #fff);
    transition: width 0.7s var(--ease-out);
    box-shadow: 0 0 6px rgba(255,255,255,0.5);
}

.ai-checklist {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0;
    margin: 0;
    width: min(360px, 88%);
}

.ai-checklist li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-family: 'Syncopate', sans-serif;
    font-size: 0.58rem;
    letter-spacing: 0.22em;
    color: var(--text-faint);
    text-transform: uppercase;
    transition: color 0.4s;
}

.ai-checklist li::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid var(--text-faint);
    transition: all 0.4s var(--ease-out);
    flex-shrink: 0;
}

.ai-checklist li.is-doing {
    color: #fff;
}

.ai-checklist li.is-doing::before {
    background: #fff;
    border-color: #fff;
    box-shadow: 0 0 12px rgba(255,255,255,0.7);
    animation: ai-li-pulse 1.4s ease-in-out infinite;
}

.ai-checklist li.is-done {
    color: var(--text-soft);
}

.ai-checklist li.is-done::before {
    background: rgba(255,255,255,0.4);
    border-color: rgba(255,255,255,0.4);
}

@keyframes ai-li-pulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.35); }
}

/* Reveal actions (regenerate / tweak) */
.reveal-actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.7rem;
    justify-content: center;
}

.reveal-actions[hidden] {
    display: none;
}

.reveal-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.7rem 1.2rem;
    border-radius: 100px;
    border: 1px solid var(--glass-border);
    background: rgba(255,255,255,0.025);
    color: var(--text-soft);
    font-family: 'Syncopate', sans-serif;
    font-size: 0.58rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.4s var(--ease-out);
}

.reveal-btn:hover {
    color: #fff;
    border-color: var(--line-bright);
    background: rgba(255,255,255,0.06);
}

.reveal-btn svg {
    flex-shrink: 0;
}

/* ============================================================
   MULTI-SECTION MOCKUP (full homepage scroll)
   The .mini-mockup root carries palette + aesthetic classes.
   Sections are stacked: .ms-nav, .ms-hero, .ms-features, .ms-showcase,
   .ms-grid, .ms-quote, .ms-cta, .ms-footer.
   ============================================================ */
.mini-mockup .mock-page {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: var(--pal-0);
    color: var(--pal-4);
}

/* Shared section padding */
.mock-section {
    padding: 2.4rem 2.2rem;
    position: relative;
}

/* Top nav */
.ms-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.8rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.ms-nav .logo {
    font-family: 'Syncopate', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    color: var(--pal-4);
}

.ms-nav .links {
    display: flex;
    gap: 1.1rem;
    font-size: 0.7rem;
    color: var(--pal-3);
}

.ms-nav .nav-cta {
    font-size: 0.62rem;
    padding: 0.35rem 0.85rem;
    border: 1px solid var(--pal-3);
    border-radius: 100px;
    color: var(--pal-4);
}

/* Hero */
.ms-hero {
    padding: 3rem 2.2rem 3.4rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    min-height: 380px;
    justify-content: center;
}

.ms-hero .eyebrow {
    font-family: 'Syncopate', sans-serif;
    font-size: 0.55rem;
    letter-spacing: 0.28em;
    color: var(--pal-2);
    text-transform: uppercase;
}

.ms-hero .headline {
    font-family: 'Instrument Serif', serif;
    font-weight: 400;
    font-size: clamp(2rem, 4.4vw, 3.8rem);
    line-height: 1.02;
    color: var(--pal-4);
    letter-spacing: -0.02em;
    max-width: 88%;
}

.ms-hero .headline em {
    font-style: italic;
    color: var(--pal-accent);
}

.ms-hero .sub {
    font-size: 0.92rem;
    color: var(--pal-3);
    max-width: 60%;
    line-height: 1.55;
}

.ms-hero .cta-row {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.6rem;
}

.ms-hero .btn {
    font-family: 'Syncopate', sans-serif;
    font-size: 0.58rem;
    letter-spacing: 0.22em;
    padding: 0.6rem 1.05rem;
    border-radius: 100px;
    background: var(--pal-4);
    color: var(--pal-0);
    text-transform: uppercase;
}

.ms-hero .btn.ghost {
    background: transparent;
    border: 1px solid var(--pal-3);
    color: var(--pal-4);
}

/* Features */
.ms-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 2.4rem 2.2rem;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.ms-features .feat {
    padding: 1.2rem;
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.ms-features .feat .num {
    font-family: 'Syncopate', sans-serif;
    font-size: 0.55rem;
    letter-spacing: 0.25em;
    color: var(--pal-2);
}

.ms-features .feat .title {
    font-family: 'Instrument Serif', serif;
    font-size: 1.05rem;
    color: var(--pal-4);
    line-height: 1.15;
}

.ms-features .feat .body {
    font-size: 0.74rem;
    color: var(--pal-3);
    line-height: 1.5;
}

/* Showcase (signature product or moment) */
.ms-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    padding: 3rem 2.2rem;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.ms-showcase .body {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.ms-showcase .label {
    font-family: 'Syncopate', sans-serif;
    font-size: 0.55rem;
    letter-spacing: 0.25em;
    color: var(--pal-2);
    text-transform: uppercase;
}

.ms-showcase .title {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(1.4rem, 2.6vw, 2rem);
    line-height: 1.05;
    color: var(--pal-4);
}

.ms-showcase .desc {
    font-size: 0.84rem;
    color: var(--pal-3);
    line-height: 1.55;
}

.ms-showcase .img {
    aspect-ratio: 4/5;
    border-radius: 12px;
    background:
        radial-gradient(ellipse at 35% 35%, rgba(255,255,255,0.18), transparent 60%),
        linear-gradient(135deg, var(--pal-2), var(--pal-1));
    position: relative;
    overflow: hidden;
}

.ms-showcase .img::after {
    content: '';
    position: absolute;
    inset: 30% 30%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.2), transparent 60%);
    filter: blur(10px);
}

/* Grid (gallery) */
.ms-grid {
    padding: 2.6rem 2.2rem;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.ms-grid .head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 1rem;
}

.ms-grid .head .label {
    font-family: 'Syncopate', sans-serif;
    font-size: 0.55rem;
    letter-spacing: 0.25em;
    color: var(--pal-2);
}

.ms-grid .head .title {
    font-family: 'Instrument Serif', serif;
    font-size: 1.2rem;
    color: var(--pal-4);
}

.ms-grid .cells {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.6rem;
}

.ms-grid .cell {
    aspect-ratio: 4/5;
    border-radius: 10px;
    background:
        linear-gradient(135deg, var(--pal-2), var(--pal-1));
    position: relative;
    overflow: hidden;
}

.ms-grid .cell:nth-child(2n) {
    background: linear-gradient(135deg, var(--pal-3), var(--pal-2));
}

.ms-grid .cell:nth-child(3n) {
    background: linear-gradient(135deg, var(--pal-1), var(--pal-accent));
}

.ms-grid .cell::after {
    content: '';
    position: absolute;
    inset: 25% 25%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.15), transparent 65%);
    filter: blur(8px);
}

/* Pull quote */
.ms-quote {
    padding: 3rem 2.2rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    text-align: center;
}

.ms-quote .quote {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-size: clamp(1.3rem, 2.4vw, 1.9rem);
    line-height: 1.3;
    color: var(--pal-4);
    max-width: 80%;
    margin: 0 auto 1rem;
}

.ms-quote .attrib {
    font-family: 'Syncopate', sans-serif;
    font-size: 0.6rem;
    letter-spacing: 0.25em;
    color: var(--pal-2);
}

/* CTA */
.ms-cta {
    padding: 3rem 2.2rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    text-align: center;
}

.ms-cta .title {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(1.6rem, 3.2vw, 2.5rem);
    line-height: 1.05;
    color: var(--pal-4);
    margin-bottom: 0.6rem;
}

.ms-cta .title em {
    font-style: italic;
    color: var(--pal-accent);
}

.ms-cta .sub {
    font-size: 0.86rem;
    color: var(--pal-3);
    margin-bottom: 1.2rem;
    max-width: 60%;
    margin-left: auto;
    margin-right: auto;
}

.ms-cta .btn {
    font-family: 'Syncopate', sans-serif;
    font-size: 0.58rem;
    letter-spacing: 0.22em;
    padding: 0.7rem 1.4rem;
    border-radius: 100px;
    background: var(--pal-4);
    color: var(--pal-0);
    text-transform: uppercase;
    display: inline-block;
}

/* Footer */
.ms-footer {
    padding: 1rem 1.8rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Syncopate', sans-serif;
    font-size: 0.5rem;
    letter-spacing: 0.22em;
    color: var(--pal-2);
}

/* ============================================================
   AESTHETIC OVERRIDES — apply to .mock-page when carrying .mm-* class
   These tune the base above into 8 distinct visual languages.
   ============================================================ */

/* EDITORIAL — column rules, tall serif, generous side margins */
.mm-editorial.mock-page .ms-hero {
    border-left: 2px solid var(--pal-accent);
}

.mm-editorial.mock-page .ms-hero .headline {
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    max-width: 80%;
}

.mm-editorial.mock-page .ms-features .feat {
    border-left: 2px solid var(--pal-accent);
    border-radius: 0;
    background: transparent;
}

/* LUMINOUS — soft glass cards, glow, prismatic edges */
.mm-luminous.mock-page {
    background:
        radial-gradient(ellipse at 30% 20%, rgba(255,255,255,0.10), transparent 60%),
        radial-gradient(ellipse at 70% 80%, rgba(255,255,255,0.07), transparent 60%),
        var(--pal-0);
}

.mm-luminous.mock-page .ms-hero {
    text-align: center;
    align-items: center;
}

.mm-luminous.mock-page .ms-hero .headline,
.mm-luminous.mock-page .ms-hero .sub {
    max-width: 76%;
}

.mm-luminous.mock-page .ms-features .feat,
.mm-luminous.mock-page .ms-showcase .img {
    backdrop-filter: blur(20px);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02));
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
}

/* BRUTALIST — flat, hard, light bg, mono headline */
.mm-brutalist.mock-page {
    background: var(--pal-4);
    color: var(--pal-0);
}

.mm-brutalist.mock-page .ms-nav,
.mm-brutalist.mock-page .ms-features,
.mm-brutalist.mock-page .ms-showcase,
.mm-brutalist.mock-page .ms-grid,
.mm-brutalist.mock-page .ms-quote,
.mm-brutalist.mock-page .ms-cta,
.mm-brutalist.mock-page .ms-footer {
    border-color: var(--pal-0);
    border-width: 2px;
}

.mm-brutalist.mock-page .ms-nav .logo,
.mm-brutalist.mock-page .ms-nav .links { color: var(--pal-0); }

.mm-brutalist.mock-page .ms-hero .headline {
    font-family: 'Syncopate', sans-serif;
    font-style: normal;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.005em;
    line-height: 0.95;
    color: var(--pal-0);
}

.mm-brutalist.mock-page .ms-hero .headline em {
    font-style: normal;
    background: var(--pal-accent);
    color: var(--pal-0);
    padding: 0 0.25em;
}

.mm-brutalist.mock-page .ms-hero .sub,
.mm-brutalist.mock-page .ms-features .feat .body,
.mm-brutalist.mock-page .ms-showcase .desc {
    color: var(--pal-1);
}

.mm-brutalist.mock-page .ms-hero .eyebrow,
.mm-brutalist.mock-page .ms-features .feat .num,
.mm-brutalist.mock-page .ms-showcase .label,
.mm-brutalist.mock-page .ms-grid .head .label {
    background: var(--pal-0);
    color: var(--pal-4);
    padding: 0.25rem 0.5rem;
    width: fit-content;
}

.mm-brutalist.mock-page .ms-features .feat,
.mm-brutalist.mock-page .ms-grid .cell,
.mm-brutalist.mock-page .ms-showcase .img {
    border-radius: 0;
    border: 2px solid var(--pal-0);
    background: var(--pal-3);
}

.mm-brutalist.mock-page .ms-features .feat .title,
.mm-brutalist.mock-page .ms-showcase .title,
.mm-brutalist.mock-page .ms-cta .title,
.mm-brutalist.mock-page .ms-quote .quote {
    color: var(--pal-0);
}

.mm-brutalist.mock-page .ms-cta .title em {
    font-style: normal;
    background: var(--pal-accent);
    color: var(--pal-0);
    padding: 0 0.25em;
}

.mm-brutalist.mock-page .ms-hero .btn,
.mm-brutalist.mock-page .ms-cta .btn {
    background: var(--pal-0);
    color: var(--pal-4);
    border-radius: 0;
}

/* MINIMAL — light bg, huge margins, almost nothing */
.mm-minimal.mock-page {
    background: var(--pal-4);
    color: var(--pal-0);
}

.mm-minimal.mock-page .ms-nav,
.mm-minimal.mock-page .ms-features,
.mm-minimal.mock-page .ms-showcase,
.mm-minimal.mock-page .ms-grid,
.mm-minimal.mock-page .ms-quote,
.mm-minimal.mock-page .ms-cta,
.mm-minimal.mock-page .ms-footer {
    border-color: rgba(0,0,0,0.06);
}

.mm-minimal.mock-page .ms-nav .logo,
.mm-minimal.mock-page .ms-nav .links,
.mm-minimal.mock-page .ms-hero .headline,
.mm-minimal.mock-page .ms-features .feat .title,
.mm-minimal.mock-page .ms-showcase .title,
.mm-minimal.mock-page .ms-quote .quote,
.mm-minimal.mock-page .ms-cta .title,
.mm-minimal.mock-page .ms-grid .head .title { color: var(--pal-0); }

.mm-minimal.mock-page .ms-hero .headline em {
    color: var(--pal-2);
}

.mm-minimal.mock-page .ms-hero .sub,
.mm-minimal.mock-page .ms-features .feat .body,
.mm-minimal.mock-page .ms-showcase .desc,
.mm-minimal.mock-page .ms-cta .sub { color: var(--pal-2); }

.mm-minimal.mock-page .ms-features .feat,
.mm-minimal.mock-page .ms-showcase .img {
    background: rgba(0,0,0,0.02);
    border: 1px solid rgba(0,0,0,0.06);
}

.mm-minimal.mock-page .ms-grid .cell {
    background: linear-gradient(135deg, var(--pal-3), var(--pal-2));
    opacity: 0.9;
}

.mm-minimal.mock-page .ms-hero .btn,
.mm-minimal.mock-page .ms-cta .btn {
    background: var(--pal-0);
    color: var(--pal-4);
}

/* ORGANIC — soft, tactile, curved */
.mm-organic.mock-page {
    background:
        radial-gradient(ellipse at 20% 80%, var(--pal-3), transparent 65%),
        radial-gradient(ellipse at 80% 20%, var(--pal-accent), transparent 65%),
        var(--pal-1);
    color: var(--pal-4);
}

.mm-organic.mock-page .ms-features .feat,
.mm-organic.mock-page .ms-showcase .img,
.mm-organic.mock-page .ms-grid .cell {
    border-radius: 24px;
}

.mm-organic.mock-page .ms-hero .headline {
    font-style: italic;
}

/* FUTURIST — mono, grid, neon traces */
.mm-futurist.mock-page {
    background:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px) top left / 100% 24px,
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px) top left / 24px 100%,
        var(--pal-0);
}

.mm-futurist.mock-page .ms-hero .headline,
.mm-futurist.mock-page .ms-features .feat .title,
.mm-futurist.mock-page .ms-cta .title {
    font-family: 'Syncopate', sans-serif;
    font-style: normal;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: -0.005em;
}

.mm-futurist.mock-page .ms-hero .headline em {
    font-style: normal;
    color: var(--pal-accent);
    text-shadow: 0 0 16px var(--pal-accent);
}

.mm-futurist.mock-page .ms-hero .eyebrow,
.mm-futurist.mock-page .ms-features .feat .num,
.mm-futurist.mock-page .ms-showcase .label,
.mm-futurist.mock-page .ms-grid .head .label {
    border: 1px solid var(--pal-accent);
    border-radius: 2px;
    color: var(--pal-accent);
    padding: 0.25rem 0.5rem;
    width: fit-content;
}

.mm-futurist.mock-page .ms-features .feat,
.mm-futurist.mock-page .ms-grid .cell,
.mm-futurist.mock-page .ms-showcase .img {
    border-radius: 2px;
    border: 1px solid rgba(255,255,255,0.1);
}

.mm-futurist.mock-page .ms-hero .btn,
.mm-futurist.mock-page .ms-cta .btn {
    border-radius: 2px;
    background: transparent;
    border: 1px solid var(--pal-accent);
    color: var(--pal-accent);
}

/* CINEMATIC — wide, deep blacks, slow */
.mm-cinematic.mock-page {
    background:
        radial-gradient(ellipse at 50% 10%, rgba(255,255,255,0.06), transparent 60%),
        linear-gradient(180deg, #050505 0%, #0a0a0a 100%);
}

.mm-cinematic.mock-page .ms-hero {
    min-height: 460px;
    text-align: center;
    align-items: center;
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
}

.mm-cinematic.mock-page .ms-hero::after {
    content: '';
    position: absolute;
    left: 12%;
    right: 12%;
    bottom: 28%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
}

.mm-cinematic.mock-page .ms-hero .headline {
    font-size: clamp(2.4rem, 5.4vw, 4.6rem);
    max-width: 78%;
}

.mm-cinematic.mock-page .ms-hero .sub {
    max-width: 60%;
}

.mm-cinematic.mock-page .ms-features { background: rgba(255,255,255,0.02); }

/* BOUTIQUE — refined, soft serif, gallery-first */
.mm-boutique.mock-page {
    background:
        linear-gradient(180deg, var(--pal-4) 0%, var(--pal-3) 100%);
    color: var(--pal-0);
}

.mm-boutique.mock-page .ms-nav,
.mm-boutique.mock-page .ms-features,
.mm-boutique.mock-page .ms-showcase,
.mm-boutique.mock-page .ms-grid,
.mm-boutique.mock-page .ms-quote,
.mm-boutique.mock-page .ms-cta,
.mm-boutique.mock-page .ms-footer { border-color: rgba(0,0,0,0.08); }

.mm-boutique.mock-page .ms-nav .logo,
.mm-boutique.mock-page .ms-nav .links,
.mm-boutique.mock-page .ms-hero .headline,
.mm-boutique.mock-page .ms-features .feat .title,
.mm-boutique.mock-page .ms-showcase .title,
.mm-boutique.mock-page .ms-quote .quote,
.mm-boutique.mock-page .ms-cta .title,
.mm-boutique.mock-page .ms-grid .head .title { color: var(--pal-0); }

.mm-boutique.mock-page .ms-hero .headline {
    font-style: italic;
}

.mm-boutique.mock-page .ms-hero .sub,
.mm-boutique.mock-page .ms-features .feat .body,
.mm-boutique.mock-page .ms-showcase .desc,
.mm-boutique.mock-page .ms-cta .sub { color: var(--pal-1); }

.mm-boutique.mock-page .ms-hero .btn,
.mm-boutique.mock-page .ms-cta .btn {
    background: var(--pal-0);
    color: var(--pal-4);
}

.mm-boutique.mock-page .ms-features .feat,
.mm-boutique.mock-page .ms-grid .cell,
.mm-boutique.mock-page .ms-showcase .img {
    background: rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 6px;
}

/* DENSITY MODIFIERS (set on .mock-page) */
.mock-page.density-airy .mock-section { padding-top: 3.4rem; padding-bottom: 3.4rem; }
.mock-page.density-airy .ms-hero { padding-top: 4.4rem; padding-bottom: 4.4rem; min-height: 460px; }
.mock-page.density-dense .mock-section { padding-top: 1.6rem; padding-bottom: 1.6rem; }
.mock-page.density-dense .ms-hero { padding-top: 2rem; padding-bottom: 2rem; min-height: 280px; }
.mock-page.density-dense .ms-hero .headline { font-size: clamp(1.8rem, 3.6vw, 3rem); }

/* WEIGHT MODIFIERS (typography choice) */
.mock-page.weight-sans .ms-hero .headline,
.mock-page.weight-sans .ms-features .feat .title,
.mock-page.weight-sans .ms-showcase .title,
.mock-page.weight-sans .ms-cta .title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: -0.025em;
    font-style: normal;
}

.mock-page.weight-sans .ms-hero .headline em {
    font-style: italic;
}

.mock-page.weight-serif .ms-features .feat .title,
.mock-page.weight-serif .ms-showcase .title {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
}

/* ============================================================
   MISSING CORE STYLES — Hero, Pricing, Cursor, Animations
   ============================================================ */

/* ---- HERO SECTION ---- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 12rem 4% 8rem;
    overflow: hidden;
}

.hero-ambient {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.hero-3d-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle,
        rgba(61, 139, 255, 0.12) 0%,
        rgba(156, 92, 255, 0.08) 30%,
        transparent 70%);
    filter: blur(60px);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2.5rem;
}

.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Syncopate', sans-serif;
    font-size: 0.6rem;
    letter-spacing: 0.3em;
    color: var(--text-soft);
}

.eyebrow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--p-mint);
    box-shadow: 0 0 10px var(--p-mint);
    animation: dot-pulse 2s ease-in-out infinite;
}

.eyebrow-text {
    color: var(--text-soft);
}

.eyebrow-divider {
    width: 24px;
    height: 1px;
    background: var(--line-bright);
}

.eyebrow-tag {
    color: var(--text-mute);
}

.hero-title {
    font-family: 'Instrument Serif', serif;
    font-weight: 400;
    font-size: clamp(4rem, 10vw, 10rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: #fff;
    margin-bottom: 2rem;
}

.hero-title .line {
    display: block;
    overflow: hidden;
    padding-bottom: 0.25em;
    margin-bottom: -0.25em;
}

.hero-title .line-inner {
    display: block;
}

.hero-title em {
    font-style: italic;
}

.hero-sub {
    max-width: 680px;
    font-size: 1.25rem;
    line-height: 1.5;
    color: var(--text-soft);
    margin-bottom: 2.5rem;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 0.5rem;
}

/* ---- CURSOR DOT ---- */
.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: width 0.4s var(--ease-out),
                height 0.4s var(--ease-out),
                background 0.4s;
    will-change: transform;
}

.cursor-dot.is-hover {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
    mix-blend-mode: normal;
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-left: -16px;
    margin-top: -16px;
}

/* ---- CURSOR PORTAL (ambient glow follow) ---- */
.cursor-portal {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle,
        rgba(156, 92, 255, 0.06) 0%,
        rgba(61, 139, 255, 0.03) 40%,
        transparent 70%);
    pointer-events: none;
    z-index: 1;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 1s ease;
    will-change: left, top;
}

.cursor-portal.is-active {
    opacity: 1;
}

/* ---- DOT PULSE ANIMATION ---- */
@keyframes dot-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

/* ---- PRICING SECTION ---- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: stretch;
}

.pricing-card {
    position: relative;
    background: var(--glass);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: all 0.6s var(--ease-out);
    overflow: hidden;
}

.pricing-card:hover {
    background: var(--glass-strong);
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.6);
}

.pricing-card.featured {
    background: rgba(61, 139, 255, 0.04);
    border-color: rgba(61, 139, 255, 0.3);
    box-shadow: 
        0 0 40px -10px rgba(61, 139, 255, 0.15),
        0 30px 60px -20px rgba(0, 0, 0, 0.5);
}

.pricing-card.featured::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: conic-gradient(from var(--angle, 0deg),
        transparent 0deg,
        var(--ai-blue) 60deg,
        var(--ai-purple) 120deg,
        var(--ai-pink) 180deg,
        var(--ai-orange) 240deg,
        var(--ai-mint) 300deg,
        transparent 360deg);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.5;
    animation: halo-rotate 10s linear infinite;
    pointer-events: none;
}

.pc-tag {
    position: absolute;
    top: -1px;
    left: 2rem;
    padding: 0.45rem 1.2rem;
    background: var(--ai-blue);
    color: #fff;
    font-family: 'Syncopate', sans-serif;
    font-size: 0.5rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 4px 16px rgba(61, 139, 255, 0.3);
}

.pc-head {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pc-head h3 {
    font-family: 'Instrument Serif', serif;
    font-weight: 400;
    font-size: 2rem;
    line-height: 1;
    letter-spacing: -0.02em;
    color: #fff;
}

.pc-head p {
    color: var(--text-soft);
    font-size: 0.92rem;
    line-height: 1.5;
}

.pc-price {
    display: flex;
    align-items: baseline;
    gap: 0.15rem;
    padding: 1rem 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.pc-currency {
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--text-soft);
    line-height: 1;
}

.pc-amount {
    font-family: 'Instrument Serif', serif;
    font-size: 3.2rem;
    font-weight: 400;
    line-height: 1;
    color: #fff;
    letter-spacing: -0.03em;
}

.pc-plus {
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--ai-purple);
    margin-left: 0.2rem;
}

.pc-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: auto;
}

.pc-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.92rem;
    color: var(--text-soft);
}

.pc-features li::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--ai-mint);
    box-shadow: 0 0 8px var(--ai-mint);
    flex-shrink: 0;
}

/* ---- BUTTON UTILITIES ---- */
.btn-full {
    width: 100%;
    justify-content: center;
}

.btn-label-wrap {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.btn-label-alt {
    position: absolute;
    top: 100%;
    left: 0;
    transition: transform 0.5s var(--ease-out);
}

.btn:hover .btn-label {
    transform: translateY(-100%);
    transition: transform 0.5s var(--ease-out);
}

.btn:hover .btn-label-alt {
    transform: translateY(-100%);
}

.btn-label {
    transition: transform 0.5s var(--ease-out);
}

/* ---- REVEAL ACTIONS (Vision Studio) ---- */
.reveal-actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 0.5rem;
}

.reveal-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    color: var(--text-soft);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.4s var(--ease-out);
}

.reveal-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--line-bright);
    color: #fff;
    transform: translateY(-1px);
}

/* ---- AI THINKING ANIMATION ---- */
.ai-thinking {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    min-height: 400px;
    padding: 3rem;
}

.ai-orb {
    position: relative;
    width: 80px;
    height: 80px;
}

.ai-orb-core {
    position: absolute;
    inset: 25%;
    border-radius: 50%;
    background: var(--rainbow);
    background-size: 200% 200%;
    animation: rainbow-flow 4s linear infinite, ai-core-pulse 2s ease-in-out infinite;
    filter: blur(1px);
}

@keyframes ai-core-pulse {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.15); opacity: 1; }
}

.ai-orb-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(156, 92, 255, 0.3);
    animation: ai-ring-expand 2.4s ease-out infinite;
}

.ai-orb-ring.delay-1 { animation-delay: 0.8s; }
.ai-orb-ring.delay-2 { animation-delay: 1.6s; }

@keyframes ai-ring-expand {
    0% { transform: scale(0.5); opacity: 1; }
    100% { transform: scale(2.5); opacity: 0; }
}

.ai-status {
    font-family: 'Syncopate', sans-serif;
    font-size: 0.6rem;
    letter-spacing: 0.25em;
    color: var(--text-soft);
    text-transform: uppercase;
}

.ai-progress {
    width: 200px;
    height: 2px;
    background: var(--line);
    border-radius: 100px;
    overflow: hidden;
}

.ai-progress span {
    display: block;
    height: 100%;
    width: 0%;
    background: var(--rainbow);
    background-size: 200% 100%;
    animation: rainbow-flow 3s linear infinite;
    transition: width 0.6s var(--ease-out);
    border-radius: 100px;
}

.ai-checklist {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    font-size: 0.8rem;
    color: var(--text-mute);
}

.ai-checklist li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: color 0.4s;
}

.ai-checklist li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--line-bright);
    transition: background 0.4s, box-shadow 0.4s;
}

.ai-checklist li.is-done {
    color: var(--text-soft);
}

.ai-checklist li.is-done::before {
    background: var(--ai-mint);
    box-shadow: 0 0 8px var(--ai-mint);
}

.ai-checklist li.is-active {
    color: #fff;
}

.ai-checklist li.is-active::before {
    background: var(--ai-blue);
    box-shadow: 0 0 10px var(--ai-blue);
    animation: dot-pulse 1.2s ease-in-out infinite;
}

/* ---- FORM SUBMIT SENT STATE ---- */
.btn.is-sent {
    background: var(--ai-mint) !important;
    color: #000 !important;
    border-color: var(--ai-mint) !important;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
    .process-grid { grid-template-columns: repeat(2, 1fr); }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .service-card.wide { grid-column: span 2; }
    .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
    .capability-grid { grid-template-columns: repeat(3, 1fr); }
    .pricing-grid { grid-template-columns: repeat(2, 1fr); max-width: 900px; margin: 0 auto; }
}

@media (max-width: 992px) {
    .pricing-grid { grid-template-columns: 1fr; max-width: 500px; }
    .nav { gap: 1rem; }
    .hero-title { font-size: clamp(3rem, 8vw, 5rem); }
}

@media (max-width: 980px) {
    .visualize-grid { grid-template-columns: 1fr; }
    .aesthetic-grid,
    .palette-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .nav {
        top: 0.6rem;
        left: 0.6rem;
        right: 0.6rem;
        min-height: 58px;
        padding: 0.7rem 1rem;
    }
    .nav-links { display: none; }
    .nav-studio-shortcut { display: inline-flex; }
    .nav-brand-text { display: none; }
    .section { padding: 6rem 1.5rem; }
    .hero { padding: 9rem 1.5rem 5rem; }
    .hero-meta {
        flex-direction: column;
        gap: 1.2rem;
        padding: 1.5rem;
    }
    .meta-divider { display: none; }
    .work-grid { grid-template-columns: 1fr; }
    .services-grid, .process-grid { grid-template-columns: 1fr; }
    .service-card.wide { grid-column: span 1; }
    .capability-grid { grid-template-columns: repeat(2, 1fr); }
    .cap-cell { min-height: 180px; padding: 1.75rem 1.4rem; }
    .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
    .footer-top { grid-template-columns: 1fr; gap: 2rem; }
    .footer-nav { grid-template-columns: repeat(2, 1fr); }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
    .approach-foot { flex-direction: column; align-items: flex-start; }
    .prism-orbit { opacity: 0.2; }
    .vision-card { max-height: calc(100vh - 1rem); }
    .vision-body { padding: 2rem 1.5rem 1rem; }
    .vision-nav { padding: 1rem 1.5rem; flex-wrap: wrap; gap: 0.75rem; }
    .vision-progress { order: 3; flex: 1 1 100%; max-width: none; }
    .vision-form { grid-template-columns: 1fr; }
    .vision-field:first-child,
    .vision-field:last-child { grid-column: span 1; }
    .vision-stepbar { gap: 0.45rem; padding: 1.1rem; font-size: 0.5rem; }
    .vision-step-divider { flex: 0 0 18px; }
    .aesthetic-grid,
    .palette-grid { grid-template-columns: 1fr; }
    .approach-pillars { gap: 1.25rem; }
    .pricing-grid { max-width: 100%; }
    .pricing-card { padding: 2rem; }
    .hero-title { font-size: clamp(2.2rem, 5vw, 4rem); }
    .hero-meta-row { flex-wrap: wrap; }
}

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

/* ============================================================
   AI-SPEC MOCKUP — overrides for Claude-generated previews.
   The spec drives palette via inline --pal-* vars and headline
   weight via --ai-headline-weight. These rules let those values
   actually take effect.
   ============================================================ */
.mock-page.ai-spec .ms-hero .headline,
.mock-page.ai-spec .ms-cta .title,
.mock-page.ai-spec .ms-showcase .title {
    font-weight: var(--ai-headline-weight, 400);
}

/* AI-spec respects palette.bg & .text exactly — no aesthetic recolor */
.mock-page.ai-spec {
    background: var(--pal-0);
    color: var(--pal-4);
}
.mock-page.ai-spec .ms-nav .logo,
.mock-page.ai-spec .ms-hero .headline,
.mock-page.ai-spec .ms-features .feat .title,
.mock-page.ai-spec .ms-showcase .title,
.mock-page.ai-spec .ms-grid .head .title,
.mock-page.ai-spec .ms-cta .title {
    color: var(--pal-4);
}
.mock-page.ai-spec .ms-hero .sub,
.mock-page.ai-spec .ms-features .feat .body,
.mock-page.ai-spec .ms-showcase .desc,
.mock-page.ai-spec .ms-quote .quote,
.mock-page.ai-spec .ms-cta .sub {
    color: var(--pal-2);
}
.mock-page.ai-spec .ms-hero .eyebrow,
.mock-page.ai-spec .ms-features .feat .num,
.mock-page.ai-spec .ms-showcase .label,
.mock-page.ai-spec .ms-grid .head .label,
.mock-page.ai-spec .ms-quote .attrib {
    color: var(--pal-accent);
}
.mock-page.ai-spec .ms-grid .cells .cell,
.mock-page.ai-spec .ms-showcase .img {
    background: linear-gradient(135deg, var(--pal-1), var(--pal-0));
    border: 1px solid color-mix(in srgb, var(--pal-2) 30%, transparent);
}
.mock-page.ai-spec .ms-hero .btn,
.mock-page.ai-spec .ms-cta .btn {
    background: var(--pal-4);
    color: var(--pal-0);
    border: 1px solid var(--pal-4);
}
.mock-page.ai-spec .ms-hero .btn.ghost {
    background: transparent;
    color: var(--pal-4);
    border: 1px solid color-mix(in srgb, var(--pal-2) 50%, transparent);
}
.mock-page.ai-spec em {
    font-style: italic;
    color: var(--pal-accent);
}

/* Clickable nav links in AI mockup */
.mock-nav-link {
    cursor: pointer;
    transition: color 0.15s, opacity 0.15s;
    opacity: 0.5;
}
.mock-nav-link:hover { opacity: 0.8; }
.mock-nav-link.is-active {
    opacity: 1;
    color: var(--pal-accent, #fff);
}

/* Sub-page loading indicator */
.mock-page-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--pal-2, rgba(255,255,255,0.4));
    animation: loaderPulse 1.2s ease-in-out infinite;
}
@keyframes loaderPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* ============================================================
   INLINE EDITING — any text with data-spec-path is editable
   ============================================================ */
.mock-page [data-spec-path].is-editable {
    outline: 1px dashed transparent;
    outline-offset: 2px;
    border-radius: 4px;
    transition: outline-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    cursor: text;
}
.mock-page [data-spec-path].is-editable:hover {
    outline-color: rgba(140, 170, 255, 0.4);
    background: rgba(140, 170, 255, 0.04);
}
.mock-page [data-spec-path].is-editable:focus {
    outline: 2px solid rgba(140, 170, 255, 0.7);
    background: rgba(140, 170, 255, 0.06);
    box-shadow: 0 0 0 4px rgba(140, 170, 255, 0.12);
}
.mock-page [data-spec-path].is-editable.just-edited {
    animation: editPulse 0.7s ease-out;
}
@keyframes editPulse {
    0%   { background: rgba(140, 255, 180, 0.15); outline-color: rgba(140, 255, 180, 0.6); }
    100% { background: transparent; outline-color: transparent; }
}

/* Nav CTA and buttons get a smaller outline */
.mock-page .mock-nav-link[data-spec-path].is-editable,
.mock-page .nav-cta[data-spec-path].is-editable,
.mock-page .btn[data-spec-path].is-editable { padding: 2px 6px; }

/* ============================================================
   SECTION TOOLBAR — floats on hover, lets user manage structure
   ============================================================ */
.mock-page .mock-section {
    position: relative;
}
.mock-section-toolbar {
    position: absolute;
    top: 6px;
    right: 6px;
    display: flex;
    gap: 2px;
    padding: 3px;
    background: rgba(18, 18, 30, 0.92);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 20;
    pointer-events: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.mock-section:hover > .mock-section-toolbar {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.mst-btn {
    width: 22px;
    height: 22px;
    border: 0;
    background: transparent;
    color: rgba(255,255,255,0.7);
    font-size: 12px;
    line-height: 1;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.mst-btn:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}
.mst-btn.mst-danger:hover {
    background: rgba(255, 80, 100, 0.25);
    color: #ff8a99;
}

/* ============================================================
   AI EDIT MODE — interactive mockup section selection + edit panel
   ============================================================ */

/* When edit mode is active, sections in the mockup highlight on hover */
.mock-page.edit-mode .mock-section {
    cursor: pointer;
    transition: outline 0.15s ease, background 0.15s ease;
    outline: 1px solid transparent;
    outline-offset: -1px;
}
.mock-page.edit-mode .mock-section:hover {
    outline-color: rgba(120, 160, 255, 0.5);
    background: rgba(120, 160, 255, 0.04);
}
.mock-page.edit-mode .mock-section.is-edit-selected {
    outline-color: rgba(120, 160, 255, 0.8);
    background: rgba(120, 160, 255, 0.06);
}

/* The edit panel below the mockup */
.ai-edit-panel {
    margin-top: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ai-edit-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ai-edit-label {
    font-size: 0.75rem;
    color: var(--text-soft);
    letter-spacing: 0.01em;
}

.ai-edit-close {
    background: none;
    border: none;
    color: var(--text-mute);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.15s;
}
.ai-edit-close:hover { color: #fff; }

.ai-edit-selected {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ai-edit-section-tag {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 3px 10px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-mute);
}

.ai-edit-section-tag.is-active {
    background: rgba(120, 160, 255, 0.15);
    color: rgb(160, 190, 255);
}

.ai-edit-input-row {
    display: flex;
    gap: 0.5rem;
}

.ai-edit-input {
    flex: 1;
    font-size: 0.82rem;
    padding: 0.6rem 0.85rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    outline: none;
    transition: border-color 0.15s;
}
.ai-edit-input:focus {
    border-color: rgba(120, 160, 255, 0.5);
}
.ai-edit-input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.ai-edit-submit {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}
.ai-edit-submit:not(:disabled) {
    background: rgba(120, 160, 255, 0.15);
    border-color: rgba(120, 160, 255, 0.4);
    color: rgb(160, 190, 255);
}
.ai-edit-submit:not(:disabled):hover {
    background: rgba(120, 160, 255, 0.25);
}
.ai-edit-submit:disabled { cursor: not-allowed; }

.ai-edit-status {
    font-size: 0.72rem;
    color: var(--text-mute);
    min-height: 1em;
}
.ai-edit-status.is-loading { color: rgba(120, 160, 255, 0.8); }
.ai-edit-status.is-error { color: rgba(255, 120, 120, 0.8); }
.ai-edit-status.is-success { color: rgba(120, 255, 160, 0.8); }

/* ============================================================
   TEMPLATE GALLERY — preset starting points in Vision Studio
   ============================================================ */
.template-gallery {
    margin-bottom: 0.5rem;
}
.template-label {
    font-size: 0.75rem;
    color: var(--text-soft);
    display: block;
    margin-bottom: 0.6rem;
}
.template-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}
.template-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 0.8rem 0.7rem;
    cursor: pointer;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    transition: all 0.2s ease;
    color: #fff;
}
.template-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(120, 160, 255, 0.3);
}
.template-card.is-selected {
    background: rgba(120, 160, 255, 0.08);
    border-color: rgba(120, 160, 255, 0.5);
}
.template-icon {
    font-size: 1.1rem;
    opacity: 0.6;
    line-height: 1;
}
.template-name {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.template-desc {
    font-size: 0.6rem;
    color: var(--text-mute);
    line-height: 1.35;
}

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