:root {
  --bg-canvas: #1e1612;
  --bg-surface: #2a1f1a;
  --bg-surface-hover: #352721;
  --text-primary: #f5ecdf;
  --text-muted: #a89f91;
  --accent-primary: #f59e0b;
  --border-subtle: #3d312a;

  --font-display: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --radius-card: 0;
  --space-unit: 16px;
  --ease-kinetic: cubic-bezier(0.22, 0.61, 0.36, 1);
  --duration: 400ms;
}

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

html {
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.7;
  font-weight: 400;
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  padding: 1.5rem;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.site-frame {
  border: 1px solid var(--border-subtle);
  min-height: calc(100vh - 3rem);
  display: flex;
  flex-direction: column;
  background-color: var(--bg-canvas);
  position: relative;
}

@media (min-width: 768px) {
  body { padding: 3vw; }
  .site-frame { min-height: calc(100vh - 6vw); }
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  margin-top: 0;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

h1 { font-size: clamp(2rem, 4vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.75rem); }

p {
  margin-top: 0;
  margin-bottom: 1.5rem;
}

a {
  color: var(--text-primary);
  text-decoration: underline;
  text-decoration-color: var(--border-subtle);
  text-underline-offset: 4px;
  transition: color var(--duration) var(--ease-kinetic), text-decoration-color var(--duration) var(--ease-kinetic);
}

a:hover, a:focus-visible {
  color: var(--accent-primary);
  text-decoration-color: var(--accent-primary);
}

:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 4px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-card);
}

.btn {
  display: inline-block;
  border: 1px solid var(--accent-primary);
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 0;
  padding: 14px 28px;
  background: transparent;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  transition: background var(--duration) var(--ease-kinetic), color var(--duration) var(--ease-kinetic);
  font-size: 0.875rem;
}

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

/* Header */
.main-header {
  border-bottom: 1px solid var(--border-subtle);
  background-color: var(--bg-canvas);
  position: static;
  width: 100%;
}

.desktop-nav {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
}

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

.desktop-nav .nav-left { justify-content: flex-start; }
.desktop-nav .nav-right { justify-content: flex-end; }

.desktop-nav a, .mobile-nav a {
  text-decoration: none;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.875rem;
}

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

.logo {
  flex: 0 0 auto;
  text-align: center;
}

.logo a {
  font-size: 1.25rem;
  letter-spacing: 0.1em;
  color: var(--text-primary);
}

.mobile-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
}

.menu-toggle {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  position: absolute;
  width: 100%;
  z-index: 50;
}

.mobile-menu.is-open {
  display: flex;
}

.mobile-menu a {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  display: block;
}

@media (min-width: 768px) {
  .mobile-nav { display: none; }
  .desktop-nav { display: flex; }
}

/* Layout Container */
main {
  flex: 1;
}

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

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

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - 12vw);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

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

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(30, 22, 18, 0.6), rgba(30, 22, 18, 0.95));
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  padding: 2rem;
}

.hero-content h1 {
  margin-bottom: 2rem;
}

/* Cards & Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.card {
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  display: flex;
  flex-direction: column;
}

.card-img-wrap {
  aspect-ratio: 4/3;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-canvas);
}

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

.card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-content h3 {
  font-size: 1.25rem;
}

.card-meta {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 800;
}

/* Components */
.stat-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 1.5rem;
  border: 1px solid var(--border-subtle);
  background: var(--bg-canvas);
  margin-bottom: 2rem;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 800;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.badge-round {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--accent-primary);
  font-weight: 800;
  font-size: 0.75rem;
}

.panel {
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  padding: 2rem;
  margin-bottom: 2rem;
}

/* Tabs */
.tabs { margin-bottom: 3rem; }
.tab-list {
  display: flex;
  border-bottom: 1px solid var(--border-subtle);
  gap: 1rem;
  margin-bottom: 1.5rem;
  overflow-x: auto;
}
.tab-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 0.75rem 1.5rem;
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all var(--duration) var(--ease-kinetic);
}
.tab-btn[aria-selected="true"] {
  color: var(--accent-primary);
  border-bottom-color: var(--accent-primary);
}
.tab-panel {
  display: none;
}
.tab-panel.is-active {
  display: block;
}

/* Accordion */
details {
  border: 1px solid var(--border-subtle);
  margin-bottom: 1rem;
  background: var(--bg-surface);
}
summary {
  padding: 1.25rem 1.5rem;
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: '+';
  color: var(--accent-primary);
  font-size: 1.5rem;
  line-height: 1;
}
details[open] summary::after { content: '−'; }
.details-content {
  padding: 0 1.5rem 1.5rem;
  border-top: 1px solid var(--border-subtle);
  margin-top: 1rem;
  padding-top: 1.5rem;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}
label {
  display: block;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}
input, textarea {
  width: 100%;
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 1rem;
  font-family: var(--font-body);
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  margin-bottom: 2rem;
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}
th, td {
  border: 1px solid var(--border-subtle);
  padding: 1rem;
  text-align: left;
}
th {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.875rem;
  background: var(--bg-surface);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 2rem;
  background: var(--bg-surface);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}
.footer-col h4 {
  font-size: 1rem;
  margin-bottom: 1.5rem;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col li { margin-bottom: 0.75rem; }
.footer-col a { text-decoration: none; }
.footer-legal {
  grid-column: 1 / -1;
  border-top: 1px solid var(--border-subtle);
  padding-top: 2rem;
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--duration) var(--ease-kinetic), transform var(--duration) var(--ease-kinetic);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}