:root {
  --bg-canvas: #0f1b2d;
  --bg-surface: #16243b;
  --bg-surface-elevated: #1e314f;
  --bg-surface-hover: #253d62;
  --text-primary: #f4f1ea;
  --text-muted: #b8c4d4;
  --text-dim: #7f91a8;
  --accent-primary: #d4a84b;
  --accent-hover: #e5be65;
  --accent-secondary: #c29035;
  --border-subtle: rgba(212, 168, 75, 0.22);
  --border-strong: rgba(212, 168, 75, 0.45);
  --border-frame: rgba(244, 241, 234, 0.08);
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-elevation: 0 16px 36px -6px rgba(0, 0, 0, 0.45);
  --glow-accent: 0 0 24px -4px rgba(212, 168, 75, 0.35);
  --radius-sm: 4px;
}

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

html {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  line-height: 1.6;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  min-height: 100vh;
  position: relative;
  overflow-wrap: anywhere;
  hyphens: auto;
  border: 1px solid var(--border-frame);
  margin: 8px;
}

@media (min-width: 1024px) {
  body {
    margin: 16px;
  }
}

a {
  color: var(--accent-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s var(--ease-kinetic), text-decoration-color 0.2s;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

/* Site Frame & Header */
.site-header {
  position: static;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.25rem 1.5rem;
  z-index: 50;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.15rem;
  color: var(--text-primary);
  text-transform: uppercase;
}

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

.brand-icon {
  display: inline-block;
  width: 14px;
  height: 14px;
  background: var(--accent-primary);
  transform: rotate(45deg);
  border: 1px solid #f4f1ea;
}

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

.nav-toggle-btn:hover {
  background: var(--bg-surface-elevated);
}

.site-nav {
  margin-top: 1rem;
  border-top: 1px solid var(--border-frame);
  padding-top: 0.85rem;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-link {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  position: relative;
  padding-bottom: 2px;
  transition: color 0.2s var(--ease-kinetic);
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-primary);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Container & Typography */
.wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.prose-cap {
  max-width: 70ch;
  margin: 0 auto;
}

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.035em;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  margin-bottom: 1.25rem;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  margin-bottom: 1rem;
  color: var(--accent-primary);
}

h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1.25rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.lead-text {
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent-primary);
  color: #0b1422;
  font-weight: 800;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.9rem 1.8rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: 1px solid var(--accent-secondary);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s var(--ease-kinetic), background-color 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  color: #070e17;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-elevation), var(--glow-accent);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent-primary);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.btn-secondary:hover {
  color: var(--text-primary);
}

/* Hero Section */
.hero-deck {
  position: relative;
  background: linear-gradient(180deg, rgba(15, 27, 45, 0.75) 0%, rgba(15, 27, 45, 0.95) 100%),
              radial-gradient(circle at 50% 20%, rgba(212, 168, 75, 0.15) 0%, transparent 70%);
  padding: 5rem 1.5rem 4rem;
  text-align: center;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-deck .hero-meta {
  display: inline-block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-primary);
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* Split-Panel Alternating Layout */
.section-deck {
  padding: 4.5rem 0;
  border-bottom: 1px solid var(--border-frame);
}

.split-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 860px) {
  .split-panel {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
  .split-panel.reverse-order .panel-visual {
    order: -1;
  }
}

.panel-visual {
  position: relative;
}

.panel-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-elevation);
  border: 1px solid var(--border-subtle);
}

.panel-caption {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-top: 0.5rem;
  display: flex;
  justify-content: space-between;
}

.spec-list {
  list-style: none;
  margin: 1.5rem 0;
}

.spec-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border-frame);
}

.spec-icon {
  color: var(--accent-primary);
  font-weight: 900;
  font-size: 1.1rem;
  line-height: 1;
}

/* Data Tables */
.table-container {
  overflow-x: auto;
  margin: 2rem 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
}

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

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

th {
  background-color: var(--bg-surface-elevated);
  color: var(--accent-primary);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

tr:hover td {
  background-color: rgba(212, 168, 75, 0.04);
}

/* Geological Row Cards */
.geology-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.geo-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-frame);
  border-radius: var(--radius-sm);
  padding: 1.75rem;
  transition: transform 0.25s var(--ease-kinetic), border-color 0.25s, box-shadow 0.25s;
}

.geo-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-elevation);
}

.card-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-primary);
  font-weight: 700;
  margin-bottom: 0.6rem;
  display: block;
}

/* FAQ Accordion List */
.faq-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.faq-node {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-node summary {
  padding: 1.2rem 1.5rem;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-primary);
  transition: background-color 0.2s;
}

.faq-node summary::-webkit-details-marker {
  display: none;
}

.faq-node summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--accent-primary);
  font-weight: 800;
}

.faq-node[open] summary::after {
  content: "—";
}

.faq-node summary:hover {
  background: var(--bg-surface-elevated);
}

.faq-content {
  padding: 1.2rem 1.5rem;
  border-top: 1px solid var(--border-frame);
  background: rgba(15, 27, 45, 0.4);
}

/* Dispatch Tool Form */
.dispatch-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 2.25rem;
  margin-top: 2rem;
  box-shadow: var(--shadow-elevation);
}

.dispatch-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .dispatch-grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

.form-group.full-width {
  grid-column: 1 / -1;
}

label {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-primary);
}

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

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px rgba(212, 168, 75, 0.2);
}

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

.feedback-status {
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  margin-top: 1rem;
  display: none;
}

.feedback-status.active {
  display: block;
  background: rgba(212, 168, 75, 0.15);
  border: 1px solid var(--accent-primary);
  color: var(--accent-primary);
}

/* Footer */
.site-footer {
  background: #091220;
  border-top: 2px solid var(--accent-primary);
  padding: 4rem 1.5rem 2.5rem;
  margin-top: 5rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-col h4 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-primary);
  margin-bottom: 1.2rem;
}

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

.footer-nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.2s;
}

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

.footer-bottom {
  max-width: 1200px;
  margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-frame);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* Scroll Reveal */
.reveal-entry {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s var(--ease-kinetic), transform 0.75s var(--ease-kinetic);
}

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

/* Mobile Nav Toggle states */
@media (max-width: 768px) {
  .nav-toggle-btn {
    display: block;
  }
  .site-nav {
    display: none;
    margin-top: 0.75rem;
    padding-top: 1rem;
  }
  .site-nav.mobile-active {
    display: block;
  }
  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
  }
}

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