/* =========================================================
   Shared "people" design: Board, KMP, Advisory Council
   Loaded after about.css / advisory-council.css (overrides them).
   ========================================================= */
:root {
    --pp-navy: #0b2545;
    --pp-blue: #003366;
    --pp-gold: #b8913a;
    --pp-text: #1f2937;
    --pp-muted: #5b6573;
    --pp-line: #e7ebf0;
    --pp-soft: #f5f7fa;
}

/* ---------- Section shell ---------- */
.founders-container,
.advisory-section {
    max-width: 1440px;
    margin: 0 auto;
    padding: 40px 0;
    display: flex;
    flex-direction: column;
    gap: 32px;
    border: 0;
}

/* Section divider: thin line with a short gold accent */
.general-container + .general-container > .founders-container,
.advisory-section {
    position: relative;
    border-top: 1px solid var(--pp-line);
}

.general-container + .general-container > .founders-container::before,
.advisory-section::before {
    content: "";
    position: absolute;
    top: -2px;
    left: 0;
    width: 80px;
    height: 3px;
    border-radius: 3px;
    background: var(--pp-gold);
}

/* ---------- Header ---------- */
.founder-header { gap: 24px; }

.founder-header-inner,
.advisory-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
    max-width: none;
    margin: 0;
}

.founder-header-inner>span,
.advisory-header .advisory-eyebrow {
    font-family: Urbanist, sans-serif;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--pp-gold);
    margin: 0;
}

.founder-header-inner>h2,
.advisory-header h2 {
    position: relative;
    width: 100%;
    font-family: Urbanist, sans-serif;
    font-size: clamp(2rem, 3.4vw, 2.6rem);
    font-weight: 600;
    line-height: 1.15;
    color: var(--pp-navy);
    margin: 0;
    padding-bottom: 18px;
}

.founder-header-inner>h2::after,
.advisory-header h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 56px;
    height: 3px;
    border-radius: 3px;
    background: var(--pp-gold);
}

.advisory-header p {
    max-width: 720px;
    font-family: Plus Jakarta Sans, sans-serif;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--pp-muted);
    margin: 0;
}

.founder-content { border-top: 1px solid var(--pp-line); padding: 28px 0 0; }
.founder-content>h3 { color: var(--pp-navy); line-height: 1.45; }
.founder-content-description>p { color: var(--pp-muted); line-height: 1.7; }

/* ---------- Grids ---------- */
.founder-row,
.advisory-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    align-items: stretch;
    gap: 28px;
    width: 100%;
    max-width: none;
    margin: 0;
}

.founder-col,
.advisor-card {
    width: 100%;
    height: 100%;
    flex: none;
}

/* Board: 4 per row, last row centered */
.founder-row:not(.founder-row--compact) {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.founder-row:not(.founder-row--compact)>.founder-col {
    flex: 0 0 calc((100% - 3 * 28px) / 4);
    height: auto;
}

@media (max-width: 1200px) {
    .founder-row:not(.founder-row--compact)>.founder-col { flex-basis: calc((100% - 2 * 28px) / 3); }
}

@media (max-width: 992px) {
    .founder-row:not(.founder-row--compact)>.founder-col { flex-basis: calc((100% - 20px) / 2); }
    .founder-row:not(.founder-row--compact) { gap: 20px; }
}

@media (max-width: 560px) {
    .founder-row:not(.founder-row--compact)>.founder-col { flex-basis: 100%; }
}

/* role line reserves 2 lines so names start at the same height */
.founder-meta>p { min-height: 3em; display: flex; align-items: flex-end; }

.founder-row--compact,
.advisory-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- Card ---------- */
.founder-col,
.advisor-card {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: none;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--pp-line);
    border-radius: 18px;
    box-shadow: 0 2px 6px rgba(11, 37, 69, .04);
    overflow: hidden;
    transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}

.founder-col:hover,
.advisor-card:hover {
    transform: translateY(-4px);
    background: #fff;
    border-color: rgba(0, 51, 102, .25);
    box-shadow: 0 20px 44px rgba(11, 37, 69, .12);
}

/* Photo framed inside the card */
.founder-image,
.advisor-photo {
    position: relative;
    height: auto;
    min-height: 0;
    flex: none;
    aspect-ratio: 4 / 4.6;
    border-radius: 12px;
    overflow: hidden;
    background: var(--pp-soft);
}

.founder-image::after,
.advisor-photo::after { content: none; }

.founder-image>img,
.advisor-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 12%;
    border-radius: 0;
    display: block;
    transition: transform .6s ease;
}

.founder-col:hover .founder-image>img,
.advisor-card:hover .advisor-photo img { transform: scale(1.04); }

/* Text block */
.founder-meta,
.advisor-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 6px;
    margin: 0;
    padding: 20px 10px 6px;
    border: 0;
}

.founder-meta>p,
.advisor-role {
    order: -1;
    align-self: flex-start;
    font-family: Plus Jakarta Sans, sans-serif;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    line-height: 1.5;
    color: var(--pp-gold);
    background: none;
    padding: 0;
    margin: 0;
    border-radius: 0;
}

.founder-meta>h3,
.advisor-body h3 {
    font-family: Urbanist, sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--pp-navy);
    margin: 0;
}

.advisor-expertise {
    font-family: Urbanist, sans-serif;
    font-size: .9rem;
    font-weight: 600;
    line-height: 1.45;
    letter-spacing: 0;
    text-transform: none;
    color: var(--pp-blue);
    margin: 6px 0 0;
    padding: 0;
    border: 0;
}

.advisor-bio {
    font-family: Plus Jakarta Sans, sans-serif;
    font-size: .9rem;
    line-height: 1.7;
    color: var(--pp-muted);
    margin: 6px 0 0;
}

/* Footer link row */
.founder-read-more,
.advisor-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: auto;
    padding: 16px 0 6px;
    border: 0;
    border-top: 1px solid var(--pp-line);
    font-family: Urbanist, sans-serif;
    font-size: .95rem;
    font-weight: 700;
    color: var(--pp-navy);
    text-decoration: none;
    transition: color .25s ease;
}

/* push link to the bottom so every card lines up */
.founder-meta>.founder-read-more,
.advisor-body>.advisor-link { margin-top: auto; }

.founder-meta>p,
.advisor-role { margin-bottom: 0; }

.founder-meta>h3 { margin-bottom: 18px; }
.advisor-bio { margin-bottom: 18px; }

.founder-read-more::after,
.advisor-link .pp-arrow {
    content: "\2192";
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 16px;
    color: var(--pp-navy);
    background: var(--pp-soft);
    transition: background .25s ease, color .25s ease, transform .25s ease;
}

.founder-col:hover .founder-read-more,
.advisor-card:hover .advisor-link { color: var(--pp-blue); }

.founder-col:hover .founder-read-more::after,
.advisor-card:hover .advisor-link .pp-arrow {
    background: var(--pp-blue);
    color: #fff;
    transform: translateX(3px);
}

.advisor-link .pp-arrow svg path { fill: currentColor; }

/* ---------- Advisory: horizontal cards, 2 per row ---------- */
.advisory-section .advisory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: 28px;
}

.advisory-section .advisor-card {
    flex-direction: row;
    align-items: stretch;
    padding: 14px;
    gap: 0;
    height: 100%;
}

.advisory-section .advisor-photo {
    flex: 0 0 46%;
    align-self: flex-start;
    height: auto;
    aspect-ratio: 1350 / 1920; /* exact shape of the portraits: no cropping */
    min-height: 0;
    border-radius: 14px;
    background: linear-gradient(180deg, #9a9a9a, #d6d6d6);
}

.advisory-section .advisor-photo img {
    object-fit: cover;
    object-position: center top;
}

.advisory-section .advisor-body {
    flex: 1;
    min-width: 0;
    align-self: center;
    padding: 6px 12px 6px 30px;
    gap: 6px;
}

.advisory-section .advisor-card { align-items: center; padding: 0; }

/* photo flush to top, bottom and left edges */
.advisory-section .advisor-photo {
    align-self: stretch;
    border-radius: 0;
}

.advisory-section .advisor-body { padding: 24px 28px 24px 30px; }

@media (max-width: 640px) {
    .advisory-section .advisor-card { padding: 0; }
    .advisory-section .advisor-body { padding: 20px 18px 22px; }
}

/* LinkedIn link: clean icon + text + arrow */
.advisory-section .advisor-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
    margin-top: 10px;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    font-family: Urbanist, sans-serif;
    font-size: .95rem;
    font-weight: 700;
    color: var(--pp-navy);
    text-decoration: none;
}

.advisory-section .advisor-link::before,
.advisory-section .advisor-link::after { content: none; }

.advisory-section .li-badge {
    flex: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: #0a66c2;
    color: #fff;
    transition: transform .3s ease, box-shadow .3s ease;
}

.advisory-section .li-badge svg path { fill: currentColor; }

.advisory-section .li-text {
    position: relative;
    padding: 4px 0;
}

.advisory-section .li-text::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--pp-gold);
    transform: scaleX(.3);
    transform-origin: left;
    transition: transform .35s ease;
}

.advisory-section .li-arrow {
    display: inline-flex;
    color: var(--pp-gold);
    background: none;
    box-shadow: none;
    width: auto;
    height: auto;
    transition: transform .3s ease, color .3s ease;
}

.advisory-section .advisor-link:hover { color: #0a66c2; }
.advisory-section .advisor-link:hover .li-text::after { transform: scaleX(1); }
.advisory-section .advisor-link:hover .li-badge { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(10, 102, 194, .3); }
.advisory-section .advisor-link:hover .li-arrow { transform: translate(3px, -3px); color: #0a66c2; }
.advisory-section .advisor-link:focus-visible { outline: 2px solid #0a66c2; outline-offset: 4px; border-radius: 6px; }

.advisory-section .advisor-body h3 { font-size: 1.5rem; }

.advisory-section .advisor-expertise {
    margin: 2px 0 0;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--pp-line);
}

.advisory-section .advisor-bio {
    margin: 10px 0 18px;
    font-size: .92rem;
    line-height: 1.7;
}

.advisory-section .advisor-link {
    margin-top: auto;
    border-top: 0;
    padding: 0;
    justify-content: flex-start;
    gap: 12px;
}

.advisor-toggle { display: none; }

@media (max-width: 1200px) {
    .advisory-section .advisory-grid { grid-template-columns: 1fr; grid-auto-rows: auto; max-width: 820px; margin: 0 auto; }
}

@media (max-width: 640px) {
    .advisory-section .advisor-card { flex-direction: column; padding: 12px; }
    .advisory-section .advisor-photo { flex: none; width: 100%; aspect-ratio: 1350 / 1920; min-height: 0; }
    .advisory-section .advisor-body { align-self: stretch; }
    .advisory-section .advisor-body { padding: 20px 8px 6px; }
    .advisory-section .advisor-body h3 { font-size: 1.3rem; }
}

/* hide legacy LinkedIn bubble if present */
.advisor-linkedin { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
    .founder-row--compact,
    .advisory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .advisor-card { flex-direction: column; }
}

@media (max-width: 992px) {
    .founder-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
    .founders-container,
    .advisory-section { padding: 32px 0; gap: 24px; }
    .founder-content { flex-direction: column; gap: 16px; }
    .founder-content>h3,
    .founder-content-description { width: 100%; }
    .founder-row,
    .advisory-grid { gap: 20px; }
}

@media (max-width: 560px) {
    .founder-row,
    .founder-row--compact,
    .advisory-grid { grid-template-columns: 1fr; }
    .founder-meta>h3,
    .advisor-body h3 { font-size: 1.3rem; }
}
