:root {
  /* Crimson Smart Dynamic Palette - Strictly No Blue */
  --bg-canvas: #f7f5f0;
  --bg-surface: #ffffff;
  --bg-surface-hover: #fcfcfc;
  --text-primary: #111111;
  --text-muted: #555555;
  --accent-primary: #dc2626;
  --accent-secondary: #f59e0b;
  --border-subtle: #111111;
  
  /* Typography */
  --font-body: system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, Consolas, 'Courier New', monospace;
  
  /* Advanced UI Micro-Interactions */
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  background-color: var(--bg-canvas);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 2vw; /* Wide outer margin framing */
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
  overflow-wrap: anywhere;
  hyphens: auto;
}

/* Thin Inset Frame Architecture */
.page-wrapper {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  min-height: calc(100vh - 4vw);
  display: flex;
  flex-direction: column;
}

/* Typography elements */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 1rem 0;
  line-height: 1.2;
}

h1 {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3.5rem);
  text-transform: none;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
}

.mono-heading, 
.label-text,
.stat-label {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
  font-weight: 600;
}

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

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

img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Header & Nav */
.site-header {
  position: static; /* Strictly static, scrolls out of view */
  padding: 2rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background-color: var(--bg-surface);
}

.brand {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  display: block;
}

.nav-container {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.main-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.main-nav a {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

.main-nav a:hover {
  border-bottom-color: var(--accent-primary);
}

.mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-subtle);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem 0.75rem;
  color: var(--text-primary);
  line-height: 1;
}

.mobile-menu {
  display: none;
  width: 100%;
  border-top: 1px solid var(--border-subtle);
  margin-top: 1rem;
  padding-top: 1rem;
}

.mobile-menu.active {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Hero Section - Short Band */
.hero-band {
  padding: 3rem 2rem;
  border-bottom: 1px solid var(--border-subtle);
  background-color: var(--bg-surface);
}

.hero-band h1 {
  max-width: 900px;
}

/* Editorial Split-Screen Layout (60/40) */
.split-screen {
  display: grid;
  grid-template-columns: 6fr 4fr;
  gap: 2rem;
  padding: 2rem;
  flex-grow: 1;
}

.main-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sidebar-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sticky-sidebar {
  position: sticky;
  top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Flat Cards & Panels */
.card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 1.5rem;
  border-radius: 0; /* Strictly 0px radius */
  transition: transform 0.4s var(--ease-kinetic), background-color 0.3s ease;
}

.card:hover {
  background-color: var(--bg-surface-hover);
  transform: translateY(-2px);
}

.card-image-wrapper {
  margin: -1.5rem -1.5rem 1.5rem -1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.card-image-wrapper img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.card-thumb {
  aspect-ratio: 4/3 !important;
}

/* Compact Panels & Stat Strips */
.stat-strip {
  display: flex;
  justify-content: space-between;
  border: 1px solid var(--border-subtle);
  padding: 1rem;
  background-color: var(--bg-canvas);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stat-value {
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-primary);
}

/* Buttons */
.btn {
  display: inline-block;
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 0;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s var(--ease-kinetic);
  text-align: center;
}

.btn:hover {
  background-color: var(--accent-primary);
  color: var(--bg-surface);
  border-color: var(--accent-primary);
}

.btn-full {
  width: 100%;
}

/* Accordions / Tabs */
.accordion {
  border: 1px solid var(--border-subtle);
  border-bottom: none;
}

.accordion-item {
  border-bottom: 1px solid var(--border-subtle);
}

.accordion-header {
  width: 100%;
  text-align: left;
  background: var(--bg-surface);
  border: none;
  padding: 1rem;
  font-family: var(--font-mono);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-primary);
}

.accordion-header:hover {
  background-color: var(--bg-surface-hover);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-kinetic);
  background-color: var(--bg-canvas);
}

.accordion-content-inner {
  padding: 1rem;
  font-size: 0.95rem;
  border-top: 1px solid var(--border-subtle);
}

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

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

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

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

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

/* Tables */
.table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  margin-bottom: 2rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

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

th:last-child, td:last-child {
  border-right: none;
}

th {
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 0.85rem;
  background-color: var(--bg-canvas);
}

/* Reading Width Copy */
.reading-content {
  max-width: 72ch;
  margin: 0 auto;
}

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

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

/* Footer */
.site-footer {
  margin-top: auto;
  padding: 2rem;
  border-top: 1px solid var(--border-subtle);
  background-color: var(--bg-canvas);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  font-size: 0.85rem;
}

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

.footer-legal-name {
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
}

/* Media Queries */
@media (max-width: 1024px) {
  .split-screen {
    grid-template-columns: 1fr; /* Stack on smaller screens */
  }
  .sticky-sidebar {
    position: relative;
    top: 0;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  body {
    padding: 0; /* Remove outer margin on mobile */
  }
  .page-wrapper {
    min-height: 100vh;
    border: none;
  }
}

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