/* Front page: the founding programme card and the 100 Founding Homeopaths wall.
   Ported from the static build; loaded only on front-page.php. */
/* ==========================================================================
   08b. STATS BAND & FOUNDING SECTION — SEAMLESS LIVE CANVAS (RXI.CARE 1:1)
   ========================================================================== */
.stats-band {
    position: relative;
    background: transparent !important;
}

#page #founding.cohort-section,
#founding.cohort-section {
    position: relative;
    background: transparent !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(16px, 2.8vh, 28px) clamp(20px, 4vw, 40px);
}

@media (min-width: 1024px) {
    #page #founding.cohort-section,
    #founding.cohort-section {
        min-height: 0; height: auto; padding-top: clamp(72px, 9vw, 120px); padding-bottom: clamp(72px, 9vw, 120px);
    }
}

@media (max-width: 1023px) {
    #page #founding.cohort-section,
    #founding.cohort-section {
        min-height: auto;
        height: auto;
        padding: 80px 24px;
    }
}

.fnd-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
}

.fnd-layout { display: grid; grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr); gap: clamp(32px, 5vw, 68px); align-items: center; }

@media (max-width: 1023px) {
    .fnd-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

/* --- Left Column: Pure Editorial Typography --- */
.fnd-copy { max-width: 520px; min-width: 0; }

.fnd-eyebrow { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 14px; color: #00B2A9; }

.fnd-title { margin: 0; color: #FFFFFF; font-family: 'Satoshi', ui-sans-serif, system-ui, sans-serif; font-size: clamp(2.4rem, 4vw, 3.8rem); font-weight: 700; line-height: 1.04; letter-spacing: -0.035em; }

.fnd-title-main {
    color: #FFFFFF;
    background: linear-gradient(180deg, #FFFFFF 30%, rgba(255, 255, 255, 0.84) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.fnd-title-grad {
    background: linear-gradient(100deg, #e24ac8 0%, #9a5cf3 48%, #4f86f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.fnd-lead { margin-top: 22px; color: rgba(225, 235, 248, 0.86); font-size: clamp(0.98rem, 1.15vw, 1.08rem); line-height: 1.65; }

.fnd-lead-sub { margin-top: 12px; color: rgba(185, 203, 226, 0.76); font-size: clamp(0.9rem, 1.05vw, 0.98rem); line-height: 1.62; }

/* --- Right Column: Clinical Offer Surface --- */
.fnd-card-wrap { position: relative; max-width: 560px; width: 100%; min-width: 0; margin-left: auto; }

.fnd-card { position: relative; z-index: 1; width: 100%; border-radius: 18px; border: 3px solid transparent; background: linear-gradient(180deg, #121B33 0%, #0E162C 100%) padding-box, linear-gradient(150deg, #00B2A9 0%, rgba(124, 107, 240, .85) 54%, rgba(201, 196, 245, .6) 100%) border-box; box-shadow: 0 2px 8px rgba(9, 15, 29, .35), 0 34px 70px -30px rgba(9, 15, 29, .8); overflow: hidden; color: #FFFFFF; }

.fnd-card:hover { box-shadow: 0 2px 8px rgba(9, 15, 29, .35), 0 34px 70px -30px rgba(9, 15, 29, .8); }

/* Header */
.fnd-card-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 22px 14px; background: linear-gradient(135deg, #1B2A55, #26407D); border-bottom: 1px solid rgba(255, 255, 255, .10); }

.fnd-card-title { font-family: 'Satoshi', ui-sans-serif, system-ui, sans-serif; font-size: 15px; font-weight: 700; color: #FFFFFF; letter-spacing: -0.01em; }

/* Card Body */
.fnd-card-body {
    background: transparent;
}

/* Seats Row */
.fnd-row-seats { padding: 16px 22px 15px; border-bottom: 1px solid rgba(255, 255, 255, .07); }

.fnd-seats-main { display: flex; align-items: baseline; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; }

.fnd-seats-left { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; min-width: 0; }

.fnd-seats-big { font-family: 'Satoshi', ui-sans-serif, system-ui, sans-serif; font-size: 2.15rem; font-weight: 700; line-height: 1; letter-spacing: -0.02em; color: #34EBE2; background: linear-gradient(100deg, #7DF0E9 0%, #00B2A9 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.fnd-seats-text { font-size: 13.5px; color: #A7B4C8; }

.fnd-pill-taken { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #7DF0E9; background: rgba(0, 178, 169, .10); border: 1px solid rgba(0, 178, 169, .38); padding: 6px 12px; border-radius: 9999px; white-space: nowrap; }

.fnd-pill-taken strong { color: #FFFFFF; font-weight: 800; font-size: 13px; margin-right: 2px; }

/* Price Block */
.fnd-row-price { padding: 16px 22px 17px; border-bottom: 1px solid rgba(255, 255, 255, .07); background: linear-gradient(90deg, rgba(0, 178, 169, .09), rgba(0, 178, 169, .03)); }

.fnd-price-content { display: flex; align-items: baseline; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; }

.fnd-price-left { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; min-width: 0; }

.fnd-price-was { color: #8593A8; font-size: 14px; text-decoration: line-through; text-decoration-thickness: 1.5px; }

.fnd-price-now { font-family: 'Satoshi', ui-sans-serif, system-ui, sans-serif; font-size: 2.75rem; font-weight: 700; color: #FFFFFF; line-height: 1; letter-spacing: -0.025em; }

.fnd-price-term { font-size: 13px; color: #A7B4C8; font-weight: 500; }

.fnd-lock-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 9999px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(0, 178, 169, .38); color: #7DF0E9; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }

/* Capacity Specs */
.fnd-row-capacity { padding: 14px 22px 15px; border-bottom: 1px solid rgba(255, 255, 255, .07); }

.fnd-spec-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; border-radius: 10px; overflow: hidden; background: rgba(255, 255, 255, .09); }

.fnd-spec-item { padding: 10px 12px 11px; background: #111A31; text-align: left; min-width: 0; }

.fnd-spec-item:hover { background: #141E38; }

.fnd-spec-k { display: block; font-size: 10px; font-weight: 700; color: #A7B4C8; letter-spacing: .11em; text-transform: uppercase; }

.fnd-spec-v { display: block; font-family: 'Satoshi', ui-sans-serif, system-ui, sans-serif; font-size: 15px; font-weight: 700; color: #FFFFFF; margin-top: 2px; }

/* Features List */
.fnd-row-includes { padding: 14px 22px 15px; }

.fnd-feature-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }

.fnd-feature-list li { display: flex; align-items: baseline; gap: 10px; font-size: 13.5px; line-height: 1.5; color: #D5DEEA; }

.fnd-feature-tick { flex-shrink: 0; width: 14px; height: 14px; color: #00B2A9; display: inline-flex; align-items: center; justify-content: center; position: relative; top: 2px; }

.fnd-feature-tick svg { width: 13px; height: 13px; }

.fnd-feature-list b {
    color: #FFFFFF;
    font-weight: 600;
}

/* Footer & CTA */
.fnd-row-foot { padding: 4px 22px 18px; }

.fnd-cta-btn { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 14px 20px; border-radius: 10px; background: #00827B; color: #FFFFFF; font-size: 15px; font-weight: 700; letter-spacing: -0.01em; transition: background 0.2s ease, transform 0.2s ease; }

.fnd-cta-btn:hover { background: #00706A; transform: translateY(-1px); color: #FFFFFF; }

.fnd-cta-btn:active {
    transform: translateY(0.5px);
}

.fnd-cta-arrow {
    font-size: 14px;
    transition: transform 0.2s ease;
}

.fnd-cta-btn:hover .fnd-cta-arrow {
    transform: translateX(4px);
}

.fnd-fine { margin: 10px 0 0; font-size: 12px; color: #8593A8; text-align: center; letter-spacing: 0.01em; }

.fnd-card-logo { height: 22px; width: auto; flex: none; opacity: .92; }

        /* ==================== FOUNDING CONTEXT ==================== */
        /* Photographs scattered on the page's own ground. The tilt, the radius,
           the rim and the shadow are CSS -- the images are plain upright
           rectangles, so they stay crisp at any size. No glow and no bands of its
           own: the section sits on the same surface as the rest of the page. */
        #page .founding-context,
        .founding-context {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            overflow: hidden;
            background: transparent !important;
            padding: clamp(48px, 7vw, 104px) 0;
        }
        #page .founding-context::before,
        #page .founding-context::after,
        .founding-context::before,
        .founding-context::after,
        .founding-context-stage::before,
        .fnd-center-editorial::before { content: none !important; display: none !important; }

        .founding-context-stage {
            position: relative;
            width: 100%;
            max-width: 1540px;
            margin: 0 auto;
            padding: 0 clamp(16px, 2.5vw, 40px);
            aspect-ratio: 1672 / 941;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .fnd-center-editorial {
            position: relative;
            z-index: 10;
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            max-width: min(86%, 760px);
            margin: 0 auto;
        }
        .fnd-sprout-mark { display: inline-flex; margin-bottom: clamp(10px, 1.4vw, 18px); }
        .fnd-sprout-mark svg {
            width: clamp(32px, 3.4vw, 50px);
            height: auto;
            filter: drop-shadow(0 0 16px rgba(56, 189, 248, .5));
        }
        .fnd-cohort-h2 {
            margin: 0;
            font-family: 'Satoshi', ui-sans-serif, system-ui, sans-serif;
            font-size: clamp(1.5rem, 3.6vw, 3.1rem);
            font-weight: 700;
            line-height: 1.1;
            letter-spacing: -0.035em;
            color: #FFFFFF;
            text-wrap: balance;
            text-shadow: 0 2px 24px rgba(5, 12, 30, .6);
        }
        .fnd-cohort-sub {
            margin: clamp(6px, 0.8vw, 12px) 0 0;
            font-family: 'Satoshi', ui-sans-serif, system-ui, sans-serif;
            font-size: clamp(1rem, 2.4vw, 2.05rem);
            font-weight: 500;
            line-height: 1.2;
            letter-spacing: -0.02em;
            color: #DCE7F7;
            text-shadow: 0 2px 20px rgba(5, 12, 30, .6);
        }
        .fnd-cyan-together {
            font-style: italic;
            font-weight: 600;
            background: linear-gradient(100deg, #38BDF8 0%, #22D3EE 100%);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        /* the ring fades out at every edge, so it melts into the sections above
           and below instead of ending on a hard line */
        .fnd-cards-layer {
            position: absolute;
            inset: 0;
            pointer-events: none;
            -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%), linear-gradient(180deg, transparent 0, #000 9%, #000 91%, transparent 100%);
            -webkit-mask-composite: source-in;
            mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%), linear-gradient(180deg, transparent 0, #000 9%, #000 91%, transparent 100%);
            mask-composite: intersect;
        }
        .fnd-doc-item {
            position: absolute;
            pointer-events: auto;
            transition: scale .45s cubic-bezier(.16, 1, .3, 1);
        }
        .fnd-doc-item img {
            display: block;
            width: 100%;
            height: auto;
            border-radius: clamp(10px, 1.1vw, 18px);
            /* dimmed a touch, so the heading is the brightest thing here */
            opacity: .84;
            /* a light rim like the reference's; an inset shadow would paint under
               the image and never show */
            outline: 1px solid rgba(255, 255, 255, .18);
            outline-offset: -1px;
            box-shadow: 0 18px 40px -16px rgba(2, 10, 28, .8);
            user-select: none;
            -webkit-user-drag: none;
        }
        .fnd-card-ghost img { opacity: .42; outline-color: rgba(255, 255, 255, .08); box-shadow: none; }
        .fnd-f03 img { border-radius: 50%; }
        @media (hover: hover) and (pointer: fine) {
            /* the individual scale property composes with the tilt, which GSAP
               leaves inline, so the hover never fights it */
            .fnd-doc-item:not(.fnd-card-ghost):hover { scale: 1.05; z-index: 20; }
        }
        .fnd-f01 { left: 1.5%; right: auto; top: 5.5%; width: 16.4%; transform: rotate(-6.5deg); z-index: 6; }
        .fnd-f02 { left: 22.5%; right: auto; top: 1.5%; width: 15.2%; transform: rotate(4.5deg); z-index: 6; }
        .fnd-f03 { left: 13.0%; right: auto; top: 29.0%; width: 11.6%; transform: rotate(0.0deg); z-index: 5; }
        .fnd-f04 { left: -1.0%; right: auto; top: 43.0%; width: 16.6%; transform: rotate(-7.0deg); z-index: 6; }
        .fnd-f05 { left: 10.5%; right: auto; top: 68.0%; width: 17.2%; transform: rotate(6.0deg); z-index: 6; }
        .fnd-f06 { left: 52.5%; right: auto; top: 70.0%; width: 15.0%; transform: rotate(-5.0deg); z-index: 4; }
        .fnd-f07 { right: 24.0%; left: auto; top: 17.0%; width: 14.4%; transform: rotate(5.5deg); z-index: 4; }
        .fnd-f08 { right: 1.0%; left: auto; top: 3.0%; width: 15.8%; transform: rotate(5.0deg); z-index: 6; }
        .fnd-f09 { right: 1.5%; left: auto; top: 38.0%; width: 16.0%; transform: rotate(-6.0deg); z-index: 6; }
        .fnd-f10 { right: 1.0%; left: auto; top: 70.0%; width: 16.2%; transform: rotate(6.5deg); z-index: 6; }
        .fnd-g1 { left: 42.0%; right: auto; top: 1.0%; width: 12.5%; transform: rotate(-3.0deg); z-index: 3; }
        .fnd-g2 { left: 57.5%; right: auto; top: 0.0%; width: 13.0%; transform: rotate(3.5deg); z-index: 3; }
        .fnd-g3 { left: 33.5%; right: auto; top: 64.0%; width: 12.0%; transform: rotate(2.5deg); z-index: 3; }
        .fnd-g4 { right: 21.0%; left: auto; top: 56.0%; width: 12.5%; transform: rotate(-2.5deg); z-index: 3; }

        /* the floats move the image inside its tilted frame, so the tilt the card
           carries is never fought by the animation */
        @keyframes fndFloatSlow { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
        @keyframes fndFloatSlowAlt { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
        .fnd-float-1 img { animation: fndFloatSlow 6.5s ease-in-out infinite; }
        .fnd-float-2 img { animation: fndFloatSlowAlt 7.2s ease-in-out infinite; }
        .fnd-float-3 img { animation: fndFloatSlow 8.0s ease-in-out infinite .8s; }
        .fnd-float-4 img { animation: fndFloatSlowAlt 6.8s ease-in-out infinite 1.2s; }
        @media (prefers-reduced-motion: reduce) {
            .fnd-float-1 img, .fnd-float-2 img, .fnd-float-3 img, .fnd-float-4 img { animation: none !important; }
        }

        /* tablets: same ring, a little more height so the words have room */
        @media (max-width: 1023px) {
            .founding-context-stage { aspect-ratio: 4 / 3; }
            .fnd-cohort-h2 { font-size: clamp(1.6rem, 4.4vw, 2.6rem); }
            .fnd-cohort-sub { font-size: clamp(1.05rem, 2.9vw, 1.6rem); }
        }

        /* phones: a taller stage with the cards above and below the words and
           none beside them, so the heading never runs under a photograph */
        @media (max-width: 560px) {
            .founding-context-stage { aspect-ratio: 10 / 16; padding: 0 8px; }
            .fnd-center-editorial { max-width: 90%; }
            .fnd-cohort-h2 { font-size: clamp(1.45rem, 6.9vw, 1.9rem); }
            .fnd-cohort-sub { font-size: clamp(1rem, 4.5vw, 1.25rem); }
            .fnd-doc-item img { border-radius: 10px; }
            .fnd-g2, .fnd-g4 { display: none; }
            .fnd-f01 { left: -3%; right: auto; top: 2%; width: 30%; }
            .fnd-f02 { left: 30%; right: auto; top: 0.5%; width: 26%; }
            .fnd-f08 { right: -3%; left: auto; top: 3%; width: 29%; }
            .fnd-f03 { left: 6%; right: auto; top: 20%; width: 21%; }
            .fnd-f07 { right: 6%; left: auto; top: 21%; width: 25%; }
            .fnd-g1 { left: 44%; right: auto; top: 15%; width: 22%; }
            .fnd-f04 { left: -4%; right: auto; top: 65%; width: 29%; }
            .fnd-f06 { left: 36%; right: auto; top: 64%; width: 25%; }
            .fnd-f09 { right: -4%; left: auto; top: 66%; width: 29%; }
            .fnd-f05 { left: 12%; right: auto; top: 81%; width: 30%; }
            .fnd-f10 { right: 10%; left: auto; top: 82%; width: 29%; }
            .fnd-g3 { left: 41%; right: auto; top: 83%; width: 20%; }
        }
