/* ==========================================================================
   INCUBATEES SHOWCASE — Visual Theme
   Structure → Tailwind utility classes in markup
   Visuals  → this file
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. SECTION & HEADER
   -------------------------------------------------------------------------- */
.ib-s  { background: #F8F6F2 }
.ib-w  { max-width: 1200px }

.ib-rule {
    width: 18px; height: 1.5px;
    background: #F8AF21; border-radius: 1px;
}
.ib-tag {
    font-size: .52rem; font-weight: 600;
    letter-spacing: .22em; text-transform: uppercase;
    color: #e8a900;
}
.ib-title {
    font-family: 'DM Serif Display', serif;
    font-size: 1.55rem; line-height: 1.1; color: #020d18;
}
@media (min-width: 768px) { .ib-title { font-size: 2rem } }
.ib-title em { color: #F8AF21; font-style: italic }

.ib-sub {
    font-size: .8rem; font-weight: 300;
    line-height: 1.8; color: rgba(2,13,24,.4);
    max-width: 460px;
}

/* --------------------------------------------------------------------------
   2. CARD GRID
   -------------------------------------------------------------------------- */
.ib-stack { min-height: 320px; padding: 10px 0 20px }

.ib-card {
    width: 230px; height: 335px;
    perspective: 900px; z-index: 1;
    transition: filter .3s;
}
@media (min-width: 768px) { .ib-card { width: 250px; height: 360px } }

.ib-stack.has-active .ib-card:not(.is-picked) {
    filter: brightness(.82) saturate(.5);
    pointer-events: none;
}
.ib-inner { transform-style: preserve-3d; will-change: transform }

.ib-front, .ib-back,
.ib-big-front, .ib-big-back {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* --------------------------------------------------------------------------
   3. SMALL CARD — FRONT
   -------------------------------------------------------------------------- */
.ib-front {
    background: linear-gradient(178deg, #fff, #f6f4ef);
    border: 2px solid rgba(248,175,33,.2);
    box-shadow: 0 2px 14px rgba(2,13,24,.05);
    z-index: 2;
}
.ib-card:hover .ib-front {
    border-color: rgba(248,175,33,.35);
    box-shadow: 0 8px 36px rgba(248,175,33,.07), 0 4px 18px rgba(2,13,24,.07);
}

.ib-frame      { border: 1px solid rgba(248,175,33,.1); border-radius: 8px; z-index: 3 }
.ib-front .ib-frame { inset: 5px }

.ib-diamond {
    width: 5px; height: 5px;
    background: rgba(248,175,33,.2);
    transform: rotate(45deg); z-index: 4;
}
.ib-front .ib-diamond.tl { top: 10px; left: 10px }
.ib-front .ib-diamond.tr { top: 10px; right: 10px }
.ib-front .ib-diamond.bl { bottom: 10px; left: 10px }
.ib-front .ib-diamond.br { bottom: 10px; right: 10px }

.ib-portrait {
    padding: .6rem;
    z-index: 2;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Small card logo — invisible container, logo fills most of the card */
.ib-logo-box {
    width: 80%; height: 80%;
    max-width: 190px; max-height: 190px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    overflow: visible;
    flex-shrink: 0;
}
.ib-logo-box img {
    width: 100%; height: 100%;
    object-fit: contain;
    object-position: center center;
    display: block;
    margin: 0 auto;
}
.ib-init {
    font-family: 'DM Serif Display', serif;
    font-size: 2.8rem; color: rgba(248,175,33,.45);
    line-height: 1;
    background: transparent;
}

/* --------------------------------------------------------------------------
   4. SMALL CARD — BACK
   -------------------------------------------------------------------------- */
.ib-back {
    background: #03355a;
    border: 2px solid rgba(248,175,33,.22);
    transform: rotateY(180deg);
}
.ib-card:hover .ib-back { border-color: rgba(248,175,33,.35) }

.ib-back .ib-frame { inset: 5px; border-color: rgba(248,175,33,.12) }

.ib-frame-inner {
    inset: 13px;
    border: 1px solid rgba(248,175,33,.05);
    border-radius: 4px; z-index: 2;
}

.ib-back .ib-diamond { background: rgba(248,175,33,.22) }
.ib-back .ib-diamond.tl { top: 10px; left: 10px }
.ib-back .ib-diamond.tr { top: 10px; right: 10px }
.ib-back .ib-diamond.bl { bottom: 10px; left: 10px }
.ib-back .ib-diamond.br { bottom: 10px; right: 10px }

.ib-dots {
    z-index: 1;
    background-image:
        linear-gradient(rgba(248,175,33,.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(248,175,33,.03) 1px, transparent 1px);
    background-size: 18px 18px;
}

.ib-seal {
    width: 55%; max-width: 85px;
    opacity: .5; z-index: 2;
    margin-top: auto; padding-top: .8rem;
    transition: opacity .3s;
}
.ib-card:hover .ib-seal { opacity: .6 }

.ib-back-divider {
    width: 28px; height: 1px;
    background: rgba(248,175,33,.2);
    margin: .5rem 0 .4rem; z-index: 3;
}
.ib-back-name {
    font-family: 'DM Serif Display', serif;
    font-size: 1.2rem; line-height: 1.2;
    color: rgba(255,255,255,.9); z-index: 3;
    text-align: center; width: 80%;
}
.ib-back-cohort {
    font-size: .55rem; font-weight: 700;
    letter-spacing: .2em; text-transform: uppercase;
    color: rgba(248,175,33,.65); z-index: 3;
    margin-bottom: auto; padding-bottom: .6rem;
}

/* --------------------------------------------------------------------------
   5. OVERLAY
   -------------------------------------------------------------------------- */
.ib-overlay {
    z-index: 999;
    visibility: hidden; opacity: 0;
    transition: visibility 0s .4s, opacity 0s .4s;
}
.ib-overlay.is-open {
    visibility: visible; opacity: 1;
    transition: visibility 0s, opacity 0s;
}

.ib-backdrop {
    background: rgba(2,13,24,.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0; transition: opacity .35s;
}
.ib-overlay.is-open .ib-backdrop { opacity: 1 }

.ib-modal {
    z-index: 2; padding-right: 480px;
    pointer-events: none;
}
@media (max-width: 900px) { .ib-modal { padding-right: 0 } }
.ib-overlay.is-open .ib-modal { pointer-events: auto }

/* --------------------------------------------------------------------------
   6. BIG CARD — CONTAINER
   -------------------------------------------------------------------------- */
.ib-big-card {
    width: calc(78vh * .667); height: 78vh;
    max-width: calc(100vw - 520px);
    perspective: 1200px;
    opacity: 0; transform: scale(.7) translateY(30px);
}
@media (min-width: 768px) {
    .ib-big-card { width: calc(80vh * .667); height: 80vh }
}
@media (max-width: 900px) {
    .ib-big-card { width: 65vw; height: calc(65vw * 1.5); max-width: none; max-height: 90vh }
}

.ib-big-inner {
    transform-style: preserve-3d;
    box-shadow: 0 24px 80px rgba(2,13,24,.18), 0 2px 12px rgba(2,13,24,.06);
    border-radius: 1.2rem;
}

/* --------------------------------------------------------------------------
   7. BIG CARD — FRONT (NAVY BRAND CANVAS)
   -------------------------------------------------------------------------- */
.ib-big-front {
    background: linear-gradient(170deg, #04406b, #03355a 40%, #022a48);
    border: none;
    gap: 1.2rem; padding: 2.5rem 1.5rem;
    z-index: 2;
}
/* Decorative frames/diamonds/dots hidden on big card (kept on small cards) */
.ib-big-front .ib-frame,
.ib-big-front .ib-frame-inner,
.ib-big-front .ib-diamond,
.ib-big-front .ib-dots { display: none }

.ib-bf-num {
    top: 18px; left: 20px; z-index: 6;
    font-family: 'DM Serif Display', serif;
    font-size: .65rem; color: rgba(248,175,33,.5);
}
.ib-bf-portrait { z-index: 2 }

.ib-bf-logo {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ib-bf-logo img {
    width: 18vh; height: 18vh;
    object-fit: contain;
    object-position: center center;
    filter: brightness(0) invert(1);
    opacity: .85; transition: opacity .3s;
    background: transparent !important;
    border-radius: 0; padding: 0;
    display: block;
    margin: 0 auto;
}
.ib-bf-logo:hover img { opacity: 1 }
/* is-white: keep same white-filter treatment so any uploaded logo reads as white on navy */
.ib-bf-logo img.is-white { filter: brightness(0) invert(1); opacity: .9 }

.ib-bf-divider {
    width: 36px; height: 1.5px; border-radius: 1px;
    background: rgba(248,175,33,.22);
    margin: 0 auto .5rem; z-index: 3;
}
.ib-bf-nameplate {
    width: calc(100% - 36px); margin: 0 18px;
    padding-bottom: .3rem; z-index: 2;
}
.ib-bf-name {
    font-family: 'DM Serif Display', serif;
    font-size: 2rem; line-height: 1.18;
    color: #fff; margin-bottom: .2rem;
}
.ib-bf-founder {
    font-size: .82rem; font-weight: 300;
    color: rgba(255,255,255,.5); margin-bottom: .15rem;
}
.ib-bf-cohort {
    font-size: .5rem; font-weight: 600;
    letter-spacing: .18em; text-transform: uppercase;
    color: rgba(248,175,33,.65);
}

/* Subtle flip hint on big card */
.ib-big-flip-hint {
    position: absolute;
    bottom: 18px; left: 0; right: 0;
    text-align: center;
    font-family: 'DM Sans', sans-serif;
    font-size: .48rem; font-weight: 500;
    letter-spacing: .14em; text-transform: uppercase;
    color: rgba(255,255,255,.18);
    pointer-events: none;
    transition: opacity .3s;
}
.ib-big-flip-hint.is-back {
    color: rgba(2,13,24,.15);
}
.ib-big-inner:hover .ib-big-flip-hint {
    color: rgba(255,255,255,.35);
}
.ib-big-inner:hover .ib-big-flip-hint.is-back {
    color: rgba(2,13,24,.3);
}

/* --------------------------------------------------------------------------
   8. BIG CARD — BACK (CLEAN TEAM)
   -------------------------------------------------------------------------- */
.ib-big-back {
    background: linear-gradient(178deg, #fff, #f9f7f3);
    border: none;
    transform: rotateY(-180deg);
    padding: 2.5rem 1.5rem;
}
/* Decorative elements hidden on big card back */
.ib-big-back .ib-frame,
.ib-big-back .ib-frame-inner,
.ib-big-back .ib-diamond { display: none }

.ib-bb-label {
    font-size: .56rem; font-weight: 700;
    letter-spacing: .22em; text-transform: uppercase;
    color: #03558C; margin-bottom: .4rem;
    text-shadow: 0 1px 0 rgba(255,255,255,.4);
}
.ib-bb-name {
    font-family: 'DM Serif Display', serif;
    font-size: 1.8rem; line-height: 1.2;
    color: #020d18; z-index: 3;
}
.ib-bb-divider {
    width: 60px; height: 1.5px; border-radius: 1px;
    background: rgba(248,175,33,.25);
    margin: .6rem auto .8rem; z-index: 3;
}

.ib-bb-team {
    gap: .7rem; padding: 0 1.5rem;
    z-index: 3; max-height: 60%;
    overflow-y: auto; scrollbar-width: none; -ms-overflow-style: none;
}
.ib-bb-team::-webkit-scrollbar { display: none }
.ib-bb-team-label {
    font-size: .48rem; font-weight: 700;
    letter-spacing: .2em; text-transform: uppercase;
    color: rgba(2,13,24,.55); margin-bottom: .2rem;
}
.ib-bb-member { gap: .08rem }
.ib-bb-member-name {
    font-size: .92rem; font-weight: 400;
    color: #020d18; line-height: 1.3;
}
.ib-bb-member-role {
    font-size: .56rem; font-weight: 500;
    letter-spacing: .12em; text-transform: uppercase;
    color: rgba(2,13,24,.4);
}
.ib-bb-no-team {
    font-size: .65rem; font-weight: 300;
    color: rgba(2,13,24,.25); font-style: italic;
    padding: 1rem 0;
}

/* --------------------------------------------------------------------------
   9. DETAIL PANEL
   -------------------------------------------------------------------------- */
.ib-panel {
    z-index: 1001; max-width: 480px;
    background: #fff;
    transform: translateX(100%);
    box-shadow: -8px 0 40px rgba(0,0,0,.1);
}
.ib-close {
    width: 40px; height: 40px;
    border: 1px solid rgba(2,13,24,.08);
    background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(248,250,252,.88));
    border-radius: 10px;
    color: rgba(2,13,24,.3);
    box-shadow: 0 4px 14px rgba(2,13,24,.06);
    transition: color .2s, background .2s, border-color .2s, transform .2s, box-shadow .2s;
    flex-shrink: 0;
}
.ib-close:hover {
    color: #020d18;
    border-color: rgba(3,85,140,.28);
    background: linear-gradient(180deg, #ffffff, #f3f8fd);
    box-shadow: 0 8px 18px rgba(2,13,24,.1);
    transform: translateY(-1px);
}

.ib-p-body { padding: 0 2rem 1.4rem; scrollbar-width: none; -ms-overflow-style: none }
.ib-p-body::-webkit-scrollbar { display: none }
.ib-p-head {
    position: sticky;
    top: 0;
    z-index: 24;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .95rem;
    margin: 0 -2rem;
    padding: 1rem 2rem .85rem;
    background:
        linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.95));
    /*border-bottom: 1px solid rgba(2,13,24,.08);*/
    /*box-shadow: 0 8px 22px rgba(2,13,24,.07);*/
    backdrop-filter: blur(8px);
}
.ib-p-about-title {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(1.35rem, 2.25vw, 2rem);
    line-height: 1.12;
    letter-spacing: .01em;
    color: #020d18;
    margin: 0;
    text-wrap: balance;
}
.ib-p-content {
    padding-top: 1rem;
    font-size: .86rem; font-weight: 400;
    line-height: 1.58;
    color: rgba(2,13,24,.72);
    text-align: left;
}
.ib-p-content p { margin: 0 0 .55rem }
.ib-p-content p:last-child { margin-bottom: 0 }

.ib-p-content ul,
.ib-p-content ol {
    margin: .15rem 0 .75rem 1.15rem;
    padding-left: .6rem;
    list-style-position: outside;
}

.ib-p-content ul { list-style-type: disc; }
.ib-p-content ol { list-style-type: decimal; }

.ib-p-content li {
    display: list-item;
    margin: 0 0 .28rem;
    line-height: 1.55;
}

.ib-p-content li::marker {
    color: rgba(3,85,140,.85);
}

.ib-p-content .ib-p-empty {
    font-style: italic;
    color: rgba(2,13,24,.42);
}

.ib-p-divider {
    height: 1px;
    background: rgba(2,13,24,.08);
    margin: 1.2rem 0 1rem;
}

.ib-p-team-wrap { margin-bottom: .25rem; }
.ib-p-team-label {
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: rgba(2,13,24,.45);
    display: block;
    margin-bottom: .7rem;
}
.ib-p-team-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .9rem;
}
.ib-p-member-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: .5rem;
    padding: .25rem;
    border-bottom: none;
}
.ib-p-member-card:last-child {
    border-bottom: none;
}
.ib-p-member-photo {
    width: 100%;
    max-width: 108px;
    aspect-ratio: 1;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    border: 1.5px solid rgba(2,13,24,.06);
    flex-shrink: 0;
}
.ib-p-member-photo-default {
    width: 100%;
    max-width: 108px;
    aspect-ratio: 1;
    height: auto;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #edeae5;
    flex-shrink: 0;
    overflow: hidden;
}
.ib-p-member-photo-default svg {
    width: 36px;
    height: 36px;
    color: #b8b3aa;
}
.ib-p-member-name {
    display: block;
    font-size: .76rem;
    font-weight: 600;
    color: #020d18;
    line-height: 1.25;
}
.ib-p-member-role {
    display: block;
    font-size: .52rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: rgba(2,13,24,.38);
    margin-top: .05rem;
}
.ib-p-member-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

@media (max-width: 560px) {
    .ib-p-team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
}

.ib-p-contact-wrap {
    margin-top: .85rem;
}

.ib-p-sdg-wrap {
    margin-top: 1rem;
}

.ib-p-sdg-label {
    display: block;
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: rgba(2,13,24,.9);
    margin-bottom: .55rem;
}

.ib-p-sdg-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .65rem;
}

.ib-p-sdg-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    text-decoration: none;
    padding: .2rem .2rem;
    border-radius: 0;
    border: 0;
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    line-height: 1.2;
    background: transparent;
    color: #020d18;
    width: 100%;
    min-width: 0;
    transition: transform .18s ease;
}

.ib-p-sdg-badge:hover {
    transform: translateY(-2px);
}

.ib-p-sdg-icon {
    width: 82px;
    height: 82px;
    border-radius: 0;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}

.ib-p-sdg-icon picture,
.ib-p-sdg-icon img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.ib-p-sdg-icon-fallback {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: .55rem;
    font-weight: 700;
    letter-spacing: .04em;
}

.ib-p-sdg-text {
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .11em;
    color: rgba(2,13,24,.92);
}

@media (max-width: 640px) {
    .ib-p-sdg-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ib-p-sdg-badge {
        width: 100%;
        padding: .55rem .45rem;
    }

    .ib-p-sdg-icon {
        width: 64px;
        height: 64px;
    }
}

@media (max-width: 420px) {
    .ib-p-sdg-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
.ib-p-contact-label {
    display: block;
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: rgba(2,13,24,.45);
    margin-bottom: .55rem;
}
.ib-p-contact-grid {
    display: grid;
    gap: .55rem;
}
.ib-p-contact-item {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) auto minmax(120px, 1fr) auto minmax(160px, 1.25fr);
    align-items: center;
    gap: .45rem;
    padding: .18rem 0 .34rem;
    border: 0;
    border-bottom: 1px solid rgba(2,13,24,.1);
    border-radius: 0;
    background: transparent;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: .7rem;
    font-weight: 500;
    letter-spacing: .01em;
    line-height: 1.45;
    color: rgba(2,13,24,.82);
    max-width: 100%;
    word-break: break-word;
}

.ib-p-contact-piece {
    display: flex;
    align-items: center;
    gap: .4rem;
    min-width: 0;
}

.ib-p-contact-piece span {
    overflow-wrap: anywhere;
}

.ib-p-contact-icon {
    color: #03558C;
    font-size: .64rem;
    width: 12px;
    text-align: center;
    flex-shrink: 0;
}

.ib-p-contact-sep {
    color: rgba(2,13,24,.3);
    font-size: .58rem;
    line-height: 1;
}

@media (max-width: 640px) {
    .ib-p-contact-item {
        grid-template-columns: 1fr;
        gap: .3rem;
        padding: .2rem 0 .38rem;
    }

    .ib-p-contact-sep {
        display: none;
    }
}

.ib-p-foot {
    padding: 1rem 2rem 1.4rem;
    border-top: 1px solid rgba(2,13,24,.04);
    gap: 1rem;
}
.ib-p-social {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .62rem;
    font-weight: 600;
    letter-spacing: .06em;
    color: rgba(2,13,24,.4);
    text-decoration: none;
    padding: .35rem .7rem;
    border: none;
    border-bottom: 1px solid rgba(2,13,24,.1);
    border-radius: 0;
    transition: all .2s;
}
.ib-p-social:hover {
    color: #03558C;
    border-bottom-color: rgba(3,85,140,.3);
}

/* ── Click-to-reveal content ────────────── */
.ib-p-content-wrap {
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s ease;
}
.ib-p-content-wrap.is-open {
    max-height: 2000px;
}
.ib-p-reveal {
    display: inline-block;
    margin-top: .5rem;
    padding: .35rem .75rem;
    font-size: .6rem; font-weight: 700;
    letter-spacing: .1em; text-transform: uppercase;
    color: #03558C;
    background: #edf5fc;
    border: 1px solid rgba(3,85,140,.12);
    border-radius: .25rem;
    cursor: pointer;
    transition: background .15s, color .15s;
}
.ib-p-reveal:hover {
    background: #03558C;
    color: #fff;
}

/* --------------------------------------------------------------------------
   10. FOOTER
   -------------------------------------------------------------------------- */
.ib-count { font-size: .82rem; font-weight: 400; color: rgba(2,13,24,.5) }

.ib-apply {
    font-size: .56rem; font-weight: 700;
    letter-spacing: .14em; text-transform: uppercase;
    color: #e8a900; text-decoration: none;
    border-bottom: 1px solid rgba(248,175,33,.3);
    padding-bottom: 2px;
    transition: color .2s, border-color .2s;
}
.ib-apply:hover { color: #F8AF21; border-color: rgba(248,175,33,.5) }

/* --------------------------------------------------------------------------
   10b. MOBILE: CARD FLIP + SEE MORE + MODAL
   -------------------------------------------------------------------------- */
/* "See More" button on the back face of small card — hidden on desktop */
.ib-see-more {
    display: none;
}

@media (max-width: 768px) {
    /* Show "See More" on card back face */
    .ib-see-more {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        margin-top: .6rem;
        padding: .35rem .9rem;
        font-family: 'DM Sans', sans-serif;
        font-size: .5rem;
        font-weight: 700;
        letter-spacing: .1em;
        text-transform: uppercase;
        color: rgba(248,175,33,.85);
        background: rgba(248,175,33,.1);
        border: 1px solid rgba(248,175,33,.2);
        border-radius: .25rem;
        cursor: pointer;
        transition: all .2s ease;
        z-index: 5;
        position: relative;
    }
    .ib-see-more:active {
        background: rgba(248,175,33,.25);
        color: #F8AF21;
    }

    /* Mobile card flip support */
    .ib-card.mob-flipped .ib-inner {
        transform: rotateY(180deg) !important;
    }

    /* Hide the big card overlay on mobile */
    .ib-modal {
        display: none !important;
    }

    /* Convert panel into a full-screen modal from bottom */
    .ib-panel {
        max-width: 100% !important;
        width: 100% !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        border-radius: 0;
        z-index: 1001;
    }

    /* Keep sticky panel header flush to the top on mobile */
    .ib-p-body {
        padding: 0 1.2rem 1rem;
    }
    .ib-p-head {
        top: 0;
        margin: 0 -1.2rem;
        padding: .95rem 1.2rem .75rem;
    }
    .ib-p-foot {
        padding: .8rem 1.2rem 1.2rem;
    }
    .ib-p-name {
        font-size: 1.3rem;
    }

    /* Card sizing for mobile */
    .ib-card {
        width: calc(50% - 12px);
        height: auto;
        aspect-ratio: 2/3;
    }
    .ib-stack {
        gap: 12px;
        padding: 8px 0 16px;
    }
}

@media (max-width: 480px) {
    .ib-card {
        width: calc(50% - 8px);
    }
    .ib-stack {
        gap: 8px;
    }
}

/* --------------------------------------------------------------------------
   10c. MOBILE PREVIEW — mini flipping card + Read More
   -------------------------------------------------------------------------- */
.ib-mob-preview {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    pointer-events: none;
}
.ib-mob-preview.is-open {
    visibility: visible;
    pointer-events: auto;
}

.ib-mob-preview-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2,13,24,.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    transition: opacity .25s ease;
}
.ib-mob-preview.is-open .ib-mob-preview-backdrop {
    opacity: 1;
}

/* Wrapper: card + hint + button, vertically stacked */
.ib-mob-preview-wrap {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .7rem;
    opacity: 0;
    transform: scale(.85) translateY(24px);
    transition: opacity .3s ease, transform .3s ease;
}
.ib-mob-preview.is-open .ib-mob-preview-wrap {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* Close — top-right floating */
.ib-mob-preview-close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.15);
    background: rgba(2,13,24,.6);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.7);
    cursor: pointer;
    z-index: 10;
    transition: all .15s;
}
.ib-mob-preview-close:active {
    color: #fff;
    background: rgba(2,13,24,.85);
}

/* Mini card container — same aspect as the big card */
.ib-mob-preview-card {
    width: 52vw;
    max-width: 220px;
    aspect-ratio: 2/3;
    perspective: 1000px;
    cursor: pointer;
}

/* Inner — handles the 3D flip */
.ib-mob-preview-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    border-radius: 1rem;
    box-shadow: 0 20px 60px rgba(2,13,24,.3);
    transition: transform .55s cubic-bezier(.4,.0,.2,1);
}
.ib-mob-preview-inner.is-flipped {
    transform: rotateY(-180deg);
}

/* Reuse the big-front / big-back styles — just scale content down */
.ib-mob-preview-card .ib-big-front,
.ib-mob-preview-card .ib-big-back {
    border-radius: 1rem;
}
.ib-mob-preview-card .ib-big-front {
    padding: 1.2rem .8rem;
    gap: .5rem;
}
.ib-mob-preview-card .ib-big-back {
    padding: 1.2rem .8rem;
}

/* Scale down text inside the mini card */
.ib-mob-preview-card .ib-bf-num {
    font-size: .5rem;
    top: 10px; left: 12px;
}
.ib-mob-preview-card .ib-bf-logo img {
    width: 11.5vh;
    height: 11.5vh;
}

@media (max-width: 767px) {
    .ib-portrait {
        justify-content: center;
    }
    .ib-logo-box {
        margin-left: auto;
        margin-right: auto;
    }
}
.ib-mob-preview-card .ib-bf-divider {
    display: none;
}
.ib-mob-preview-card .ib-bf-name {
    font-size: 1rem;
}
.ib-mob-preview-card .ib-bf-founder {
    display: none;
}
.ib-mob-preview-card .ib-bf-cohort {
    font-size: .55rem;
}

/* Flip cue on card */
.ib-mob-flip-cue {
    position: absolute;
    bottom: 14px;
    left: 0; right: 0;
    text-align: center;
    font-family: 'DM Sans', sans-serif;
    font-size: .38rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255,255,255,.25);
    z-index: 10;
    pointer-events: none;
}
.ib-mob-preview-card .ib-bb-name {
    font-size: 1rem;
}
.ib-mob-preview-card .ib-bb-label {
    font-size: .36rem;
}
.ib-mob-preview-card .ib-bb-member-name {
    font-size: .8rem;
}
.ib-mob-preview-card .ib-bb-member-role {
    font-size: .45rem;
}
.ib-mob-preview-card .ib-bb-team {
    gap: .35rem;
    padding: 0 .8rem;
}
.ib-mob-preview-card .ib-frame { inset: 5px; border-radius: 8px }
.ib-mob-preview-card .ib-frame-inner { inset: 12px; border-radius: 5px }
.ib-mob-preview-card .ib-diamond { width: 5px; height: 5px }
.ib-mob-preview-card .ib-diamond.tl { top: 10px; left: 10px }
.ib-mob-preview-card .ib-diamond.tr { top: 10px; right: 10px }
.ib-mob-preview-card .ib-diamond.bl { bottom: 10px; left: 10px }
.ib-mob-preview-card .ib-diamond.br { bottom: 10px; right: 10px }

/* Flip hint */
.ib-mob-preview-hint {
    position: relative;
    z-index: 5;
    font-size: .52rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255,255,255,.35);
    transition: opacity .3s;
}
.ib-mob-preview-hint.hidden {
    opacity: 0;
}

/* Read More button */
.ib-mob-preview-read {
    position: relative;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: .6rem 1.6rem;
    font-family: 'DM Sans', sans-serif;
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #03558C;
    background: #F8AF21;
    border: none;
    border-radius: .3rem;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(248,175,33,.3);
    transition: background .2s, transform .15s;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(248,175,33,.3);
}
.ib-mob-preview-read:active {
    background: #e8a900;
    transform: scale(.97);
}

/* Hide on desktop */
@media (min-width: 769px) {
    .ib-mob-preview {
        display: none !important;
    }
}

/* --------------------------------------------------------------------------
   11. EMPTY STATE
   -------------------------------------------------------------------------- */
.ib-empty {
    border: 1px solid rgba(2,13,24,.06);
    background: #fff; padding: 3.5rem 2rem;
}
.ib-empty-icon {
    width: 56px; height: 56px;
    border: 1px solid rgba(2,13,24,.06);
    background: #F8F6F2;
}
.ib-empty h3 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.2rem; color: #020d18; margin-bottom: .5rem;
}
.ib-empty p {
    font-size: .82rem; font-weight: 300;
    line-height: 1.8; color: rgba(2,13,24,.4);
    max-width: 380px; margin: 0 auto 1.5rem;
}

/* --------------------------------------------------------------------------
   12. COHORT TABS
   -------------------------------------------------------------------------- */
.ib-tabs {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: 2.5rem;
    border-bottom: 1.5px solid rgba(2,13,24,.06);
    padding-bottom: 0;
    overflow-x: auto;
    scrollbar-width: none; -ms-overflow-style: none;
}
.ib-tabs::-webkit-scrollbar { display: none }

.ib-tab {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .7rem 1.2rem;
    font-family: 'DM Serif Display', serif;
    font-size: 1.05rem;
    color: rgba(2,13,24,.35);
    background: none;
    border: none;
    border-bottom: 2.5px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: color .2s, border-color .2s;
    margin-bottom: -1.5px;
}
.ib-tab:hover {
    color: rgba(2,13,24,.6);
}
.ib-tab.is-active {
    color: #03558C;
    border-bottom-color: #F8AF21;
}

.ib-tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    font-family: 'DM Sans', sans-serif;
    font-size: .58rem;
    font-weight: 700;
    color: rgba(2,13,24,.4);
    background: rgba(2,13,24,.04);
    border-radius: 10px;
    line-height: 1;
}
.ib-tab.is-active .ib-tab-badge {
    color: #03558C;
    background: rgba(3,85,140,.08);
}

