/* ========================================
   Supremum Labs — Landing + Careers
   Fonts: Supreme (titles), DM Mono (body)
   ======================================== */

@font-face {
    font-family: 'Supreme';
    src: url('fonts/Supreme_Complete/Fonts/WEB/fonts/Supreme-Variable.woff2') format('woff2'),
        url('fonts/Supreme_Complete/Fonts/WEB/fonts/Supreme-Variable.woff') format('woff');
    font-weight: 100 800;
    font-display: swap;
    font-style: normal;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #0a0a0a;
    --surface: #141414;
    --text-title: #ffffff;
    --text-heading: #888888;
    --text-body: #888888;
    --border: #2a2a2a;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'DM Mono', 'Courier New', monospace;
    font-weight: 400;
    background: var(--bg);
    color: var(--text-body);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* --- Background Canvas --- */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* --- Page Container --- */
.page {
    position: relative;
    z-index: 1;
    max-width: 740px;
    margin: 0 auto;
    padding: 0 2.5rem;
}

/* ==============================
   HERO
   ============================== */
.hero {
    padding: 12vh 0 0;
}

/* --- Logo Type (shared brand typography) --- */
.logo-type {
    font-family: 'Supreme', Impact, sans-serif;
    font-weight: 300;
    font-style: normal;
    letter-spacing: 0.04em;
    color: var(--text-title);
}

.hero-title {
    font-size: clamp(2.8rem, 8vw, 4.5rem);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.hero-title b {
    font-weight: 600;
}

.hero-byline {
    font-family: 'DM Mono', monospace;
    font-weight: 400;
    font-size: 1.1rem;
    color: var(--text-heading);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-top: 0.75rem;
}

/* ==============================
   CAREERS NAV
   ============================== */
.careers-nav {
    padding: 3rem 0 1rem;
}

.back-link {
    font-size: 1.4rem;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.back-link b {
    font-weight: 600;
}

.back-link:hover {
    opacity: 0.65;
}

/* ==============================
   ABOUT
   ============================== */
.about {
    padding: 1rem 0 0;
}

.about-lead {
    font-family: 'DM Mono', monospace;
    font-weight: 400;
    font-size: 1.25rem;
    color: var(--text-title);
    line-height: 1.75;
    margin-bottom: 2.5rem;
}

/* --- Section Heading --- */
.section-heading {
    font-family: 'DM Mono', monospace;
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    color: var(--text-title);
}

/* --- Prose --- */
.prose p {
    font-family: 'DM Mono', monospace;
    font-weight: 400;
    font-size: 0.95rem;
    color: var(--text-body);
    line-height: 1.75;
    margin-bottom: 0.75rem;
}

.prose a {
    color: var(--text-title);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid var(--border);
    transition: border-color 0.3s ease;
}

.prose a:hover {
    border-color: var(--text-title);
}

/* ==============================
   OPEN ROLES
   ============================== */
.roles {
    padding: 3rem 0 2rem;
}

.roles-heading {
    font-family: 'DM Mono', monospace;
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    color: var(--text-heading);
}

/* --- Role Card (collapsible) --- */
.role-card {
    border-top: 1px solid var(--border);
    padding: 0;
}

.role-card:last-of-type {
    border-bottom: 1px solid var(--border);
}

.role-card[open] {
    background: var(--surface);
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    border-color: transparent;
}

.role-title {
    font-family: 'DM Mono', monospace;
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    color: var(--text-heading);
    padding: 1.25rem 0;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: opacity 0.2s ease;
}

.role-title::-webkit-details-marker {
    display: none;
}

.role-title::after {
    content: '+';
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--text-heading);
    transition: transform 0.3s ease;
}

.role-card[open] .role-title::after {
    transform: rotate(45deg);
}

.role-title:hover {
    opacity: 0.65;
}

.role-body {
    padding: 0 0 1.25rem;
}

.role-body p {
    font-family: 'DM Mono', monospace;
    font-weight: 400;
    font-size: 0.9rem;
    color: var(--text-body);
    line-height: 1.9;
}

/* ==============================
   FOOTER
   ============================== */
.footer {
    padding: 1rem 0 2rem;
}

.footer p {
    font-family: 'DM Mono', monospace;
    font-weight: 300;
    font-size: 0.75rem;
    color: var(--text-body);
    letter-spacing: 0.04em;
}

/* ==============================
   RESPONSIVE
   ============================== */
@media (max-width: 640px) {
    .page {
        padding: 0 1.5rem;
    }

    .hero {
        padding: 10svh 0 1.5rem;
    }

    .hero-title {
        font-size: 2.4rem;
    }

    .back-link {
        font-size: 1.1rem;
    }
}