:root {
    --bg-base: #1e2530;
    --bg-surface: #334155;
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --accent-lime: #a3e635;
    
    --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
    --font-serif: Charter, Cambria, Georgia, serif;
    --radius-none: 0px;
    
    --nav-height: 80px;
}

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

body {
    font-family: var(--font-serif);
    background-color: var(--bg-base);
    color: var(--text-main);
    line-height: 1.6;
    overflow-wrap: anywhere;
    hyphens: auto;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
    object-fit: cover;
    border-radius: var(--radius-none);
    filter: contrast(1.15) brightness(0.85); /* Moody, high contrast */
}

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

.small-caps {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.8rem;
    color: var(--accent-lime);
}

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

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

/* Header & Navigation */
.site-header {
    position: relative; /* Moves out of view on scroll */
    width: 100%;
    height: var(--nav-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    background-color: transparent;
    z-index: 100;
    border-bottom: 1px solid var(--bg-surface);
}

.brand {
    font-size: 1.2rem;
    letter-spacing: 0.05em;
}

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

.desktop-nav a {
    font-variant: small-caps;
    letter-spacing: 0.1em;
    font-size: 1rem;
}

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

.mobile-menu {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    background-color: var(--bg-base);
    border-bottom: 1px solid var(--bg-surface);
    padding: 2rem 5%;
    flex-direction: column;
    gap: 1.5rem;
    z-index: 99;
}

.mobile-menu.active {
    display: flex;
}

/* Layout Core - Split Sections */
.bg-grid {
    background-color: var(--bg-base);
    background-image: radial-gradient(var(--bg-surface) 1px, transparent 1px);
    background-size: 32px 32px;
}

.hero-band {
    min-height: 40vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 5%;
    border-bottom: 1px solid var(--bg-surface);
}

.split-section {
    display: flex;
    flex-wrap: wrap;
    min-height: 60vh;
    border-bottom: 1px solid var(--bg-surface);
}

.split-text {
    flex: 1 1 500px;
    padding: 6rem 5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.split-media {
    flex: 1 1 500px;
    position: relative;
}

.split-media img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.split-reverse .split-text {
    order: 2;
}
.split-reverse .split-media {
    order: 1;
}

@media (max-width: 1024px) {
    .split-section { flex-direction: column; }
    .split-media { min-height: 400px; }
    .split-reverse .split-text { order: 1; }
    .split-reverse .split-media { order: 2; }
}

/* Standard Page Layout */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 5%;
}

.content-narrow {
    max-width: 68ch;
    margin: 0 auto;
}

/* Lists (No Cards) */
.data-list {
    margin-top: 3rem;
}

.list-row {
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 2rem;
    padding: 2rem 0;
    border-bottom: 1px solid var(--bg-surface);
    align-items: flex-start;
}

.list-row:first-child {
    border-top: 1px solid var(--bg-surface);
}

.list-icon {
    width: 32px;
    height: 32px;
    border: 1px solid var(--accent-lime);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-lime);
    font-size: 1.2rem;
}

/* Forms & UI Elements */
input, textarea, select {
    width: 100%;
    background-color: transparent;
    border: 1px solid var(--bg-surface);
    color: var(--text-main);
    padding: 1rem;
    font-family: var(--font-serif);
    border-radius: var(--radius-none);
    margin-bottom: 1.5rem;
}

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

label {
    display: block;
    margin-bottom: 0.5rem;
    font-variant: small-caps;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.btn {
    display: inline-block;
    background: transparent;
    color: var(--accent-lime);
    border: 1px solid var(--accent-lime);
    padding: 1rem 2rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: var(--radius-none);
    transition: all 0.3s ease;
    text-align: center;
    font-family: var(--font-serif);
}

.btn:hover {
    background-color: var(--accent-lime);
    color: var(--bg-base);
}

/* Tool Component */
.tool-panel {
    border: 1px solid var(--bg-surface);
    padding: 3rem;
    margin: 4rem 0;
    background-color: var(--bg-base);
}

.tool-output {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #171c25;
    border: 1px dashed var(--bg-surface);
    white-space: pre-wrap;
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--text-muted);
    min-height: 150px;
}

.tool-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Data Tables */
.table-wrapper {
    overflow-x: auto;
    margin: 3rem 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

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

th {
    font-variant: small-caps;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    font-weight: normal;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--bg-surface);
    padding: 4rem 5% 2rem;
    background-color: var(--bg-base);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-col h4 {
    color: var(--accent-lime);
    font-variant: small-caps;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--bg-surface);
    padding-top: 2rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-legal a {
    color: var(--text-muted);
    margin-left: 1.5rem;
}

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

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

/* Responsive Overrides */
@media (max-width: 768px) {
    .desktop-nav { display: none; }
    .mobile-nav-toggle { display: block; }
    h1 { font-size: 2.5rem; }
    .tool-panel { padding: 1.5rem; }
    .tool-actions { flex-direction: column; }
    .split-text { padding: 4rem 5%; }
}

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