:root {
  --navy-950: #031426;
  --navy-900: #04213b;
  --navy-800: #08375e;
  --blue-600: #0a69ad;
  --blue-400: #42a7df;
  --lime: #d1ee22;
  --lime-dark: #a9c400;
  --ink: #09243d;
  --muted: #536779;
  --paper: #f7fafc;
  --white: #ffffff;
  --line: #dbe5ec;
  --shadow: 0 24px 70px rgba(2, 25, 45, .16);
  --max: 1220px;
  --header: 82px;
  --heading: "Franklin Gothic Condensed", "Arial Narrow", Arial, sans-serif;
  --body: "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
}

body.dialog-open { overflow: hidden; }

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

img { width: 100%; height: auto; }

a { color: inherit; text-underline-offset: .2em; }

button,
input,
select,
textarea { font: inherit; }

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

:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: .5rem;
  left: .5rem;
  z-index: 999;
  padding: .75rem 1rem;
  color: var(--navy-950);
  background: var(--lime);
  font-weight: 900;
  transform: translateY(-160%);
}

.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header);
  color: var(--white);
  background: rgba(3, 20, 38, .96);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  backdrop-filter: blur(12px);
}

.nav-shell {
  width: min(calc(100% - 40px), var(--max));
  min-height: var(--header);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  flex: 0 0 auto;
  color: var(--navy-950);
  background: linear-gradient(135deg, var(--white) 0 57%, var(--lime) 57% 100%);
  clip-path: polygon(50% 0, 100% 88%, 80% 100%, 50% 45%, 20% 100%, 0 88%);
  font-family: var(--heading);
  font-size: 1.2rem;
  font-weight: 900;
}

.brand-copy strong,
.brand-copy small { display: block; }

.brand-copy strong {
  font-family: var(--heading);
  font-size: 1.38rem;
  font-weight: 900;
  letter-spacing: .035em;
  line-height: 1;
}

.brand-copy em { color: var(--lime); font-style: normal; }

.brand-copy small {
  margin-top: .25rem;
  color: #c8d5df;
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .16em;
  line-height: 1;
  text-transform: uppercase;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(.75rem, 1.8vw, 1.55rem);
}

.primary-nav > a,
.nav-menu-button {
  color: #eff7fc;
  background: transparent;
  border: 0;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .045em;
  text-decoration: none;
  text-transform: uppercase;
}

.primary-nav > a:not(.button):hover,
.primary-nav > a[aria-current="page"]:not(.button) { color: var(--lime); }

.menu-toggle {
  display: none;
  width: 46px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 4px;
  color: var(--white);
  background: transparent;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: .82rem 1.25rem;
  border: 2px solid var(--lime);
  border-radius: 0;
  color: var(--navy-950);
  background: var(--lime);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .055em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .16s ease, background .16s ease, border-color .16s ease, transform .16s ease;
}

.button:hover {
  border-color: var(--white);
  color: var(--navy-950);
  background: var(--white);
  transform: translateY(-2px);
}

.button-outline {
  color: var(--white);
  background: transparent;
  border-color: rgba(255, 255, 255, .58);
}

.button-outline:hover {
  color: var(--navy-950);
  background: var(--white);
}

.button-dark {
  border-color: var(--navy-900);
  color: var(--white);
  background: var(--navy-900);
}

.button-small {
  min-height: 42px;
  padding: .65rem .95rem;
  font-size: .7rem !important;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 1.7rem;
}

.eyebrow {
  margin: 0 0 .7rem;
  color: var(--blue-600);
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  font-family: var(--heading);
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.04;
  text-transform: uppercase;
}

h1 {
  max-width: 11ch;
  margin-bottom: 1.2rem;
  font-size: clamp(3.4rem, 7.4vw, 7.2rem);
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2.15rem, 4.3vw, 4.25rem);
}

h3 {
  margin-bottom: .65rem;
  font-size: clamp(1.28rem, 2.2vw, 1.7rem);
}

.accent { color: var(--lime); }

.lead {
  max-width: 58ch;
  font-size: clamp(1.06rem, 1.55vw, 1.25rem);
  line-height: 1.7;
}

.home-hero,
.services-hero {
  position: relative;
  min-height: min(850px, calc(100vh - var(--header)));
  display: grid;
  align-items: center;
  isolation: isolate;
  color: var(--white);
  background-color: var(--navy-950);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.home-hero {
  background-image:
    linear-gradient(90deg, rgba(2, 18, 34, .97) 0%, rgba(2, 18, 34, .88) 34%, rgba(2, 18, 34, .22) 70%, rgba(2, 18, 34, .08) 100%),
    image-set(url("../images/home-hero-1280.webp") 1x, url("../images/home-hero-1920.webp") 2x);
}

.services-hero {
  min-height: 690px;
  background-image:
    linear-gradient(90deg, rgba(2, 18, 34, .97) 0%, rgba(2, 18, 34, .84) 38%, rgba(2, 18, 34, .22) 72%, rgba(2, 18, 34, .08) 100%),
    image-set(url("../images/services-hero-1280.webp") 1x, url("../images/services-hero-1920.webp") 2x);
}

.hero-shell {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.hero-copy { width: min(100%, 650px); }

.hero-copy .eyebrow { color: var(--lime); }

.hero-copy .lead { color: #e0eaf2; }

.capability-strip {
  margin: 3.4rem 0 0;
  padding: 1.6rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, .28);
}

.capability-strip div { min-width: 0; }

.capability-strip dt {
  color: var(--lime);
  font-family: var(--heading);
  font-size: 1.65rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.capability-strip dd {
  margin: .45rem 0 0;
  color: #cbd9e4;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .065em;
  line-height: 1.45;
  text-transform: uppercase;
}

.section {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: clamp(5rem, 9vw, 8.5rem) 0;
}

.section-heading { max-width: 760px; margin-bottom: 2.8rem; }

.section-heading p:last-child { margin-bottom: 0; color: var(--muted); }

.slanted-section {
  position: relative;
  background: var(--white);
}

.slanted-section::before {
  content: "";
  position: absolute;
  top: -52px;
  left: 0;
  width: 100%;
  height: 54px;
  background: var(--white);
  clip-path: polygon(0 80%, 100% 0, 100% 100%, 0 100%);
}

.split-feature {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(2.2rem, 6vw, 6rem);
}

.split-feature.reverse .feature-media { order: -1; }

.feature-media {
  min-width: 0;
  margin: 0;
}

.feature-media img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.feature-media figcaption {
  padding: .9rem 0 0;
  color: var(--muted);
  font-size: .86rem;
}

.feature-media figcaption strong { color: var(--ink); }

.feature-list,
.check-list {
  margin: 1.6rem 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li,
.check-list li {
  position: relative;
  padding: .72rem 0 .72rem 1.65rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.feature-list li::before,
.check-list li::before {
  content: "";
  position: absolute;
  top: 1.15rem;
  left: .1rem;
  width: .62rem;
  height: .32rem;
  border-bottom: 3px solid var(--lime-dark);
  border-left: 3px solid var(--lime-dark);
  transform: rotate(-45deg);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.service-card {
  min-width: 0;
  padding: clamp(1.5rem, 3.2vw, 2.35rem);
  background: var(--white);
}

.service-card span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 1.1rem;
  border: 1px solid var(--lime-dark);
  color: var(--navy-900);
  font-family: var(--heading);
  font-weight: 900;
}

.service-card p { margin-bottom: 0; color: var(--muted); }

.dark-band {
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(3, 20, 38, .98), rgba(3, 35, 61, .94)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 22px);
}

.dark-band .section-heading p:last-child,
.dark-band .feature-content > p { color: #c9d8e3; }

.market-grid {
  margin-top: 2.2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .18);
}

.market-grid article {
  min-width: 0;
  padding: 1.3rem;
  background: rgba(2, 20, 38, .7);
}

.market-grid h3 { margin-bottom: .35rem; font-size: 1.18rem; }

.market-grid p { margin: 0; color: #bdccd8; font-size: .9rem; }

.diagram-panel {
  min-width: 0;
  padding: clamp(1.1rem, 3vw, 2rem);
  color: var(--white);
  background: var(--navy-950);
  box-shadow: var(--shadow);
}

.diagram-panel canvas {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: radial-gradient(circle at 50% 45%, #0d4a75 0, #06243e 62%, #031426 100%);
  border: 1px solid rgba(135, 203, 238, .24);
}

.diagram-caption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: .9rem;
  color: #bdd0dd;
  font-size: .83rem;
}

.diagram-caption strong { color: var(--lime); }

.process-grid {
  margin: 2.4rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  list-style: none;
  counter-reset: process;
}

.process-grid li {
  min-width: 0;
  padding: 1.5rem;
  border-top: 4px solid var(--lime);
  background: #edf3f7;
  counter-increment: process;
}

.process-grid li::before {
  content: "0" counter(process);
  display: block;
  margin-bottom: .8rem;
  color: var(--blue-600);
  font-family: var(--heading);
  font-size: 1.5rem;
  font-weight: 900;
}

.process-grid p { margin-bottom: 0; color: var(--muted); }

.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.resource-grid article {
  min-width: 0;
  padding: 1.5rem;
  border: 1px solid var(--line);
  background: var(--white);
}

.resource-grid p { color: var(--muted); }

.resource-grid a {
  color: var(--blue-600);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.proof-band {
  color: var(--white);
  background: var(--navy-800);
}

.proof-shell {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5.5rem) 0;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  align-items: center;
  gap: 3rem;
}

.proof-shell h2 { margin-bottom: .6rem; }

.proof-shell p { margin: 0; color: #cddbe5; }

.services-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.2rem;
}

.service-detail {
  min-width: 0;
  padding: clamp(1.5rem, 3.2vw, 2.4rem);
  border-left: 4px solid var(--lime-dark);
  background: var(--white);
  box-shadow: 0 18px 45px rgba(3, 32, 56, .08);
}

.service-detail p { color: var(--muted); }

.service-detail ul { margin-bottom: 0; padding-left: 1.2rem; color: var(--muted); }

.faq-list { display: grid; gap: .8rem; }

.faq-list details {
  border: 1px solid var(--line);
  background: var(--white);
}

.faq-list summary {
  padding: 1.2rem 1.4rem;
  color: var(--ink);
  font-family: var(--heading);
  font-size: 1.2rem;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.faq-list details p { margin: 0; padding: 0 1.4rem 1.35rem; color: var(--muted); }

.site-footer {
  color: var(--white);
  background: var(--navy-950);
}

.footer-shell {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 3.6rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr .75fr .75fr 1fr;
  gap: 2.4rem;
}

.footer-grid h2,
.footer-grid h3 { font-size: 1.1rem; }

.footer-grid p { color: #b9c9d5; }

.footer-links { display: grid; gap: .55rem; }

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

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

.footer-bottom {
  margin-top: 2.6rem;
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, .14);
  color: #91a7b8;
  font-size: .82rem;
}

.quote-dialog {
  width: min(760px, calc(100% - 32px));
  max-height: min(88vh, 900px);
  padding: 0;
  border: 0;
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 30px 100px rgba(0, 0, 0, .48);
}

.quote-dialog::backdrop { background: rgba(1, 12, 22, .78); backdrop-filter: blur(5px); }

.dialog-header {
  padding: 1.5rem clamp(1.2rem, 4vw, 2.4rem);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  color: var(--white);
  background: var(--navy-900);
}

.dialog-header h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 3rem); }

.dialog-close {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 1px solid rgba(255,255,255,.3);
  color: var(--white);
  background: transparent;
  font-size: 1.4rem;
  cursor: pointer;
}

.quote-form { padding: clamp(1.2rem, 4vw, 2.4rem); }

.form-intro { margin-top: 0; color: var(--muted); }

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

.field { min-width: 0; }

.field-wide { grid-column: 1 / -1; }

.field label {
  display: block;
  margin-bottom: .4rem;
  color: var(--ink);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #b9c8d3;
  border-radius: 0;
  color: var(--ink);
  background: #fbfdff;
  padding: .82rem .9rem;
}

.field textarea { min-height: 112px; resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--blue-600); outline: 2px solid rgba(10, 105, 173, .2); }

.form-disclosure { color: var(--muted); font-size: .82rem; }

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

.form-status {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border-left: 4px solid var(--lime-dark);
  color: var(--ink);
  background: #eef7cf;
}

.chat-launcher {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 120;
  max-width: min(330px, calc(100vw - 44px));
  padding: .8rem 1rem;
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  border: 2px solid var(--lime);
  color: var(--navy-950);
  background: var(--lime);
  box-shadow: 0 18px 48px rgba(1, 20, 35, .32);
  font-weight: 900;
  cursor: pointer;
}

.chat-launcher span:first-child {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: var(--white);
  background: var(--navy-900);
  border-radius: 50%;
}

.chat-panel {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 130;
  width: min(390px, calc(100vw - 44px));
  max-height: min(620px, calc(100vh - 44px));
  display: grid;
  grid-template-rows: auto minmax(140px, 1fr) auto;
  color: var(--ink);
  background: var(--white);
  border: 1px solid rgba(3, 32, 56, .2);
  box-shadow: 0 28px 90px rgba(1, 18, 32, .45);
}

.chat-panel[hidden] { display: none; }

.chat-header {
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--white);
  background: var(--navy-900);
}

.chat-header strong,
.chat-header small { display: block; }

.chat-header small { margin-top: .2rem; color: #c4d5e1; }

.chat-close {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,.28);
  color: var(--white);
  background: transparent;
  cursor: pointer;
}

.chat-log {
  min-height: 0;
  padding: 1rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #f2f6f9;
}

.chat-message {
  max-width: 88%;
  margin: 0 0 .75rem;
  padding: .75rem .85rem;
  font-size: .9rem;
  line-height: 1.5;
}

.chat-message.bot { border-left: 3px solid var(--lime-dark); background: var(--white); }

.chat-message.user { margin-left: auto; color: var(--white); background: var(--blue-600); }

.chat-actions {
  padding: .85rem;
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  border-top: 1px solid var(--line);
}

.chat-choice {
  min-height: 38px;
  padding: .55rem .7rem;
  border: 1px solid #9eb3c2;
  color: var(--ink);
  background: var(--white);
  font-size: .78rem;
  font-weight: 800;
  cursor: pointer;
}

.chat-choice:hover { border-color: var(--blue-600); color: var(--white); background: var(--blue-600); }

.chat-choice.primary { border-color: var(--lime-dark); background: var(--lime); }

@media (max-width: 1040px) {
  .primary-nav { gap: .8rem; }
  .primary-nav > a:not(.button) { font-size: .72rem; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  :root { --header: 72px; }

  .nav-shell { width: min(calc(100% - 28px), var(--max)); }

  .menu-toggle { display: block; }

  .primary-nav {
    position: absolute;
    top: 100%;
    right: 14px;
    left: 14px;
    padding: 1rem;
    display: none;
    align-items: stretch;
    flex-direction: column;
    background: var(--navy-900);
    border: 1px solid rgba(255,255,255,.15);
    box-shadow: var(--shadow);
  }

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

  .primary-nav > a { padding: .75rem; }

  .home-hero,
  .services-hero {
    min-height: 720px;
    background-position: 64% center;
  }

  .hero-shell,
  .section,
  .proof-shell,
  .footer-shell { width: min(calc(100% - 28px), var(--max)); }

  .split-feature,
  .services-layout,
  .proof-shell { grid-template-columns: 1fr; }

  .split-feature.reverse .feature-media { order: 0; }

  .capability-strip,
  .market-grid,
  .process-grid,
  .resource-grid { grid-template-columns: 1fr; }

  .proof-shell { gap: 1.5rem; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }

  .brand-copy small { display: none; }

  .brand-copy strong { font-size: 1.15rem; }

  .home-hero,
  .services-hero {
    min-height: 690px;
    background-image:
      linear-gradient(180deg, rgba(2, 18, 34, .48) 0%, rgba(2, 18, 34, .94) 58%, rgba(2, 18, 34, .98) 100%),
      var(--mobile-hero);
    background-position: 58% center;
  }

  .home-hero { --mobile-hero: url("../images/home-hero-768.webp"); }
  .services-hero { --mobile-hero: url("../images/services-hero-768.webp"); }

  .hero-shell { padding: 4rem 0 3rem; }

  h1 {
    max-width: 100%;
    font-size: clamp(2.75rem, 13vw, 3.4rem);
    overflow-wrap: anywhere;
  }

  .hero-copy .eyebrow {
    font-size: .66rem;
    letter-spacing: .07em;
    line-height: 1.45;
  }

  .capability-strip { grid-template-columns: 1fr; }

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

  .field-wide { grid-column: auto; }

  .button-row .button { width: 100%; }

  .dialog-header { padding: 1.1rem; }

  .quote-form { padding: 1.1rem; }

  .chat-launcher { right: 12px; bottom: 12px; }

  .chat-panel {
    right: 10px;
    bottom: 10px;
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
  }
}

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