:root {
  /* Fluid Growth / Obsidian & Gold Palette */
  --bg-canvas: #111111;
  --bg-surface: #1c1c1c;
  --text-primary: #f4f1ea;
  --text-muted: #a3a19b;
  --accent-primary: #d4a84b;
  --border-subtle: rgba(212, 168, 75, 0.2);
  
  /* Typography */
  --font-heading: Georgia, serif;
  --font-body: system-ui, -apple-system, sans-serif;
  
  /* Kinetics */
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-elevation: 0 12px 32px -4px rgba(0, 0, 0, 0.5);
  --glow-accent: 0 0 24px -4px rgba(212, 168, 75, 0.3);
}

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

body {
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  overflow-wrap: anywhere;
  hyphens: auto;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: -50vh;
  left: -20vw;
  width: 140vw;
  height: 140vh;
  background: radial-gradient(circle at center, rgba(212, 168, 75, 0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: -1;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: normal;
  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, 2.25rem); }

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

.text-link {
  position: relative;
  display: inline-block;
}

.text-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: 0;
  left: 0;
  background-color: var(--accent-primary);
  transition: width 0.3s var(--ease-kinetic);
}

.text-link:hover::after {
  width: 100%;
}

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

ul, ol {
  padding-left: 1.5rem;
}

/* Header & Nav */
.header-wrapper {
  position: relative; /* strictly not fixed/sticky as per brief */
  width: 100%;
  padding: 1rem;
  z-index: 100;
}

.main-header {
  background: rgba(28, 28, 28, 0.85);
  backdrop-filter: blur(12px);
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  border-radius: 9999px; /* The only rounded element */
  border: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.nav-links {
  display: flex;
  gap: 2rem;
}

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

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

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

/* Bento Grid System */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.bento-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  grid-auto-flow: dense;
}

.bento-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 2rem;
  border-radius: 0; /* Stark 0px radius enforcing sharp, brutalist precision */
  position: relative;
  transition: transform 0.4s var(--ease-kinetic), box-shadow 0.4s var(--ease-kinetic);
}

.bento-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-elevation), var(--glow-accent);
}

.bento-img-wrapper {
  margin: -2rem -2rem 1.5rem -2rem;
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}

.bento-img-wrapper img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

@media (min-width: 769px) {
  .bento-grid { grid-template-columns: repeat(4, 1fr); }
  .span-2 { grid-column: span 2; }
  .span-3 { grid-column: span 3; }
  .span-4 { grid-column: span 4; }
  .row-2 { grid-row: span 2; }
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding: 4rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

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

.hero-content h1 {
  color: var(--text-primary);
  text-shadow: 0 4px 12px rgba(0,0,0,0.8);
}

.hero-bg {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--bg-canvas) 0%, transparent 100%);
}

.floating-metrics-card {
  position: absolute;
  right: 2rem;
  bottom: 2rem;
  background: var(--accent-primary);
  color: #111111;
  padding: 2rem;
  border-radius: 0;
  z-index: 10;
  box-shadow: var(--shadow-elevation);
  display: flex;
  gap: 2rem;
}

.metric {
  display: flex;
  flex-direction: column;
}

.metric-value {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: bold;
}

.metric-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* List Rows with Vectors */
.list-row {
  display: flex;
  align-items: center;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.list-row:last-child {
  border-bottom: none;
}

.list-icon {
  width: 48px;
  height: 48px;
  margin-right: 1.5rem;
  fill: var(--accent-primary);
  flex-shrink: 0;
}

/* Buttons */
.btn-primary {
  display: inline-block;
  background: var(--accent-primary);
  color: var(--bg-canvas);
  padding: 1rem 2rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 0;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease-kinetic);
}

.btn-primary:hover {
  background: #f4f1ea;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 168, 75, 0.4);
}

/* Terminal Forms */
.terminal-form {
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  padding: 2rem;
}

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

.terminal-form label {
  display: block;
  color: var(--accent-primary);
  margin-bottom: 0.5rem;
  font-family: monospace;
  text-transform: uppercase;
}

.terminal-form input,
.terminal-form textarea {
  width: 100%;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 1rem;
  border-radius: 0;
  font-family: var(--font-body);
}

.terminal-form input:focus,
.terminal-form textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: inset 0 0 8px rgba(212, 168, 75, 0.2);
}

.form-actions {
  display: flex;
  gap: 1rem;
}

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

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

.footer-col h4 {
  color: var(--accent-primary);
  margin-bottom: 1rem;
}

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

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

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

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

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.85rem;
}

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

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

/* Content Utility */
.content-wrapper {
  max-width: 72ch;
  margin: 0 auto;
  padding: 2rem 1rem;
}
.content-wrapper p { margin-bottom: 1.5rem; }
.content-wrapper h2 { margin-top: 3rem; color: var(--accent-primary); }

.table-wrapper {
  overflow-x: auto;
  margin: 2rem 0;
}

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

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

th { background: rgba(212, 168, 75, 0.1); color: var(--accent-primary); font-family: monospace;}

/* Media Queries */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-surface);
    flex-direction: column;
    padding: 1rem;
    border: 1px solid var(--border-subtle);
    border-radius: 0;
  }
  .nav-links.active {
    display: flex;
  }
  .mobile-menu-btn { display: block; }
  .floating-metrics-card {
    position: relative;
    right: 0;
    bottom: 0;
    margin-top: 2rem;
    flex-direction: column;
    gap: 1rem;
  }
  h1 { font-size: 2.2rem; }
  .hero { align-items: flex-start; padding-top: 2rem; }
  .form-actions { flex-direction: column; }
}

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