:root {
  /* Palette: strictly no blue */
  --bg-base: #1a102f;
  --text-primary: #f4f1ea;
  --accent-gold: #d4a84b;
  --shadow-dark: #090611;
  
  --surface-light: rgba(244, 241, 234, 0.05);
  --surface-medium: rgba(244, 241, 234, 0.1);
  --divider: rgba(244, 241, 234, 0.15);
  --gold-text: #1a102f;

  --font-heading: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  
  --radius: 4px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-wrap: anywhere;
  hyphens: auto;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.1;
  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, 2rem); }
p { margin-bottom: 1.5rem; font-size: 1.125rem; }
a { color: var(--accent-gold); text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.8; }
ul, ol { margin-bottom: 1.5rem; padding-left: 2rem; }

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

.text-container {
  max-width: 72ch;
  margin: 0 auto;
}

section { padding: 5rem 0; }

/* Inset Floating Header */
.header-wrapper {
  padding: 1.5rem 5%;
  position: relative; /* Scrolls away */
  z-index: 100;
}

header {
  background-color: var(--surface-medium);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.brand {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 1.25rem;
}

.desktop-nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.desktop-nav a {
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.desktop-nav a:hover {
  color: var(--accent-gold);
}

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

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 5%;
  right: 5%;
  background-color: var(--bg-base);
  border: 1px solid var(--accent-gold);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: 4px 4px 0 var(--shadow-dark);
  flex-direction: column;
  gap: 1rem;
  z-index: 99;
}

.mobile-menu.active {
  display: flex;
}

/* Hard Offset Buttons */
.btn, button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent-gold);
  color: var(--gold-text);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 1rem 2rem;
  border: none;
  border-radius: var(--radius);
  box-shadow: 4px 4px 0 var(--shadow-dark);
  cursor: pointer;
  transition: all 0.1s ease;
  text-decoration: none;
}

.btn:hover, button:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--shadow-dark);
  opacity: 1;
}

.btn:active, button:active {
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 var(--shadow-dark);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-stats {
  background: var(--surface-light);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
}

.hero-stats::before {
  content: '';
  position: absolute;
  top: -10px;
  right: -10px;
  width: 100%;
  height: 100%;
  border: 1px solid var(--accent-gold);
  border-radius: var(--radius);
  z-index: -1;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--divider);
  padding: 1rem 0;
}
.stat-item:last-child { border-bottom: none; }
.stat-value { color: var(--accent-gold); font-family: var(--font-heading); font-weight: 800; }

/* Sequential Vertical Progression */
.progression-layout {
  position: relative;
  padding-left: 3rem;
}

.progression-line {
  position: absolute;
  left: 1rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--accent-gold);
}

.progression-node {
  position: relative;
  margin-bottom: 6rem;
}

.progression-node::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: -3rem;
  top: 0;
  width: 2rem;
  height: 2rem;
  background-color: var(--bg-base);
  border: 2px solid var(--accent-gold);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--accent-gold);
  transform: translateX(-50%);
}

body { counter-reset: step-counter; }

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

.list-icon {
  width: 48px;
  height: 48px;
  background-color: var(--surface-medium);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  flex-shrink: 0;
}

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

.bento-item {
  background: var(--surface-light);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
  overflow: hidden;
}
.bento-wide { grid-column: 1 / -1; }

/* Horizontal Splits */
.split-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  background: var(--surface-light);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 2rem;
}

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

.split-content {
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Solid Background Blocks */
.gold-block {
  background-color: var(--accent-gold);
  color: var(--gold-text);
}
.gold-block h2, .gold-block h3, .gold-block p {
  color: var(--gold-text);
}
.gold-block .btn {
  background-color: var(--bg-base);
  color: var(--text-primary);
  box-shadow: 4px 4px 0 rgba(0,0,0,0.2);
}

/* Imagery & Assets */
img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  display: block;
}

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

label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

input, select, textarea {
  width: 100%;
  padding: 1rem;
  background-color: var(--surface-medium);
  border: 1px solid var(--divider);
  color: var(--text-primary);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent-gold);
}

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

.form-output {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--surface-dark);
  border: 1px dashed var(--accent-gold);
  border-radius: var(--radius);
  display: none;
  white-space: pre-wrap;
  font-family: monospace;
}

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

/* Footer */
footer {
  background-color: var(--shadow-dark);
  border-top: 1px solid var(--divider);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: var(--accent-gold);
  font-size: 1rem;
}

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

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

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

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--divider);
  font-size: 0.75rem;
  color: rgba(244, 241, 234, 0.5);
}

/* Media Queries */
@media (max-width: 768px) {
  .desktop-nav { display: none; }
  .mobile-toggle { display: block; }
  .hero-grid { grid-template-columns: 1fr; }
  .split-card { grid-template-columns: 1fr; }
  .split-img { min-height: 250px; }
  .progression-layout { padding-left: 2rem; }
  .progression-node::before { left: -2rem; width: 1.5rem; height: 1.5rem; font-size: 0.75rem; }
  .progression-line { left: 0.75rem; }
  header { padding: 1rem; }
}

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