/*
 * Founder page + Scrumiz.ai (company) page components.
 *
 * Loaded only by page-founder.php and page-scrumiz.php. Everything here builds on the
 * tokens already defined in style.css (--sz-*); no token is redefined.
 *
 * Note: the client document specifies a light hero (#FAFAFA). The site identity is dark,
 * so the hero is dark with the requested gradient rendered in the indigo brand accent.
 *
 * Mobile-first: base rules are the small-screen layout, min-width queries scale it up.
 */

/* ==========================================================================
   1. FOUNDER HERO
   ========================================================================== */
.founder-hero {
    position: relative;
    padding: 7.5rem 0 3.5rem;
    overflow: hidden;
    border-bottom: 1px solid var(--sz-border);
    background:
        radial-gradient(ellipse 150% 70% at 10% 0%, rgba(99, 102, 241, 0.20) 0%, transparent 62%),
        radial-gradient(ellipse 130% 60% at 95% 100%, rgba(79, 70, 229, 0.14) 0%, transparent 60%),
        var(--sz-bg);
}

.founder-hero-inner {
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
}

/* --- Portrait --- */
.founder-hero-media {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    position: relative;
}

.founder-hero-media::before {
    content: '';
    position: absolute;
    inset: -14%;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 45%, rgba(99, 102, 241, 0.28) 0%, transparent 68%);
    filter: blur(24px);
    z-index: 0;
    pointer-events: none;
}

.founder-portrait {
    position: relative;
    z-index: 1;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center 22%;
    border-radius: var(--sz-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55), var(--sz-glow-sm);
}

/* --- Hero text --- */
.founder-hero-body .section-label {
    margin-bottom: 0.5rem;
}

.founder-name {
    font-size: clamp(2.1rem, 8vw, 3.4rem);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 0.5rem;
}

.founder-role-line {
    font-family: 'Inter', sans-serif;
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--sz-text);
    margin-bottom: 1.25rem;
}

.founder-tagline {
    font-size: clamp(1.02rem, 3.6vw, 1.3rem);
    font-weight: 400;
    line-height: 1.65;
    letter-spacing: 0;
    color: var(--sz-text-muted);
    max-width: 34em;
    margin-bottom: 1.75rem;
}

/* --- Micro-credibility badges --- */
.founder-badges {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.founder-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.9rem;
    border: 1px solid var(--sz-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--sz-text-muted);
}

.founder-badge-icon {
    display: inline-flex;
    flex: 0 0 auto;
    color: var(--sz-indigo);
}

.founder-badge-icon svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* --- Hero actions --- */
.founder-hero-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.founder-btn-gradient {
    background: linear-gradient(135deg, #7c83f5 0%, var(--sz-indigo) 45%, var(--sz-indigo-dark) 100%);
}

.founder-btn-gradient:hover {
    background: linear-gradient(135deg, var(--sz-indigo-hover) 0%, var(--sz-indigo) 50%, var(--sz-indigo-dark) 100%);
}

.founder-text-link {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--sz-text-muted);
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
    transition: color var(--sz-transition), border-color var(--sz-transition);
}

.founder-text-link:hover,
.founder-text-link:focus-visible {
    color: var(--sz-indigo-hover);
    border-bottom-color: var(--sz-indigo);
}

/* ==========================================================================
   2. MY JOURNEY + CAREER TIMELINE
   ========================================================================== */
.founder-journey {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.founder-journey-title {
    font-size: clamp(1.55rem, 4.5vw, 2.05rem);
    margin: 0.35rem 0 1.25rem;
}

.founder-narrative-body p {
    color: var(--sz-text-muted);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.1rem;
}

.founder-timeline-title {
    font-size: 1.2rem;
    margin-bottom: 0.35rem;
}

.founder-timeline-hint {
    font-size: 0.85rem;
    color: var(--sz-text-dim);
    margin-bottom: 1.5rem;
}

/* --- Rail --- */
.tl-list {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}

.tl-list::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 1.6rem;
    bottom: 1.6rem;
    width: 1px;
    background: linear-gradient(180deg, var(--sz-indigo) 0%, var(--sz-border) 35%, var(--sz-border) 100%);
}

.tl-item {
    position: relative;
    padding-left: 2rem;
}

.tl-item + .tl-item {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- Disclosure button --- */
.tl-heading {
    margin: 0;
    font-size: 1rem;
    font-weight: 400;
    line-height: inherit;
}

.tl-trigger {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
    padding: 0.9rem 0;
    background: none;
    border: 0;
    text-align: left;
    cursor: pointer;
    color: inherit;
    font: inherit;
}

.tl-trigger:focus-visible {
    outline: 2px solid var(--sz-indigo);
    outline-offset: 3px;
    border-radius: var(--sz-radius-sm);
}

.tl-dot {
    position: absolute;
    left: 2px;
    top: 1.35rem;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--sz-bg);
    border: 2px solid var(--sz-border);
    transition: background var(--sz-transition), border-color var(--sz-transition), box-shadow var(--sz-transition);
}

.tl-label {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    flex: 1 1 auto;
    min-width: 0;
}

.tl-years {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--sz-indigo);
}

.tl-company {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--sz-text);
    transition: color var(--sz-transition);
}

.tl-role {
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--sz-text-dim);
}

.tl-chevron {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 0.4rem;
    color: var(--sz-text-dim);
    transition: transform var(--sz-transition), color var(--sz-transition);
}

.tl-chevron svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tl-trigger:hover .tl-company,
.tl-trigger:focus-visible .tl-company {
    color: var(--sz-indigo-hover);
}

.tl-trigger:hover .tl-chevron {
    color: var(--sz-indigo);
}

.tl-item.is-open .tl-company {
    color: var(--sz-indigo-hover);
}

.tl-item.is-open .tl-dot {
    background: var(--sz-indigo);
    border-color: var(--sz-indigo);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.18);
}

.tl-item.is-open .tl-chevron {
    color: var(--sz-indigo);
    transform: rotate(180deg);
}

/* --- Panel --- */
.tl-panel {
    padding: 0 0 1.35rem 1rem;
    border-left: 2px solid var(--sz-border);
    margin-left: 0.15rem;
}

.tl-story p {
    color: var(--sz-text-muted);
    font-size: 0.92rem;
    line-height: 1.75;
    margin-bottom: 0.85rem;
}

.tl-story p:last-child {
    margin-bottom: 0;
}

/* Recommendation sub-block. Never rendered when the field is empty. */
.tl-rec {
    position: relative;
    margin: 1.1rem 0 0;
    padding: 1rem 1.1rem;
    background: var(--sz-bg-card-alt);
    border: 1px solid var(--sz-border);
    border-radius: var(--sz-radius);
}

.tl-rec::before {
    content: '\201C';
    position: absolute;
    top: 0.1rem;
    left: 0.65rem;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 2.4rem;
    line-height: 1;
    color: var(--sz-indigo);
    opacity: 0.35;
}

.tl-rec-quote {
    margin: 0;
    padding-left: 1.5rem;
}

.tl-rec-quote p {
    font-size: 0.88rem;
    font-style: italic;
    line-height: 1.7;
    color: var(--sz-text-muted);
    margin-bottom: 0.5rem;
}

.tl-rec-quote p:last-child {
    margin-bottom: 0;
}

.tl-rec-author {
    margin-top: 0.6rem;
    padding-left: 1.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--sz-text);
}

.tl-rec-author::before {
    content: '\2014\00a0';
    color: var(--sz-indigo);
}

/* --- Progressive enhancement -------------------------------------------
   Panels are OPEN in the markup. The `sz-founder-js` class is added to <html>
   by an inline head script and removed again if founder.js never runs, so the
   content is never trapped behind JavaScript.
   --------------------------------------------------------------------- */
.sz-founder-js .tl-panel {
    display: none;
}

.sz-founder-js .tl-panel.is-open {
    display: block;
    animation: tlPanelIn 0.25s ease both;
}

@keyframes tlPanelIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media print {
    .sz-founder-js .tl-panel { display: block !important; }
    .tl-chevron { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .sz-founder-js .tl-panel.is-open { animation: none; }
    .tl-chevron,
    .tl-dot,
    .tl-company { transition: none; }
}

/* ==========================================================================
   3. WHAT I BELIEVE
   ========================================================================== */
.founder-centered-label {
    display: block;
    text-align: center;
}

.beliefs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 2.5rem;
}

.belief-card {
    background: var(--sz-bg-card-alt);
    border: 1px solid var(--sz-border);
    border-radius: var(--sz-radius);
    padding: 1.75rem 1.5rem;
    transition: border-color var(--sz-transition), transform var(--sz-transition), box-shadow var(--sz-transition);
}

.belief-card:hover {
    border-color: var(--sz-border-hover);
    transform: translateY(-3px);
    box-shadow: var(--sz-glow-sm);
}

.belief-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-bottom: 1rem;
    border-radius: 10px;
    background: rgba(99, 102, 241, 0.12);
    color: var(--sz-indigo);
}

.belief-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.belief-title {
    font-size: 1.05rem;
    margin-bottom: 0.35rem;
}

.belief-text {
    color: var(--sz-text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* ==========================================================================
   4. CTA ACTION ROW (shared by both pages)
   ========================================================================== */
.founder-cta-actions {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    align-items: stretch;
    margin-top: 1.75rem;
}

.founder-cta-actions .btn {
    justify-content: center;
}

/* ==========================================================================
   5. SCRUMIZ.AI COMPANY PAGE
   ========================================================================== */
.scrumiz-intro {
    max-width: 780px;
    margin: 0 auto 3rem;
    text-align: center;
}

.scrumiz-lead {
    color: var(--sz-text-muted);
    font-size: 1.02rem;
    line-height: 1.8;
}

.service-category-header h2 {
    font-size: 1.4rem;
    margin: 0;
}

.scrumiz-list-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--sz-indigo);
    margin: 1.5rem 0 0.75rem;
}

.scrumiz-flow {
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--sz-indigo);
    margin: 0 0 2.5rem;
}

.scrumiz-process-section .process-step h3 {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--sz-indigo);
    text-align: center;
    margin-bottom: 0.5rem;
}

.scrumiz-why-section .ai-closing {
    max-width: 780px;
    margin: 0 auto;
}

.scrumiz-why-section .ai-closing h2 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.scrumiz-why-section .ai-closing p {
    color: var(--sz-text-muted);
    font-size: 0.98rem;
    line-height: 1.75;
    margin-bottom: 0.75rem;
}

.scrumiz-why-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    display: grid;
    gap: 0.55rem;
}

.scrumiz-why-list li {
    position: relative;
    padding-left: 1.5rem;
    color: var(--sz-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.scrumiz-why-list li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--sz-indigo);
    font-weight: 700;
}

/* ==========================================================================
   6. BREAKPOINTS
   ========================================================================== */
@media (min-width: 480px) {
    .founder-hero-actions {
        flex-direction: row;
        align-items: center;
        gap: 1.5rem;
    }

    .founder-cta-actions {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
    }
}

@media (min-width: 640px) {
    .beliefs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    /* Exactly five beliefs: 3 on the first row, 2 centered on the second. */
    .beliefs-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    .belief-card { grid-column: span 2; }
    .belief-card:nth-child(4) { grid-column: 2 / span 2; }
    .belief-card:nth-child(5) { grid-column: 4 / span 2; }
}

@media (min-width: 992px) {
    .founder-hero {
        padding: 10rem 0 5rem;
    }

    /* Document wireframe: left 55% portrait, right 45% text. */
    .founder-hero-inner {
        display: grid;
        grid-template-columns: 55fr 45fr;
        align-items: center;
        gap: 3.5rem;
    }

    .founder-hero--no-photo .founder-hero-inner {
        grid-template-columns: 1fr;
        max-width: 820px;
        margin: 0 auto;
    }

    .founder-hero-media {
        max-width: none;
        margin: 0;
    }

    .founder-portrait {
        aspect-ratio: 4 / 5;
    }

    .founder-journey {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 4rem;
        align-items: start;
    }
}

/* --------------------------------------------------------------------------
   Mobile journey — the founder document specifies a distinct short narrative
   for phones. Under 768px the condensed version replaces the full one.
   -------------------------------------------------------------------------- */

.founder-narrative-mobile {
    display: none;
}

@media (max-width: 767px) {
    .founder-narrative-mobile {
        display: block;
    }

    .founder-narrative-mobile p {
        margin: 0 0 1rem;
        color: #c7c7c7;
        line-height: 1.65;
    }

    .founder-narrative-body {
        display: none;
    }
}
