:root {
  --bg-canvas: #13261d;
  --bg-surface: #1c3629;
  --bg-surface-elevated: #244434;
  --bg-surface-soft: rgba(28, 54, 41, 0.7);
  --text-primary: #efe6d2;
  --text-muted: #b8c4b7;
  --accent-brass: #b8923a;
  --accent-brass-hover: #cfa84a;
  --accent-crimson-alert: #d9534f;
  --border-subtle: rgba(239, 230, 210, 0.08);
  --shadow-elevation: 0 16px 36px -8px rgba(0, 0, 0, 0.45);
  --shadow-card: 0 8px 24px -4px rgba(0, 0, 0, 0.35);
  --glow-accent: 0 0 24px -4px rgba(184, 146, 58, 0.35);
  --radius-card: 20px;
  --radius-sm: 8px;
  --radius-pill: 9999px;
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
  --max-content: 1200px;
  --font-stack: "Trebuchet MS", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
}

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

body {
  font-family: var(--font-stack);
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  line-height: 1.75;
  font-size: 1rem;
  overflow-wrap: anywhere;
  hyphens: auto;
  position: relative;
  background-image: 
    radial-gradient(circle at 15% 20%, rgba(184, 146, 58, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(36, 68, 52, 0.3) 0%, transparent 50%),
    linear-gradient(rgba(239, 230, 210, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(239, 230, 210, 0.03) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 48px 48px, 48px 48px;
}

a {
  color: var(--accent-brass);
  text-decoration: none;
  transition: color 0.25s var(--ease-kinetic);
}

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

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

/* Header & Navigation */
.site-header {
  position: relative;
  width: 100%;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 50;
}

.header-container {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark {
  width: 38px;
  height: 38px;
  background: var(--accent-brass);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--bg-canvas);
  font-size: 1.15rem;
}

.brand-name {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  text-decoration: none;
}

.brand-name:hover {
  text-decoration: none;
  color: var(--accent-brass);
}

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

.desktop-nav a {
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
}

.desktop-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-brass);
  transition: width 0.3s var(--ease-kinetic);
}

.desktop-nav a:hover::after,
.desktop-nav a.active::after {
  width: 100%;
}

.nav-toggle-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 1.5rem;
  line-height: 1;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.mobile-nav-panel {
  display: none;
  flex-direction: column;
  background: var(--bg-surface-elevated);
  padding: 1rem 1.5rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  gap: 0.75rem;
}

.mobile-nav-panel.open {
  display: flex;
}

.mobile-nav-panel a {
  color: var(--text-primary);
  font-size: 1.05rem;
  padding: 0.5rem 0;
}

/* Layout Wrappers */
.main-wrapper {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.longform-copy {
  max-width: 72ch;
  margin: 0 auto;
}

/* Hero Section */
.hero-statement {
  background: linear-gradient(135deg, #183325 0%, #0e1e17 100%);
  border-radius: var(--radius-card);
  padding: 4rem 2.5rem;
  box-shadow: var(--shadow-elevation);
  margin-bottom: 3.5rem;
  position: relative;
  overflow-wrap: anywhere;
}

.hero-meta {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-brass);
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-statement h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 65ch;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn-brass {
  display: inline-block;
  background: var(--accent-brass);
  color: #0b1711;
  font-weight: 700;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  box-shadow: var(--glow-accent);
  transition: transform 0.25s var(--ease-kinetic), background-color 0.25s;
  text-decoration: none;
}

.btn-brass:hover {
  background: var(--accent-brass-hover);
  transform: translateY(-2px);
  text-decoration: none;
  color: #0b1711;
}

.btn-secondary {
  display: inline-block;
  background: rgba(239, 230, 210, 0.08);
  color: var(--text-primary);
  font-weight: 600;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  transition: background 0.25s var(--ease-kinetic);
}

.btn-secondary:hover {
  background: rgba(239, 230, 210, 0.16);
  text-decoration: none;
}

/* Section Common Styling */
.section-block {
  margin-bottom: 4.5rem;
}

.section-head {
  margin-bottom: 2rem;
}

.section-tag {
  color: var(--accent-brass);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}

.section-head h2 {
  font-size: clamp(1.6rem, 2.75vw, 2.2rem);
  margin-top: 0.35rem;
  color: var(--text-primary);
}

/* Bento Grid System */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

.bento-tile {
  background: var(--bg-surface);
  border-radius: var(--radius-card);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.35s var(--ease-kinetic), box-shadow 0.35s var(--ease-kinetic);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bento-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-elevation);
}

.span-12 { grid-column: span 12; }
.span-8  { grid-column: span 8; }
.span-7  { grid-column: span 7; }
.span-6  { grid-column: span 6; }
.span-5  { grid-column: span 5; }
.span-4  { grid-column: span 4; }

.bento-tile h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.bento-tile p {
  color: var(--text-muted);
  font-size: 0.975rem;
  margin-bottom: 1rem;
}

.bento-stat {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--accent-brass);
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.825rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.tile-media {
  margin: -2rem -2rem 1.5rem -2rem;
  overflow: hidden;
  border-top-left-radius: var(--radius-card);
  border-top-right-radius: var(--radius-card);
  aspect-ratio: 16/9;
}

.tile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transition: transform 0.5s var(--ease-kinetic);
}

.bento-tile:hover .tile-media img {
  transform: scale(1.03);
}

/* Feature Tables */
.table-responsive {
  overflow-x: auto;
  background: var(--bg-surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 1.5rem;
  margin-top: 1rem;
}

table.elevation-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

table.elevation-table th {
  border-bottom: 2px solid rgba(239, 230, 210, 0.15);
  padding: 0.85rem 1rem;
  color: var(--accent-brass);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

table.elevation-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

table.elevation-table tr:hover td {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
}

/* Interactive Ascent Tool Card */
.tool-card {
  background: linear-gradient(145deg, var(--bg-surface-elevated), #172d22);
  border-radius: var(--radius-card);
  padding: 2.25rem;
  box-shadow: var(--shadow-elevation);
  margin: 2rem 0;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 2px solid var(--accent-brass);
  border-color: transparent;
}

.tool-output {
  margin-top: 1.5rem;
  background: var(--bg-canvas);
  padding: 1.5rem;
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--accent-brass);
  font-family: monospace;
  font-size: 0.9rem;
  white-space: pre-wrap;
  color: var(--text-muted);
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-surface);
  border-radius: var(--radius-card);
  padding: 1.5rem 2rem;
  box-shadow: var(--shadow-card);
}

.faq-item h3 {
  font-size: 1.15rem;
  margin-bottom: 0.65rem;
  color: var(--text-primary);
}

.faq-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Footer Section */
.site-footer {
  background: #0d1a14;
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 1.5rem 2.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-container {
  max-width: var(--max-content);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-brand h4 {
  color: var(--text-primary);
  font-size: 1.25rem;
}

.footer-brand p {
  max-width: 32ch;
  line-height: 1.6;
}

.footer-col h5 {
  color: var(--accent-brass);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

.footer-bottom {
  max-width: var(--max-content);
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.825rem;
}

/* Scroll reveal helper */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-kinetic), transform 0.6s var(--ease-kinetic);
}

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

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  .span-8, .span-7, .span-6 { grid-column: span 6; }
  .span-5, .span-4 { grid-column: span 3; }
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }
  .nav-toggle-btn {
    display: block;
  }
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .span-12, .span-8, .span-7, .span-6, .span-5, .span-4 {
    grid-column: span 1;
  }
  .hero-statement {
    padding: 2.5rem 1.5rem;
  }
  .footer-container {
    grid-template-columns: 1fr;
  }
}

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