/*
 * Public founder profile page.
 *
 * Self-contained stylesheet — the page loads no CSS framework. Everything is
 * scoped under .fdr-body so these rules can never leak into the rest of the
 * frontend if the page is ever embedded in another layout.
 */

.fdr-body {
    --fdr-bg: #0b1420;
    --fdr-surface: #101c2c;
    --fdr-surface-2: #132234;
    --fdr-line: rgba(255, 255, 255, 0.09);
    --fdr-text: #edf2f8;
    --fdr-text-muted: #8fa0b8;
    --fdr-accent: #d4a24c;
    --fdr-accent-soft: rgba(212, 162, 76, 0.14);
    --fdr-accent-line: rgba(212, 162, 76, 0.35);
    --fdr-radius: 4px;
    --fdr-maxw: 1120px;

    margin: 0;
    background: var(--fdr-bg);
    color: var(--fdr-text);
    font-family: 'IBM Plex Sans', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.fdr-html {
    scroll-behavior: smooth;
}

.fdr-body *,
.fdr-body *::before,
.fdr-body *::after {
    box-sizing: border-box;
}

.fdr-body h1,
.fdr-body h2,
.fdr-body h3 {
    font-family: 'Space Grotesk', sans-serif;
    margin: 0;
    letter-spacing: -0.01em;
}

.fdr-body a {
    color: inherit;
}

.fdr-body img {
    max-width: 100%;
}

.fdr-wrap {
    max-width: var(--fdr-maxw);
    margin: 0 auto;
    padding: 0 32px;
}

.fdr-mono {
    font-family: 'IBM Plex Mono', monospace;
}

/* Keyboard users need a visible focus ring on this dark palette. */
.fdr-body a:focus-visible,
.fdr-body button:focus-visible {
    outline: 2px solid var(--fdr-accent);
    outline-offset: 3px;
}

.fdr-skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--fdr-accent);
    color: #12100a;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    z-index: 100;
}

.fdr-skip-link:focus {
    left: 12px;
    top: 12px;
}

/* ---------- Nav ---------- */
.fdr-site-nav {
    border-bottom: 1px solid var(--fdr-line);
    background: rgba(11, 20, 32, 0.85);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 50;
}

.fdr-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 32px;
    max-width: var(--fdr-maxw);
    margin: 0 auto;
}

.fdr-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex: none;
}

/* Company logo. Transparent PNG, so it sits directly on the dark nav with no
   plate behind it; width follows the natural aspect ratio. */
.fdr-brand-mark {
    height: 36px;
    width: auto;
    display: block;
    flex: none;
}

.fdr-brand-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--fdr-text);
}

.fdr-brand-text span {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: var(--fdr-text-muted);
}

.fdr-cta-btn {
    border: 1px solid var(--fdr-accent-line);
    color: var(--fdr-accent);
    padding: 9px 16px;
    border-radius: var(--fdr-radius);
    font-size: 13.5px;
    text-decoration: none;
    white-space: nowrap;
    flex: none;
}

.fdr-cta-btn:hover {
    background: var(--fdr-accent-soft);
}

@media (max-width: 820px) {
    .fdr-nav-inner {
        padding: 14px 20px;
    }

    /* Drop the tagline first — the business name and the quote button are the
       two things that must survive on a narrow screen. */
    .fdr-brand-text span {
        display: none;
    }
}

@media (max-width: 420px) {
    .fdr-brand-text {
        font-size: 13px;
    }

    .fdr-brand-mark {
        height: 30px;
    }

    .fdr-cta-btn {
        padding: 8px 12px;
        font-size: 12.5px;
    }
}

/* ---------- Hero ---------- */
.fdr-hero {
    padding: 88px 0 72px;
    border-bottom: 1px solid var(--fdr-line);
    position: relative;
    overflow: hidden;
}

.fdr-hero::before {
    content: "";
    position: absolute;
    top: -120px;
    right: -160px;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--fdr-accent-soft), transparent 70%);
    pointer-events: none;
}

.fdr-hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 64px;
    align-items: center;
    position: relative;
}

.fdr-kicker {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12.5px;
    color: var(--fdr-accent);
    letter-spacing: 0.04em;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.fdr-kicker::before {
    content: "";
    width: 22px;
    height: 1px;
    background: var(--fdr-accent-line);
    flex: none;
}

.fdr-name {
    font-size: 44px;
    font-weight: 600;
    line-height: 1.12;
    margin-bottom: 10px;
}

.fdr-role {
    font-size: 18px;
    color: var(--fdr-accent);
    font-weight: 500;
    margin-bottom: 22px;
}

.fdr-lede {
    font-size: 16px;
    color: var(--fdr-text-muted);
    max-width: 52ch;
    margin-bottom: 30px;
}

.fdr-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 28px;
    margin-bottom: 34px;
}

.fdr-hero-meta div {
    font-size: 13px;
    color: var(--fdr-text-muted);
}

.fdr-hero-meta strong {
    display: block;
    color: var(--fdr-text);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
    font-weight: 600;
}

.fdr-hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.fdr-btn-primary {
    background: var(--fdr-accent);
    color: #12100a;
    font-weight: 600;
    font-size: 14px;
    padding: 12px 22px;
    border-radius: var(--fdr-radius);
    text-decoration: none;
}

.fdr-btn-ghost {
    border: 1px solid var(--fdr-line);
    color: var(--fdr-text);
    font-size: 14px;
    padding: 12px 22px;
    border-radius: var(--fdr-radius);
    text-decoration: none;
}

.fdr-btn-ghost:hover {
    border-color: var(--fdr-accent-line);
    color: var(--fdr-accent);
}

.fdr-portrait-card {
    position: relative;
    border: 1px solid var(--fdr-line);
    background: var(--fdr-surface);
    padding: 14px;
    border-radius: 8px;
}

.fdr-portrait-card img {
    width: 100%;
    display: block;
    border-radius: 4px;
    filter: grayscale(8%);
}

/* Shown until a portrait is uploaded through the CMS. */
.fdr-portrait-fallback {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 4px;
    background: linear-gradient(155deg, var(--fdr-surface-2), #0d1826);
    border: 1px solid var(--fdr-line);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 56px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--fdr-accent);
}

.fdr-portrait-tag {
    position: absolute;
    bottom: -14px;
    left: 24px;
    background: var(--fdr-bg);
    border: 1px solid var(--fdr-accent-line);
    color: var(--fdr-accent);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    padding: 6px 12px;
    border-radius: 3px;
    letter-spacing: 0.03em;
}

@media (max-width: 900px) {
    .fdr-hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .fdr-portrait-card {
        max-width: 320px;
        margin: 0 auto;
    }

    .fdr-name {
        font-size: 34px;
    }
}

/* ---------- Section shell ---------- */
.fdr-section {
    padding: 72px 0;
    border-bottom: 1px solid var(--fdr-line);
}

.fdr-section-head {
    max-width: 640px;
    margin-bottom: 40px;
}

.fdr-section-head h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 12px;
}

.fdr-section-head p {
    color: var(--fdr-text-muted);
    font-size: 15px;
    margin: 0;
}

/* ---------- Background ---------- */
.fdr-bio-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 56px;
}

.fdr-bio-grid p {
    color: var(--fdr-text-muted);
    font-size: 15.5px;
    margin: 0 0 16px;
}

.fdr-bio-grid p:last-child {
    margin-bottom: 0;
}

.fdr-pull {
    border-left: 2px solid var(--fdr-accent);
    padding-left: 20px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
    font-weight: 500;
    color: var(--fdr-text);
    line-height: 1.45;
}

@media (max-width: 820px) {
    .fdr-bio-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

/* ---------- Timeline ---------- */
.fdr-timeline {
    position: relative;
    padding-left: 28px;
}

.fdr-timeline::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 6px;
    bottom: 6px;
    width: 1px;
    background: var(--fdr-line);
}

.fdr-t-item {
    position: relative;
    padding-bottom: 36px;
}

.fdr-t-item:last-child {
    padding-bottom: 0;
}

.fdr-t-item::before {
    content: "";
    position: absolute;
    left: -28px;
    top: 4px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--fdr-bg);
    border: 2px solid var(--fdr-accent);
}

.fdr-t-year {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12.5px;
    color: var(--fdr-accent);
    margin-bottom: 6px;
}

.fdr-t-item h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 6px;
}

.fdr-t-item p {
    color: var(--fdr-text-muted);
    font-size: 14.5px;
    margin: 0;
    max-width: 62ch;
}

/* ---------- Expertise badges ---------- */
.fdr-badge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1px;
    background: var(--fdr-line);
    border: 1px solid var(--fdr-line);
    border-radius: 6px;
    overflow: hidden;
}

.fdr-badge {
    background: var(--fdr-surface);
    padding: 20px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.fdr-badge-tag {
    flex: none;
    width: 46px;
    height: 32px;
    border-radius: 4px;
    background: var(--fdr-accent-soft);
    border: 1px solid var(--fdr-accent-line);
    color: var(--fdr-accent);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10.5px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.02em;
}

.fdr-badge h3 {
    font-size: 14.5px;
    font-weight: 600;
    margin-bottom: 4px;
}

.fdr-badge p {
    font-size: 13px;
    color: var(--fdr-text-muted);
    margin: 0;
}

/* ---------- Projects ---------- */
.fdr-proj-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 18px;
}

.fdr-proj-card {
    background: var(--fdr-surface);
    border: 1px solid var(--fdr-line);
    border-radius: 6px;
    padding: 24px;
    transition: border-color 0.15s;
}

.fdr-proj-card:hover {
    border-color: var(--fdr-accent-line);
}

.fdr-proj-tag {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    color: var(--fdr-accent);
    letter-spacing: 0.03em;
    margin-bottom: 14px;
    display: block;
}

.fdr-proj-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.fdr-proj-card p {
    font-size: 13.5px;
    color: var(--fdr-text-muted);
    margin: 0;
}

/* ---------- Philosophy ---------- */
.fdr-philosophy {
    background: var(--fdr-surface-2);
    border-top: 1px solid var(--fdr-line);
    border-bottom: 1px solid var(--fdr-line);
    padding: 80px 0;
    text-align: center;
}

.fdr-philosophy .fdr-wrap {
    max-width: 760px;
}

.fdr-philosophy blockquote {
    margin: 0 0 24px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: clamp(22px, 3.4vw, 32px);
    line-height: 1.4;
    color: var(--fdr-text);
}

.fdr-philosophy cite {
    font-style: normal;
    font-size: 14px;
    color: var(--fdr-text-muted);
}

.fdr-values-row {
    display: flex;
    justify-content: center;
    gap: 36px;
    margin-top: 36px;
    flex-wrap: wrap;
}

.fdr-value-chip {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    color: var(--fdr-accent);
    border: 1px solid var(--fdr-accent-line);
    padding: 8px 16px;
    border-radius: 20px;
}

/* ---------- Contact ---------- */
.fdr-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.fdr-contact-card {
    background: var(--fdr-surface);
    border: 1px solid var(--fdr-line);
    border-radius: 6px;
    padding: 22px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.fdr-contact-card .fdr-label {
    font-size: 12px;
    color: var(--fdr-text-muted);
    margin-bottom: 4px;
}

.fdr-contact-card .fdr-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 15.5px;
    font-weight: 500;
    word-break: break-word;
}

.fdr-contact-card a.fdr-value {
    text-decoration: none;
}

.fdr-contact-card a.fdr-value:hover {
    color: var(--fdr-accent);
}

@media (max-width: 700px) {
    .fdr-contact-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- Footer ---------- */
.fdr-footer {
    padding: 44px 0 60px;
}

.fdr-footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.fdr-footer p {
    font-size: 13px;
    color: var(--fdr-text-muted);
    margin: 0;
}

.fdr-footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.fdr-footer-links a {
    font-size: 13px;
    color: var(--fdr-text-muted);
    text-decoration: none;
}

.fdr-footer-links a:hover {
    color: var(--fdr-accent);
}

@media (max-width: 820px) {
    .fdr-wrap {
        padding: 0 20px;
    }

    .fdr-hero {
        padding: 56px 0 48px;
    }

    .fdr-section {
        padding: 52px 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fdr-html {
        scroll-behavior: auto;
    }

    .fdr-body * {
        transition: none !important;
    }
}
