:root {
  /* MILITARIZED COLOR PALETTE - MORE GREEN */
  --bg-dark: #131a13; /* Deep Dark Olive/Black */
  --bg-panel: #242f22; /* Armored Olive Drab - Cards & Elements */
  --bg-olive: #566649; /* Brighter Military Green - Primary Accent */
  
  --text-primary: #d1d8d1; /* Gritty White - Main Body Text */
  --text-muted: #8c998c; /* Dusty Olive Gray - Secondary/Muted Text */
  --text-warning: #e6c84a; /* Warning Yellow - Keywords & Headings */
  
  --line-utility: rgba(162, 185, 155, 0.25); /* Greenish Gritty Line */
  --line-strong: rgba(230, 200, 74, 0.38); /* Heavy Yellow Warn Line */
  
  --glow-red: #ff2a2a; /* Warning Lamp Red */
  
  --shadow-armored: 0 32px 90px rgba(0, 0, 0, 0.65), inset 0 2px 5px rgba(255, 255, 255, 0.05);
  --shadow-rugged: 0 16px 40px rgba(0, 0, 0, 0.45);
  
  --radius-rugged: 20px;
  --radius-sm: 12px;
  --container: 1240px;
  
  --font-utility: "Segoe UI Semibold", "Aptos", "Helvetica Neue", Arial, sans-serif;
  --font-command: "Arial Narrow", "Bahnschrift Condensed", "Franklin Gothic Medium Cond", "Segoe UI Bold", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  margin: 0;
  font-family: var(--font-utility);
  background:
    radial-gradient(circle at top left, rgba(86, 102, 73, 0.35), transparent 40%),
    linear-gradient(180deg, var(--bg-dark) 0%, #1a2418 100%);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: 180ms ease; }
img { max-width: 100%; display: block; }
.container { width: min(calc(100% - 2rem), var(--container)); margin-inline: auto; }

.page-noise {
  position: fixed; inset: 0; pointer-events: none; opacity: 0.03;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.3) 0.55px, transparent 0.55px),
    linear-gradient(transparent 0, rgba(255, 255, 255, 0.01) calc(100% - 1px));
  background-size: 8px 8px, 100% 4px;
  mix-blend-mode: overlay;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--text-warning);
  outline-offset: 3px;
}

/* ARMORED HEADER */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--bg-panel);
  border-bottom: 2px solid var(--line-utility);
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}
.nav-shell {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 72px; gap: 1rem;
}
.brand {
  display: inline-flex; align-items: center;
  font-family: var(--font-command);
  font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase;
}
.brand span { font-size: 0.94rem; color: var(--text-warning); }
.nav-actions { display: flex; align-items: center; gap: 1rem; }
.site-nav { display: flex; align-items: center; gap: 0.3rem; }
.site-nav a {
  color: var(--text-muted);
  font-family: var(--font-command);
  font-weight: 700; font-size: 0.86rem; text-transform: uppercase; letter-spacing: 0.12em;
  padding: 0.6rem 0.8rem; border-radius: var(--radius-sm);
}
.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}

/* RED GLOW LANGUAGE SWITCHER */
.lang-switch {
  display: inline-flex; gap: 0.25rem; padding: 0.2rem;
  background: var(--bg-dark);
  border: 1px solid var(--line-utility);
  border-radius: var(--radius-sm);
}
.lang-btn {
  min-width: 48px; min-height: 36px; border-radius: calc(var(--radius-sm) - 2px);
  border: 0; cursor: pointer;
  font-family: var(--font-command);
  font-weight: 800; letter-spacing: 0.1em; color: var(--text-muted); background: transparent;
  transition: all 180ms ease;
}
.lang-btn[aria-pressed="true"] {
  color: #000000;
  background: var(--glow-red);
  box-shadow: 0 0 25px 8px rgba(255, 42, 42, 0.6), inset 0 0 8px rgba(255, 255, 255, 0.5);
  text-shadow: none;
}

.nav-toggle { display: none; background: transparent; border: 0; padding: 0; cursor: pointer; }
.nav-toggle span {
  display: block; width: 26px; height: 2px; margin: 5px 0;
  background: var(--text-primary); border-radius: 999px;
}

/* MILITARIZED HERO */
.hero {
  position: relative; min-height: calc(100svh - 72px); display: grid; align-items: center; isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute; inset: 4.8rem 1rem 1rem 1rem;
  border: 2px solid var(--line-utility);
  clip-path: polygon(0 20px, 20px 0, calc(100% - 20px) 0, 100% 20px, 100% calc(100% - 20px), calc(100% - 20px) 100%, 20px 100%, 0 calc(100% - 20px));
  pointer-events: none;
}
.hero-media {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  filter: saturate(0.8) contrast(1.1) brightness(0.65) hue-rotate(-5deg);
  transform: scale(1.02);
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(19, 26, 19, 0.85) 0%, rgba(36, 47, 34, 0.65) 50%, transparent 100%),
    repeating-linear-gradient(0deg, rgba(202, 209, 202, 0.015), rgba(202, 209, 202, 0.015) 1px, transparent 1px, transparent 4px);
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr); gap: 2rem;
  padding: 8rem 0 4rem;
}
.hero-top {
  grid-column: 1 / -1;
  display: grid;
  gap: 1rem;
}
.hero-top-eyebrow {
  display: flex;
  width: 100%;
  margin: 0;
}
.hero-top-eyebrow::after {
  content: "";
  flex: 1;
  height: 1.5px;
  background: var(--text-warning);
  opacity: 0.55;
}
.hero-copy {
  max-width: 52rem;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  margin: 0 0 0.8rem;
  font-family: var(--font-command);
  font-size: 0.74rem; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 800;
}
.eyebrow::before {
  content: ""; width: 2.2rem; height: 1.5px; background: var(--text-warning);
}

.hero h1,
.section h2,
.panel h3,
.service-inner h3 {
  font-family: var(--font-command);
  text-transform: uppercase;
}
.hero h1,
.section h2 { line-height: 0.96; margin: 0; }
.hero h1 {
  font-size: clamp(2.8rem, 6.4vw, 5.4rem);
  max-width: 10ch; letter-spacing: 0.01em; text-wrap: balance;
  text-shadow: 0 4px 18px rgba(0,0,0,0.8);
}
.lead {
  max-width: 62ch; color: var(--text-primary); font-size: clamp(0.96rem, 1.5vw, 1.12rem); margin: 1.2rem 0 0;
}
.hero-mark {
  display: flex;
  align-items: center;
  width: min(100%, 620px);
  min-height: 170px;
  margin-bottom: 0;
  padding: 1.2rem 1.5rem;
  border-radius: var(--radius-sm);
}
.hero-mark img { width: min(100%, 560px); height: clamp(110px, 16vw, 180px); object-fit: contain; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.8rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 1.2rem; border-radius: var(--radius-rugged); font-family: var(--font-command); font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.btn-primary {
  background: var(--bg-olive); color: var(--text-warning);
  box-shadow: 0 14px 30px rgba(0,0,0,0.3), inset 0 2px 3px rgba(255, 255, 255, 0.1);
}
.btn-secondary {
  background: var(--bg-dark); border: 2px solid var(--line-utility); color: var(--text-primary);
}
.btn-rugged:hover { transform: translateY(-1px); }

/* ARMORED FRAME LOOK (Depth and Solid) */
.heavy-frame, .armored-frame, .legal-card {
  position: relative;
  background: var(--bg-panel);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow-armored);
  border-radius: var(--radius-rugged);
  clip-path: polygon(0 14px, 14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
}
.heavy-frame::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(135deg, rgba(230, 200, 74, 0.06), transparent 40%), rgba(0, 0, 0, 0.05);
}

.hero-card { display: grid; align-content: end; gap: 1rem; }
.stat-card { padding: 1rem 1rem; }
.stat-card strong { font-size: 1.02rem; }
.stat-label { display: block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.18em; margin-bottom: 0.35rem; font-family: var(--font-command); }
.stat-card-image { overflow: hidden; padding: 0; }
.stat-card-image img { width: 100%; height: 170px; object-fit: cover; filter: saturate(0.95) contrast(1.1) brightness(0.95); }
.stat-card-image-copy { padding: 0.9rem 1rem 1rem; }

/* UTILITY SECTIONS */
.section { padding: 5rem 0; position: relative; }
.section-about { padding-top: 4rem; }
.section-head { margin-bottom: 1.8rem; max-width: 760px; }
.section h2 { font-size: clamp(2.2rem, 4.4vw, 4rem); }
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.about-visuals { display: grid; gap: 1rem; }
.armored-panel { padding: 1.4rem; }
.intro-card { display: flex; align-items: center; justify-content: flex-start; gap: 1rem; min-height: 100%; }
.intro-card-copy { max-width: 34rem; }

/* SERVICES GRID (Armored) */
.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.service-card {
  position: relative; min-height: 340px; overflow: hidden; border: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.service-card::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(19, 26, 19, 0.98) 100%);
}
.service-media {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.95) contrast(1.05) brightness(0.75); transform: scale(1.02);
}
.service-inner { position: relative; z-index: 1; padding: 1.4rem; }
.service-kicker { display: inline-flex; margin-bottom: 0.8rem; font-weight: 800; font-size: 0.78rem; letter-spacing: 0.18em; font-family: var(--font-command); }
.service-inner h3 { margin-bottom: 0.5rem; color: var(--text-warning); }
.service-inner p { margin-bottom: 0; color: var(--text-primary); }

/* SERVICE BUTTONS (Projects in Services) */
.service-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.2rem; }
.service-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.45rem 0.8rem; border-radius: 6px;
  background: rgba(19, 26, 19, 0.85); border: 1px solid var(--line-utility);
  font-family: var(--font-command); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-primary);
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.service-btn:hover {
  background: var(--bg-olive); border-color: var(--text-warning); color: var(--text-warning);
  transform: translateY(-2px); box-shadow: 0 6px 14px rgba(0,0,0,0.4);
}

/* SECTION CONTACT (Solid Panel) */
.section-contact { padding-bottom: 4rem; }
.contact-shell {
  display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; padding: 1.8rem;
}
.contact-card { display: grid; gap: 0.4rem; padding: 1.1rem; }
.contact-card a, .contact-card span { font-weight: 700; color: var(--text-warning); }

/* UTILITY FOOTER */
.site-footer { padding: 1.8rem 0 2rem; border-top: 2px solid var(--line-utility); background: var(--bg-dark); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; align-items: start; }
.footer-brand { padding-top: 0.5rem; }
.legal-card { padding: 0.9rem; }
.legal-card summary { cursor: pointer; font-weight: 800; list-style: none; letter-spacing: 0.04em; text-transform: uppercase; font-family: var(--font-command); color: var(--text-muted); }
.legal-card summary::-webkit-details-marker { display: none; }
.legal-card[open] summary { color: var(--text-warning); }
.legal-copy { padding-top: 0.9rem; font-size: 0.92rem; color: var(--text-muted); }
.legal-copy a { text-decoration: underline; text-decoration-thickness: 1px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 1.2rem; margin-top: 1.4rem; border-top: 1px solid var(--line-utility); color: var(--text-muted); font-size: 0.86rem; flex-wrap: wrap; }
.footer-socials { display: flex; gap: 1rem; flex-wrap: wrap; }
.footer-socials a { color: var(--text-warning); font-family: var(--font-command); letter-spacing: 0.05em; text-transform: uppercase; font-size: 0.82rem; }
.footer-socials a:hover { color: var(--text-primary); }

/* REVEAL ANIMATIONS */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 90ms; }
.delay-2 { transition-delay: 180ms; }

/* MEDIA QUERIES */
@media (max-width: 1080px) {
  .hero-grid, .split-grid, .footer-grid, .contact-shell, .services-grid { grid-template-columns: 1fr 1fr; }
  .hero-top { grid-column: 1 / -1; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }
  .nav-actions { gap: 0.6rem; }
  .site-nav {
    position: absolute; left: 1rem; right: 1rem; top: calc(100% + 0.6rem); display: none;
    flex-direction: column; align-items: stretch; padding: 0.7rem; border-radius: var(--radius-rugged);
    background: var(--bg-panel); border: 2px solid var(--line-utility); box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  }
  .site-nav.open { display: flex; }
  .hero-grid, .split-grid, .footer-grid, .contact-shell, .services-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero::before { inset: 4.8rem 0.6rem 0.6rem 0.6rem; }
  .hero-grid { padding-top: 6rem; }
  .hero-top { gap: 0.75rem; }
  .hero-mark {
    width: calc(100% + 1.2rem);
    margin-left: -0.6rem;
    margin-right: -0.6rem;
    min-height: 150px;
    padding: 1rem 1.1rem;
  }
  .hero-mark img { width: min(100%, 420px); height: auto; }
  .hero-top-eyebrow { width: 100%; }
  .hero h1 { max-width: 11ch; }
  .footer-bottom { flex-direction: column; align-items: start; }
  .lang-switch { order: -1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .btn, .service-btn, .service-card { transition: none !important; animation: none !important; transform: none !important; }
  .reveal { opacity: 1; }
}