html.lenis, html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}
.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

:root {
    --premium-spring: cubic-bezier(0.16, 1, 0.3, 1);
    --color-text-main: #584A63;
    --shadow-decay-5:
        0 1px 1px rgba(34, 26, 44, 0.06),
        0 4px 8px rgba(34, 26, 44, 0.06),
        0 10px 20px rgba(34, 26, 44, 0.06),
        0 22px 42px rgba(34, 26, 44, 0.07),
        0 38px 78px rgba(34, 26, 44, 0.08);
}

/* Hide Mobile Hamburger globally on Desktop */
.mobile-hamburger { display: none; }
.nav-controls { display: contents; } /* Allows desktop nav to behave normally */

html,
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
span,
li,
button,
input,
textarea,
select,
label {
    font-feature-settings: "kern" 1, "liga" 1;
}

/* Standard text gets speed optimization to prevent scroll-lag */
body,
p,
a,
span,
li,
button,
input,
textarea,
select,
label {
    text-rendering: auto;
}

/* Only large headings get expensive legibility calculations */
h1,
h2,
h3,
h4,
h5,
h6,
.feat-hero h1,
.page-hero h1,
.manifesto-hero h1,
.section-heading,
.feat-h2 {
    text-rendering: optimizeLegibility;
}

body {
    opacity: 0;
    transition: opacity 200ms var(--premium-spring);
}

body.page-is-ready {
    opacity: 1;
}

body.page-is-leaving {
    opacity: 0;
}

body::after {
    content: "";
    position: fixed;
    top: -5%;
    left: -5%;
    width: 110vw;
    height: 110vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.05;
    background-image:
        radial-gradient(circle at center, transparent 40%, rgba(34, 26, 44, 0.8) 100%),
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

h1,
.feat-hero h1,
.page-hero h1,
.manifesto-hero h1 {
    font-size: clamp(2.45rem, 4.8vw + 0.4rem, 5rem) !important;
    letter-spacing: -0.04em !important;
    text-wrap: balance;
}

.section-heading,
.feat-h2,
.faq-section h2,
footer h2 {
    font-size: clamp(1.75rem, 2.6vw + 0.6rem, 3rem) !important;
    letter-spacing: -0.03em !important;
    text-wrap: balance;
}

.manifesto-section h2 {
    font-size: clamp(1.35rem, 1.7vw + 0.85rem, 1.85rem) !important;
    letter-spacing: -0.03em !important;
    text-wrap: balance;
}

p,
.hero-sub,
.section-description,
.feat-p,
.faq-a,
.ea-tagline,
.manifesto-section p,
.manifesto-hero .lede,
.rt-msg-body,
.rt-ai-summary,
.el-step-text,
.el-reasoning-text {
    text-wrap: pretty;
    max-width: 65ch;
    line-height: 1.72;
}

.manifesto-section p,
.manifesto-closer p {
    line-height: 1.9 !important;
}

button,
.cta-button,
.ea-cta,
.btn-mini,
.tr-branch-btn,
.pk-draft-btn,
.rt-approve-btn {
    letter-spacing: 0.01em;
}

[class*="price"],
[class*="date"],
[class*="time"],
[class*="metric"],
[class*="balance"],
[class*="num"],
.ea-price,
.ea-was-price,
.ea-saving,
.next-step-num,
.rt-msg-time,
.rt-group-label,
.data-val {
    font-variant-numeric: tabular-nums;
}

::selection {
    background: rgba(108, 92, 231, 0.15);
    color: #4A3B52;
    text-shadow: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid rgba(108, 92, 231, 0.5);
    outline-offset: 3px;
}

html {
    scrollbar-width: thin;
    scrollbar-color: rgba(108, 92, 231, 0.45) transparent;
}

*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

*::-webkit-scrollbar-track {
    background: transparent;
}

*::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg in oklab, rgba(108, 92, 231, 0.65), rgba(162, 155, 254, 0.55));
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

nav {
    z-index: 1100 !important;
    border-bottom: none !important;
    padding-bottom: 2rem !important;
    -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    box-shadow: var(--shadow-decay-5) !important;
}

.nav-links a {
    position: relative;
    display: inline-block;
    transition: color 230ms var(--premium-spring);
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.2rem;
    width: 100%;
    height: 1.5px;
    background: currentColor;
    transform: translateZ(0) scaleX(0);
    transform-origin: right;
    transition: transform 230ms var(--premium-spring);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after,
.nav-links a.active::after {
    transform: translateZ(0) scaleX(1);
    transform-origin: left;
}

.cta-button,
.ea-cta,
.nav-links a,
.btn-mini,
.tr-branch-btn,
.pk-draft-btn,
.rt-approve-btn,
.tr-card,
.pk-card,
.ui-card,
.glass-panel,
.premium-glass-card {
    transition-timing-function: var(--premium-spring) !important;
}

.logo-mark {
    animation: logo-mark-pulse 2.8s ease-in-out infinite;
    transform-origin: center;
    will-change: transform, opacity;
}

@keyframes logo-mark-pulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 0.72;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

h1 i,
.feat-hero h1 i,
.page-hero h1 i,
.manifesto-hero h1 i {
    display: inline-block !important;
    padding-right: 0.1em !important; /* Prevents italic clipping */
    background: linear-gradient(135deg, var(--color-accent) 0%, #FF9A9E 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
    text-shadow: none !important; /* WebKit bug: shadows break gradient clips */
    filter: drop-shadow(0 4px 12px rgba(108, 92, 231, 0.25)); /* Safe glowing alternative */
}

.premium-glass-card,
.glass-panel,
.ui-card,
.intel-brief,
.manifesto-closer,
.ea-card {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    border-bottom-color: rgba(44, 34, 58, 0.22) !important;
    box-shadow:
        var(--shadow-decay-5),
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        inset 0 -1px 0 rgba(20, 15, 30, 0.2) !important;
}

.premium-glass-card,
.glass-panel,
.ui-card,
.bento-item,
.tr-card,
.el-card,
.pk-draft-inner,
.intel-brief {
    border: max(1px, 0.05rem) solid rgba(255, 255, 255, 0.5) !important;
}

.premium-glass-card::after,
.glass-panel::after,
.ui-card::after,
.intel-brief::after,
.manifesto-closer::after,
.ea-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(
            440px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
            rgba(255, 255, 255, 0.04) 0%,
            rgba(255, 255, 255, 0.016) 35%,
            transparent 72%
        ),
        url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    background-size: 100% 100%, 180px 180px;
    mix-blend-mode: overlay;
    opacity: 0.9;
}

.cta-button,
.ea-cta {
    --magnet-x: 0px;
    --magnet-y: 0px;
    --lift-y: 0px;
    --press-scale: 1;
    transform: translate3d(var(--magnet-x), calc(var(--magnet-y) + var(--lift-y)), 0) scale(var(--press-scale));
    transition:
        transform 230ms var(--premium-spring),
        box-shadow 230ms var(--premium-spring),
        opacity 230ms var(--premium-spring),
        color 230ms var(--premium-spring),
        background-color 230ms var(--premium-spring);
}

.cta-button:not(.btn-secondary),
.ea-cta {
    background: linear-gradient(180deg in oklab, var(--color-text-main) 0%, #322638 100%) !important;
}

.cta-button:not(.btn-secondary):hover,
.ea-cta:hover {
    background: linear-gradient(180deg in oklab, var(--color-accent) 0%, #5c4fd0 100%) !important;
}

.cta-button:hover,
.ea-cta:hover {
    --lift-y: -2px;
    --press-scale: 1.02;
    will-change: transform;
}

.cta-button:active,
.ea-cta:active {
    --lift-y: 0px;
    --press-scale: 0.97;
}

.scroll-reveal,
.bento-item {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
    transition:
        transform 700ms var(--premium-spring),
        opacity 700ms var(--premium-spring),
        box-shadow 230ms var(--premium-spring);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: transform, opacity;
}

.scroll-reveal.visible,
.bento-item.visible {
    opacity: 1;
    transform: translateY(0) !important;
    /* Removed will-change: auto override */
}
/* Allow manual scrolling inside the email widget */
.rt-scroll-container {
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;
}

@supports selector(.bento-grid:has(.bento-item:hover)) {
    @media (hover: hover) {
        .bento-grid .bento-item,
        .tr-stack .tr-card {
            transition: all 400ms var(--premium-spring) !important;
        }

        .bento-grid:has(.bento-item:hover) .bento-item:not(:hover),
        .tr-stack:has(.tr-card:hover) .tr-card:not(:hover) {
            opacity: 0.45;
            filter: blur(3px) grayscale(30%);
            transform: scale(0.98);
            transition: all 400ms var(--premium-spring);
        }
    }
}

.rt-scroll-container,
.el-thread,
.ib-composer-body {
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(to bottom, transparent, #000 10%, #000 90%, transparent);
}

.pull-quote {
    position: relative;
    border-left: 0 !important;
    padding-left: 1.75rem;
}

.pull-quote::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: var(--color-accent, #6C5CE7);
    transform-origin: top;
    transform: translateZ(0) scaleY(0);
    transition: transform 700ms var(--premium-spring), opacity 700ms var(--premium-spring);
    opacity: 0.9;
    will-change: transform, opacity;
}

.pull-quote.quote-in-view::before {
    transform: translateZ(0) scaleY(1);
    opacity: 1;
}

.ea-badge {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.ea-badge::after {
    content: "";
    position: absolute;
    inset: -35% -60%;
    pointer-events: none;
    background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.55) 50%, transparent 60%);
    mix-blend-mode: screen;
    opacity: 0;
    transform: translate3d(-120%, 0, 0);
    animation: founder-badge-shimmer 4.5s var(--premium-spring) infinite;
}

@keyframes founder-badge-shimmer {
    0%,
    72% {
        transform: translate3d(-120%, 0, 0);
        opacity: 0;
    }
    76% {
        opacity: 0.5;
    }
    100% {
        transform: translate3d(140%, 0, 0);
        opacity: 0;
    }
}

.page-load-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    transform-origin: left center;
    transform: translateZ(0) scaleX(0);
    background: linear-gradient(90deg in oklab, #6C5CE7, #A29BFE 55%, #FF9A9E);
    box-shadow: 0 0 16px rgba(108, 92, 231, 0.55);
    opacity: 1;
    z-index: 14000;
    transition: transform 360ms var(--premium-spring), opacity 260ms var(--premium-spring);
    will-change: transform, opacity;
}

.page-load-progress.is-running {
    transform: translateZ(0) scaleX(0.76);
}

.page-load-progress.is-complete {
    transform: translateZ(0) scaleX(1);
}

.page-load-progress.is-done {
    opacity: 0;
}

.ambient-cloud {
    will-change: transform, opacity;
}

.brand-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(74, 59, 82, 0.95);
    mix-blend-mode: difference;
    pointer-events: none;
    z-index: 13000;
    opacity: 0;
    transform: translate3d(-100px, -100px, 0) scale(1);
    transition: opacity 180ms var(--premium-spring), transform 180ms var(--premium-spring);
    will-change: transform, opacity;
}

.brand-cursor.is-visible {
    opacity: 0.85;
}

.brand-cursor.is-active {
    opacity: 0.5;
}

@media (pointer: fine) {
    html,
    body,
    a,
    button,
    input,
    textarea,
    select,
    label,
    .cta-button,
    .ea-cta,
    .bento-item,
    .tr-card,
    .tr-branch-btn,
    .pk-card,
    .rt-read-more {
        cursor: none !important;
    }
}

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

/* ==========================================================================
   📱 BALANCR: PREMIUM MOBILE RESPONSIVE STYLES (Max-Width: 900px)
   ========================================================================== */

@media (max-width: 900px) {

    /* 1. Global Space Saving & Typography */
    body { border-width: 0px !important; } /* Remove thick frame on mobile */
    .container, .feature-section { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }

    h1, .feat-hero h1, .page-hero h1, .manifesto-hero h1 {
        font-size: clamp(2.5rem, 8vw, 2.8rem) !important;
        line-height: 1.15 !important;
    }
    .section-heading, .feat-h2 { font-size: 2.2rem !important; }
    p.hero-sub, .section-description, .feat-p, .lede, .manifesto-section p {
        font-size: 1.05rem !important;
        padding: 0 0.5rem;
    }

    /* Hide ambient clouds on mobile to prevent GPU lag and scroll jitter */
    .ambient-cloud { display: none !important; }

    /* ---------------------------------------------------------------------- */
    /* 2. Premium Glass Dropdown Navigation (THE £60K REDESIGN)               */
    /* ---------------------------------------------------------------------- */
    nav {
        padding: 0.8rem 1.25rem !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        align-items: center !important;
        -webkit-mask-image: none !important;
        mask-image: none !important;
        background: rgba(255, 255, 255, 0.9) !important;
        backdrop-filter: blur(24px) saturate(150%) !important;
        -webkit-backdrop-filter: blur(24px) saturate(150%) !important;
        border-bottom: 1px solid rgba(108, 92, 231, 0.1) !important;
        border-radius: 0 !important;
        z-index: 10000 !important;
        position: sticky !important;
        top: 0 !important;
        mix-blend-mode: normal !important;
    }

    .logo { text-decoration: none !important; position: relative; z-index: 10001; }

    .nav-controls {
        display: flex !important;
        align-items: center;
        gap: 0.75rem;
        position: relative;
        z-index: 10001;
    }

    nav .cta-button {
        padding: 0.6rem 1rem !important;
        font-size: 0.85rem !important;
        margin: 0 !important;
        white-space: nowrap;
    }

    .mobile-hamburger {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 4px;
        width: 40px;
        height: 40px;
        background: rgba(108, 92, 231, 0.05);
        border: 1px solid rgba(108, 92, 231, 0.15);
        border-radius: 50%;
        cursor: pointer;
        padding: 0;
        transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        outline: none;
    }

    .mobile-hamburger span {
        display: block;
        width: 16px;
        height: 2px;
        background: var(--color-text-main);
        border-radius: 2px;
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        transform-origin: center;
    }

    body.menu-open .mobile-hamburger {
        background: var(--color-accent);
        border-color: var(--color-accent);
        box-shadow: 0 4px 12px rgba(108, 92, 231, 0.3);
    }
    body.menu-open .mobile-hamburger span { background: #FFF; }
    body.menu-open .mobile-hamburger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
    body.menu-open .mobile-hamburger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
    body.menu-open .mobile-hamburger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

    /* The Floating Glass Dropdown Panel */
    .nav-links {
        position: absolute !important;
        top: calc(100% + 0.75rem) !important;
        left: 1rem !important;
        right: 1rem !important;
        width: auto !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: stretch !important;
        gap: 0.25rem !important;
        padding: 0.5rem !important; /* Tight outer padding frames the links */
        margin: 0 !important;

        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(32px) saturate(200%) !important;
        -webkit-backdrop-filter: blur(32px) saturate(200%) !important;
        border: 1px solid rgba(108, 92, 231, 0.1) !important;
        border-radius: 24px !important;

        box-shadow:
            0 32px 64px -12px rgba(74, 59, 82, 0.2),
            0 0 0 1px rgba(108, 92, 231, 0.05),
            inset 0 1px 1px rgba(255, 255, 255, 1) !important;
        z-index: 9999 !important;

        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-15px) scale(0.98);
        transform-origin: top right; /* Springs smoothly out of the hamburger button */
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }

    body.menu-open .nav-links {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0) scale(1);
    }

    /* Edge-to-Edge Clickable Links (Targets both <a> and <span> to fix your homepage) */
    .nav-links a, .nav-links span {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 1.15rem 1.5rem !important;
        font-family: 'Plus Jakarta Sans', sans-serif !important;
        font-size: 1.25rem !important;
        font-weight: 700 !important;
        letter-spacing: -0.02em !important;
        color: var(--color-text-main) !important;
        text-align: left !important;
        border-radius: 16px !important;
        background: transparent !important;
        transition: background 0.2s ease, color 0.2s ease !important;
        cursor: pointer !important;
        text-decoration: none !important;
    }

    /* 🚨 THE BUG FIX: KILL THE DESKTOP UNDERLINE DEAD 🚨 */
    .nav-links a::after, .nav-links a::before,
    .nav-links span::after, .nav-links span::before {
        display: none !important;
        content: none !important;
        background: none !important;
        width: 0 !important;
        height: 0 !important;
    }

    /* Subtle press state */
    .nav-links a:active, .nav-links span:active {
        background: rgba(0, 0, 0, 0.03) !important;
    }

    /* Active page highlight */
    .nav-links a.active, .nav-links span.active {
        color: var(--color-accent) !important;
        background: rgba(108, 92, 231, 0.06) !important;
    }

    .hero-actions { flex-direction: column; padding: 0 1.5rem; }
    .hero-actions .cta-button { width: 100%; }

    /* 3. Core Feature Rows & Bento Grids */
    .feat-row, .feat-row.reverse {
        flex-direction: column !important;
        gap: 3rem !important;
        margin-bottom: 5rem !important;
    }
    .feat-visual { width: 100% !important; max-width: 100% !important; }
    .bento-grid { grid-template-columns: 1fr !important; }
    .bento-item { padding: 1.5rem !important; }

    /* 4. Homepage "Widget Sky" (Hero Floating Cards) */
    .widget-sky {
        height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 1.5rem !important;
        margin-top: 2rem !important;
        perspective: none !important;
    }
    .widget-sky .ui-card {
        position: relative !important;
        top: auto !important; left: auto !important; right: auto !important;
        transform: none !important;
        width: 100% !important;
        max-width: 400px !important;
        animation: float-in 1s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
    }

    /* 5. Intelligence Brief Widget (The Squidge Fix) */
    .intel-brief-wrapper {
        padding: 0 0.5rem !important;
        min-height: auto !important;
        height: auto !important;
        margin-top: 2rem !important;
    }
    .intel-brief { padding: 1.5rem !important; min-height: auto !important; height: auto !important; gap: 1.5rem !important; }
    /* WIDGET 1 MOBILE FIX: Stack the metrics to stop squishing */
    .ib-context-grid {
        grid-template-columns: 1fr !important;
        gap: 0.6rem !important;
    }
    .ib-metric {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        text-align: left !important;
        padding: 0.8rem 1rem !important;
        gap: 1rem !important;
    }
    .ib-metric-icon {
        margin: 0 !important;
        width: 32px !important;
        height: 32px !important;
        flex-shrink: 0 !important;
    }
    .ib-metric-label {
        font-size: 0.65rem !important;
        margin-bottom: 0.1rem !important;
    }
    .ib-metric-sub {
        display: block !important;
        font-size: 0.75rem !important;
        margin-top: 0.1rem !important;
    }

    /* FIX: Unlock rigid heights so wrapped text pushes content down naturally */
    .ib-synth-text,
    .ib-composer-body,
    .el-reasoning-box,
    .pk-draft-text,
    .tr-draft-text {
        height: auto !important;
        min-height: min-content !important;
        padding-bottom: 1rem !important;
    }

    .ib-output-area { margin-top: 1rem !important; }
    .ib-tone-row { gap: 0.5rem !important; flex-wrap: wrap !important; }

    /* 6. Escalation Loop Widget */
    .el-wrapper { height: auto !important; padding: 0 0.5rem !important; }
    .el-card { flex-direction: column !important; height: auto !important; padding: 1.5rem !important; gap: 2rem !important; }
    .el-thread { flex: none !important; height: auto !important; }
    .el-thread-track { padding-top: 20px !important; padding-bottom: 0px !important; }

    /* 7. Priority Kanban Widget */
    .pk-wrapper { height: auto !important; padding: 0 0.5rem !important; }
    .pk-inner { height: auto !important; gap: 2rem !important; }
    .pk-columns { display: flex !important; flex-direction: column !important; height: auto !important; gap: 1.5rem !important; }
    .pk-column {
        position: relative !important;
        width: 100% !important; height: auto !important; min-height: 250px !important;
        left: 0 !important; right: 0 !important; top: 0 !important;
    }
    .pk-flying-card { display: none !important; } /* Prevents side-scrolling jitter */
    /* CHANGE 3: Keep the drafting box always visible on mobile */
    .pk-draft-panel {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
    }
    .pk-draft-text {
        min-height: 96px !important; /* Keeps the blank box a consistent height before typing */
    }

    /* 8. Triage Inbox & Email Replica Widget */
    .tr-wrapper { padding: 0 0.5rem !important; }
    .tr-glow { width: 100% !important; }
    .tr-card { padding: 1.25rem !important; }
    .tr-branch-grid { grid-template-columns: 1fr !important; }
    .tr-card.active .tr-ai-box { max-height: 1000px !important; } /* Allows expanding drafts room to breathe */

    .rt-wrapper { height: 550px !important; max-width: 100% !important; }
    .rt-scroll-container { padding: 1.5rem 1rem !important; }

    /* 9. Pricing & Manifesto Specifics */
    .ea-card { padding: 2rem 1.5rem !important; margin-top: 2rem !important; }
    .ea-price { font-size: 3.5rem !important; }
    .next-steps { flex-direction: column !important; gap: 2rem !important; }
    .next-steps::before { display: none !important; }
    .manifesto-closer { padding: 2rem 1.25rem !important; }
}

/* Extra small screens (iPhone SE, etc.) */
@media (max-width: 400px) {
    nav { padding: 1rem !important; }
    .nav-links { font-size: 0.8rem !important; gap: 1rem !important; }
    .cta-button { padding: 0.6rem 1.2rem !important; font-size: 0.9rem !important; }
    h1, .feat-hero h1, .page-hero h1, .manifesto-hero h1 { font-size: 2.4rem !important; }
}

/* ==========================================================================
   🛠️ TYPOGRAPHY CLIPPING FIX (For chopped 'g', 'p', 'y' descenders)
   ========================================================================== */

/* 1. Relax the line-height globally so the lines don't overlap and erase each other */
h1, .feat-hero h1, .page-hero h1, .manifesto-hero h1, .section-heading, .feat-h2 {
    line-height: 1.2 !important;
    padding-bottom: 0.1em !important; /* Protects the very bottom of the title block */
}

/* 2. Expand the gradient's paintable canvas downwards to save the 'g' and 'p' */
h1 i,
.feat-hero h1 i,
.page-hero h1 i,
.manifesto-hero h1 i,
.section-heading i,
.feat-h2 i {
    padding-bottom: 0.25em !important;
    /* Pull the margin back up so the invisible padding doesn't push your paragraphs down */
    margin-bottom: -0.25em !important;
}

/* ==========================================================================
   💎 £70K AGENCY UPGRADE: SPATIAL DETERMINISM & ZERO JITTER
   ========================================================================== */

/* 1. SOLIDIFY THE SKELETONS */
/* Kill the heavy float-in animations globally. The glass boxes should feel
   like permanent, stable physical objects. We keep the gentle 'hover-bob' on desktop. */
.ui-card {
    opacity: 1 !important;
    transform: translateY(0) !important;
    animation: none !important; /* Stop the jittery pop-in */
}

@media (min-width: 901px) {
    .ui-card {
        animation: hover-bob 6s ease-in-out infinite alternate !important;
    }
}

@media (max-width: 900px) {
    .widget-sky .ui-card {
        /* Ensure absolute stability on mobile */
        animation: none !important;
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;

        /* Pre-allocate height so the box NEVER squishes or expands */
        min-height: 180px;

        /* Lush, multi-layered glass shadow for that premium agency feel */
        box-shadow:
            0 12px 32px rgba(74, 59, 82, 0.05),
            inset 0 1px 1px rgba(255, 255, 255, 0.9),
            inset 0 -1px 1px rgba(255, 255, 255, 0.2) !important;
    }
}

/* 2. DORMANT STATE: THE "SOUL" WAITS */
/* Hide the internal elements. Using opacity/filter runs on the GPU and NEVER causes layout jitter. */
.ui-card .ui-badge,
.ui-card .btn-mini,
.ui-card .data-val,
.ui-card .progress-bar {
    opacity: 0.1;
    filter: blur(4px) grayscale(100%);
    transform: translateY(8px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity, filter;
}

/* Pre-allocate AI text area so the typing effect doesn't push the button down */
.ai-typing, .ai-drafting {
    min-height: 4.5rem; /* Reserves exactly 3 lines of space permanently */
    display: block;
}

/* Zero-Reflow Text Characters (Used by the JS) */
.type-char {
    opacity: 0.01;
    filter: blur(2px);
    transition: opacity 0.1s ease, filter 0.2s ease;
}

/* 3. ACTIVATED STATE: Triggered by JS when scrolled into view */
.ui-card.is-activated {
    /* Slight glow when 'processing' */
    box-shadow:
        0 16px 48px -12px rgba(108, 92, 231, 0.15),
        inset 0 1px 1px rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(255, 255, 255, 1) !important;
    transition: box-shadow 0.8s ease, border-color 0.8s ease;
}

/* Staggered Boot-up Sequence */
.ui-card.is-activated .ui-badge { transition-delay: 0.1s; opacity: 1; filter: blur(0) grayscale(0); transform: translateY(0); }
.ui-card.is-activated .data-val { transition-delay: 0.2s; opacity: 1; filter: blur(0) grayscale(0); transform: translateY(0); }
.ui-card.is-activated .progress-bar { transition-delay: 0.3s; opacity: 1; filter: blur(0) grayscale(0); transform: translateY(0); }
.ui-card.is-activated .btn-mini { transition-delay: 0.8s; opacity: 1; filter: blur(0) grayscale(0); transform: translateY(0); }

.type-char.is-typed {
    opacity: 1;
    filter: blur(0px);
}

/* =========================================
   NUKE THE GHOST BORDER & FIX SCROLLBAR GAP
   ========================================= */
html {
    /* Forces the base layer to match your dawn gradient so no white peeks through */
    background: var(--color-sky-top) !important;
}

html, body {
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100%;
}

/* This forcefully kills the cached border from polish.css */
body::before {
    display: none !important;
    content: none !important;
    border: none !important;
}

/* Remove full-screen overlay vignette/noise that creates edge banding */
body::after {
    display: none !important;
    content: none !important;
    background: none !important;
    box-shadow: none !important;
}
