:root {
  /* Dynamic Palette: Utilitarian Forms (No Blue) */
  --bg-outer: #0a0705;
  --bg-canvas: #1e1612;
  --bg-surface: #2d211b;
  --text-primary: #f5ecdf;
  --text-muted: #a89f91;
  --accent-primary: #f59e0b;
  
  /* Structural Variables */
  --border-thin: 1px solid var(--accent-primary);
  --border-muted: 1px solid var(--text-muted);
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-elevation: none; /* No shadow per requirements */
  --glow-accent: none;
}

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

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

body {
  margin: 0;
  padding: 3vw;
  background-color: var(--bg-outer);
  color: var(--text-primary);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  hyphens: auto;
  overflow-wrap: anywhere;
}

/* Page Frame: Thin inset frame line */
.page-frame {
  border: var(--border-thin);
  background-color: var(--bg-canvas);
  min-height: calc(100vh - 6vw);
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Typography */
h1, h2, h3, h4, h5, h6, .brand, .nav-links a, button, th {
  font-family: "Arial Narrow", Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-top: 0;
  font-weight: normal;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.5rem, 5vw, 5rem); line-height: 1.1; margin-bottom: 1rem; }
h2 { font-size: clamp(2rem, 3vw, 3rem); margin-bottom: 1.5rem; color: var(--accent-primary); }
h3 { font-size: 1.5rem; margin-bottom: 1rem; }
p { margin-top: 0; margin-bottom: 1.5rem; max-width: 72ch; }
a { color: var(--accent-primary); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--text-primary); }

/* Header & Navigation */
header {
  margin: 2vw;
  padding: 1.5rem 2rem;
  border: var(--border-thin);
  background-color: var(--bg-surface);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative; /* Scrolls out of view */
  z-index: 100;
}

.brand {
  font-size: 1.25rem;
  font-weight: bold;
  letter-spacing: 0.2em;
  color: var(--accent-primary);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.85rem;
  color: var(--text-primary);
}

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

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

/* Layout Bands & Containers */
.band-dark { background-color: var(--bg-canvas); }
.band-light { background-color: var(--bg-surface); border-top: var(--border-thin); border-bottom: var(--border-thin); }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.content-left {
  align-items: flex-start;
}

.content-left p {
  margin-left: 0;
}

/* Hero Section */
.hero {
  width: calc(100% - 4vw);
  margin: 0 auto 2vw auto;
  min-height: 75vh;
  background-color: var(--bg-surface);
  border: var(--border-thin);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: linear-gradient(to bottom, rgba(30, 22, 18, 0.6), rgba(30, 22, 18, 0.95));
  z-index: 1;
}

.hero-img {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

/* Grid & Cards */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  width: 100%;
  margin-top: 3rem;
}

.card {
  border: var(--border-thin);
  background-color: var(--bg-canvas);
  padding: 2.5rem;
  border-radius: 0;
  transition: transform 0.4s var(--ease-kinetic);
}

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

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border: var(--border-muted);
  margin-bottom: 1.5rem;
}

.card h3 {
  color: var(--accent-primary);
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--bg-surface);
  padding-bottom: 0.5rem;
}

/* Buttons */
.btn {
  display: inline-block;
  border: var(--border-thin);
  background: transparent;
  color: var(--accent-primary);
  padding: 1rem 2.5rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 0;
  text-align: center;
}

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

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

/* Tables */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin-bottom: 2rem;
  border: var(--border-thin);
}

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

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

th {
  background-color: var(--bg-surface);
  color: var(--accent-primary);
  font-size: 0.85rem;
}

td {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Forms & Tools */
.tool-box {
  border: var(--border-thin);
  background-color: var(--bg-surface);
  padding: 3rem;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

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

.form-group label {
  display: block;
  font-family: "Arial Narrow", Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  color: var(--accent-primary);
}

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

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

.checkbox-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.checkbox-item input[type="checkbox"] {
  appearance: none;
  width: 1.25rem;
  height: 1.25rem;
  border: 1px solid var(--accent-primary);
  background: var(--bg-canvas);
  cursor: pointer;
  position: relative;
}

.checkbox-item input[type="checkbox"]:checked::before {
  content: "";
  position: absolute;
  top: 3px; left: 3px; right: 3px; bottom: 3px;
  background: var(--accent-primary);
}

.checkbox-item label {
  margin: 0;
  cursor: pointer;
  text-transform: none;
  letter-spacing: normal;
  font-family: system-ui, sans-serif;
  color: var(--text-muted);
}

/* Footer */
footer {
  margin-top: auto;
  border-top: var(--border-thin);
  background-color: var(--bg-surface);
  padding: 4rem 2vw 2rem;
}

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

.footer-col h4 {
  color: var(--accent-primary);
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--bg-canvas);
  padding-bottom: 0.5rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

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

.footer-col ul a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--bg-canvas);
  color: var(--text-muted);
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-kinetic), transform 0.8s var(--ease-kinetic);
}
.reveal.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background-color: var(--bg-canvas);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transform: translateY(-100%);
  transition: transform 0.5s var(--ease-kinetic);
}

.mobile-nav-overlay.active {
  transform: translateY(0);
}

.mobile-nav-overlay .close-btn {
  position: absolute;
  top: 2rem; right: 2rem;
  background: transparent;
  border: none;
  color: var(--accent-primary);
  font-size: 2rem;
  cursor: pointer;
}

.mobile-nav-overlay ul {
  list-style: none;
  padding: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.mobile-nav-overlay a {
  font-size: 1.5rem;
  font-family: "Arial Narrow", Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }
  .hero { min-height: 60vh; }
  h1 { font-size: 2.5rem; }
  .container { padding: 3rem 1.5rem; }
}

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