/* ================================================================
   components.css - Premium BEM components for brochure sites
   ================================================================ */

/* ---- Base ---- */
body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    color: var(--text-body);
    background: var(--bg-page);
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ---- Navigation ---- */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: var(--space-2) 0;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 1);
}

.site-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-nav__logo {
    height: 40px;
    mix-blend-mode: multiply;
}

.site-nav__links {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.site-nav__link {
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--text-body);
    transition: color var(--transition-fast);
    padding: var(--space-1) 0;
}

.site-nav__link:hover {
    color: var(--brand-primary);
}

.site-nav__link--active {
    color: var(--brand-primary);
    border-bottom: 2px solid var(--brand-primary);
}

.site-nav__cta {
    display: inline-block;
    padding: 8px 20px;
    background: var(--brand-primary);
    color: var(--text-on-dark);
    font-size: var(--font-size-sm);
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: background var(--transition), box-shadow var(--transition);
}

.site-nav__cta:hover {
    background: var(--brand-dark);
    color: var(--text-on-dark);
    box-shadow: var(--shadow-card);
}

.site-nav__toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-1);
    color: var(--text-heading);
    font-size: 24px;
    line-height: 1;
}

/* ================================================================
   HERO — Premium full-height with layered CSS art
   ================================================================ */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    color: var(--text-on-dark);
    text-align: center;
    /* Rich multi-layer gradient base */
    background:
        radial-gradient(ellipse at 20% 50%, rgba(255,255,255,0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(255,255,255,0.04) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 100%, rgba(0,0,0,0.3) 0%, transparent 60%),
        linear-gradient(160deg, var(--hero-grad-1, var(--brand-dark)) 0%, var(--hero-grad-2, #0a1628) 40%, var(--hero-grad-3, #050d18) 100%);
}

/* Animated grid overlay */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(0deg, rgba(255,255,255,0.015) 0px, rgba(255,255,255,0.015) 1px, transparent 1px, transparent 80px),
        repeating-linear-gradient(90deg, rgba(255,255,255,0.015) 0px, rgba(255,255,255,0.015) 1px, transparent 1px, transparent 80px);
    pointer-events: none;
}

/* Diagonal accent line at bottom */
.hero::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 80px;
    background: var(--bg-page);
    clip-path: polygon(0 100%, 100% 100%, 100% 0);
}

.hero .container {
    position: relative;
    z-index: 1;
    padding-top: var(--space-6);
    padding-bottom: var(--space-8);
}

/* Floating decorative shapes */
.hero__shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero__shape {
    position: absolute;
    border-radius: 50%;
}

.hero__shape--1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--hero-glow-1, rgba(38,112,177,0.08)) 0%, transparent 70%);
    top: -150px;
    right: -100px;
    animation: heroFloat1 25s ease-in-out infinite;
}

.hero__shape--2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--hero-glow-2, rgba(16,121,49,0.06)) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    animation: heroFloat2 30s ease-in-out infinite;
}

.hero__shape--3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 70%);
    top: 40%;
    left: 30%;
    animation: heroFloat3 20s ease-in-out infinite;
}

/* Decorative geometric ring */
.hero__shape--ring {
    width: 350px;
    height: 350px;
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 50%;
    top: 10%;
    left: 60%;
    animation: heroSpin 60s linear infinite;
}

/* Decorative line accent */
.hero__shape--line {
    width: 1px;
    height: 200px;
    border-radius: 0;
    background: linear-gradient(180deg, transparent, rgba(255,255,255,0.1), transparent);
    top: 20%;
    left: 15%;
    animation: heroFloat3 15s ease-in-out infinite;
}

@keyframes heroFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -40px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

@keyframes heroFloat2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(40px, -30px); }
}

@keyframes heroFloat3 {
    0%, 100% { transform: translate(0, 0); opacity: 0.7; }
    50% { transform: translate(-20px, 15px); opacity: 1; }
}

@keyframes heroSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Hero content */
.hero__eyebrow {
    display: inline-block;
    font-size: var(--font-size-xs);
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-on-dark-muted);
    margin-bottom: var(--space-3);
    position: relative;
    padding: 0 24px;
}

.hero__eyebrow::before,
.hero__eyebrow::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40px;
    height: 1px;
    background: rgba(255,255,255,0.25);
}
.hero__eyebrow::before { right: 100%; }
.hero__eyebrow::after { left: 100%; }

.hero__title {
    font-size: 56px;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: var(--space-3);
    line-height: 1.1;
    text-shadow: 0 2px 40px rgba(0,0,0,0.3);
}

.hero__subtitle {
    font-size: 20px;
    color: var(--text-on-dark-muted);
    max-width: 620px;
    margin: 0 auto var(--space-4);
    line-height: 1.7;
    font-weight: 400;
}

.hero__badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    padding: 8px 24px;
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Hero feature pills row */
.hero__features {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    margin-top: var(--space-6);
    flex-wrap: wrap;
}

.hero__feature {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(8px);
    padding: 12px 20px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.08);
    font-size: var(--font-size-sm);
    color: rgba(255,255,255,0.8);
    transition: background var(--transition), border-color var(--transition);
}

.hero__feature:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.15);
}

.hero__feature-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: var(--hero-pill-bg, rgba(38,112,177,0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--hero-pill-icon, rgba(255,255,255,0.9));
    flex-shrink: 0;
}

.hero__cta-group {
    display: flex;
    justify-content: center;
    gap: var(--space-2);
    margin-top: var(--space-6);
    flex-wrap: wrap;
}

.hero__cta {
    display: inline-block;
    padding: 16px 40px;
    background: var(--text-on-dark);
    color: var(--brand-dark);
    font-weight: 600;
    font-size: var(--font-size-base);
    border-radius: var(--radius-md);
    transition: transform var(--transition), box-shadow var(--transition);
}

.hero__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    color: var(--brand-dark);
}

.hero__cta--outline {
    background: transparent;
    color: var(--text-on-dark);
    border: 1px solid rgba(255,255,255,0.25);
}

.hero__cta--outline:hover {
    background: rgba(255,255,255,0.08);
    color: var(--text-on-dark);
}

/* Smaller hero variant for inner pages */
.hero--inner {
    min-height: auto;
    padding: var(--space-8) 0 var(--space-12);
}

.hero--inner::after {
    display: none;
}

/* Minimal hero — compact banner, maximum content space */
.hero--minimal {
    min-height: auto;
    padding: 16px 0 20px;
}

.hero--minimal::before,
.hero--minimal::after {
    display: none;
}

.hero--minimal .hero__shapes {
    display: none;
}

.hero--minimal .hero__title {
    font-size: var(--font-size-xl);
    margin-bottom: 4px;
}

.hero--minimal .hero__subtitle {
    font-size: var(--font-size-sm);
    margin-bottom: 0;
}

/* Reduce gap between minimal hero and content below */
.hero--minimal + .section {
    padding-top: 24px !important;
}

/* ---- Sections ---- */
.section {
    padding: var(--space-12) 0;
}

.section--alt {
    background: var(--bg-section);
}

.section--dark {
    background: var(--bg-dark);
    color: var(--text-on-dark);
    position: relative;
    overflow: hidden;
}

/* Subtle glow on dark sections */
.section--dark::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--hero-glow-1, rgba(38,112,177,0.06)) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    pointer-events: none;
}

.section__header {
    text-align: center;
    margin-bottom: var(--space-8);
}

.section__title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: var(--space-2);
}

.section--dark .section__title {
    color: var(--text-on-dark);
}

.section__subtitle {
    font-size: var(--font-size-lg);
    color: var(--text-muted);
    margin: 0 auto;
}

.section--dark .section__subtitle {
    color: var(--text-on-dark-muted);
}

/* ---- Stats Grid ---- */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
    text-align: center;
}

.stats__item {
    padding: var(--space-4);
}

.stats__number {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--brand-primary);
    line-height: 1;
    margin-bottom: var(--space-1);
}

.section--dark .stats__number {
    color: var(--text-on-dark);
}

.stats__label {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    font-weight: 500;
}

.section--dark .stats__label {
    color: var(--text-on-dark-muted);
}

/* Glass stats variant */
.stats--glass .stats__item {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.08);
    transition: background var(--transition), border-color var(--transition);
}

.stats--glass .stats__item:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.15);
}

/* ---- Cards ---- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-4);
}

.card {
    background: var(--bg-page);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    box-shadow: var(--shadow-card);
    transition: transform var(--transition), box-shadow var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.card__icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: var(--brand-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-2);
    font-size: 22px;
    color: var(--brand-primary);
}

.card__logo {
    width: 160px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-2);
    mix-blend-mode: multiply;
}

.card__logo--lg {
    width: 200px;
    height: 75px;
}

.card__logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.card__title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: var(--space-1);
}

.card__body {
    font-size: var(--font-size-sm);
    color: var(--text-body);
    line-height: 1.7;
}

.card__badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 600;
    margin-bottom: var(--space-2);
}

.card__badge--green {
    background: var(--brand-accent-light);
    color: var(--brand-accent);
}

.card__badge--blue {
    background: var(--brand-light);
    color: var(--brand-primary);
}

.card__badge--muted {
    background: #f0f0f0;
    color: var(--text-muted);
}

/* ---- Legacy Notice ---- */
.legacy-notice {
    background: var(--bg-section);
    border-left: 4px solid var(--brand-primary);
    border-radius: var(--radius-md);
    padding: var(--space-3) var(--space-4);
    margin-top: var(--space-4);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.legacy-notice__title {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: var(--space-1);
}

.legacy-notice__text {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

/* ---- Timeline ---- */
.timeline {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    padding: var(--space-4) 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--brand-primary), var(--brand-accent));
    border-radius: 2px;
}

.timeline__item {
    position: relative;
    padding-left: 64px;
    margin-bottom: var(--space-4);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

.timeline__item:nth-child(1) { animation-delay: 0.1s; }
.timeline__item:nth-child(2) { animation-delay: 0.2s; }
.timeline__item:nth-child(3) { animation-delay: 0.3s; }
.timeline__item:nth-child(4) { animation-delay: 0.4s; }
.timeline__item:nth-child(5) { animation-delay: 0.5s; }
.timeline__item:nth-child(6) { animation-delay: 0.6s; }
.timeline__item:nth-child(7) { animation-delay: 0.7s; }
.timeline__item:nth-child(8) { animation-delay: 0.8s; }
.timeline__item:nth-child(9) { animation-delay: 0.9s; }
.timeline__item:nth-child(10) { animation-delay: 1.0s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.timeline__dot {
    position: absolute;
    left: 16px;
    top: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--brand-primary);
    border: 3px solid var(--bg-page);
    box-shadow: 0 0 0 2px var(--brand-primary);
    z-index: 1;
}

.timeline__item--highlight .timeline__dot {
    background: var(--brand-accent);
    box-shadow: 0 0 0 2px var(--brand-accent);
}

.timeline__content {
    background: var(--bg-page);
    border-radius: var(--radius-md);
    padding: var(--space-3);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: box-shadow var(--transition);
}

.timeline__content:hover {
    box-shadow: var(--shadow-card);
}

.timeline__year {
    font-size: var(--font-size-xs);
    font-weight: 700;
    color: var(--brand-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.timeline__title {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 4px;
}

.timeline__desc {
    font-size: var(--font-size-sm);
    color: var(--text-body);
    line-height: 1.6;
}

/* ---- Founder Bio ---- */
.founder {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: var(--space-8);
    align-items: start;
}

.founder__photo {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-hover);
    object-fit: cover;
}

.founder__name {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 4px;
}

.founder__role {
    font-size: var(--font-size-lg);
    color: var(--brand-primary);
    font-weight: 500;
    margin-bottom: var(--space-3);
}

.founder__bio {
    font-size: var(--font-size-base);
    color: var(--text-body);
    line-height: 1.8;
}

.founder__bio p {
    margin-bottom: var(--space-2);
}

/* ---- Contact Form ---- */
.contact-form {
    max-width: 560px;
    margin: 0 auto;
}

.contact-form__field {
    margin-bottom: var(--space-2);
}

.contact-form__label {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--text-heading);
    margin-bottom: 6px;
}

.contact-form__input,
.contact-form__textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    color: var(--text-heading);
    background: var(--bg-page);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.contact-form__input:focus,
.contact-form__textarea:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(38, 112, 177, 0.12);
}

.contact-form__textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-form__submit {
    display: inline-block;
    width: 100%;
    padding: 14px 32px;
    background: var(--brand-primary);
    color: var(--text-on-dark);
    font-size: var(--font-size-base);
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    margin-top: var(--space-1);
}

.contact-form__submit:hover {
    background: var(--brand-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-card);
}

.contact-form__submit--success {
    background: #107931;
}

.contact-form__submit--error {
    background: #c62828;
}

/* ---- Footer ---- */
.site-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: var(--space-6) 0 var(--space-3);
}

.site-footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
}

.site-footer__brand {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--text-on-dark);
}

.site-footer__links {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
    justify-content: center;
}

.site-footer__link {
    font-size: var(--font-size-sm);
    color: var(--footer-text);
    transition: color var(--transition-fast);
}

.site-footer__link:hover {
    color: var(--text-on-dark);
}

.site-footer__divider {
    width: 100%;
    max-width: 400px;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.site-footer__copy {
    font-size: var(--font-size-xs);
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
}

/* ---- Dual-Track Timeline (Founder PDF layout) ---- */
.dual-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: var(--space-4) 0;
}

.dual-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--brand-primary) 0%, var(--brand-accent) 100%);
    transform: translateX(-50%);
    border-radius: 2px;
}

.dual-timeline__headers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
    text-align: center;
}

.dual-timeline__track-label {
    font-size: var(--font-size-sm);
    font-weight: 700;
    color: var(--brand-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    background: var(--brand-light);
}

.dual-timeline__track-label--right {
    color: var(--brand-accent);
    background: var(--brand-accent-light);
}

.dual-timeline__track-label small {
    display: block;
    font-size: var(--font-size-xs);
    font-weight: 500;
    margin-top: 2px;
    opacity: 0.7;
    text-transform: none;
    letter-spacing: 0;
}

.dual-timeline__item {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
    margin-bottom: var(--space-3);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

.dual-timeline__item:nth-child(1) { animation-delay: 0.1s; }
.dual-timeline__item:nth-child(2) { animation-delay: 0.15s; }
.dual-timeline__item:nth-child(3) { animation-delay: 0.2s; }
.dual-timeline__item:nth-child(4) { animation-delay: 0.25s; }
.dual-timeline__item:nth-child(5) { animation-delay: 0.3s; }
.dual-timeline__item:nth-child(6) { animation-delay: 0.35s; }
.dual-timeline__item:nth-child(7) { animation-delay: 0.4s; }
.dual-timeline__item:nth-child(8) { animation-delay: 0.45s; }
.dual-timeline__item:nth-child(9) { animation-delay: 0.5s; }
.dual-timeline__item:nth-child(10) { animation-delay: 0.55s; }
.dual-timeline__item:nth-child(11) { animation-delay: 0.6s; }
.dual-timeline__item:nth-child(12) { animation-delay: 0.65s; }
.dual-timeline__item:nth-child(13) { animation-delay: 0.7s; }
.dual-timeline__item:nth-child(14) { animation-delay: 0.75s; }
.dual-timeline__item:nth-child(15) { animation-delay: 0.8s; }

.dual-timeline__dot {
    position: absolute;
    left: 50%;
    top: 12px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--brand-primary);
    border: 3px solid var(--bg-page);
    box-shadow: 0 0 0 2px var(--brand-primary);
    transform: translateX(-50%);
    z-index: 2;
}

.dual-timeline__item--highlight .dual-timeline__dot {
    background: var(--brand-accent);
    box-shadow: 0 0 0 2px var(--brand-accent);
    width: 16px;
    height: 16px;
}

.dual-timeline__year {
    position: absolute;
    left: 50%;
    top: -8px;
    transform: translateX(-50%);
    background: var(--bg-section);
    padding: 2px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    color: var(--brand-primary);
    white-space: nowrap;
    z-index: 3;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.dual-timeline__left {
    text-align: right;
    padding-right: var(--space-4);
}

.dual-timeline__right {
    text-align: left;
    padding-left: var(--space-4);
}

.dual-timeline__card {
    background: var(--bg-page);
    border-radius: var(--radius-md);
    padding: var(--space-2) var(--space-3);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: box-shadow var(--transition), transform var(--transition);
    cursor: default;
    position: relative;
}

.dual-timeline__card:hover {
    box-shadow: var(--shadow-card);
    transform: translateY(-2px);
}

.dual-timeline__card-title {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 2px;
}

.dual-timeline__card-role {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    line-height: 1.4;
}

.dual-timeline__card[data-tip]::after {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a2e;
    color: #fff;
    font-size: 12px;
    padding: 8px 14px;
    border-radius: 6px;
    line-height: 1.5;
    white-space: normal;
    width: 260px;
    text-align: left;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 10;
}

.dual-timeline__card[data-tip]:hover::after {
    opacity: 1;
}

.dual-timeline__empty {
    visibility: hidden;
}

/* ================================================================
   FOUNDER PAGE — Side-by-side bio + compact timeline
   ================================================================ */
.founder-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    align-items: start;
}

/* Left column: bio with floated photo */
.founder-layout__bio {
    position: sticky;
    top: 80px;
}

.founder-layout__photo {
    float: left;
    width: 160px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    object-fit: cover;
    margin: 0 var(--space-3) var(--space-2) 0;
    shape-outside: inset(0 round var(--radius-lg));
}

.founder-layout__name {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 2px;
    padding-top: 2px;
}

.founder-layout__role {
    font-size: var(--font-size-sm);
    color: var(--brand-primary);
    font-weight: 600;
    margin-bottom: var(--space-2);
    padding-bottom: var(--space-1);
    border-bottom: 2px solid var(--brand-light);
}

.founder-layout__text {
    font-size: var(--font-size-sm);
    color: var(--text-body);
    line-height: 1.7;
}

.founder-layout__text p {
    margin-bottom: 10px;
}

/* Key stats strip below bio */
.founder-layout__highlights {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
    margin-top: var(--space-3);
    padding-top: var(--space-3);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    clear: both;
}

.founder-layout__highlight {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-section);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.founder-layout__highlight strong {
    color: var(--brand-primary);
    font-weight: 700;
}

/* Right column: timeline */
.founder-layout__timeline {
    padding-left: var(--space-2);
}

.founder-layout__timeline-title {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: var(--space-1);
}

.founder-layout__timeline-subtitle {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    margin-bottom: var(--space-3);
}

/* ---- Compact Timeline ---- */
.compact-timeline__legend {
    display: flex;
    flex-wrap: nowrap;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
}

.compact-timeline__legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2px;
    padding: 5px 12px;
    border-radius: var(--radius-full);
}

.compact-timeline__legend-item--banking {
    background: var(--timeline-banking-light);
    color: var(--timeline-banking);
}

.compact-timeline__legend-item--tech {
    background: var(--timeline-tech-light);
    color: var(--timeline-tech);
}

.compact-timeline__legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.compact-timeline__legend-item--banking .compact-timeline__legend-dot {
    background: var(--timeline-banking);
}

.compact-timeline__legend-item--tech .compact-timeline__legend-dot {
    background: var(--timeline-tech);
}

.compact-timeline__list {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}

/* Thin vertical line connecting the dots */
.compact-timeline__list::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(180deg, var(--timeline-tech), var(--timeline-banking));
    border-radius: 1px;
}

.compact-timeline__item {
    position: relative;
    padding-left: 28px;
    padding-bottom: 10px;
    cursor: default;
    display: grid;
    grid-template-columns: 130px 1fr;
    column-gap: 8px;
    align-items: baseline;
    isolation: isolate;
}

.compact-timeline__item:last-child {
    padding-bottom: 0;
}

/* Row highlight — starts AFTER the dot column so arrow/dots stay in clean space */
.compact-timeline__item::before {
    content: '';
    position: absolute;
    top: -3px;
    bottom: -3px;
    left: 20px;
    right: -6px;
    border-radius: 4px;
    background-color: transparent;
    transition: background-color 0.15s ease;
    z-index: -1;
}

/* Banking row hover — light blue (matches legend) */
.compact-timeline__item:hover::before {
    background-color: var(--timeline-banking-light);
}

/* Tech row hover — light green (matches legend) */
.compact-timeline__item:has(.compact-timeline__dot--tech):hover::before {
    background-color: var(--timeline-tech-light);
}

/* Dot */
.compact-timeline__dot {
    position: absolute;
    left: 0;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--timeline-banking);
    border: 2px solid var(--bg-page);
    box-shadow: 0 0 0 1px var(--timeline-banking);
    z-index: 1;
}

.compact-timeline__dot--tech {
    background: var(--timeline-tech);
    box-shadow: 0 0 0 1px var(--timeline-tech);
}

.compact-timeline__dot--highlight {
    width: 14px;
    height: 14px;
    left: -1px;
    top: 4px;
}

/* Content */
.compact-timeline__header {
    display: contents;
}

.compact-timeline__year {
    grid-column: 1;
    font-size: 11px;
    font-weight: 700;
    color: var(--timeline-banking);
    white-space: nowrap;
    letter-spacing: 0.3px;
}

/* Tech entries: date color matches dot color */
.compact-timeline__dot--tech ~ .compact-timeline__header .compact-timeline__year {
    color: var(--timeline-tech);
}

.compact-timeline__title {
    grid-column: 2;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-heading);
    line-height: 1.3;
}

.compact-timeline__role {
    grid-column: 2;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
    margin-top: 1px;
}

/* CSS tooltip on hover */
.compact-timeline__item[data-tip] {
    position: relative;
}

/* Tooltip: LEFT of timeline, arrow points directly at the dot circle */
.compact-timeline__item[data-tip]::after {
    content: attr(data-tip);
    position: absolute;
    right: calc(100% + 4px);   /* arrow tip with small gap from dot */
    top: -1px;                  /* arrow vertically aligns with dot center */
    left: auto;
    bottom: auto;
    background: var(--timeline-banking-light);
    color: var(--text-heading);
    font-size: 11px;
    font-weight: 400;
    padding: 8px 16px 8px 12px;
    border-radius: 6px;
    line-height: 1.5;
    white-space: normal;
    width: 260px;
    filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.2)) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.1));
    clip-path: polygon(
        0 0,
        calc(100% - 8px) 0,
        calc(100% - 8px) 5px,
        100% 12px,
        calc(100% - 8px) 19px,
        calc(100% - 8px) 100%,
        0 100%
    );
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 10;
}

/* Tech entries: light green tooltip (matches legend & row hover) */
.compact-timeline__item:has(.compact-timeline__dot--tech)[data-tip]::after {
    background: var(--timeline-tech-light);
}

.compact-timeline__item[data-tip]:hover::after {
    opacity: 1;
}

/* Paired items (two milestones same year, e.g. Spring 2004) */
.compact-timeline__pair {
    padding-left: 28px;
    padding-bottom: 10px;
    position: relative;
}

.compact-timeline__pair-year {
    position: absolute;
    left: 0;
    top: 4px;
}

.compact-timeline__pair-items {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.compact-timeline__pair-item {
    display: flex;
    align-items: baseline;
    gap: 8px;
    cursor: default;
    position: relative;
}

.compact-timeline__pair-item[data-tip]::after {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 4px);
    left: 0;
    background: var(--text-heading);
    color: #fff;
    font-size: 11px;
    font-weight: 400;
    padding: 8px 12px;
    border-radius: 6px;
    line-height: 1.5;
    white-space: normal;
    width: 240px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 10;
}

.compact-timeline__pair-item[data-tip]:hover::after {
    opacity: 1;
}

.compact-timeline__pair-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 3px;
}

.compact-timeline__pair-dot--banking {
    background: var(--brand-primary);
}

.compact-timeline__pair-dot--tech {
    background: var(--brand-accent);
}

/* ---- Utility ---- */
.text-center { text-align: center; }
.mt-4 { margin-top: var(--space-4); }
.mb-4 { margin-bottom: var(--space-4); }

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .site-nav__links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-page);
        flex-direction: column;
        padding: var(--space-2) var(--container-padding);
        gap: 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        box-shadow: var(--shadow-card);
    }

    .site-nav__links--open {
        display: flex;
    }

    .site-nav__link {
        padding: var(--space-2) 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.04);
        width: 100%;
    }

    .site-nav__cta {
        margin-top: var(--space-1);
        text-align: center;
        width: 100%;
    }

    .site-nav__toggle {
        display: block;
    }

    .hero {
        min-height: 70vh;
    }

    .hero__title {
        font-size: var(--font-size-2xl);
    }

    .hero__subtitle {
        font-size: var(--font-size-base);
    }

    .hero__features {
        gap: var(--space-2);
    }

    .hero__feature {
        padding: 10px 14px;
        font-size: var(--font-size-xs);
    }

    .hero::after {
        height: 40px;
    }

    .section {
        padding: var(--space-8) 0;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-3);
    }

    .founder {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .founder__photo {
        max-width: 220px;
        margin: 0 auto;
    }

    .timeline::before { left: 16px; }
    .timeline__dot { left: 8px; width: 16px; height: 16px; }
    .timeline__item { padding-left: 48px; }

    .dual-timeline::before { left: 16px; }
    .dual-timeline__headers { grid-template-columns: 1fr; gap: var(--space-2); }
    .dual-timeline__item { grid-template-columns: 1fr; padding-left: 40px; }
    .dual-timeline__dot { left: 16px; transform: none; }
    .dual-timeline__year { left: 40px; transform: none; }
    .dual-timeline__left, .dual-timeline__right { text-align: left; padding: 0; }
    .dual-timeline__empty { display: none; }
    .dual-timeline__card[data-tip]::after { left: 0; transform: none; width: 220px; }

    /* Founder layout: stack on mobile */
    .founder-layout {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    .founder-layout__bio {
        position: static;
    }

    .founder-layout__photo {
        width: 120px;
        margin: 0 var(--space-2) var(--space-1) 0;
    }

    .founder-layout__timeline {
        padding-left: 0;
        padding-top: var(--space-4);
    }

    .founder-layout__highlights {
        justify-content: center;
    }

    /* Grid handles role alignment automatically */

    /* On mobile, tooltip above instead of left (no room) */
    .compact-timeline__item[data-tip]::after {
        right: auto;
        left: 28px;
        bottom: calc(100% + 4px);
        top: auto;
        width: 220px;
        clip-path: none;
        border-radius: 6px;
        padding: 8px 12px;
        filter: none;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.06);
    }

    .compact-timeline__item::before {
        left: 20px;
        right: -3px;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 60vh;
    }

    .hero__title {
        font-size: var(--font-size-xl);
    }

    .hero__features {
        flex-direction: column;
        align-items: center;
    }

    .stats {
        grid-template-columns: 1fr 1fr;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }
}
