:root {
    --bg-canvas: #1c1f24;
    --bg-surface: #272a30;
    --text-primary: #e5e7eb;
    --text-muted: #9ca3af;
    --accent: #10b981;
    --shadow-color: #000000;
    
    --font-body: system-ui, -apple-system, sans-serif;
    --font-heading: ui-monospace, Consolas, "Courier New", monospace;
    
    --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    lang: en;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-canvas);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-wrap: anywhere;
    hyphens: auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6, .label, .nav-link, .brand {
    font-family: var(--font-heading);
    margin: 0 0 1rem 0;
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1.5rem 0; }

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 0; /* Square images as per direction */
}

/* Header & Nav */
.site-header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: var(--bg-canvas);
    border-bottom: 2px solid var(--bg-surface);
}

.brand {
    font-size: 1.25rem;
    margin: 0;
}

.brand a {
    color: var(--text-primary);
    text-decoration: none;
}

.desktop-nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-primary);
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    text-decoration: none;
}

.nav-link:hover {
    color: var(--accent);
    text-decoration: none;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    font-family: var(--font-heading);
}

/* Buttons */
.btn-solid {
    display: inline-block;
    background-color: var(--accent);
    color: var(--bg-canvas);
    font-family: var(--font-heading);
    padding: 0.75rem 1.5rem;
    text-transform: uppercase;
    font-weight: 700;
    border: none;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 4px 4px 0 var(--shadow-color);
    transition: transform 0.1s var(--ease-kinetic), box-shadow 0.1s var(--ease-kinetic);
}

.btn-solid:hover {
    transform: translate(4px, 4px);
    box-shadow: 0px 0px 0 var(--shadow-color);
    text-decoration: none;
}

/* Layout Containers */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.container-narrow {
    max-width: 72ch;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* Hero Split */
.hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 80vh;
    border-bottom: 2px solid var(--bg-surface);
}

.hero-content {
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.hero-image {
    width: 100%;
    height: 100%;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    grid-auto-rows: 350px;
    gap: 1.5rem;
    margin-top: 2rem;
}

.bento-tile {
    background: var(--bg-surface);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 0;
    position: relative;
}

.bento-image-tile {
    padding: 0;
}

.bento-image-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bento-span-2 { grid-column: span 2; }
.bento-row-2 { grid-row: span 2; }

/* Cards */
.card {
    background: var(--bg-surface);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-image-wrap {
    position: relative;
    height: 250px;
}

.card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-badge {
    position: absolute;
    bottom: -20px;
    right: 20px;
    width: 48px;
    height: 48px;
    background-color: var(--accent);
    color: var(--bg-canvas);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    box-shadow: 2px 2px 0 var(--shadow-color);
}

.card-content {
    padding: 2rem;
    flex-grow: 1;
}

/* Stat Tiles */
.stat-tile {
    background: var(--bg-surface);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 4rem;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-unit {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--text-primary);
    text-transform: uppercase;
}

/* Forms & Tools */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    font-size: 0.875rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-canvas);
    border: 2px solid var(--bg-surface);
    color: var(--text-primary);
    font-family: var(--font-body);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
}

/* Tables */
.table-wrapper {
    overflow-x: auto;
    margin-bottom: 2rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--bg-surface);
}

th {
    font-family: var(--font-heading);
    text-transform: uppercase;
    color: var(--text-muted);
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.7s var(--ease-kinetic);
}

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

/* Footer */
.site-footer {
    background: var(--bg-surface);
    padding: 4rem 2rem 2rem;
    margin-top: 4rem;
}

.footer-mission {
    text-align: center;
    font-size: 1.5rem;
    max-width: 800px;
    margin: 0 auto 4rem;
    font-family: var(--font-heading);
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 4rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-col .label {
    color: var(--text-muted);
    font-size: 0.875rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid var(--bg-canvas);
    font-size: 0.875rem;
    color: var(--text-muted);
}

.legal-links {
    display: flex;
    gap: 1.5rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-split {
        grid-template-columns: 1fr;
    }
    .hero-image {
        min-height: 400px;
    }
    .footer-columns {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-surface);
        flex-direction: column;
        padding: 2rem;
        z-index: 50;
        gap: 1rem;
    }
    .desktop-nav.active {
        display: flex;
    }
    .mobile-toggle {
        display: block;
    }
    .bento-span-2 { grid-column: span 1; }
    .bento-row-2 { grid-row: span 1; grid-auto-rows: 250px; }
    .footer-columns {
        grid-template-columns: 1fr;
    }
    .footer-legal {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

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