/* ============================================================
   OSHIKUNDU FUND — STYLESHEET
   Premium dark-themed VC website
   ============================================================ */

/* ------------------------------------------------------------
   1. CUSTOM PROPERTIES (Design Tokens)
   ------------------------------------------------------------ */

:root {
    /* Colors */
    --color-bg:           #0d0d0d;
    --color-surface:      #161616;
    --color-surface-2:    #1c1c1c;
    --color-border:       #2a2a2a;
    --color-border-light: #333333;

    --color-accent:       #c8a86b;
    --color-accent-hover: #e0bf80;
    --color-accent-dim:   rgba(200, 168, 107, 0.12);
    --color-accent-glow:  rgba(200, 168, 107, 0.06);

    --color-text:         #f0ede8;
    --color-text-muted:   #8a8580;
    --color-text-faint:   #4a4845;

    --color-success:      #4ade80;
    --color-success-dim:  rgba(74, 222, 128, 0.10);
    --color-error:        #f87171;
    --color-error-dim:    rgba(248, 113, 113, 0.10);

    /* Typography */
    --font-sans:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-serif:  'Playfair Display', Georgia, 'Times New Roman', serif;

    --text-xs:     0.75rem;
    --text-sm:     0.875rem;
    --text-base:   1rem;
    --text-lg:     1.125rem;
    --text-xl:     1.25rem;
    --text-2xl:    1.5rem;
    --text-3xl:    1.875rem;
    --text-4xl:    2.25rem;
    --text-5xl:    3rem;

    --weight-light:   300;
    --weight-regular: 400;
    --weight-medium:  500;
    --weight-semi:    600;
    --weight-bold:    700;

    --leading-tight:  1.2;
    --leading-snug:   1.4;
    --leading-normal: 1.6;
    --leading-loose:  1.8;

    --tracking-tight:  -0.03em;
    --tracking-normal:  0em;
    --tracking-wide:    0.06em;
    --tracking-widest:  0.12em;

    /* Spacing scale */
    --space-xs:   0.25rem;
    --space-sm:   0.5rem;
    --space-md:   0.75rem;
    --space-base: 1rem;
    --space-lg:   1.5rem;
    --space-xl:   2rem;
    --space-2xl:  3rem;
    --space-3xl:  4rem;
    --space-4xl:  6rem;
    --space-5xl:  8rem;

    /* Layout */
    --nav-height:      70px;
    --container-max:   1200px;
    --container-narrow: 760px;

    /* Borders */
    --radius-sm:  4px;
    --radius-md:  8px;
    --radius-lg:  12px;
    --radius-xl:  16px;

    /* Shadows */
    --shadow-sm:  0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow-md:  0 4px 16px rgba(0, 0, 0, 0.5);
    --shadow-lg:  0 12px 40px rgba(0, 0, 0, 0.6);
    --shadow-accent: 0 0 40px rgba(200, 168, 107, 0.08);

    /* Transitions */
    --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);
    --duration-fast:   150ms;
    --duration-base:   250ms;
    --duration-slow:   400ms;
}


/* ------------------------------------------------------------
   2. RESET & BASE
   ------------------------------------------------------------ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-sans);
    font-size: var(--text-base);
    font-weight: var(--weight-regular);
    line-height: var(--leading-normal);
    min-height: 100vh;
    overflow-x: hidden;
}

img, video, svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    list-style: none;
}

button, input, select, textarea {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    background: none;
    border: none;
}

strong {
    font-weight: var(--weight-semi);
    color: var(--color-text);
}

em {
    font-style: italic;
}

::selection {
    background-color: var(--color-accent-dim);
    color: var(--color-accent-hover);
}


/* ------------------------------------------------------------
   3. TYPOGRAPHY UTILITIES
   ------------------------------------------------------------ */

.serif {
    font-family: var(--font-serif);
}

.text-muted {
    color: var(--color-text-muted);
}

.text-accent {
    color: var(--color-accent);
}


/* ------------------------------------------------------------
   4. LAYOUT UTILITIES
   ------------------------------------------------------------ */

.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--space-xl);
}

.container--narrow {
    max-width: var(--container-narrow);
    margin-inline: auto;
}

.section {
    padding-block: var(--space-5xl);
}

.section--form {
    padding-block-start: var(--space-3xl);
    padding-block-end: var(--space-5xl);
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(200, 168, 107, 0.03) 20%,
        rgba(200, 168, 107, 0.03) 80%,
        transparent
    );
}

.section__header {
    text-align: center;
    max-width: 600px;
    margin-inline: auto;
    margin-bottom: var(--space-3xl);
}

.section__label {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: var(--weight-semi);
    letter-spacing: var(--tracking-widest);
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--space-base);
}

.section__heading {
    font-family: var(--font-serif);
    font-size: clamp(var(--text-3xl), 4vw, var(--text-4xl));
    font-weight: var(--weight-bold);
    letter-spacing: var(--tracking-tight);
    line-height: var(--leading-tight);
    color: var(--color-text);
    margin-bottom: var(--space-base);
}

.section__subtext {
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    line-height: var(--leading-loose);
}

.section-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(
        to right,
        transparent,
        var(--color-border) 20%,
        var(--color-border) 80%,
        transparent
    );
    margin-block: 0;
}


/* ------------------------------------------------------------
   5. NAVIGATION
   ------------------------------------------------------------ */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--nav-height);
    background-color: rgba(13, 13, 13, 0.90);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--color-border);
    transition: box-shadow var(--duration-base) var(--ease-out),
                border-color var(--duration-base) var(--ease-out);
}

.nav--scrolled {
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.6);
    border-bottom-color: var(--color-border-light);
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--space-xl);
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
    flex-shrink: 0;
}

.nav__logo-text {
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    font-weight: var(--weight-bold);
    letter-spacing: var(--tracking-widest);
    text-transform: uppercase;
    color: var(--color-accent);
    transition: color var(--duration-fast) var(--ease-out);
}

.nav__logo:hover .nav__logo-text {
    color: var(--color-accent-hover);
}

.nav__links {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.nav__link {
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    color: var(--color-text-muted);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    transition: color var(--duration-fast) var(--ease-out),
                background-color var(--duration-fast) var(--ease-out);
    position: relative;
}

.nav__link:hover {
    color: var(--color-text);
    background-color: rgba(255, 255, 255, 0.04);
}

.nav__link.active {
    color: var(--color-accent);
}

.nav__link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: var(--space-md);
    right: var(--space-md);
    height: 1px;
    background-color: var(--color-accent);
    border-radius: 1px;
}

/* Mobile toggle */
.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-sm);
    cursor: pointer;
}

.nav__toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background-color: var(--color-text-muted);
    border-radius: 1px;
    transition: transform var(--duration-base) var(--ease-out),
                opacity var(--duration-base) var(--ease-out),
                background-color var(--duration-fast);
}

.nav__toggle:hover span {
    background-color: var(--color-text);
}


/* ------------------------------------------------------------
   6. HERO
   ------------------------------------------------------------ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--nav-height);
    padding-inline: var(--space-xl);
    overflow: hidden;
}

/* Layered background texture */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 40%, rgba(200, 168, 107, 0.055) 0%, transparent 65%),
        radial-gradient(ellipse 40% 40% at 20% 80%, rgba(200, 168, 107, 0.025) 0%, transparent 60%),
        radial-gradient(ellipse 50% 50% at 80% 10%, rgba(200, 168, 107, 0.020) 0%, transparent 55%);
    pointer-events: none;
}

/* Subtle noise grain overlay */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    background-size: 200px 200px;
    opacity: 0.35;
    pointer-events: none;
}

.hero__bg-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(13, 13, 13, 0.0) 60%,
        var(--color-bg) 100%
    );
    pointer-events: none;
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 820px;
    animation: fadeInUp var(--duration-slow) var(--ease-out) both;
}

.hero__eyebrow {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: var(--weight-semi);
    letter-spacing: var(--tracking-widest);
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--space-xl);
    padding: var(--space-xs) var(--space-base);
    border: 1px solid rgba(200, 168, 107, 0.25);
    border-radius: 100px;
}

.hero__headline {
    font-family: var(--font-serif);
    font-size: clamp(3.5rem, 9vw, 6.5rem);
    font-weight: var(--weight-bold);
    letter-spacing: var(--tracking-tight);
    line-height: 1.0;
    color: var(--color-text);
    margin-bottom: var(--space-xl);
}

.hero__subline {
    font-family: var(--font-serif);
    font-size: clamp(var(--text-lg), 2.5vw, var(--text-2xl));
    font-weight: var(--weight-regular);
    font-style: italic;
    color: var(--color-accent);
    line-height: var(--leading-snug);
    margin-bottom: var(--space-xl);
}

.hero__mission {
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    line-height: var(--leading-loose);
    max-width: 640px;
    margin-inline: auto;
    margin-bottom: var(--space-2xl);
}

.hero__cta {
    display: flex;
    gap: var(--space-base);
    justify-content: center;
    flex-wrap: wrap;
}

.hero__scroll-indicator {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    z-index: 2;
    animation: fadeIn 1s 0.8s var(--ease-out) both;
}

.hero__scroll-indicator span {
    font-size: var(--text-xs);
    letter-spacing: var(--tracking-widest);
    text-transform: uppercase;
    color: var(--color-text-faint);
}

.hero__scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(
        to bottom,
        var(--color-accent),
        transparent
    );
    animation: scrollLine 2s ease-in-out infinite;
}


/* ------------------------------------------------------------
   7. PAGE HEADER (inner pages)
   ------------------------------------------------------------ */

.page-header {
    padding-top: calc(var(--nav-height) + var(--space-4xl));
    padding-bottom: var(--space-3xl);
    padding-inline: var(--space-xl);
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: fadeInUp var(--duration-slow) var(--ease-out) both;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 80% at 50% 30%, rgba(200, 168, 107, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.page-header__heading {
    font-family: var(--font-serif);
    font-size: clamp(var(--text-4xl), 6vw, 4.5rem);
    font-weight: var(--weight-bold);
    letter-spacing: var(--tracking-tight);
    line-height: var(--leading-tight);
    color: var(--color-text);
    margin-bottom: var(--space-base);
    position: relative;
}

.page-header__subtext {
    font-size: var(--text-xl);
    color: var(--color-text-muted);
    font-family: var(--font-serif);
    font-style: italic;
    max-width: 500px;
    margin-inline: auto;
    line-height: var(--leading-snug);
    position: relative;
}


/* ------------------------------------------------------------
   8. BUTTONS
   ------------------------------------------------------------ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--text-sm);
    font-weight: var(--weight-semi);
    letter-spacing: 0.01em;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    transition:
        background-color var(--duration-fast) var(--ease-out),
        color var(--duration-fast) var(--ease-out),
        border-color var(--duration-fast) var(--ease-out),
        box-shadow var(--duration-base) var(--ease-out),
        transform var(--duration-fast) var(--ease-out);
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn:active {
    transform: translateY(1px);
}

/* Primary: solid gold */
.btn--primary {
    background-color: var(--color-accent);
    color: #0d0d0d;
    border-color: var(--color-accent);
}

.btn--primary:hover {
    background-color: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
    box-shadow: 0 0 24px rgba(200, 168, 107, 0.3);
    color: #0d0d0d;
}

/* Outline: transparent with gold border */
.btn--outline {
    background-color: transparent;
    color: var(--color-accent);
    border-color: rgba(200, 168, 107, 0.4);
}

.btn--outline:hover {
    background-color: var(--color-accent-dim);
    border-color: var(--color-accent);
    color: var(--color-accent-hover);
}

/* Ghost: minimal text link style */
.btn--ghost {
    background-color: transparent;
    color: var(--color-text-muted);
    border-color: var(--color-border);
}

.btn--ghost:hover {
    background-color: rgba(255, 255, 255, 0.04);
    color: var(--color-text);
    border-color: var(--color-border-light);
}

/* Submit size */
.btn--submit {
    padding: 0.875rem 2rem;
    font-size: var(--text-base);
}


/* ------------------------------------------------------------
   9. FEATURE CARDS & GRIDS
   ------------------------------------------------------------ */

.feature-grid {
    display: grid;
    gap: var(--space-lg);
    animation: fadeInUp var(--duration-slow) 0.1s var(--ease-out) both;
}

.feature-grid--3 {
    grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
}

.feature-grid--2 {
    grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
}

.feature-card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition:
        border-color var(--duration-base) var(--ease-out),
        box-shadow var(--duration-base) var(--ease-out),
        transform var(--duration-base) var(--ease-out);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        var(--color-accent),
        transparent
    );
    opacity: 0;
    transition: opacity var(--duration-base) var(--ease-out);
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.feature-card:hover {
    border-color: rgba(200, 168, 107, 0.3);
    box-shadow: var(--shadow-md), 0 0 30px rgba(200, 168, 107, 0.06);
    transform: translateY(-2px);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card--large {
    padding: var(--space-2xl);
}

.feature-card__icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-accent-dim);
    border-radius: var(--radius-md);
    color: var(--color-accent);
    margin-bottom: var(--space-lg);
    flex-shrink: 0;
}

.feature-card__title {
    font-family: var(--font-serif);
    font-size: var(--text-xl);
    font-weight: var(--weight-semi);
    color: var(--color-text);
    margin-bottom: var(--space-md);
    letter-spacing: var(--tracking-tight);
}

.feature-card__body {
    font-size: var(--text-base);
    color: var(--color-text-muted);
    line-height: var(--leading-loose);
}


/* ------------------------------------------------------------
   10. CTA BAND
   ------------------------------------------------------------ */

.cta-band {
    padding-block: var(--space-4xl);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    background: linear-gradient(
        135deg,
        rgba(200, 168, 107, 0.04) 0%,
        transparent 60%
    );
}

.cta-band__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2xl);
    flex-wrap: wrap;
}

.cta-band__heading {
    font-family: var(--font-serif);
    font-size: clamp(var(--text-2xl), 3.5vw, var(--text-3xl));
    font-weight: var(--weight-bold);
    letter-spacing: var(--tracking-tight);
    color: var(--color-text);
    margin-bottom: var(--space-xs);
    line-height: var(--leading-tight);
}

.cta-band__body {
    font-size: var(--text-lg);
    color: var(--color-text-muted);
}

.cta-band__actions {
    display: flex;
    gap: var(--space-base);
    flex-wrap: wrap;
    flex-shrink: 0;
}


/* ------------------------------------------------------------
   11. PORTFOLIO PAGE
   ------------------------------------------------------------ */

.portfolio-notice {
    display: flex;
    gap: var(--space-xl);
    align-items: flex-start;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    margin-bottom: var(--space-3xl);
    animation: fadeInUp var(--duration-slow) var(--ease-out) both;
}

.portfolio-notice__icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-accent-dim);
    border-radius: var(--radius-md);
    color: var(--color-accent);
}

.portfolio-notice__heading {
    font-family: var(--font-serif);
    font-size: var(--text-2xl);
    font-weight: var(--weight-bold);
    color: var(--color-text);
    margin-bottom: var(--space-sm);
    letter-spacing: var(--tracking-tight);
}

.portfolio-notice__body {
    font-size: var(--text-base);
    color: var(--color-text-muted);
    line-height: var(--leading-loose);
}

/* Portfolio grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-3xl);
    animation: fadeInUp var(--duration-slow) 0.15s var(--ease-out) both;
}

.stealth-card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    transition:
        border-color var(--duration-base) var(--ease-out),
        box-shadow var(--duration-base) var(--ease-out);
    position: relative;
    overflow: hidden;
}

.stealth-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 10px,
        rgba(255, 255, 255, 0.008) 10px,
        rgba(255, 255, 255, 0.008) 20px
    );
    pointer-events: none;
}

.stealth-card:hover {
    border-color: rgba(200, 168, 107, 0.2);
    box-shadow: var(--shadow-md);
}

.stealth-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stealth-card__lock {
    color: var(--color-text-faint);
}

.stealth-card__badge {
    font-size: var(--text-xs);
    font-weight: var(--weight-bold);
    letter-spacing: var(--tracking-widest);
    color: var(--color-text-faint);
    border: 1px solid var(--color-border);
    padding: 2px 8px;
    border-radius: 100px;
}

.stealth-card__name {
    font-family: var(--font-serif);
    font-size: var(--text-2xl);
    font-weight: var(--weight-bold);
    color: var(--color-text-faint);
    letter-spacing: var(--tracking-tight);
    line-height: var(--leading-tight);
}

.stealth-card__sector {
    font-size: var(--text-xs);
    font-weight: var(--weight-medium);
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    color: var(--color-accent);
    margin-top: var(--space-xs);
    opacity: 0.7;
}

.stealth-card__desc {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    line-height: var(--leading-loose);
    font-style: italic;
}

.stealth-card__footer {
    margin-top: auto;
    padding-top: var(--space-base);
    border-top: 1px solid var(--color-border);
}

.stealth-card__status {
    font-size: var(--text-xs);
    color: var(--color-text-faint);
    letter-spacing: var(--tracking-wide);
}


/* ------------------------------------------------------------
   12. THESIS / ABOUT PAGE
   ------------------------------------------------------------ */

.prose {
    margin-bottom: var(--space-3xl);
    animation: fadeInUp var(--duration-slow) var(--ease-out) both;
}

.prose__lead {
    font-family: var(--font-serif);
    font-size: clamp(var(--text-xl), 2.5vw, var(--text-2xl));
    font-weight: var(--weight-regular);
    line-height: var(--leading-snug);
    color: var(--color-text);
    margin-bottom: var(--space-xl);
    font-style: italic;
}

.prose p,
.prose__body {
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    line-height: var(--leading-loose);
    margin-bottom: var(--space-lg);
}

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

.thesis-block {
    margin-bottom: var(--space-3xl);
    padding-top: var(--space-2xl);
    border-top: 1px solid var(--color-border);
    animation: fadeInUp var(--duration-slow) 0.1s var(--ease-out) both;
}

.thesis-block__heading {
    font-family: var(--font-serif);
    font-size: var(--text-2xl);
    font-weight: var(--weight-bold);
    color: var(--color-text);
    margin-bottom: var(--space-xl);
    letter-spacing: var(--tracking-tight);
}

.thesis-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.thesis-list__item {
    display: flex;
    gap: var(--space-xl);
    align-items: flex-start;
}

.thesis-list__marker {
    font-family: var(--font-serif);
    font-size: var(--text-2xl);
    color: var(--color-accent);
    line-height: 1.2;
    flex-shrink: 0;
    user-select: none;
}

.thesis-list__item strong {
    display: block;
    font-size: var(--text-lg);
    font-weight: var(--weight-semi);
    color: var(--color-text);
    margin-bottom: var(--space-xs);
}

.thesis-list__item p {
    font-size: var(--text-base);
    color: var(--color-text-muted);
    line-height: var(--leading-loose);
}

.thesis-sector-card {
    display: flex;
    gap: var(--space-lg);
    align-items: flex-start;
    background-color: var(--color-surface);
    border: 1px solid rgba(200, 168, 107, 0.2);
    border-left: 3px solid var(--color-accent);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
}

.thesis-sector-card svg {
    flex-shrink: 0;
    color: var(--color-accent);
    margin-top: 2px;
}

.thesis-sector-card p {
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    line-height: var(--leading-loose);
}

/* Stage cards */
.stage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr));
    gap: var(--space-base);
}

.stage-card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
}

.stage-card__label {
    display: block;
    font-size: var(--text-xs);
    font-weight: var(--weight-bold);
    letter-spacing: var(--tracking-widest);
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--space-md);
}

.stage-card p {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    line-height: var(--leading-loose);
}


/* ------------------------------------------------------------
   13. FORMS
   ------------------------------------------------------------ */

.form-section {
    animation: fadeInUp var(--duration-slow) var(--ease-out) both;
}

.form-section__header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.form-section__heading {
    font-family: var(--font-serif);
    font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
    font-weight: var(--weight-bold);
    letter-spacing: var(--tracking-tight);
    color: var(--color-text);
    margin-bottom: var(--space-base);
    line-height: var(--leading-tight);
}

.form-section__subtext {
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    line-height: var(--leading-loose);
    max-width: 520px;
    margin-inline: auto;
}

.form {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.form__row {
    display: grid;
    gap: var(--space-lg);
}

.form__row--2 {
    grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
}

.form__field {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.form__label {
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    color: var(--color-text);
    letter-spacing: 0.01em;
}

.form__required {
    color: var(--color-accent);
    margin-left: 2px;
}

.form__input {
    width: 100%;
    background-color: var(--color-surface-2);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    font-size: var(--text-base);
    color: var(--color-text);
    transition:
        border-color var(--duration-fast) var(--ease-out),
        box-shadow var(--duration-fast) var(--ease-out),
        background-color var(--duration-fast) var(--ease-out);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.form__input::placeholder {
    color: var(--color-text-faint);
}

.form__input:hover {
    border-color: var(--color-border-light);
}

.form__input:focus {
    border-color: var(--color-accent);
    background-color: rgba(200, 168, 107, 0.03);
    box-shadow: 0 0 0 3px rgba(200, 168, 107, 0.10);
}

.form__select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238a8580' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.5rem;
}

.form__select option {
    background-color: var(--color-surface-2);
    color: var(--color-text);
}

.form__textarea {
    resize: vertical;
    min-height: 140px;
    line-height: var(--leading-loose);
}

.form__footer {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    padding-top: var(--space-sm);
    flex-wrap: wrap;
}

.form__note {
    font-size: var(--text-sm);
    color: var(--color-text-faint);
    font-style: italic;
}

.form__spinner {
    display: inline-flex;
    align-items: center;
}

.spin {
    animation: spinAnim 0.8s linear infinite;
}

/* HTMX loading state */
.htmx-indicator {
    display: none;
}

.htmx-request .htmx-indicator {
    display: inline-flex;
}

.htmx-request.htmx-indicator {
    display: inline-flex;
}

/* Form responses */
.form-response {
    display: flex;
    gap: var(--space-base);
    align-items: flex-start;
    padding: var(--space-lg) var(--space-xl);
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    font-size: var(--text-base);
    line-height: var(--leading-loose);
    animation: fadeInUp var(--duration-base) var(--ease-out) both;
}

.form-response svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.form-response strong {
    display: block;
    margin-bottom: var(--space-xs);
}

.form-response p {
    color: inherit;
    opacity: 0.85;
}

.form-response--success {
    background-color: var(--color-success-dim);
    border-color: rgba(74, 222, 128, 0.25);
    color: var(--color-success);
}

.form-response--error {
    background-color: var(--color-error-dim);
    border-color: rgba(248, 113, 113, 0.25);
    color: var(--color-error);
}


/* ------------------------------------------------------------
   14. INVESTORS PAGE EXTRAS
   ------------------------------------------------------------ */

.prose__body {
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    line-height: var(--leading-loose);
    margin-bottom: var(--space-lg);
}


/* ------------------------------------------------------------
   15. FOOTER
   ------------------------------------------------------------ */

.footer {
    background-color: var(--color-surface);
    border-top: 1px solid var(--color-border);
    padding-top: var(--space-3xl);
}

.footer__inner {
    display: flex;
    justify-content: space-between;
    gap: var(--space-3xl);
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--space-xl);
    padding-bottom: var(--space-3xl);
    flex-wrap: wrap;
}

.footer__brand {
    max-width: 280px;
}

.footer__logo {
    display: inline-block;
    font-size: var(--text-sm);
    font-weight: var(--weight-bold);
    letter-spacing: var(--tracking-widest);
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--space-base);
}

.footer__tagline {
    font-size: var(--text-sm);
    color: var(--color-text-faint);
    line-height: var(--leading-loose);
    font-style: italic;
}

.footer__links {
    display: flex;
    gap: var(--space-3xl);
    flex-wrap: wrap;
}

.footer__col {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer__col-heading {
    font-size: var(--text-xs);
    font-weight: var(--weight-semi);
    letter-spacing: var(--tracking-widest);
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: var(--space-sm);
}

.footer__col ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer__link {
    font-size: var(--text-sm);
    color: var(--color-text-faint);
    transition: color var(--duration-fast) var(--ease-out);
}

.footer__link:hover {
    color: var(--color-accent);
}

.footer__bottom {
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--space-xl);
    padding-block: var(--space-lg);
    border-top: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-xl);
    flex-wrap: wrap;
}

.footer__disclaimer {
    font-size: var(--text-xs);
    color: var(--color-text-faint);
    font-style: italic;
    max-width: 480px;
}

.footer__copy {
    font-size: var(--text-xs);
    color: var(--color-text-faint);
    flex-shrink: 0;
}


/* ------------------------------------------------------------
   16. ANIMATIONS & KEYFRAMES
   ------------------------------------------------------------ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes scrollLine {
    0% {
        transform: scaleY(0);
        transform-origin: top;
        opacity: 1;
    }
    50% {
        transform: scaleY(1);
        transform-origin: top;
        opacity: 1;
    }
    51% {
        transform: scaleY(1);
        transform-origin: bottom;
    }
    100% {
        transform: scaleY(0);
        transform-origin: bottom;
        opacity: 0;
    }
}

@keyframes spinAnim {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* Page transition with HTMX */
#main-content {
    animation: fadeIn var(--duration-base) var(--ease-out) both;
}

.htmx-swapping #main-content {
    opacity: 0;
    transition: opacity var(--duration-fast) var(--ease-out);
}


/* ------------------------------------------------------------
   17. FOCUS STYLES (accessibility)
   ------------------------------------------------------------ */

:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

.btn:focus-visible {
    outline-offset: 4px;
}


/* ------------------------------------------------------------
   18. RESPONSIVE — TABLET (≤ 900px)
   ------------------------------------------------------------ */

@media (max-width: 900px) {
    :root {
        --space-4xl: 4rem;
        --space-5xl: 5rem;
    }

    .container {
        padding-inline: var(--space-lg);
    }

    .cta-band__inner {
        flex-direction: column;
        text-align: center;
    }

    .cta-band__actions {
        justify-content: center;
    }

    .footer__inner {
        gap: var(--space-2xl);
    }

    .portfolio-notice {
        flex-direction: column;
    }
}


/* ------------------------------------------------------------
   19. RESPONSIVE — MOBILE (≤ 640px)
   ------------------------------------------------------------ */

@media (max-width: 640px) {
    :root {
        --nav-height: 60px;
        --space-4xl: 3rem;
        --space-5xl: 4rem;
    }

    /* Mobile navigation */
    .nav__toggle {
        display: flex;
    }

    .nav__links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background-color: rgba(13, 13, 13, 0.97);
        backdrop-filter: blur(16px);
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: var(--space-base) 0 var(--space-lg);
        border-bottom: 1px solid var(--color-border);
        transform: translateY(-110%);
        transition: transform var(--duration-base) var(--ease-out),
                    opacity var(--duration-base) var(--ease-out);
        opacity: 0;
        pointer-events: none;
    }

    .nav__links--open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav__link {
        width: 100%;
        padding: var(--space-base) var(--space-xl);
        border-radius: 0;
        font-size: var(--text-base);
    }

    .nav__link.active::after {
        display: none;
    }

    .nav__link.active {
        background-color: var(--color-accent-dim);
    }

    /* Hero */
    .hero {
        padding-inline: var(--space-lg);
        justify-content: center;
    }

    .hero__scroll-indicator {
        display: none;
    }

    /* Page header */
    .page-header {
        padding-top: calc(var(--nav-height) + var(--space-2xl));
        padding-inline: var(--space-lg);
        padding-bottom: var(--space-2xl);
    }

    /* Sections */
    .section {
        padding-block: var(--space-3xl);
    }

    .section__header {
        margin-bottom: var(--space-2xl);
    }

    /* Grids stack */
    .feature-grid--3,
    .feature-grid--2 {
        grid-template-columns: 1fr;
    }

    .stage-grid {
        grid-template-columns: 1fr;
    }

    /* CTA band */
    .cta-band {
        padding-block: var(--space-3xl);
    }

    /* Forms */
    .form {
        padding: var(--space-lg);
    }

    .form__row--2 {
        grid-template-columns: 1fr;
    }

    .form__footer {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-base);
    }

    .btn--submit {
        width: 100%;
        justify-content: center;
    }

    /* Portfolio */
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer__inner {
        flex-direction: column;
        gap: var(--space-2xl);
    }

    .footer__brand {
        max-width: 100%;
    }

    .footer__links {
        gap: var(--space-2xl);
    }

    .footer__bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-base);
    }

    /* Prose */
    .thesis-list__item {
        gap: var(--space-base);
    }

    /* Container narrow on mobile uses full width with padding */
    .container--narrow {
        max-width: 100%;
    }
}


/* ------------------------------------------------------------
   20. PRINT
   ------------------------------------------------------------ */

@media print {
    .nav, .footer, .hero__scroll-indicator, .cta-band {
        display: none;
    }

    body {
        background: white;
        color: black;
    }
}
