:root {
  --forest: #173c2a;
  --forest-deep: #102d20;
  --espresso: #2b2118;
  --graphite: #151815;
  --ivory: #f4f0e6;
  --soft-white: #fafaf7;
  --gold: #e6d98b;
  --line-light: rgba(250, 250, 247, 0.5);
  --line-dark: rgba(21, 24, 21, 0.18);
  --container: 1200px;
  --header-height: 78px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 18px);
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--ivory);
  color: var(--graphite);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.container {
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 1000;
  background: var(--soft-white);
  color: var(--graphite);
  padding: 10px 14px;
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(23, 60, 42, 0.96);
  border-bottom: 1px solid rgba(250, 250, 247, 0.16);
  backdrop-filter: blur(10px);
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-decoration: none;
  color: var(--soft-white);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
  margin-right: 30px;
}

.language-switcher {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(250, 250, 247, 0.52);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.language-option {
  border: 0;
  padding: 4px 2px;
  background: transparent;
  color: rgba(250, 250, 247, 0.58);
  font: inherit;
  cursor: pointer;
}

.language-option:hover,
.language-option:focus-visible,
.language-option.active {
  color: var(--gold);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.primary-nav a {
  text-decoration: none;
  color: rgba(250, 250, 247, 0.86);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 160ms ease;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: var(--gold);
}

.nav-contact {
  border: 1px solid rgba(250, 250, 247, 0.72);
  padding: 9px 16px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(250, 250, 247, 0.5);
  background: transparent;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 1px;
  background: var(--soft-white);
  transition: transform 160ms ease;
}

.section-dark {
  background: var(--forest);
  color: var(--soft-white);
}

.section-brown {
  background: var(--espresso);
  color: var(--soft-white);
}

.section-graphite {
  background: var(--graphite);
  color: var(--soft-white);
}

.section-light {
  background: var(--ivory);
  color: var(--graphite);
}

.hero {
  min-height: calc(100svh - var(--header-height));
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line-light);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 70px;
  align-items: end;
  padding-block: 100px;
}

.eyebrow {
  margin: 0 0 22px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold);
}

.eyebrow.dark {
  color: #6d622c;
}

.hero h1 {
  max-width: 930px;
  margin: 0;
  font-size: clamp(3.25rem, 7vw, 6.8rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  font-weight: 700;
}

.hero h1 span {
  display: block;
  color: var(--gold);
}

.hero-tagline {
  margin: 36px 0 0;
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  font-weight: 600;
}

.hero-summary {
  max-width: 720px;
  margin: 22px 0 0;
  color: rgba(250, 250, 247, 0.78);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}


.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-light {
  background: var(--soft-white);
  color: var(--graphite);
  border-color: var(--soft-white);
}

.button-light:hover {
  background: var(--gold);
  border-color: var(--gold);
}

.button-ghost {
  color: var(--soft-white);
  border-color: rgba(250, 250, 247, 0.72);
}

.button-ghost:hover {
  background: rgba(250, 250, 247, 0.08);
  border-color: var(--soft-white);
}

.intro,
.about {
  padding-block: 120px;
}

.section-heading {
  margin-bottom: 56px;
}

.section-number {
  margin: 0 0 18px;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  font-weight: 600;
}

.section-number.light {
  color: rgba(250, 250, 247, 0.62);
}

.section-heading h2,
.split-heading h2,
.product-content h2,
.cyber-content h2,
.contact-copy h2 {
  margin: 0;
  font-size: clamp(2.35rem, 5vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.section-heading h2 {
  max-width: 800px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.service-card {
  min-height: 390px;
  padding: 34px;
  border: 1px solid var(--line-dark);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.card-label {
  margin: 0 0 36px;
  color: #6d622c;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
  font-weight: 700;
}

.service-card h3 {
  max-width: 560px;
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.55rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.service-card p:not(.card-label) {
  max-width: 600px;
  margin: 24px 0 0;
  color: rgba(21, 24, 21, 0.72);
}

.text-link {
  margin-top: auto;
  padding-top: 36px;
  text-decoration: none;
  font-weight: 600;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.product,
.cyber,
.contact {
  padding-block: 120px;
}

.product-grid,
.cyber-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 0.55fr 1.45fr;
  gap: 64px;
}

.product-kicker {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: var(--gold);
}

.product-lead,
.cyber-lead {
  max-width: 780px;
  margin: 28px 0 0;
  font-size: clamp(1.25rem, 2.4vw, 1.85rem);
  line-height: 1.45;
  color: rgba(250, 250, 247, 0.9);
}

.capability-strip,
.capability-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 34px 0 40px;
}

.capability-strip span,
.capability-list span {
  border: 1px solid rgba(250, 250, 247, 0.34);
  padding: 8px 12px;
  font-size: 0.85rem;
}

.cyber-content > p:not(.cyber-lead) {
  max-width: 760px;
  color: rgba(250, 250, 247, 0.72);
}

.split-heading {
  display: grid;
  grid-template-columns: 0.55fr 1.45fr;
  gap: 64px;
  align-items: start;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 80px;
}

.about-copy {
  font-size: 1.08rem;
  color: rgba(21, 24, 21, 0.76);
}

.about-copy p:first-child {
  margin-top: 0;
}

.principles {
  border-top: 1px solid var(--line-dark);
}

.principles article {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line-dark);
}

.principles article > span {
  color: #6d622c;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.principles h3 {
  margin: 0;
  font-size: 1.15rem;
}

.principles p {
  margin: 4px 0 0;
  color: rgba(21, 24, 21, 0.66);
}

.contact-copy p {
  max-width: 720px;
  margin: 26px 0 34px;
  color: rgba(250, 250, 247, 0.72);
  font-size: 1.05rem;
}

.site-footer {
  background: #0f110f;
  color: var(--soft-white);
  border-top: 1px solid rgba(250, 250, 247, 0.12);
  padding-block: 58px 34px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.footer-brand {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.footer-tagline {
  margin: 10px 0 0;
  color: rgba(250, 250, 247, 0.58);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  gap: 30px;
}

.footer-links div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links p {
  margin: 0 0 8px;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(250, 250, 247, 0.5);
}

.footer-links a {
  text-decoration: none;
}

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

.footer-legal {
  grid-column: 1 / -1;
  padding-top: 28px;
  border-top: 1px solid rgba(250, 250, 247, 0.12);
  color: rgba(250, 250, 247, 0.46);
  font-size: 0.82rem;
}

@media (max-width: 900px) {
  :root {
    --header-height: 70px;
  }

  .container {
    width: min(calc(100% - 32px), var(--container));
  }

  .header-actions {
    margin-left: auto;
    margin-right: 0;
    gap: 12px;
  }

  .nav-toggle {
    display: flex;
  }

  .primary-nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px 16px 22px;
    background: var(--forest-deep);
    border-bottom: 1px solid rgba(250, 250, 247, 0.16);
  }

  .primary-nav.open {
    display: flex;
  }

  .primary-nav a {
    padding: 14px 4px;
    border-bottom: 1px solid rgba(250, 250, 247, 0.12);
  }

  .primary-nav .nav-contact {
    margin-top: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(250, 250, 247, 0.5);
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 44px;
    padding-block: 82px;
  }

  .service-grid,
  .product-grid,
  .cyber-grid,
  .contact-grid,
  .split-heading,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .product-grid,
  .cyber-grid,
  .contact-grid,
  .split-heading {
    gap: 36px;
  }

  .about-grid {
    gap: 48px;
  }

  .intro,
  .about,
  .product,
  .cyber,
  .contact {
    padding-block: 88px;
  }
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: clamp(3rem, 14vw, 4.6rem);
  }

  .hero-summary {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .service-card {
    min-height: auto;
    padding: 26px;
  }

  .service-card + .service-card {
    margin-top: 0;
  }

  .capability-strip,
  .capability-list {
    gap: 8px;
  }

  .capability-strip span,
  .capability-list span {
    width: 100%;
  }

  .principles article {
    grid-template-columns: 48px 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-links {
    grid-template-columns: 1fr 1fr;
  }

  .footer-legal {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

@media (min-width: 901px) {
  .primary-nav { order: 2; }
  .header-actions { order: 3; margin-right: 0; margin-left: 24px; }
}
