:root {
  --bg-canvas: #09090b;
  --bg-surface: rgba(9, 9, 11, 0.65);
  --bg-surface-hover: rgba(9, 9, 11, 0.85);
  --text-primary: #f4f1ea;
  --text-muted: #a1a1aa;
  --accent-primary: #d4a84b;
  --accent-secondary: #e6c881;
  --border-subtle: rgba(212, 168, 75, 0.2);
  
  --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 var(--accent-primary);
  --glass-backdrop: blur(16px) saturate(180%);
  --radius: 20px;
}

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

html {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  overflow-wrap: anywhere;
  hyphens: auto;
  -webkit-hyphens: auto;
}

h1, h2, h3, h4, h5, h6, p, span {
  overflow-wrap: anywhere;
  hyphens: auto;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.1; margin-bottom: 20px; font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 15px; }
h6, .label, .number { 
  font-family: ui-monospace, Consolas, "Courier New", monospace; 
  font-size: 1.1rem; 
  text-transform: uppercase; 
  color: var(--accent-primary); 
  margin-bottom: 10px; 
  font-weight: 700;
}

p { line-height: 1.7; margin-bottom: 15px; font-size: 1.05rem; }
.text-muted { color: var(--text-muted); }
img { max-width: 100%; height: auto; object-fit: cover; border-radius: var(--radius); display: block; }

/* Header & Nav */
.site-header {
  position: absolute;
  top: 0; left: 0; width: 100%;
  padding: 25px 40px;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.4s var(--ease-kinetic), border-bottom 0.4s var(--ease-kinetic);
}
.site-header.solid {
  background-color: var(--bg-canvas);
  border-bottom: 1px solid var(--border-subtle);
}

.brand-logo {
  font-family: ui-monospace, Consolas, monospace;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--accent-primary);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.desktop-nav {
  display: flex;
  gap: 30px;
}
.desktop-nav a {
  font-family: ui-monospace, Consolas, monospace;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s;
}
.desktop-nav a:hover { color: var(--accent-primary); }

.mobile-nav-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.8rem;
  cursor: pointer;
  font-family: ui-monospace, Consolas, monospace;
}
.mobile-menu {
  position: absolute;
  top: 80px; right: 40px;
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 25px;
  display: none;
  flex-direction: column;
  gap: 20px;
  z-index: 99;
  box-shadow: var(--shadow-elevation);
}
.mobile-menu a {
  font-family: ui-monospace, Consolas, monospace;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 1.1rem;
  text-transform: uppercase;
}
.mobile-menu.active { display: flex; }

@media (max-width: 768px) {
  .site-header { padding: 20px; }
  .desktop-nav { display: none; }
  .mobile-nav-btn { display: block; }
  .mobile-menu { right: 20px; top: 70px; }
}

/* Sections & Layout */
.page-wrap { padding-top: 120px; min-height: 100vh; }
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  padding: 20px;
}
.hero-bg {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: -1;
}
.hero-bg img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.hero-overlay {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom, rgba(9,9,11,0.4), var(--bg-canvas));
  z-index: 0;
}
.hero-content {
  position: relative; z-index: 1; max-width: 900px;
  display: flex; flex-direction: column; align-items: center;
}

/* Bento Grid */
.bento-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 769px) {
  .bento-container {
      grid-template-columns: repeat(4, 1fr);
      grid-auto-rows: minmax(320px, auto);
  }
  .span-2x1 { grid-column: span 2; grid-row: span 1; }
  .span-1x2 { grid-column: span 1; grid-row: span 2; }
  .span-2x2 { grid-column: span 2; grid-row: span 2; }
  .span-4x1 { grid-column: span 4; grid-row: span 1; }
}

.bento-card {
  background: var(--bg-surface);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform 0.4s var(--ease-kinetic), box-shadow 0.4s var(--ease-kinetic), border-color 0.4s;
  position: relative;
  overflow: hidden;
}

.bento-card.no-pad { padding: 0; }
.bento-card:hover {
  transform: translateY(-5px) scale(1.015);
  box-shadow: var(--shadow-elevation), 0 0 15px rgba(212, 168, 75, 0.1);
  border-color: var(--accent-primary);
  z-index: 2;
}

/* Background Variations */
.section-neutral { padding: 60px 0; }
.section-accent {
  background-color: var(--accent-primary);
  padding: 80px 0;
  width: 100%;
}
.section-accent .bento-card {
  background: rgba(9, 9, 11, 0.95);
  border-color: rgba(9, 9, 11, 0.5);
  color: var(--text-primary);
}

/* Buttons */
.btn-pill {
  font-family: ui-monospace, Consolas, monospace;
  background: var(--accent-primary);
  color: var(--bg-canvas);
  border: none;
  padding: 16px 32px;
  border-radius: 999px;
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.4s var(--ease-kinetic), box-shadow 0.4s var(--ease-kinetic);
  margin-top: 20px;
}
.btn-pill:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: var(--shadow-elevation), var(--glow-accent);
}

/* Forms */
input[type="number"], input[type="text"], input[type="email"], textarea {
  width: 100%;
  padding: 16px;
  margin-top: 10px;
  margin-bottom: 25px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: ui-monospace, Consolas, monospace;
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 15px rgba(212, 168, 75, 0.2);
}
.flex-actions { display: flex; gap: 15px; flex-wrap: wrap; }

/* Tables */
.table-responsive { overflow-x: auto; width: 100%; }
table { width: 100%; border-collapse: collapse; margin-top: 20px; min-width: 600px; }
th, td { border: 1px solid var(--border-subtle); padding: 15px; text-align: left; }
th { color: var(--accent-primary); font-family: ui-monospace, Consolas, monospace; }

/* Article & Long Form */
.long-form { max-width: 72ch; margin: 0 auto; padding: 20px; }
.long-form h2 { margin-top: 40px; }

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

/* Footer */
.site-footer {
  background-color: var(--bg-canvas);
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 20px 0;
  margin-top: 40px;
}
.footer-nav { display: flex; flex-direction: column; gap: 12px; margin-top: 15px; }
.footer-nav a { font-family: ui-monospace, Consolas, monospace; color: var(--text-muted); text-decoration: none; font-size: 0.95rem; transition: color 0.3s; }
.footer-nav a:hover { color: var(--accent-primary); }

.card-img-full { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; opacity: 0.25; }
.card-content-overlay { position: relative; z-index: 1; }

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