/* EGN Investor Pitch — page-exclusive rules only.
   Layout: hero + stats strip, then alternating white / tinted sections
   (.eip-sec / .eip-sec.eip-tint) built from a few repeating pieces:
   .eip-panel (text card), .eip-card (icon card), .eip-chips (pills),
   .eip-steps (stepper), .eip-feature (gradient band). */

/* ---------- Hero ---------- */
.eip-hero {
    position: relative;
    padding: calc(var(--nav-height) + 56px) var(--edge-pad) 0;
    background:
        radial-gradient(ellipse 60% 70% at 85% 10%, rgba(130, 41, 102, 0.10), transparent 70%),
        radial-gradient(ellipse 55% 60% at 5% 0%, rgba(20, 83, 188, 0.12), transparent 70%),
        linear-gradient(180deg, rgba(20, 83, 188, 0.05) 0%, #ffffff 100%);
    box-sizing: border-box;
}

.eip-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 48px;
    align-items: center;
}

.eip-eyebrow { text-align: left; }

.eip-hero h1 {
    font-size: clamp(2.3rem, 5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.5px;
    text-transform: uppercase;
    color: var(--brand-blue);
    margin: 0 0 16px;
    text-align: left;
}

.eip-hero-tagline {
    font-size: clamp(1.1rem, 2.2vw, 1.5rem);
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-dark);
    margin: 0 0 12px;
}

.eip-hero-lead {
    font-size: 1.02rem;
    line-height: 1.7;
    color: var(--text-gray);
    margin: 0 0 22px;
}

.eip-hero-meta { margin: 0 0 28px; justify-content: flex-start; }

.eip-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.eip-ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    padding: 0 28px;
    border-radius: var(--radius-pill);
    border: 2px solid var(--brand-blue);
    color: var(--brand-blue);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    box-sizing: border-box;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.eip-ghost-btn:hover,
.eip-ghost-btn:focus-visible { background-color: var(--brand-blue); color: #ffffff; }

.eip-hero-art { display: flex; justify-content: center; }

.eip-hero-logo-card {
    width: 100%;
    max-width: 340px;
    padding: 18px;
    background: #ffffff;
    border: 1px solid rgba(20, 83, 188, 0.12);
    border-radius: 28px;
    box-shadow: 0 40px 70px -40px rgba(20, 83, 188, 0.55), 0 4px 14px rgba(26, 26, 26, 0.05);
}

.eip-logo {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px;
    object-fit: contain;
}

/* ---------- Stats strip (overlaps the hero's bottom edge) ---------- */
.eip-stats {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 56px auto -48px;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.eip-stat {
    position: relative;
    padding: 24px 20px 20px;
    text-align: center;
    background: #ffffff;
    border: 1px solid rgba(20, 83, 188, 0.12);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}
.eip-stat::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--grad-main);
}

.eip-stat-num {
    display: block;
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    background: var(--grad-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.eip-stat-num small { font-size: 0.45em; font-weight: 700; margin-left: 4px; }

.eip-stat-label {
    display: block;
    margin-top: 6px;
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--text-gray);
}

/* ---------- Sections ---------- */
.eip-sec {
    padding: 80px var(--edge-pad);
    box-sizing: border-box;
}
.eip-sec--flush { padding-top: 20px; }

.eip-tint {
    background: linear-gradient(180deg, rgba(20, 83, 188, 0.04) 0%, rgba(130, 41, 102, 0.035) 100%);
}

.eip-wrap { max-width: 1200px; margin: 0 auto; }

.eip-sec-head {
    max-width: 760px;
    margin: 0 auto 44px;
    text-align: center;
}
.eip-sec-head .eyebrow-heading { text-align: center; }
.eip-sec-head h2 {
    font-size: var(--h2-size);
    font-weight: var(--h2-weight);
    line-height: var(--h2-line-height);
    letter-spacing: var(--h2-tracking);
    color: var(--text-dark);
    margin: 0;
    text-align: center;
}

.eip-two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    align-items: stretch;
}

.eip-panel {
    position: relative;
    padding: 40px 36px 36px;
    background: #ffffff;
    border: 1px solid rgba(20, 83, 188, 0.12);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}
.eip-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: var(--grad-main);
}
.eip-panel--accent { background: linear-gradient(180deg, rgba(130, 41, 102, 0.045) 0%, #ffffff 55%); }
.eip-panel .eyebrow-heading { margin-bottom: 0.4rem; }
.eip-panel h2 {
    font-size: clamp(1.4rem, 2.4vw, 1.8rem);
    font-weight: 800;
    line-height: 1.25;
    color: var(--text-dark);
    margin: 0 0 16px;
}
.eip-panel p { font-size: 0.98rem; line-height: 1.8; color: var(--text-gray); margin: 0 0 14px; }
.eip-panel p:last-child { margin-bottom: 0; }
.eip-panel .site-cta-btn { margin-top: 10px; }
.eip-panel a:not(.site-cta-btn) { color: var(--brand-blue); font-weight: 600; }

/* ---------- Icon cards (Who can apply / What start-ups gain) ---------- */
.eip-card-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.eip-card-grid--3 .eip-card { flex-basis: calc((100% - 40px) / 3); }
.eip-card-grid--4 .eip-card { flex-basis: calc((100% - 60px) / 4); }

.eip-card {
    min-width: 0;
    background: #ffffff;
    border: 1px solid rgba(20, 83, 188, 0.12);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
}
.eip-card p { margin: 0; font-size: 0.96rem; line-height: 1.65; color: var(--text-gray); }

.eip-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(20, 83, 188, 0.10);
}
.eip-icon svg { width: 22px; height: 22px; fill: var(--brand-blue); }

.eip-card--check {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 22px 22px 22px 20px;
    border-left: 4px solid var(--brand-blue);
}

.eip-card--gain {
    padding: 28px 24px 26px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.eip-card--gain:hover { transform: translateY(-4px); box-shadow: 0 26px 46px -26px rgba(20, 83, 188, 0.4); }
.eip-icon--lg {
    width: 58px;
    height: 58px;
    margin-bottom: 16px;
    background: var(--grad-main);
}
.eip-icon--lg svg { width: 28px; height: 28px; fill: #ffffff; }

/* ---------- Pitch format ---------- */
.eip-format-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin: 0;
}
.eip-format-item {
    position: relative;
    padding: 24px 24px 22px 28px;
    background: #ffffff;
    border: 1px solid rgba(20, 83, 188, 0.12);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
}
.eip-format-item::before {
    content: '';
    position: absolute;
    left: 0; top: 18px; bottom: 18px;
    width: 4px;
    border-radius: 0 4px 4px 0;
    background: var(--grad-main);
}
.eip-format-item dt {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--brand-purple);
    margin-bottom: 8px;
}
.eip-format-item dd { margin: 0; font-size: 1rem; font-weight: 600; line-height: 1.55; color: var(--text-dark); }

/* ---------- 10-minute structure ---------- */
.eip-timebar {
    display: flex;
    height: 46px;
    margin: 0 auto 36px;
    border-radius: var(--radius-pill);
    overflow: hidden;
    background: var(--grad-main);
    box-shadow: 0 16px 30px -20px rgba(20, 83, 188, 0.6);
}
.eip-timebar-seg {
    flex-basis: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 700;
    border-right: 3px solid #ffffff;
}
.eip-timebar-seg:last-child { border-right: none; }

.eip-structure-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 22px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.eip-structure-item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 20px 22px;
    background: #ffffff;
    border: 1px solid rgba(20, 83, 188, 0.12);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
}
.eip-mins {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--grad-main);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}
.eip-mins strong { font-size: 1.5rem; font-weight: 800; letter-spacing: 0; margin-bottom: 2px; }
.eip-structure-item h3 { font-size: 1.05rem; font-weight: 700; line-height: 1.3; color: var(--text-dark); margin: 4px 0 6px; }
.eip-structure-item p { margin: 0; font-size: 0.93rem; line-height: 1.65; color: var(--text-gray); }

/* ---------- Chips (investor audience / sectors) ---------- */
.eip-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}
.eip-chips li {
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    background: rgba(20, 83, 188, 0.08);
    border: 1px solid rgba(20, 83, 188, 0.16);
    color: var(--brand-blue);
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.4;
}
.eip-panel--accent .eip-chips li {
    background: rgba(130, 41, 102, 0.08);
    border-color: rgba(130, 41, 102, 0.18);
    color: var(--brand-purple);
}

/* ---------- Selection process stepper ---------- */
.eip-steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: none;
}
.eip-step { position: relative; text-align: center; padding: 0 6px; }
.eip-step::before {
    content: '';
    position: absolute;
    top: 28px;
    left: calc(50% + 34px);
    width: calc(100% + 18px - 68px);
    height: 3px;
    border-radius: 3px;
    background: var(--grad-main);
    opacity: 0.35;
}
.eip-step:last-child::before { display: none; }
.eip-step-num {
    position: relative;
    z-index: 1;
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--grad-main);
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 800;
    box-shadow: 0 14px 26px -12px rgba(20, 83, 188, 0.6);
}
.eip-step h3 { font-size: 1.05rem; font-weight: 700; color: var(--text-dark); margin: 0 0 8px; }
.eip-step p { margin: 0; font-size: 0.9rem; line-height: 1.65; color: var(--text-gray); }

/* ---------- Pitch deck checklist ---------- */
.eip-deck-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.eip-deck-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: #ffffff;
    border: 1px solid rgba(20, 83, 188, 0.12);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-card);
    font-size: 0.93rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-dark);
}
.eip-deck-num {
    flex-shrink: 0;
    font-size: 1.15rem;
    font-weight: 800;
    background: var(--grad-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* ---------- Integration band + positioning ---------- */
.eip-feature {
    position: relative;
    padding: 52px 48px;
    border-radius: var(--radius-md);
    background: var(--grad-purple);
    color: #ffffff;
    overflow: hidden;
}
.eip-feature::after {
    content: '';
    position: absolute;
    right: -80px; top: -80px;
    width: 280px; height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 70%);
    pointer-events: none;
}
.eip-feature h2 {
    position: relative;
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    font-weight: 800;
    line-height: 1.25;
    color: #ffffff;
    margin: 0 0 20px;
}
.eip-feature-cols { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.eip-feature p { margin: 0; font-size: 1rem; line-height: 1.8; color: rgba(255, 255, 255, 0.9); }

.eip-positioning {
    max-width: 960px;
    margin: 0 auto;
    padding: 48px 40px;
    text-align: center;
    border: 3px solid transparent;
    border-radius: var(--radius-md);
    background: linear-gradient(#ffffff, #ffffff) padding-box, var(--grad-main) border-box;
    box-shadow: var(--shadow-card);
}
.eip-positioning-tagline {
    font-size: clamp(1.3rem, 2.8vw, 2rem);
    font-weight: 800;
    line-height: 1.3;
    color: var(--text-dark);
    margin: 0 0 16px;
}
.eip-positioning-promise { font-size: 1.05rem; line-height: 1.7; color: var(--text-gray); margin: 0; }
.eip-positioning-promise strong { color: var(--brand-purple); }

.eip-visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- Scroll reveal (only armed once the page script adds .eip-js) ---------- */
.eip-js .eip-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.eip-js .eip-reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    .eip-js .eip-reveal { opacity: 1; transform: none; transition: none; }
    .eip-card--gain,
    .eip-ghost-btn { transition: none; }
    .eip-card--gain:hover { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .eip-card-grid--4 .eip-card { flex-basis: calc((100% - 40px) / 3); }
    .eip-deck-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 991px) {
    .eip-hero-inner { grid-template-columns: 1fr; gap: 32px; text-align: center; }
    .eip-hero-art { order: -1; }
    .eip-hero-logo-card { max-width: 240px; }
    .eip-eyebrow,
    .eip-hero h1 { text-align: center; }
    .eip-hero-meta { justify-content: center; }
    .eip-hero-actions { justify-content: center; }
    .eip-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .eip-format-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .eip-two,
    .eip-feature-cols,
    .eip-structure-list { grid-template-columns: 1fr; }
    .eip-card-grid--3 .eip-card,
    .eip-card-grid--4 .eip-card { flex-basis: calc((100% - 20px) / 2); }

    /* Stepper turns vertical */
    .eip-steps { grid-template-columns: 1fr; gap: 26px; }
    .eip-step { text-align: left; padding: 0 0 0 76px; min-height: 56px; }
    .eip-step-num { position: absolute; left: 0; top: 0; margin: 0; }
    .eip-step::before { top: 56px; left: 27px; width: 3px; height: calc(100% + 26px - 56px); }
}

@media (max-width: 700px) {
    .eip-sec { padding: 56px var(--edge-pad); }
    .eip-deck-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .eip-panel { padding: 32px 22px 28px; }
    .eip-feature { padding: 36px 24px; }
    .eip-positioning { padding: 34px 22px; }
}

@media (max-width: 600px) {
    .eip-hero { padding-top: calc(var(--nav-height) + 32px); }
    .eip-stats { gap: 12px; margin-bottom: -40px; }
    .eip-stat { padding: 20px 12px 16px; }
    .eip-format-grid { grid-template-columns: 1fr; }
    .eip-card-grid--3 .eip-card,
    .eip-card-grid--4 .eip-card { flex-basis: 100%; }
    .eip-card--gain { display: flex; gap: 16px; align-items: center; text-align: left; padding: 18px 18px; }
    .eip-icon--lg { width: 48px; height: 48px; margin-bottom: 0; }
    .eip-icon--lg svg { width: 24px; height: 24px; }
    .eip-timebar { height: 38px; }
    .eip-timebar-seg { font-size: 0.7rem; border-right-width: 2px; }
    .eip-structure-item { padding: 16px; gap: 14px; }
    .eip-mins { width: 56px; height: 56px; }
    .eip-sec-head { margin-bottom: 32px; }
}

@media (max-width: 420px) {
    .eip-deck-grid { grid-template-columns: 1fr; }
}

/* --- Investors row (cards: photo, name + role, company logo) --- */
/* Sits right under the hero stats strip, which overhangs it by 48px. */
.eip-investors { padding-top: 120px; }

.eip-inv-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.eip-inv-card {
    flex: 0 1 calc((100% - 80px) / 5);
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid rgba(20, 83, 188, 0.12);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 18px 36px -26px rgba(20, 83, 188, 0.45), 0 2px 8px rgba(26, 26, 26, 0.05);
}

/* The tinted gradient + multiply blend puts every portrait on the same
   brand-coloured backdrop, whatever its original studio background
   (white, grey or beige). */
.eip-inv-photo {
    aspect-ratio: 4 / 5;
    background: linear-gradient(160deg, rgba(20, 83, 188, 0.34) 0%, rgba(130, 41, 102, 0.22) 100%);
    overflow: hidden;
}
.eip-inv-photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: 50% 12%;
    mix-blend-mode: multiply;
}

/* Visual order: photo, company logo, then name + role (logo sits above the name). */
.eip-inv-photo { order: 1; }
.eip-inv-logo { order: 2; }
.eip-inv-info { order: 3; padding: 4px 12px 18px; text-align: center; }
.eip-inv-name {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-dark);
    margin: 0 0 2px;
}
.eip-inv-role {
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--text-gray);
    margin: 0;
}

.eip-inv-logo {
    height: 76px;
    margin: 14px 12px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    border-radius: 10px;
}
.eip-inv-logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.eip-inv-logo--leo1 img { max-height: 64px; }
/* The Venture Wolf artwork ships with a thin frame line around its edge —
   clip it off. */
.eip-inv-logo--crop img { clip-path: inset(2.5% 2% 2.5% 2%); }

@media (max-width: 1100px) {
    .eip-inv-card { flex-basis: calc((100% - 40px) / 3); }
}
@media (max-width: 700px) {
    .eip-inv-grid { gap: 14px; }
    .eip-inv-card { flex-basis: calc((100% - 14px) / 2); }
    .eip-inv-name { font-size: 0.95rem; }
}
@media (max-width: 360px) {
    .eip-inv-card { flex-basis: 100%; max-width: 280px; }
}
