:root {
  --bg-canvas: #1e2530;
  --bg-surface: #2a3543;
  --bg-surface-elevated: #354253;
  --text-primary: #ffffff;
  --text-muted: #9fb0c6;
  --accent-primary: #a3e635;
  --accent-hover: #bef264;
  --text-on-accent: #1e2530;
  --border-subtle: #3a485a;
  --border-lime: rgba(163, 230, 53, 0.35);
  --font-heading: "Arial Narrow", "Helvetica Neue", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-canvas);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-wrap: anywhere;
  hyphens: auto;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--accent-hover);
}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -999px;
  left: 1rem;
  background: var(--accent-primary);
  color: var(--text-on-accent);
  padding: 0.5rem 1rem;
  font-weight: 700;
  z-index: 1000;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.skip-link:focus {
  top: 1rem;
}

/* HEADER */
.site-header {
  position: relative;
  background: #171d26;
  border-bottom: 1px solid var(--border-subtle);
  padding: 10px 1.5rem;
  z-index: 50;
}

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

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-glyph {
  display: inline-block;
  width: 12px;
  height: 12px;
  background: var(--accent-primary);
  transform: rotate(45deg);
  box-shadow: 0 0 10px rgba(163, 230, 53, 0.6);
}

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

.mobile-menu-trigger {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--accent-primary);
  padding: 0.35rem 0.65rem;
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
}

.nav-row-wrap {
  max-width: 1200px;
  margin: 0.4rem auto 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 0.4rem;
  display: flex;
  justify-content: center;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  flex-wrap: wrap;
  justify-content: center;
}

.site-nav a {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  padding: 0.25rem 0.5rem;
}

.site-nav a:hover, .site-nav a[aria-current="page"] {
  color: var(--accent-primary);
}

/* BUTTONS */
.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--accent-primary);
  color: var(--text-on-accent) !important;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 0.75rem 1.6rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(163, 230, 53, 0.25);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.btn-pill:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(163, 230, 53, 0.4);
}

.btn-pill-subtle {
  background: transparent;
  color: var(--accent-primary) !important;
  border: 1px solid var(--accent-primary);
  border-radius: 9999px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.7rem 1.4rem;
  transition: all 0.2s ease;
}

.btn-pill-subtle:hover {
  background: rgba(163, 230, 53, 0.1);
  color: #ffffff !important;
}

/* GRID BACKGROUND */
.coordinate-grid-bg {
  position: relative;
  background-image: 
    linear-gradient(rgba(163, 230, 53, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(163, 230, 53, 0.05) 1px, transparent 1px);
  background-size: 36px 36px;
  background-position: center center;
}

/* CONTAINER */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3.5rem) 1.5rem;
}

.reading-wrap {
  max-width: 72ch;
  margin: 0 auto;
}

/* HERO SECTION */
.hero-section {
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: 1rem;
  padding: 0.2rem 0.6rem;
  background: rgba(163, 230, 53, 0.1);
  border-left: 2px solid var(--accent-primary);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4.8vw, 3.8rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  color: #ffffff;
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 58ch;
}

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

.hero-visual {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.hero-visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.visual-coordinates {
  width: 100%;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* SECTION PATHWAY CONNECTED BY LIME LINE */
.field-pathway-wrapper {
  position: relative;
  padding: 2rem 0;
}

.field-pathway-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 2rem;
  width: 2px;
  background: var(--border-lime);
  z-index: 1;
}

@media (min-width: 768px) {
  .field-pathway-wrapper::before {
    left: 2.75rem;
  }
}

.field-section {
  position: relative;
  margin-bottom: 3.5rem;
  padding-left: 4.5rem;
  z-index: 2;
}

@media (min-width: 768px) {
  .field-section {
    padding-left: 6rem;
  }
}

.section-pin {
  position: absolute;
  top: 0;
  left: 1.25rem;
  width: 1.6rem;
  height: 1.6rem;
  background: var(--bg-canvas);
  border: 2px solid var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 900;
  color: var(--accent-primary);
}

@media (min-width: 768px) {
  .section-pin {
    left: 2rem;
  }
}

.section-meta-index {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--accent-primary);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.section-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  color: #ffffff;
}

.field-copy {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 72ch;
}

/* CARDS WITH TOP IMAGE & OVERLAPPING LIME BADGE */
.equipment-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.5rem;
  margin: 1.75rem 0;
}

.equip-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
}

.equip-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-primary);
}

.card-media-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #171d26;
  overflow: hidden;
}

.card-media-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.overlap-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  background: var(--accent-primary);
  color: var(--text-on-accent);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
}

.card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  color: #ffffff;
}

.card-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

/* TERRAIN COMPARISON TABLE */
.table-scroll-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid var(--border-subtle);
}

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

.terrain-table th {
  background: #171d26;
  color: var(--accent-primary);
  font-family: var(--font-heading);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
  padding: 1rem;
  border-bottom: 2px solid var(--border-lime);
}

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

.terrain-table tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.02);
}

.terrain-table tr:hover td {
  background: rgba(163, 230, 53, 0.05);
  color: #ffffff;
}

/* GEAR CHECKLISTS & DECISION SEQUENCES */
.checklist-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.checklist-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.5rem;
}

.checklist-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.8rem;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.checklist-icon {
  color: var(--accent-primary);
  font-weight: 800;
  font-family: monospace;
}

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

.decision-step {
  background: var(--bg-surface);
  border-left: 3px solid var(--accent-primary);
  padding: 1rem 1.25rem;
}

.step-number {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--accent-primary);
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.step-label {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.step-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* FAQ ACCORDION ROWS */
.faq-stack {
  margin: 1.5rem 0;
  border-top: 1px solid var(--border-subtle);
}

.faq-row {
  border-bottom: 1px solid var(--border-subtle);
}

.faq-button {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 1.25rem 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  color: #ffffff;
}

.faq-question-text {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.faq-indicator {
  font-family: monospace;
  font-size: 1.25rem;
  color: var(--accent-primary);
  transition: transform 0.2s ease;
}

.faq-button[aria-expanded="true"] .faq-indicator {
  transform: rotate(45deg);
}

.faq-answer-panel {
  padding: 0 0.5rem 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  display: none;
}

.faq-answer-panel.is-open {
  display: block;
}

/* CONTACT DRAFTING TOOL */
.tool-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

@media (max-width: 840px) {
  .tool-grid {
    grid-template-columns: 1fr;
  }
}

.tool-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 1.75rem;
}

.tool-form-group {
  margin-bottom: 1.25rem;
}

.tool-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: 0.4rem;
}

.tool-input, .tool-select, .tool-textarea {
  width: 100%;
  background: #171d26;
  border: 1px solid var(--border-subtle);
  color: #ffffff;
  padding: 0.75rem 0.85rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.tool-textarea {
  min-height: 120px;
  resize: vertical;
}

.tool-preview-box {
  background: #171d26;
  border: 1px dashed var(--border-subtle);
  padding: 1.25rem;
  font-family: monospace;
  font-size: 0.85rem;
  color: #cbd5e1;
  white-space: pre-wrap;
  min-height: 220px;
  margin-bottom: 1.25rem;
}

.tool-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.status-message {
  font-size: 0.85rem;
  margin-top: 0.5rem;
  font-family: var(--font-heading);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-primary);
  min-height: 1.2rem;
}

/* FOOTER */
.site-footer {
  margin-top: auto;
  background: #12161d;
  border-top: 2px solid var(--border-subtle);
  padding: 3rem 1.5rem 2rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

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

@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 1rem;
}

.footer-legal-copy p {
  margin-bottom: 0.6rem;
  font-size: 0.85rem;
  line-height: 1.6;
}

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

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

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

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .mobile-menu-trigger {
    display: inline-block;
  }

  .nav-row-wrap {
    display: none;
    padding-top: 1rem;
  }

  .nav-row-wrap.is-open {
    display: block;
  }

  .site-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .site-nav a {
    display: block;
    width: 100%;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  }
}

/* UTILITY FADE IN FOR OBSERVER */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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