/* Self-hosted fonts (replaces Google Fonts CDN) */
@font-face { font-family: 'Fjalla One'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/fjalla-one-400.woff2') format('woff2'); }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/source-sans-3-400.woff2') format('woff2'); }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/source-sans-3-600.woff2') format('woff2'); }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/source-sans-3-700.woff2') format('woff2'); }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 800; font-display: swap; src: url('fonts/source-sans-3-800.woff2') format('woff2'); }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 900; font-display: swap; src: url('fonts/source-sans-3-900.woff2') format('woff2'); }

:root {
  color-scheme: light;
  --ink: #101820;
  --muted: #5d6773;
  --paper: #fbfaf7;
  --white: #ffffff;
  --steel: #25313f;
  --steel-2: #394859;
  --beam: #b31f2a;
  --beam-dark: #8c1822;
  --patriot-red: #c91f2f;
  --patriot-blue: #9cbadd;
  --line: #d8d5ce;
  --blueprint: #eaf0f6;
  --shadow: 0 18px 60px rgba(16, 24, 32, 0.14);
  --radius: 8px;
  font-family: "Source Sans 3", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.site-shell {
  min-height: 100vh;
  overflow-x: clip;
}

.wrap {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.topbar {
  background: var(--ink);
  color: #eef3f7;
  font-size: 0.86rem;
}

.topbar .wrap,
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.topbar a {
  text-decoration: none;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.social-icon {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  fill: currentColor;
}

.google-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #ffffff;
  color: #1a73e8;
  font-size: 0.7rem;
  font-weight: 900;
  line-height: 1;
}

.topbar-items {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 38px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 250, 247, 0.94);
  border-bottom: 1px solid rgba(16, 24, 32, 0.12);
  backdrop-filter: blur(14px);
}

.nav-inner {
  min-height: 82px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand img {
  width: 150px;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  padding: 10px 12px;
  color: var(--steel);
  font-weight: 700;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--beam);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.button,
button.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 12px 18px;
  background: var(--beam);
  color: white;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
  background: var(--beam-dark);
  box-shadow: 0 10px 24px rgba(179, 31, 42, 0.25);
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.12);
  color: white;
}

.button.secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.button.ghost {
  border-color: var(--line);
  background: var(--white);
  color: var(--ink);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 120px);
  display: grid;
  align-items: end;
  color: white;
  background: var(--ink);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-media-parallax {
  position: absolute;
  inset: 0;
  transform: translate3d(var(--hero-px, 0px), var(--hero-py, 0px), 0);
  transition: transform 520ms cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}

.hero-media-img {
  position: absolute;
  inset: 0;
  background: url("img/steel-hero.jpeg") center / cover no-repeat;
  transform-origin: 60% 45%;
  animation: heroKenBurns 44s ease-in-out infinite alternate;
  will-change: transform;
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media-sweep {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    115deg,
    transparent 42%,
    rgba(156, 186, 221, 0.12) 48%,
    rgba(255, 255, 255, 0.22) 50%,
    rgba(156, 186, 221, 0.12) 52%,
    transparent 58%
  );
  background-size: 250% 100%;
  background-position: 160% 0;
  mix-blend-mode: screen;
  opacity: 0.55;
  animation: heroSweep 12s linear infinite;
}

.hero-media-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    90deg,
    rgba(16, 24, 32, 0.92),
    rgba(16, 24, 32, 0.7) 45%,
    rgba(16, 24, 32, 0.32)
  );
}

@keyframes heroKenBurns {
  from { transform: scale(1.04) translate3d(-0.4%, -0.3%, 0); }
  to   { transform: scale(1.09) translate3d(0.5%, 0.4%, 0); }
}

@keyframes heroSweep {
  0%   { background-position: 160% 0; }
  100% { background-position: -60% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-media-parallax { transition: none; transform: none; }
  .hero-media-img { animation: none; transform: scale(1.04); }
  .hero-media-sweep { animation: none; opacity: 0; }
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 120px;
  background: linear-gradient(180deg, transparent, var(--paper));
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 88px 0 120px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--patriot-red);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  stroke-width: 2.25;
}

.hero h1,
.page-hero h1,
.section-title h2 {
  margin: 0;
  font-family: "Fjalla One", Impact, sans-serif;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}

.hero h1 {
  max-width: min(740px, 100%);
  font-size: 6.1rem;
}

.hero p {
  max-width: 680px;
  margin: 22px 0 0;
  color: #eef3f7;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  width: min(980px, 100%);
  margin-top: 44px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.18);
}

.credential-band {
  position: relative;
  z-index: 2;
  margin-top: -64px;
}

.credential-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1fr);
  gap: 26px;
  align-items: center;
  padding: 26px;
  border: 1px solid rgba(16, 24, 32, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.credential-panel h2 {
  margin: 0 0 8px;
  font-family: "Fjalla One", Impact, sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}

.credential-panel p {
  margin: 0;
  color: var(--muted);
}

.credential-logos,
.software-logos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: center;
}

.credential-logo {
  min-height: 132px;
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: center;
}

.software-logo {
  min-height: 132px;
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  text-align: center;
}

.credential-logo img,
.software-logo img {
  position: relative;
  max-height: 82px;
  width: auto;
  object-fit: contain;
}

.credential-logo-stack {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.credential-logo-stack img {
  max-width: 46%;
}

.credential-logo span,
.software-logo span {
  color: var(--steel);
  font-size: 0.86rem;
  font-weight: 800;
}

.story-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.68fr);
  gap: 38px;
  align-items: center;
}

.story-copy {
  max-width: 720px;
}

.story-copy p:not(.eyebrow) {
  color: var(--steel);
  font-size: 1.08rem;
}

.story-proof {
  display: grid;
  gap: 12px;
}

.proof-row {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.proof-row i {
  color: var(--beam);
}

.proof-row h3 {
  margin: 0 0 4px;
  font-size: 1.08rem;
}

.proof-row p {
  margin: 0;
  color: var(--muted);
}

.software-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.58fr) minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.workflow-list {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.workflow-list span {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: #eef3f7;
  font-weight: 800;
}

.hero-stat {
  padding: 18px;
  background: rgba(16, 24, 32, 0.44);
}

.hero-stat strong {
  display: block;
  font-family: "Fjalla One", Impact, sans-serif;
  font-size: 1.8rem;
  line-height: 1;
}

.hero-stat span {
  color: #dce4ea;
  font-size: 0.92rem;
}

.section {
  padding: 92px 0;
}

.section.compact {
  padding: 64px 0;
}

.section.dark {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: white;
}

.section.steel {
  position: relative;
  overflow: hidden;
  background: var(--steel);
  color: white;
}

.section.steel.platforms-section {
  background-color: var(--steel);
  background-image:
    linear-gradient(90deg, rgba(37, 49, 63, 0.98), rgba(37, 49, 63, 0.88) 48%, rgba(37, 49, 63, 0.34) 68%, rgba(37, 49, 63, 0.08)),
    url("img/construction-plans-man-branded-blended.webp");
  background-position: center, calc(50% + 230px) center;
  background-size: auto, auto 104%;
  background-repeat: no-repeat;
}

.platforms-section .software-panel {
  width: min(1180px, calc(100% - 40px));
  max-width: 1180px;
  grid-template-columns: minmax(280px, 540px);
  justify-content: start;
  margin-inline: auto;
}

.platforms-section .software-logos {
  margin-top: 22px;
}

.platforms-section .software-logo {
  min-height: 116px;
}

.section.dark > .wrap,
.section.steel > .wrap {
  position: relative;
  z-index: 1;
}

.services-visual {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(251, 250, 247, 0.96), rgba(251, 250, 247, 0.9) 48%, rgba(251, 250, 247, 0.82)),
    url("img/steel-beams-drawings.webp") center / cover no-repeat;
}

.services-visual > .wrap {
  position: relative;
  z-index: 1;
}

.section.blueprint {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(234, 240, 246, 0.92), rgba(234, 240, 246, 0.92)),
    linear-gradient(90deg, rgba(37, 49, 63, 0.1) 1px, transparent 1px),
    linear-gradient(rgba(37, 49, 63, 0.1) 1px, transparent 1px);
  background-size: auto, 38px 38px, 38px 38px;
}

.section.blueprint::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 44%;
  width: min(1960px, 146vw);
  aspect-ratio: 3.24;
  background: url("img/american-iron-eagle-mark.svg") center / contain no-repeat;
  opacity: 0.095;
  mix-blend-mode: multiply;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.section.blueprint > .wrap {
  position: relative;
  z-index: 1;
}

.section.blueprint .section-title {
  position: relative;
  z-index: 1;
  margin-bottom: 44px;
}

.deliverable-cards {
  position: relative;
  z-index: 1;
  gap: 34px;
}

.deliverable-cards .card {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.deliverable-cards .card.pad {
  padding: 0;
}

.deliverable-cards .icon {
  margin-bottom: 16px;
  background: rgba(179, 31, 42, 0.09);
}

.deliverable-cards h3 {
  max-width: 280px;
}

.deliverable-cards p {
  max-width: 360px;
}

.section-title {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.55fr);
  align-items: end;
  gap: 40px;
  margin-bottom: 38px;
}

.section-title h2,
.page-hero h1,
.standalone-heading {
  font-size: clamp(2.25rem, 5vw, 4.5rem);
}

.standalone-heading {
  margin: 0 0 18px;
  font-family: "Fjalla One", Impact, sans-serif;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}

.section-title > p {
  margin: 0;
  color: var(--muted);
}

.dark .section-title > p,
.steel .section-title > p {
  color: #d4dde5;
}

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

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

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 8px 26px rgba(16, 24, 32, 0.06);
}

.card.pad {
  padding: 26px;
}

.dark .card,
.steel .card {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

.icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: var(--radius);
  background: rgba(179, 31, 42, 0.1);
  color: var(--beam);
}

.dark .icon,
.steel .icon {
  background: rgba(179, 31, 42, 0.18);
  color: var(--white);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  line-height: 1.2;
}

.card p,
.card li {
  color: var(--muted);
}

.dark .card p,
.dark .card li,
.steel .card p,
.steel .card li {
  color: #dce4ea;
}

.card p {
  margin: 0;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.service-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(16, 24, 32, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.64);
  font-weight: 700;
}

.project-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.project-experience-section::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(1040px, 72vw);
  aspect-ratio: 995 / 631;
  background: url("img/usa-outline-blue.png") center / contain no-repeat;
  opacity: 0.24;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.project-experience-section > .wrap {
  position: relative;
  z-index: 1;
}

.project-card {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.project-card strong {
  display: block;
  color: var(--patriot-red);
  font-family: "Fjalla One", Impact, sans-serif;
  font-size: 2.5rem;
  font-weight: 400;
  line-height: 1;
}

.project-card strong.project-card-wide {
  font-size: 1.72rem;
}

.project-card h3 {
  margin: 18px 0 8px;
  color: white;
  font-size: 1.1rem;
  line-height: 1.15;
}

.project-card p {
  margin: 0;
  color: #dce4ea;
}

.media-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.7fr);
  gap: 42px;
  align-items: center;
}

.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  min-height: 420px;
  box-shadow: var(--shadow);
}

.media-frame img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.image-callout {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.image-callout img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.callout {
  padding: 24px;
  border-left: 5px solid var(--beam);
  background: var(--white);
}

.process {
  counter-reset: process;
  display: grid;
  gap: 12px;
}

.process-step {
  counter-increment: process;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.process-step::before {
  content: counter(process, decimal-leading-zero);
  font-family: "Fjalla One", Impact, sans-serif;
  color: var(--beam);
  font-size: 1.8rem;
  line-height: 1;
}

.process-step h3 {
  margin: 0 0 6px;
  color: var(--ink);
}

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

.quote-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 34px;
  border-radius: var(--radius);
  background: var(--ink);
  color: white;
}

.quote-panel h2 {
  margin: 0;
  font-family: "Fjalla One", Impact, sans-serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}

.quote-panel p {
  margin: 12px 0 0;
  color: #dce4ea;
}

.page-hero {
  padding: 88px 0 54px;
  background: var(--ink);
  color: white;
}

.page-hero p {
  max-width: 760px;
  color: #dce4ea;
  font-size: 1.18rem;
}

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

.form-field {
  display: grid;
  gap: 7px;
}

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

label {
  color: var(--steel);
  font-weight: 800;
  font-size: 0.95rem;
}

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

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 14px;
  background: white;
  color: var(--ink);
  font: inherit;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.upload-dropzone {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 150px;
  padding: 24px;
  border: 2px dashed rgba(37, 49, 63, 0.26);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(234, 240, 246, 0.72), rgba(255, 255, 255, 0.84));
  color: var(--steel);
  text-align: center;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.upload-dropzone:hover,
.upload-dropzone.drag-over {
  border-color: var(--beam);
  background:
    linear-gradient(135deg, rgba(201, 31, 47, 0.08), rgba(255, 255, 255, 0.92));
  transform: translateY(-1px);
}

.upload-dropzone strong {
  color: var(--ink);
  font-size: 1.05rem;
}

.upload-dropzone span:last-child {
  max-width: 390px;
  color: var(--muted);
  font-weight: 600;
}

.upload-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(179, 31, 42, 0.1);
  color: var(--beam);
}

.file-list {
  color: var(--muted);
  font-size: 0.95rem;
}

.file-list ul {
  display: grid;
  gap: 4px;
  padding: 0;
  margin: 4px 0 0;
  list-style: none;
}

.file-list li {
  color: var(--steel);
  font-weight: 700;
}

.form-status {
  min-height: 1.5em;
  margin: 18px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.form-status.success {
  color: #126b3f;
}

.form-status.error {
  color: var(--beam);
}

.team-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.team-showcase {
  position: relative;
  overflow: hidden;
  background: url("img/flag-field-no-logo.png") center 18% / cover no-repeat;
}

.team-showcase > .wrap {
  position: relative;
  z-index: 1;
}

.team-card {
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(360px, 1fr) auto;
  padding: 0;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background: var(--steel);
  color: white;
}

.team-card img {
  position: relative;
  width: 100%;
  height: 430px;
  object-fit: cover;
  object-position: center top;
}

.team-card::after {
  content: none;
}

.team-card-content {
  position: relative;
  z-index: 1;
  padding: 18px 24px 22px;
  background:
    linear-gradient(180deg, rgba(16, 24, 32, 0.72), var(--ink) 34%),
    var(--ink);
}

.team-card h3,
.team-card p {
  margin: 0;
}

.team-card p {
  color: #dce4ea;
}

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

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}

.faq summary {
  cursor: pointer;
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 900;
}

.faq p,
.faq ul {
  max-width: 900px;
  color: var(--muted);
}

.site-footer {
  position: relative;
  overflow: hidden;
  padding: 54px 0 28px;
  background:
    linear-gradient(90deg, rgba(11, 17, 24, 0.84), rgba(11, 17, 24, 0.74)),
    url("img/american-flag-top.webp") top center / cover no-repeat;
  color: white;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 17, 24, 0.08), rgba(11, 17, 24, 0.82) 88%);
  pointer-events: none;
}

.site-footer > .wrap {
  position: relative;
  z-index: 1;
}

.footer-brand img {
  width: min(290px, 72vw);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(360px, 1fr);
  gap: 34px;
  align-items: start;
}

.footer-side {
  display: grid;
  justify-items: end;
  gap: 28px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 18px;
}

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

.footer-credentials {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
}

.footer-credential {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 82px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.footer-credential-aisc {
  gap: 12px;
}

.footer-credential-aisc img {
  max-width: 118px;
  max-height: 64px;
  object-fit: contain;
}

.footer-credential-bbb {
  background: transparent;
  padding: 0;
}

.footer-credential-bbb img {
  max-width: 188px;
  max-height: 76px;
  object-fit: contain;
}

.footer-bottom {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: #aab6c2;
  font-size: 0.94rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms ease;
}

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

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 44px;
  align-items: start;
}

.article-body {
  max-width: 760px;
}

.article-body h2 {
  margin: 42px 0 10px;
  font-size: 1.6rem;
  line-height: 1.2;
}

.article-body p {
  color: var(--steel);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
  color: #dce4ea;
  font-weight: 700;
}

.patriot-strip {
  position: relative;
  overflow: hidden;
  border-top: 5px solid var(--beam);
  background:
    linear-gradient(180deg, rgba(251, 250, 247, 0.66), rgba(251, 250, 247, 0.82) 44%, rgba(251, 250, 247, 0.92)),
    linear-gradient(90deg, rgba(179, 31, 42, 0.26), rgba(255, 255, 255, 0.7), rgba(37, 49, 63, 0.22)),
    url("img/american-flag-top.webp") top center / cover no-repeat;
}

.patriot-strip > .wrap {
  position: relative;
  z-index: 1;
}

.side-note {
  position: sticky;
  top: 112px;
}

@media (max-width: 1180px) {
  .hero h1 {
    font-size: 4.8rem;
  }
}

@media (max-width: 900px) {
  .topbar {
    display: none;
  }

  .nav-inner {
    min-height: 72px;
  }

  .brand img {
    width: 118px;
  }

  .menu-button {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    inset: 72px 20px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
  }

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

  .section-title,
  .media-band,
  .story-panel,
  .software-panel,
  .quote-panel,
  .footer-grid,
  .credential-panel,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .side-note {
    position: static;
  }

  .grid-3,
  .grid-2,
  .project-board,
  .team-list,
  .credential-logos,
  .software-logos {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero h1 {
    font-size: 4.2rem;
  }

  .hero-content {
    padding: 76px 0 92px;
  }

  .hero-stats,
  .service-list,
  .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .wrap {
    width: min(100% - 28px, 1180px);
  }

  body {
    font-size: 16px;
  }

  .hero h1 {
    font-size: 3.2rem;
  }

  .section {
    padding: 68px 0;
  }

  .button {
    width: 100%;
  }
}


/* Linked cards (service cross-links) keep the clean card look */
a.card {
  text-decoration: none;
  color: inherit;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

a.card:hover {
  border-color: var(--beam);
  box-shadow: 0 10px 26px rgba(16, 24, 32, 0.10);
  transform: translateY(-2px);
}


/* Sticky-header call button: reveals the phone number when the contact bar scrolls away */
.nav-links { margin-left: auto; }

.header-call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 0;
  margin-left: 0;
  padding: 9px 0;
  overflow: hidden;
  opacity: 0;
  border-radius: 999px;
  background: var(--beam);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  pointer-events: none;
  transition: max-width 340ms ease, opacity 240ms ease, padding 340ms ease, margin 340ms ease;
}

.header-call i,
.header-call svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  stroke-width: 2.25;
}

.header-call:hover { background: var(--beam-dark); }

.site-header.scrolled .header-call {
  max-width: 240px;
  margin-left: 14px;
  padding: 9px 15px;
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 1024px) {
  .header-call span { display: none; }
  .site-header.scrolled .header-call {
    max-width: 44px;
    margin-left: 12px;
    padding: 10px;
  }
}

@media (max-width: 900px) {
  .menu-button { margin-left: auto; }
}


/* AI chat widget */
.ai-chat { position: fixed; right: 20px; bottom: 20px; z-index: 60; }

.ai-chat-toggle {
  display: inline-flex; align-items: center; gap: 9px;
  height: 54px; padding: 0 20px 0 18px;
  border: 0; border-radius: 999px;
  background: var(--beam); color: #fff;
  font: inherit; font-weight: 800; font-size: 1rem;
  cursor: pointer; box-shadow: 0 12px 30px rgba(16, 24, 32, 0.28);
  transition: transform 160ms ease, background 160ms ease;
}
.ai-chat-toggle:hover { background: var(--beam-dark); transform: translateY(-2px); }
.ai-chat-toggle svg, .ai-chat-toggle i { width: 22px; height: 22px; }

.ai-chat-panel {
  position: absolute; right: 0; bottom: 68px;
  width: min(380px, calc(100vw - 32px));
  height: min(560px, calc(100vh - 120px));
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 24px 60px rgba(16, 24, 32, 0.30); overflow: hidden;
}
.ai-chat-panel[hidden] { display: none; }

.ai-chat-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: var(--ink); color: #fff; }
.ai-chat-head strong { display: block; font-size: 1.02rem; }
.ai-chat-head span { color: #b9c4cf; font-size: 0.82rem; }
.ai-chat-close { border: 0; background: transparent; color: #cdd6de; font-size: 1.5rem; line-height: 1; cursor: pointer; padding: 0 4px; }
.ai-chat-close:hover { color: #fff; }

.ai-chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--paper); }
.ai-chat-msg { max-width: 86%; padding: 10px 13px; border-radius: 12px; font-size: 0.95rem; line-height: 1.45; white-space: pre-wrap; }
.ai-chat-msg.bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); color: var(--ink); }
.ai-chat-msg.user { align-self: flex-end; background: var(--beam); color: #fff; }
.ai-chat-msg.typing { color: var(--muted); font-style: italic; }

.ai-chat-actions { display: flex; gap: 8px; padding: 10px 12px 0; }
.ai-chat-actions a { flex: 1; text-align: center; padding: 9px 10px; border-radius: 8px; font-size: 0.85rem; font-weight: 800; text-decoration: none; }
.ai-chat-actions a.primary { background: var(--beam); color: #fff; }
.ai-chat-actions a.ghost { border: 1px solid var(--line); color: var(--ink); }

.ai-chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: #fff; }
.ai-chat-form input { flex: 1; min-height: 42px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.ai-chat-form button { min-height: 42px; padding: 0 16px; border: 0; border-radius: 8px; background: var(--ink); color: #fff; font-weight: 800; cursor: pointer; }
.ai-chat-form button:disabled { opacity: 0.5; cursor: default; }

@media (max-width: 560px) {
  .ai-chat { right: 14px; bottom: 14px; }
  .ai-chat-toggle span { display: none; }
  .ai-chat-toggle { padding: 0; width: 54px; justify-content: center; }
}


.ai-chat-brand { display: flex; flex-direction: column; gap: 5px; }
.ai-chat-brand img { height: 26px; width: auto; }
