/* ============================================================================
   SHILI Accounting and Consultants — Immersive Home Theme  (v3 — Pearl Trust)
   Light palette · pearl page · soft baby-blue + mint accents · navy ink text
   ----------------------------------------------------------------------------
   Home sections:
     - atmospheric hero (light bg + diamond particle field via Three.js canvas)
     - trial-balance KPI strip
     - partner-letter (signed editorial)
     - practice-pillars (3 numbered editorial rows)
     - sectors-strip (5 sector chips)
     - engagement-flow (3-step process)
     - immersive-cta (closing)
   Inner-page styles live in shili-pages.css.
   ========================================================================== */

.skb-immersive {
    /* ---- "Pearl Trust" palette ---------------------------------- */
    --pearl: #f7f9fc; /* page bg — light blue-grey */
    --pearl-2: #eef3f9; /* section bands */
    --pearl-3: #e5edf6; /* stronger band */
    --surface: #ffffff; /* card surface */
    --surface-2: #fbfdff; /* faint warm card alt */
    --ink: #0e1a35; /* primary text (kept navy for legibility) */
    --ink-2: #1d2b4a; /* slightly softer */
    --muted: #5a6878; /* secondary text */
    --muted-2: #8a98ac; /* tertiary text */
    --line: rgba(30, 78, 192, 0.10);
    --line-2: rgba(30, 78, 192, 0.18);
    --blue: #4f87e0; /* primary CTA */
    --blue-2: #6c9beb; /* hover */
    --blue-deep: #2d6cdf; /* for icons/labels that need full contrast */
    --baby: #a8d4ff; /* light baby blue accent */
    --baby-deep: #7ab3ef; /* deeper baby for icons/borders */
    --mint: #9ee5c0; /* light mint accent */
    --mint-deep: #5cc191; /* deeper mint for icons/borders */
    --flow: linear-gradient(135deg, var(--baby-deep), var(--mint-deep));
    --flow-h: linear-gradient(90deg, var(--baby-deep), var(--mint-deep));
    --flow-soft: linear-gradient(135deg, var(--baby), var(--mint));
    --glow-blue: 0 8px 28px rgba(79, 135, 224, 0.28);
    --glow-mint: 0 6px 22px rgba(94, 193, 145, 0.22);
    --shadow-card: 0 6px 24px rgba(14, 26, 53, 0.06);
    --shadow-lift: 0 14px 40px rgba(14, 26, 53, 0.10);
    --r: 18px;
    --r-lg: 28px;
    position: relative;
    background: var(--pearl);
    color: var(--ink);
    font-family: var(--font-b, 'Plus Jakarta Sans', sans-serif);
    overflow: clip;
}

    .skb-immersive h1,
    .skb-immersive h2,
    .skb-immersive h3,
    .skb-immersive h4 {
        font-family: var(--font-d, 'Outfit', sans-serif);
        letter-spacing: -0.02em;
        color: var(--ink);
    }

.skb-shell {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 2;
}

.skb-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--mint-deep);
}

    .skb-eyebrow::before {
        content: "";
        width: 26px;
        height: 1px;
        background: var(--mint-deep);
        opacity: 0.7;
    }


/* ============================================================================
   GROWTH-LINE BEAM (fixed SVG, deeper stops for visibility on light bg)
   ========================================================================== */
.energy-beam {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100vh;
    height: 100svh;
    z-index: 5;
    pointer-events: none;
    overflow: visible;
}

    .energy-beam .beam-track {
        stroke: transparent;
        stroke-width: 4;
        fill: none;
    }

    .energy-beam .beam-live {
        stroke: url(#beamGrad);
        stroke-width: 3;
        fill: none;
        stroke-linecap: round;
        opacity: 0.7;
        filter: drop-shadow(0 0 6px rgba(94, 193, 145, 0.50));
    }

.beam-dot-el {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translate(-50%, 0);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    z-index: 6;
    pointer-events: none;
    background: var(--mint-deep);
    opacity: 0;
    box-shadow: 0 0 14px 3px rgba(94, 193, 145, 0.55), 0 0 36px 7px rgba(122, 179, 239, 0.40);
    will-change: transform;
}

@media (max-width: 900px) {
    .energy-beam {
        left: 24px;
        transform: none;
    }

    .beam-dot-el {
        left: 24px;
    }
}


/* ============================================================================
   HERO — light atmospheric bg + Three.js diamond canvas
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    isolation: isolate;
    overflow: hidden;
    background: radial-gradient(55% 45% at 18% 22%, rgba(168, 212, 255, 0.45), transparent 65%), radial-gradient(50% 45% at 82% 78%, rgba(158, 229, 192, 0.35), transparent 65%), radial-gradient(80% 30% at 50% 102%, rgba(168, 212, 255, 0.25), transparent 75%), var(--pearl);
}

    .hero::before {
        /* Soft dot-grid texture, masked so it fades toward the edges */
        content: "";
        position: absolute;
        inset: 0;
        z-index: 0;
        pointer-events: none;
        background-image: radial-gradient(circle at 1px 1px, rgba(45, 108, 223, 0.14) 1px, transparent 1.5px);
        background-size: 28px 28px;
        mask-image: radial-gradient(85% 80% at 50% 50%, black 30%, transparent 90%);
        -webkit-mask-image: radial-gradient(85% 80% at 50% 50%, black 30%, transparent 90%);
    }

    .hero::after {
        /* Bottom fade into the page (light pearl) */
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 25%;
        background: linear-gradient(transparent, var(--pearl));
        z-index: 1;
        pointer-events: none;
    }

/* Slow-rotating aurora overlay */
.hero-aurora {
    position: absolute;
    inset: -25%;
    z-index: 0;
    pointer-events: none;
    background: conic-gradient(from 180deg at 50% 60%, rgba(168, 212, 255, 0.00) 0deg, rgba(168, 212, 255, 0.35) 90deg, rgba(158, 229, 192, 0.30) 180deg, rgba(168, 212, 255, 0.00) 270deg, rgba(168, 212, 255, 0.00) 360deg);
    filter: blur(90px);
    animation: heroAurora 32s ease-in-out infinite;
}

@keyframes heroAurora {
    0%, 100% {
        transform: rotate(0deg) scale(1);
        opacity: 0.85;
    }

    50% {
        transform: rotate(180deg) scale(1.12);
        opacity: 1;
    }
}

/* Diamond particle canvas — dialed DOWN so it whispers behind the type.
   Editorial restraint: the statement leads, the motion supports. */
#hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: block;
    pointer-events: none;
    opacity: 0.55;
}

.hero-copy {
    position: relative;
    z-index: 3;
    max-width: 960px;
}

.hero h1,
.hero-statement {
    font-size: clamp(3.2rem, 9.5vw, 7.6rem);
    font-weight: 800;
    line-height: 0.96;
    margin: 26px 0 30px;
    color: var(--ink);
    letter-spacing: -0.03em;
}

.hero-line {
    display: block;
    overflow: hidden;
}

    .hero-line > span {
        display: block;
    }

.hero h1 .accent {
    background: var(--flow);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-sub {
    font-size: clamp(1.05rem, 1.7vw, 1.4rem);
    color: var(--muted);
    max-width: 640px;
    line-height: 1.6;
    margin-bottom: 38px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* ---- BUTTONS ---- */
.btn-glow,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 30px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.96rem;
    font-family: var(--font-d, 'Outfit', sans-serif);
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.25s cubic-bezier(.4,0,.2,1), box-shadow 0.25s, background 0.25s, border-color 0.25s, color 0.25s;
}

.btn-glow {
    background: var(--blue);
    color: #ffffff;
    border: none;
    box-shadow: var(--glow-blue);
}

    .btn-glow:hover {
        transform: translateY(-3px);
        background: var(--blue-2);
        box-shadow: 0 12px 36px rgba(79, 135, 224, 0.45);
        color: #ffffff;
    }

.btn-ghost {
    background: var(--surface);
    color: var(--ink);
    border: 1px solid var(--line-2);
}

    .btn-ghost:hover {
        transform: translateY(-3px);
        border-color: var(--mint-deep);
        color: var(--mint-deep);
        box-shadow: var(--shadow-card);
    }

/* Trust chips beneath hero CTA */
.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 22px;
    margin-top: 44px;
    padding-top: 30px;
    border-top: 1px solid var(--line);
    max-width: 720px;
}

    .hero-trust span {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        font-size: 0.84rem;
        font-weight: 600;
        color: var(--muted);
    }

    .hero-trust i {
        color: var(--mint-deep);
        font-size: 1rem;
    }

.hero-cue {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 0.68rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--muted-2);
}

    .hero-cue .line {
        width: 1px;
        height: 46px;
        background: linear-gradient(var(--mint-deep), transparent);
        animation: cueFlow 2.2s ease-in-out infinite;
    }

@keyframes cueFlow {
    0%, 100% {
        opacity: 0.3;
        transform: scaleY(0.6);
        transform-origin: top;
    }

    50% {
        opacity: 1;
        transform: scaleY(1);
    }
}


/* ============================================================================
   PARTNER LETTER — signed open letter, editorial column on pearl-2 band
   ========================================================================== */
.partner-letter {
    padding: 140px 0;
    background: var(--pearl-2);
    position: relative;
}

    .partner-letter::before {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        z-index: 0;
        background: radial-gradient(45% 60% at 50% 50%, rgba(168, 212, 255, 0.30), transparent 75%);
    }

.letter-wrap {
    position: relative;
    z-index: 1;
    max-width: 780px;
    margin: 0 auto;
    padding: 60px 64px;
    background: var(--surface);
    border-radius: var(--r-lg);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-card);
}

.letter-body {
    margin-top: 32px;
}

.letter-lead {
    font-family: var(--font-d);
    font-size: clamp(1.6rem, 2.6vw, 2.05rem);
    font-weight: 700;
    line-height: 1.3;
    color: var(--ink);
    margin-bottom: 28px;
    letter-spacing: -0.01em;
}

.letter-body p:not(.letter-lead) {
    font-size: clamp(1.05rem, 1.3vw, 1.16rem);
    line-height: 1.75;
    color: var(--ink-2);
    margin-bottom: 22px;
}

.letter-signatures {
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.signature {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.signature-mark {
    width: 200px;
    height: 54px;
    margin-bottom: 8px;
}

.signature-name {
    font-family: var(--font-d);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--ink);
}

.signature-role {
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--mint-deep);
    font-weight: 700;
}


/* ============================================================================
   PRACTICE PILLARS — three numbered editorial rows on white
   ========================================================================== */
.practice-pillars {
    padding: 120px 0;
    background: var(--surface);
}

.pp-head {
    max-width: 720px;
    margin-bottom: 60px;
}

    .pp-head h2 {
        font-size: clamp(2.2rem, 4.4vw, 3.6rem);
        font-weight: 800;
        margin: 18px 0 0;
        line-height: 1.08;
    }

.pp-list {
    border-top: 1px solid var(--line);
}

.pp-row {
    display: grid;
    grid-template-columns: 220px 1fr auto;
    gap: 40px;
    align-items: center;
    padding: 42px 0;
    border-bottom: 1px solid var(--line);
    color: inherit;
    text-decoration: none;
    transition: padding-left 0.3s cubic-bezier(.4,0,.2,1), background 0.3s;
}

    .pp-row:hover {
        padding-left: 24px;
        background: linear-gradient(90deg, rgba(168, 212, 255, 0.18), transparent 70%);
    }

.pp-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pp-num {
    font-family: var(--font-d);
    font-size: clamp(2.6rem, 4.6vw, 3.6rem);
    font-weight: 900;
    line-height: 1;
    background: var(--flow);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.04em;
}

.pp-tag {
    font-family: var(--font-d);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--mint-deep);
}

.pp-body h3 {
    font-size: clamp(1.4rem, 2.4vw, 2rem);
    font-weight: 800;
    line-height: 1.12;
    margin: 0 0 14px;
    color: var(--ink);
}

.pp-body p {
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.65;
    max-width: 620px;
    margin: 0;
}

.pp-arrow {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid var(--line-2);
    background: var(--surface);
    display: grid;
    place-items: center;
    color: var(--mint-deep);
    font-size: 1.15rem;
    transition: background 0.3s, border-color 0.3s, color 0.3s, transform 0.3s;
    flex-shrink: 0;
}

.pp-row:hover .pp-arrow {
    background: var(--mint-deep);
    color: #ffffff;
    border-color: var(--mint-deep);
    transform: translateX(6px);
}


/* ============================================================================
   TRUST STRIP — quiet credibility band (Big-Four restraint)
   ========================================================================== */
.trust-strip {
    padding: 28px 0;
    background: var(--surface);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.ts-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px 26px;
}

.ts-item {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 0.01em;
}

    .ts-item i {
        color: var(--mint-deep);
        font-size: 1.05rem;
    }

.ts-divider {
    width: 1px;
    height: 18px;
    background: var(--line-2);
}

@media (max-width: 760px) {
    .ts-divider {
        display: none;
    }

    .ts-row {
        gap: 12px 20px;
    }
}


/* ============================================================================
   PERSONA ROUTING — "Where do you need us?" (client-POV wayfinding)
   ========================================================================== */
.persona {
    padding: 120px 0;
    background: var(--pearl);
}

.persona-head {
    max-width: 720px;
    margin-bottom: 56px;
}

    .persona-head h2 {
        font-size: clamp(2rem, 4vw, 3rem);
        font-weight: 800;
        margin: 18px 0 14px;
        line-height: 1.1;
        color: var(--ink);
    }

    .persona-head p {
        color: var(--muted);
        font-size: 1.06rem;
        line-height: 1.6;
        margin: 0;
    }

.persona-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.persona-card {
    display: flex;
    flex-direction: column;
    padding: 32px 28px;
    border-radius: var(--r-lg);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-card);
    text-decoration: none;
    transition: transform 0.28s cubic-bezier(.22,1,.36,1), box-shadow 0.28s, border-color 0.28s;
}

    .persona-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-lift);
        border-color: rgba(94, 193, 145, 0.40);
    }

.persona-ico {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(140deg, rgba(168, 212, 255, 0.30), rgba(158, 229, 192, 0.20));
    color: var(--blue-deep);
    font-size: 1.4rem;
    margin-bottom: 22px;
}

.persona-card h3 {
    font-family: var(--font-d);
    font-size: 1.18rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 12px;
    color: var(--ink);
}

.persona-card p {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 0 0 22px;
    flex: 1;
}

.persona-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-d);
    font-weight: 700;
    font-size: 0.86rem;
    color: var(--mint-deep);
    transition: gap 0.25s;
}

.persona-card:hover .persona-link {
    gap: 13px;
}


/* ============================================================================
   HOME INSIGHTS TEASER — 3 newest articles on the homepage
   ========================================================================== */
.home-insights {
    padding: 110px 0;
    background: var(--surface);
}

.hi-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 48px;
}

    .hi-head h2 {
        font-size: clamp(2rem, 4vw, 3rem);
        font-weight: 800;
        margin: 18px 0 0;
        line-height: 1.1;
        color: var(--ink);
    }

.hi-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-d);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--blue-deep);
    text-decoration: none;
    transition: gap 0.25s;
}

    .hi-all:hover {
        gap: 13px;
    }

.hi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.hi-card {
    display: flex;
    flex-direction: column;
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-card);
    text-decoration: none;
    transition: transform 0.28s cubic-bezier(.22,1,.36,1), box-shadow 0.28s, border-color 0.28s;
}

    .hi-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-lift);
        border-color: rgba(94, 193, 145, 0.40);
    }

.hi-visual {
    position: relative;
    height: 140px;
    display: flex;
    align-items: flex-end;
    padding: 18px;
    overflow: hidden;
}

    .hi-visual::after {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.25) 1px, transparent 1.6px);
        background-size: 20px 20px;
        mask-image: radial-gradient(80% 80% at 75% 25%, black, transparent 85%);
        -webkit-mask-image: radial-gradient(80% 80% at 75% 25%, black, transparent 85%);
        opacity: 0.5;
    }

.hi-topic {
    position: relative;
    z-index: 1;
    font-family: var(--font-d);
    font-size: 1.05rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.95);
}

.hi-icon {
    position: absolute;
    top: 16px;
    right: 18px;
    z-index: 1;
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.85);
}

/* When a teaser card has an uploaded image, it fills the visual; darken
   slightly so the topic label and icon stay legible (mirrors the Insights
   card treatment in shili-pages.css). */
.hi-visual.has-img .is-visual-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hi-visual.has-img::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(14,26,53,0.10), rgba(14,26,53,0.55));
    mask-image: none;
    -webkit-mask-image: none;
    opacity: 1;
    background-size: auto;
}

.hi-visual.has-img .hi-topic,
.hi-visual.has-img .hi-icon {
    position: relative;
    z-index: 2;
}

.hi-body {
    padding: 22px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
}

.hi-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hi-body h3 {
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.32;
    margin: 0;
    color: var(--ink);
    flex: 1;
}

.hi-author {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--muted);
    padding-top: 14px;
    border-top: 1px solid var(--line);
}


/* ============================================================================
   CLOSING CTA — soft pearl with gentle glow
   ========================================================================== */
.immersive-cta {
    padding: 140px 0;
    text-align: center;
    position: relative;
    background: var(--pearl);
}

    .immersive-cta .glow {
        position: absolute;
        inset: 0;
        z-index: 0;
        background: radial-gradient(50% 60% at 50% 50%, rgba(168, 212, 255, 0.45), transparent 70%), radial-gradient(40% 50% at 50% 60%, rgba(158, 229, 192, 0.30), transparent 70%);
        pointer-events: none;
    }

    .immersive-cta h2 {
        font-size: clamp(2.4rem, 6vw, 5rem);
        font-weight: 800;
        line-height: 1.02;
        margin-bottom: 22px;
        position: relative;
        color: var(--ink);
    }

    .immersive-cta p {
        color: var(--muted);
        font-size: 1.15rem;
        max-width: 560px;
        margin: 0 auto 40px;
        position: relative;
    }

    .immersive-cta .hero-actions {
        justify-content: center;
        position: relative;
    }


/* ============================================================================
   GLASS-MORPHISM UTILITIES  (frosted blur + hairline + soft shadow)
   ----------------------------------------------------------------------------
   Drop .glass-card / .glass-panel / .glass-chip on any element to give it the
   layered Pearl Trust glass depth — sits over the page bg with subtle blur,
   1px brand hairline, and a soft shadow. Works on white sections (no blur
   effect visible) and over the pearl bands (clear glass effect).
   ========================================================================== */
.glass-card {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(45, 108, 223, 0.12);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 12px 36px rgba(14, 26, 53, 0.07);
}

.glass-panel {
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(45, 108, 223, 0.10);
    backdrop-filter: blur(14px) saturate(130%);
    -webkit-backdrop-filter: blur(14px) saturate(130%);
}

.glass-chip {
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(45, 108, 223, 0.14);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 14px rgba(14, 26, 53, 0.05);
}


/* ============================================================================
   MAGNETIC HOVER  (.magnetic and [data-magnetic])
   ----------------------------------------------------------------------------
   JS adds the translate3d on mousemove; CSS handles the transitions and the
   "border-glow on press" affordance. The inner [data-magnetic-inner] span
   inside each magnetic element receives a slightly stronger pull so the
   label "leans into" the cursor more than the container.
   ========================================================================== */
.magnetic {
    will-change: transform;
    transition: box-shadow 0.35s cubic-bezier(.22,1,.36,1), border-color 0.35s;
}

    .magnetic [data-magnetic-inner] {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        will-change: transform;
        transition: none; /* JS-controlled */
    }

    .magnetic:active {
        transform: scale(0.97) !important; /* JS sets transform; this scale wins on press */
        transition: transform 0.12s cubic-bezier(.22,1,.36,1);
    }

.btn-glow.magnetic {
    box-shadow: var(--glow-blue);
}

    .btn-glow.magnetic:hover {
        box-shadow: 0 14px 40px rgba(79, 135, 224, 0.45);
    }


/* ============================================================================
   PARTNER LETTER — promoted to glass-card surface
   ----------------------------------------------------------------------------
   The .letter-wrap had its own white surface in Phase 8; here it picks up the
   .glass-card treatment in the markup, so override the bg to inherit instead.
   ========================================================================== */
.letter-wrap.glass-card {
    background: rgba(255, 255, 255, 0.78); /* slightly more opaque than default glass */
}


@media (max-width: 1100px) {
    .pp-row {
        grid-template-columns: 160px 1fr auto;
        gap: 28px;
    }

    .pp-num {
        font-size: 2.6rem;
    }

    .persona-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hi-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 780px) {
    .hero h1, .hero-statement {
        font-size: clamp(2.7rem, 11vw, 4.4rem);
    }

    .partner-letter {
        padding: 90px 0;
    }

    .letter-wrap {
        padding: 40px 28px;
    }

    .letter-signatures {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .practice-pillars {
        padding: 80px 0;
    }

    .pp-row {
        grid-template-columns: 1fr auto;
        grid-template-areas: "meta arrow" "body body";
        row-gap: 20px;
        padding: 32px 0;
    }

        .pp-row:hover {
            padding-left: 12px;
        }

    .pp-meta {
        grid-area: meta;
        flex-direction: row;
        align-items: center;
        gap: 16px;
    }

    .pp-num {
        font-size: 2rem;
    }

    .pp-body {
        grid-area: body;
    }

    .pp-arrow {
        grid-area: arrow;
        width: 44px;
        height: 44px;
    }

    .persona {
        padding: 80px 0;
    }

    .home-insights {
        padding: 80px 0;
    }

    .immersive-cta {
        padding: 90px 0;
    }
}

@media (max-width: 560px) {
    .persona-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 460px) {
    .skb-shell {
        padding: 0 20px;
    }

    .hero-actions {
        width: 100%;
    }

    .btn-glow, .btn-ghost {
        flex: 1;
        justify-content: center;
    }
}


/* ============================================================================
   ACCESSIBILITY — honour reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    .skb-immersive * {
        animation: none !important;
        transition: none !important;
    }

    .hero-cue .line {
        animation: none;
    }

    .hero-aurora {
        animation: none;
    }
}
