:root {
    /* Palette: Emerald & Mint Deep, base #1c1f24, surface #2d333b, text #e5e7eb */
    --bg-canvas: #1c1f24;
    --bg-surface: #2d333b;
    --bg-surface-hover: #3b424a;
    --text-primary: #e5e7eb;
    --text-muted: #9ca3af;
    --accent-primary: #10b981;
    --accent-secondary: #059669;
    --border-subtle: rgba(229, 231, 235, 0.1);
    
    /* Advanced UI Micro-Interactions & Depth */
    --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-elevation: 0 12px 32px -4px rgba(0, 0, 0, 0.25);
    --glow-accent: 0 0 24px -4px var(--accent-primary);
}

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

body {
    background-color: var(--bg-canvas);
    color: var(--text-primary);
    font-family: system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    overflow-wrap: anywhere;
    hyphens: auto;
}

h1, h2, h3, h4, h5, h6, .serif {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: normal;
    color: var(--text-primary);
}

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

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 0; /* Square corners for images */
}

/* Header & Nav */
.site-header {
    position: relative; /* Scrolls out of view */
    background-color: var(--bg-canvas);
    border-bottom: 1px solid var(--border-subtle);
}

.top-bar {
    background-color: var(--bg-surface);
    color: var(--text-muted);
    font-size: 0.75rem;
    text-align: center;
    padding: 0.5rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.main-header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-right: auto; /* Strictly far-left */
}

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

.desktop-nav a {
    color: var(--text-primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

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

.mobile-nav {
    display: none;
    flex-direction: column;
    background-color: var(--bg-surface);
    padding: 1rem;
    border-top: 1px solid var(--border-subtle);
}

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

.mobile-nav a {
    color: var(--text-primary);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-subtle);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mobile-nav a:last-child {
    border-bottom: none;
}

/* Layout Engine: Editorial Split-Screen & Wrappers */
.main-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.split-screen {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

.split-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.split-hero-visual {
    background-color: var(--accent-secondary);
    min-height: 400px;
    position: relative;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
    z-index: 0;
}

/* Faint dot pattern background */
.pattern-dots {
    background-image: radial-gradient(var(--bg-surface) 1px, transparent 1px);
    background-size: 20px 20px;
    background-color: var(--accent-secondary);
    position: absolute;
    inset: 0;
    opacity: 0.4;
    z-index: 1;
}

.hero-text {
    position: relative;
    z-index: 2;
    padding: 4rem 2rem;
    color: var(--text-primary);
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

/* Layout Engine: List Rows (No Cards) */
.list-section {
    margin-bottom: 4rem;
}

.list-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--text-primary);
    padding-bottom: 0.5rem;
}

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

.row-item {
    display: flex;
    align-items: flex-start;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-subtle);
    gap: 1.5rem;
    transition: background-color 0.3s var(--ease-kinetic);
}

.row-item:hover {
    background-color: var(--bg-surface);
}

.row-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%; /* Round badges */
    background-color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-canvas);
    font-weight: bold;
    flex-shrink: 0;
    font-family: Georgia, serif;
}

.row-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.row-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 68ch;
}

/* Article Styling (Long-form) */
.article-body {
    max-width: 72ch;
    margin: 0 auto;
}

.article-body h2 {
    font-size: 2rem;
    margin: 3rem 0 1.5rem;
}

.article-body h3 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
}

.article-body p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.article-body blockquote {
    border-left: 4px solid var(--accent-primary);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-muted);
    font-family: Georgia, serif;
    font-size: 1.2rem;
}

/* Images in Articles */
.article-image {
    width: 100%;
    margin: 2rem 0;
    aspect-ratio: 16/9;
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: var(--accent-primary);
    color: var(--bg-canvas);
    padding: 1rem 2rem;
    border-radius: 9999px; /* Pill shape */
    border: none;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s var(--ease-kinetic), box-shadow 0.3s var(--ease-kinetic);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 1rem;
}

.btn:hover {
    transform: translateY(-2px) scale(1.015);
    box-shadow: var(--shadow-elevation), var(--glow-accent);
    color: var(--bg-canvas);
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-family: Georgia, serif;
    color: var(--text-primary);
}

.form-group input, 
.form-group textarea, 
.form-group select {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    padding: 0.5rem 0;
    outline: none;
}

.form-group input:focus, 
.form-group textarea:focus {
    border-bottom: 1px solid var(--accent-primary);
}

/* Data Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

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

th {
    font-family: Georgia, serif;
    color: var(--accent-primary);
}

/* Footer */
.site-footer {
    background-color: var(--bg-surface);
    padding: 4rem 1.5rem;
    border-top: 1px solid var(--border-subtle);
    margin-top: 4rem;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.footer-brand h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

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

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

/* Breakpoints */
@media (min-width: 769px) {
    .desktop-nav {
        display: flex;
    }
    
    .mobile-toggle {
        display: none;
    }
    
    .split-screen {
        grid-template-columns: 40% 60%;
        align-items: stretch;
    }
    
    .hero-text {
        padding: 6rem 4rem;
    }
    
    .hero-text h1 {
        font-size: 4.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

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