/* ============================================================
   BLACK RIDGE SYSTEMS — NON-GRID / MINIMAL / EXPENSIVE
   ============================================================ */

/* --- Reset ------------------------------------------------- */

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

/* --- Custom Properties ------------------------------------- */

:root {
    color-scheme: dark;

    --bg:             #000000;
    --text:           #ffffff;
    --text-secondary: #888888;
    --text-muted:     #555555;
    --accent:         #f77d20;
    --accent-gradient: linear-gradient(135deg, #f77d20, #fab02a);
    --border:         rgba(255, 255, 255, 0.15);

    --font-sans:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --font-mono:      ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

    --container-max:  1200px;
    --container-pad:  clamp(1.5rem, 5vw, 3rem);
    --section-pad:    clamp(5rem, 12vw, 10rem);
}

/* --- Base -------------------------------------------------- */

html {
    font-size: 100%;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    background-color: var(--bg);
}

body {
    font-family: var(--font-sans);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--text-secondary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gradient);
    z-index: 100;
}

/* --- Typography -------------------------------------------- */

h1, h2, h3 {
    color: var(--text);
    line-height: 1.1;
    font-weight: 500;
}

h2 {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    letter-spacing: -0.02em;
}

h3 {
    font-size: 1.25rem;
    letter-spacing: -0.01em;
    margin-bottom: 0.5rem;
}

p + p {
    margin-top: 1.5rem;
}

a {
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: border-color 0.2s ease, color 0.2s ease;
}

a:hover {
    color: var(--accent);
    border-color: var(--accent);
}

address {
    font-style: normal;
}

.text-muted {
    color: var(--text-muted);
}
.mt-6 {
    margin-top: 1.5rem;
}

/* --- Layout ------------------------------------------------ */

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

.split-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (min-width: 768px) {
    .split-layout {
        flex-direction: row;
        gap: clamp(4rem, 10vw, 8rem);
        align-items: flex-start;
    }
    
    .split-layout .section-heading {
        flex: 0 0 250px;
        position: sticky;
        top: 8rem;
    }

    .split-layout .section-prose,
    .split-layout .list-layout {
        flex: 1;
        max-width: 720px;
    }
}

/* --- Header & Nav ------------------------------------------ */

.header {
    padding-block: 2rem;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.brand-link {
    border-bottom: none;
    line-height: 0;
}

.brand-link:hover {
    border-bottom: none;
}

.brand-logo {
    display: block;
    max-width: 160px;
    height: auto;
}

.site-nav {
    display: none;
}

.nav-list {
    display: flex;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    list-style: none;
}

.nav-list a {
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--text-muted);
    border-bottom: none;
    transition: color 0.2s ease;
}

.nav-list a:hover {
    color: var(--text);
    border-bottom: none;
}

@media (min-width: 768px) {
    .site-nav {
        display: block;
    }
}

/* --- Hero -------------------------------------------------- */

.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 10rem;
    border-bottom: 0;
    overflow: hidden;
}

.hero-container {
    position: relative;
    z-index: 2;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60vw;
    height: 60vw;
    max-width: 800px;
    max-height: 800px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle at center, rgba(247, 125, 32, 0.15) 0%, transparent 60%);
    opacity: 0;
    animation: glow-pulse 8s ease-in-out infinite alternate;
}

.shooting-lines {
    position: absolute;
    inset: 0;
    overflow: hidden;
    transform: rotate(45deg) scale(1.5);
}

.shooting-line {
    position: absolute;
    width: 150px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transform: translateX(-100vw);
}

.shooting-line:nth-child(1) { top: 20%; left: 0; animation: shoot 4s linear infinite 1s; }
.shooting-line:nth-child(2) { top: 40%; left: 0; animation: shoot 5s linear infinite 0.5s; }
.shooting-line:nth-child(3) { top: 60%; left: 0; animation: shoot 6s linear infinite 2s; }
.shooting-line:nth-child(4) { top: 30%; left: 0; animation: shoot 4.5s linear infinite 3s; }
.shooting-line:nth-child(5) { top: 70%; left: 0; animation: shoot 5.5s linear infinite 1.5s; }

@keyframes glow-pulse {
    0% { opacity: 0.3; transform: translate(-50%, -50%) scale(0.9); }
    100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1.1); }
}

@keyframes shoot {
    0% { transform: translateX(-50vw); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateX(100vw); opacity: 0; }
}


.hero-heading {
    font-size: clamp(3rem, 9vw, 6.5rem);
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin-bottom: 2rem;
    font-weight: 500;
}

.hero-heading .accent-dot {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--accent); /* fallback */
}

.hero-sub {
    font-size: clamp(1.125rem, 3vw, 1.5rem);
    max-width: 700px;
    line-height: 1.5;
    color: var(--text-secondary);
}

/* --- Sections ---------------------------------------------- */

.section {
    padding-block: calc(var(--section-pad) * 0.75);
}

.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(1rem, 4vw, 2.5rem);
    padding-block: calc(var(--section-pad) * 0.25);
    opacity: 0.8;
}

.divider-line {
    flex: 1;
    height: 1px;
    opacity: 0.4;
}

.divider-line:first-child {
    background: linear-gradient(90deg, transparent, var(--accent));
}

.divider-line:last-child {
    background: linear-gradient(90deg, var(--accent), transparent);
}

.divider-icon {
    width: 28px;
    height: auto;
    opacity: 0.9;
}

.section-prose {
    font-size: clamp(1.0625rem, 2vw, 1.25rem);
    line-height: 1.6;
}

.lead {
    color: var(--text);
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    line-height: 1.5;
}

/* --- List Layout (replaces card grid) ---------------------- */

.list-layout {
    display: flex;
    flex-direction: column;
}

.list-item {
    display: flex;
    gap: 1.5rem;
    padding-block: 2.5rem;
    border-bottom: 1px solid var(--border);
}

.list-item:first-child {
    padding-top: 0;
}

.list-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.list-number {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    padding-top: 0.25rem; /* align with heading */
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--accent); /* fallback */
    font-weight: 600;
}

.list-content h3 {
    margin-bottom: 1rem;
}

.list-content p {
    font-size: 1.0625rem;
}

/* --- Founders ---------------------------------------------- */

.founders-section .section-heading {
    text-align: center;
    width: 100%;
    margin-bottom: 3rem;
}

.founders-section .section-heading::before {
    margin-left: auto;
    margin-right: auto;
}

.founders-grid {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: clamp(3rem, 10vw, 8rem);
}

.founder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.founder-photo {
    display: block;
    width: 160px;
    height: 160px;
    min-width: 160px;
    min-height: 160px;
    border-radius: 9999px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.founder-name {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
    letter-spacing: -0.01em;
}

/* --- Footer ------------------------------------------------ */

.footer {
    padding-block: clamp(4rem, 10vw, 6rem);
    border-top: 1px solid var(--border);
}

.footer-logo {
    max-width: 120px;
    height: auto;
    margin-bottom: 2rem;
    opacity: 0.5;
}

.footer-copy {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* --- Scroll Reveal ----------------------------------------- */

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.divider-icon     { transition-delay: 0s; }
.hero-heading  { transition-delay: 0.1s; }
.hero-sub      { transition-delay: 0.2s; }

.section-heading.reveal { transition-delay: 0s; }
.section-prose.reveal   { transition-delay: 0.1s; }
.list-item.reveal       { transition-delay: 0.1s; }

/* --- Focus & Accessibility --------------------------------- */

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

.no-js .reveal {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0s !important;
    }

    html {
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    .hero-bg {
        display: none !important;
    }
}
