/* BASE VARIABLES & SETUP */
:root {
    /* Obsidian Cosmos Palette - Strict No Blue */
    --bg-canvas: #09090b;
    --bg-surface: #18181b;
    --text-primary: #d1fae5;
    --text-muted: #a7f3d0;
    --accent-primary: #ff6f59;
    --border-subtle: #3f3f46;
    
    /* Typography */
    --font-stack: "Trebuchet MS", "Segoe UI", sans-serif;
    --line-height-body: 1.8;
    
    /* Animation */
    --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    background-color: var(--bg-canvas);
    color: var(--text-primary);
    font-family: var(--font-stack);
    line-height: var(--line-height-body);
    overflow-x: hidden;
    overflow-wrap: anywhere;
    hyphens: auto;
    font-size: 1.125rem;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--accent-primary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
}

/* LAYOUT ARCHITECTURE */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.reading-column {
    max-width: 72ch;
    margin: 4rem auto;
    padding: 0 1.5rem;
}

.reading-column p {
    margin-bottom: 1.5rem;
}

.breakout-image-container {
    width: 100vw;
    max-width: 1400px;
    margin: 4rem auto;
    margin-left: 50%;
    transform: translateX(-50%);
    padding: 0 1rem;
}

.breakout-image-container img {
    width: 100%;
    max-height: 60vh;
    object-fit: cover;
    border: 1px solid var(--border-subtle);
}

/* HEADER */
.site-header {
    position: relative;
    width: 95%;
    max-width: 1200px;
    margin: 2rem auto;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 999px;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.main-nav a {
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--accent-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* TYPOGRAPHIC HERO */
.hero-typographic {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 2rem;
    background: radial-gradient(circle at 50% 150%, var(--bg-surface) 0%, var(--bg-canvas) 70%);
}

.hero-typographic h1 {
    font-size: clamp(3rem, 8vw, 8rem);
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

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

.hero-lead {
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    max-width: 60ch;
    color: var(--text-muted);
    border-left: 4px solid var(--accent-primary);
    padding-left: 1.5rem;
}

/* CARDS & COMPONENTS (Strict 0px radius) */
.flat-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
}

.flat-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 0;
    padding: 2rem;
    transition: transform 0.4s var(--ease-kinetic), border-color 0.4s;
}

.flat-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-primary);
}

.flat-card h3 {
    margin-top: 1rem;
    font-size: 1.5rem;
}

.flat-card img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
}

/* BUTTONS */
.btn-outline {
    display: inline-block;
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
    background: transparent;
    padding: 1rem 2rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s var(--ease-kinetic);
}

.btn-outline:hover, .btn-outline:focus-visible {
    background: var(--accent-primary);
    color: var(--bg-canvas);
    outline: none;
}

/* FORMS & INPUTS (Strict 0px radius) */
.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

input, textarea, select {
    width: 100%;
    background: var(--bg-canvas);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    padding: 1rem;
    font-family: var(--font-stack);
    border-radius: 0;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--accent-primary);
}

/* PULL QUOTES */
blockquote.pull-quote {
    font-size: 1.5rem;
    font-style: italic;
    color: var(--accent-primary);
    border-left: 4px solid var(--accent-primary);
    padding: 1rem 0 1rem 2rem;
    margin: 3rem 0;
    background: var(--bg-surface);
}

/* SECTIONS & BACKGROUNDS */
.diagonal-section {
    background: var(--bg-surface);
    padding: 6rem 0;
    clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
    margin: 4rem 0;
}

/* FOOTER */
.site-footer {
    background: var(--bg-surface);
    padding: 6rem 2rem 2rem;
    clip-path: polygon(0 10%, 100% 0, 100% 100%, 0 100%);
    margin-top: 6rem;
    border-top: 1px solid var(--border-subtle);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 2rem;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 2rem;
}

.footer-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    color: var(--border-subtle);
    font-size: 0.85rem;
    flex-wrap: wrap;
    gap: 1rem;
}

/* UTILITIES */
.reveal-item {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s var(--ease-kinetic);
}

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

/* RESPONSIVE */
@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-surface);
        padding: 2rem;
        border: 1px solid var(--border-subtle);
        border-radius: 20px;
        margin-top: 1rem;
        z-index: 99;
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .mobile-menu-btn {
        display: block;
    }

    .diagonal-section {
        clip-path: polygon(0 2%, 100% 0, 100% 98%, 0 100%);
    }
    
    .site-footer {
        clip-path: polygon(0 5%, 100% 0, 100% 100%, 0 100%);
    }
}

@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
