/* Investors page. Loaded only on the Investors template, with Splide. */

.inv-hero,
.inv-section,
.inv-faq,
.inv-closing { scroll-margin-top: var(--nav-height); }

/* Buttons */
.inv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.1rem;
    margin-top: 1.5rem;
    padding: 0 1.35rem;
    border: 1px solid var(--violet);
    border-radius: 999px;
    background: var(--violet);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
}
.inv-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(172, 129, 242, 0.22);
    background: #9870dc;
}
.inv-btn-light {
    border-color: var(--white);
    background: var(--white);
    color: var(--navy);
}
.inv-btn-light:hover { background: var(--lavender); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18); }

/* ── Hero ── */
.page-template-template-investors #main { padding-top: 0; }
.inv-hero {
    position: relative;
    overflow: hidden;
    background: var(--white);
}
/* Height follows the copy; the clamp is a floor so the photo has room. */
.inv-hero-inner {
    display: grid;
    grid-template-columns: minmax(28rem, 44vw) minmax(0, 1fr);
    align-items: center;
    min-height: clamp(580px, 68vh, 720px);
    padding-top: var(--nav-height);
}
.inv-hero-copy {
    position: relative;
    z-index: 2;
    align-self: start;
    box-sizing: content-box;
    width: clamp(28rem, 36vw, 34rem);
    padding: clamp(3rem, 7vh, 5.5rem) 1rem clamp(3rem, 6vh, 4.5rem) var(--page-gutter);
}
.inv-hero h1 {
    max-width: 32rem;
    color: rgba(37, 42, 76, 0.62);
    font-size: clamp(2.3rem, 3vw, 3.6rem);
    line-height: 1.15;
    text-wrap: balance;
    opacity: 0;
    transform: translateY(18px);
    animation: invTextIn 760ms cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s both;
}
.inv-hero-subhead {
    max-width: 32rem;
    margin-top: clamp(1.75rem, 3.5vh, 2.75rem);
    color: rgba(37, 42, 76, 0.76);
    font-size: clamp(1.05rem, 1.35vw, 1.45rem);
    line-height: 1.6;
    opacity: 0;
    transform: translateY(18px);
    animation: invTextIn 760ms cubic-bezier(0.2, 0.8, 0.2, 1) 0.45s both;
}
.inv-hero-copy .inv-btn {
    opacity: 0;
    transform: translateY(18px);
    animation: invTextIn 760ms cubic-bezier(0.2, 0.8, 0.2, 1) 0.7s both;
}
.inv-hero-copy .inv-btn:hover { transform: translateY(-2px); }
.inv-hero-media {
    position: absolute;
    inset: var(--nav-height) 0 0;
    z-index: 1;
    pointer-events: none;
}
/* The photo is a full-frame lavender image with a soft left fade for the copy
   to sit on, so it fills the hero rather than the handoff's letterboxed contain. */
.inv-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
}
@keyframes invTextIn { to { opacity: 1; transform: translateY(0); } }

/* ── Sections ── */
.inv-section { padding: clamp(3rem, 4vw, 4.5rem) var(--page-gutter); }
.inv-lavender { background: linear-gradient(135deg, rgba(237, 233, 255, 0.88), rgba(237, 233, 255, 0.48)); }

.inv-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    column-gap: clamp(4rem, 7vw, 7.5rem);
    align-items: start;
    margin-bottom: clamp(1.6rem, 2.4vw, 2.4rem);
}
.inv-head h2 {
    max-width: 32rem;
    color: rgba(37, 42, 76, 0.62);
    font-size: clamp(2.3rem, 3vw, 3.6rem);
    line-height: 1.15;
    text-wrap: balance;
}
.inv-head p {
    max-width: 35rem;
    margin-top: 0.35rem;
    color: var(--text);
    font-size: clamp(0.9rem, 1.02vw, 1rem);
    line-height: 2;
    text-wrap: pretty;
}
.inv-head-large {
    grid-template-columns: minmax(0, 0.8fr) minmax(22rem, 1fr);
    gap: clamp(3rem, 7vw, 8rem);
    align-items: end;
    margin-bottom: clamp(2.5rem, 4vw, 4rem);
}
.inv-head-large h2 {
    color: var(--text-muted);
    font-size: clamp(2.4rem, 4vw, 4.5rem);
    line-height: 1.08;
}
.inv-head-large p {
    max-width: 42rem;
    font-size: clamp(1rem, 1.2vw, 1.16rem);
    line-height: 1.85;
}

/* ── Investor logos (Splide) ── */
.inv-logos {
    padding: 0.75rem 0;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.inv-logo {
    display: grid;
    place-items: center;
    width: 13rem;
    height: 8rem;
    padding: 1.3rem 1.45rem;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.68);
    box-shadow: 0 18px 44px rgba(37, 42, 76, 0.04);
}
.inv-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
/* Before Splide mounts, and for reduced motion, the list is a plain row. */
.inv-logos:not(.is-initialized) .splide__list,
.inv-logos.is-static .splide__list {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}
.inv-logos.is-static {
    -webkit-mask-image: none;
    mask-image: none;
}

/* ── Cards ── */
.inv-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(1rem, 1.6vw, 1.5rem);
}
.inv-card {
    min-height: 14rem;
    padding: clamp(1.5rem, 2.4vw, 2.25rem);
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 22px 55px rgba(37, 42, 76, 0.06);
}
.inv-card-number {
    color: var(--violet);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.14em;
}
.inv-card h3 {
    margin-top: 3rem;
    font-family: var(--font-body);
    font-size: clamp(1.05rem, 1.3vw, 1.28rem);
    font-weight: 500;
    line-height: 1.35;
}
.inv-card p {
    margin-top: 0.85rem;
    color: var(--text-muted);
    font-size: 0.86rem;
    line-height: 1.7;
}

/* ── Timeline ── */
.inv-timeline {
    position: relative;
    display: grid;
    grid-template-columns: repeat(var(--count, 6), minmax(0, 1fr));
    gap: 1rem;
    padding-top: 2rem;
}
.inv-timeline::before {
    content: '';
    position: absolute;
    top: 3.85rem;
    left: 7%;
    right: 7%;
    height: 1px;
    background: rgba(37, 42, 76, 0.18);
}
.inv-milestone {
    position: relative;
    z-index: 1;
    text-align: center;
}
.inv-milestone-icon {
    display: grid;
    place-items: center;
    width: 3.7rem;
    height: 3.7rem;
    margin: 0 auto 1.5rem;
    border: 1px solid rgba(172, 129, 242, 0.48);
    border-radius: 50%;
    background: var(--white);
    color: var(--violet);
    box-shadow: 0 10px 28px rgba(37, 42, 76, 0.05);
}
.inv-milestone-icon svg {
    width: 1.3rem;
    height: 1.3rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
}
.inv-milestone h3 {
    font-family: var(--font-body);
    font-size: 0.86rem;
    font-weight: 500;
    line-height: 1.45;
}

/* ── Q&A ── */
.inv-faq {
    padding: clamp(5rem, 8vw, 8rem) var(--page-gutter);
    border-top: 1px solid var(--line);
    background: rgba(237, 233, 255, 0.32);
}
.faq-group + .faq-group { margin-top: clamp(4rem, 7vw, 6.5rem); }
.faq-group {
    display: grid;
    grid-template-columns: minmax(15rem, 0.48fr) minmax(0, 1.35fr);
    gap: clamp(3rem, 7vw, 8rem);
    align-items: start;
}
.faq-group-head {
    position: sticky;
    top: calc(var(--nav-height) + 2rem);
}
.faq-group-number {
    display: block;
    margin-bottom: 0.85rem;
    color: var(--teal);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.16em;
}
.faq-group-head h3 {
    max-width: 24rem;
    color: rgba(37, 42, 76, 0.65);
    font-size: clamp(2rem, 2.8vw, 3.15rem);
    line-height: 1.15;
}
.faq-list { border-top: 1px solid var(--line); }
.faq-item {
    scroll-margin-top: calc(var(--nav-height) + 2rem);
    border-bottom: 1px solid var(--line);
}
.faq-item:nth-child(even) { background: rgba(237, 233, 255, 0.46); }
.faq-q {
    font-family: var(--font-body);
    font-size: clamp(0.95rem, 1.05vw, 1.05rem);
    font-weight: 500;
    line-height: 1.55;
}
.faq-q button {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 2rem;
    gap: 1.5rem;
    align-items: center;
    width: 100%;
    min-height: 4.7rem;
    padding: 1rem clamp(1rem, 2vw, 1.6rem);
    border: 0;
    background: none;
    color: var(--navy);
    text-align: left;
    cursor: pointer;
}
.faq-q button:hover { color: var(--violet-deep); }
.faq-q button:focus-visible { outline: 2px solid var(--violet); outline-offset: -3px; }
.faq-icon {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    color: var(--violet);
    font-family: var(--font-display);
    font-size: 1.55rem;
    line-height: 1;
}
.faq-a {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 340ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.faq-a-inner { min-height: 0; overflow: hidden; }
.faq-a p {
    max-width: 49rem;
    padding: 0 clamp(4rem, 6vw, 5.5rem) 0 clamp(1rem, 2vw, 1.6rem);
    color: var(--text-muted);
    font-size: 0.94rem;
    line-height: 1.9;
    opacity: 0;
    transform: translateY(-5px);
    transition: opacity 220ms ease, transform 300ms ease, padding-bottom 300ms ease;
}
.faq-a p + p { margin-top: 0.8rem; }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-item.is-open .faq-a p {
    opacity: 1;
    transform: none;
}
.faq-item.is-open .faq-a p:last-child { padding-bottom: 1.45rem; }

/* ── Closing ── */
.inv-closing {
    padding: clamp(4.5rem, 7vw, 7rem) var(--page-gutter);
    color: var(--white);
    background: linear-gradient(135deg, #252A4C 0%, #37345e 55%, #5f4f8d 100%);
}
.inv-closing-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: clamp(4rem, 7vw, 7.5rem);
    align-items: start;
}
.inv-closing h2 {
    max-width: 48rem;
    color: var(--white);
    font-size: clamp(2.3rem, 3vw, 3.6rem);
    line-height: 1.15;
}
.inv-closing p {
    color: rgba(255, 255, 255, 0.76);
    font-size: clamp(0.9rem, 1.02vw, 1rem);
    line-height: 2;
}

/* ── Responsive ── */
@media (max-width: 1200px) {
    .inv-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .inv-timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem 1rem; }
    .inv-timeline::before { display: none; }
}
@media (max-width: 980px) {
    .inv-hero-inner {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        height: auto;
    }
    .inv-hero-media {
        position: relative;
        inset: auto;
        order: 1;
        width: 100%;
        min-height: 42vh;
    }
    .inv-hero-img { object-position: 70% center; }
    .inv-hero-copy {
        order: 2;
        width: auto;
        box-sizing: border-box;
        padding: 0 1.5rem 3rem;
    }
    .inv-hero h1, .inv-hero-subhead, .inv-hero-copy .inv-btn {
        opacity: 1;
        transform: none;
        animation: none;
    }
    .inv-head, .inv-head-large, .inv-closing-inner, .faq-group {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .inv-head p { margin-top: 0; }
    .faq-group-head { position: static; }
    .inv-timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .inv-cards, .inv-timeline { grid-template-columns: 1fr; }
    .inv-milestone {
        display: grid;
        grid-template-columns: 3.7rem 1fr;
        align-items: center;
        gap: 1rem;
        text-align: left;
    }
    .inv-milestone-icon { margin: 0; }
    .faq-a p { padding-right: 1rem; padding-left: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
    .inv-hero h1, .inv-hero-subhead, .inv-hero-copy .inv-btn {
        opacity: 1;
        transform: none;
        animation: none;
        transition: none;
    }
    .faq-a, .faq-a p, .inv-btn { transition: none; }
}
