:root {
  --navy: #0f2a44;
  --navy-2: #173a5b;
  --orange: #ee7a2f;
  --orange-2: #d85f1b;
  --ink: #172332;
  --muted: #607083;
  --line: #d8e1ea;
  --paper: #fbfaf7;
  --white: #ffffff;
  --blue-soft: #eaf1f7;
  --orange-soft: #fff0e7;
  --shadow: 0 20px 60px rgba(15, 42, 68, 0.12);
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 56px);
  color: var(--navy);
  transition: background 180ms ease, box-shadow 180ms ease, padding 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(251, 250, 247, 0.94);
  box-shadow: 0 10px 30px rgba(15, 42, 68, 0.08);
  backdrop-filter: blur(18px);
}

.site-header.is-scrolled {
  padding-block: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 760;
  letter-spacing: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 12px 24px rgba(15, 42, 68, 0.2);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(15, 42, 68, 0.82);
  font-size: 0.94rem;
  font-weight: 650;
}

.site-nav a {
  border-radius: 8px;
  padding: 10px 12px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--navy);
  background: rgba(15, 42, 68, 0.07);
}

.site-nav .nav-cta {
  margin-left: 6px;
  color: var(--white);
  background: var(--orange);
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta:focus-visible {
  color: var(--white);
  background: var(--orange-2);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(15, 42, 68, 0.15);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--navy);
}

.hero {
  position: relative;
  min-height: 86svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--blue-soft);
}

.hero-media {
  position: absolute;
  inset: 0;
  background-image: url("assets/applied-edge-systems-dashboard.png");
  background-position: center;
  background-size: cover;
  transform: scale(1.01);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(251, 250, 247, 0.98) 0%, rgba(251, 250, 247, 0.88) 34%, rgba(251, 250, 247, 0.42) 58%, rgba(251, 250, 247, 0.04) 100%),
    linear-gradient(0deg, rgba(251, 250, 247, 0.98) 0%, rgba(251, 250, 247, 0.2) 28%);
}

.hero-content {
  position: relative;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 132px 0 92px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--orange-2);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 650px;
  margin-bottom: 12px;
  color: var(--navy);
  font-size: clamp(4rem, 9vw, 8.5rem);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  color: var(--navy);
  font-size: 1.14rem;
  line-height: 1.2;
}

.hero-lede {
  max-width: 690px;
  margin-bottom: 18px;
  color: var(--navy);
  font-size: clamp(1.4rem, 2.2vw, 2.05rem);
  line-height: 1.18;
  font-weight: 760;
}

.hero-copy {
  max-width: 610px;
  color: #394b5d;
  font-size: 1.08rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 8px;
  padding: 13px 18px;
  font-weight: 760;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  color: var(--white);
  background: var(--orange);
  box-shadow: 0 14px 28px rgba(238, 122, 47, 0.24);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--orange-2);
}

.button-secondary {
  color: var(--navy);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(15, 42, 68, 0.12);
}

.section,
.section-band {
  padding: clamp(70px, 9vw, 120px) clamp(20px, 4vw, 56px);
}

.section-band {
  background: var(--white);
}

.section-grid,
.section-heading,
.capability-grid,
.service-grid,
.process-list,
.positioning-inner,
.contact-inner {
  width: min(var(--max), 100%);
  margin-inline: auto;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(34px, 7vw, 88px);
  align-items: start;
}

.intro-copy {
  color: var(--muted);
  font-size: 1.05rem;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 58px;
}

.capability-grid article,
.service-card,
.process-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.capability-grid article {
  padding: 26px;
  min-height: 230px;
}

.tile-number {
  display: inline-block;
  margin-bottom: 34px;
  color: var(--orange-2);
  font-weight: 850;
}

.capability-grid p,
.service-card p,
.process-list p {
  color: var(--muted);
}

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

.section-heading.compact {
  margin-bottom: 34px;
}

.section-heading > p:last-child {
  color: var(--muted);
  font-size: 1.05rem;
}

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

.service-card {
  display: flex;
  flex-direction: column;
  min-height: 390px;
  padding: 24px;
  box-shadow: 0 14px 40px rgba(15, 42, 68, 0.04);
}

.service-card-wide {
  grid-column: span 2;
  min-height: auto;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
}

.service-card-wide h3,
.service-card-wide p {
  color: var(--white);
}

.service-card ul {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: auto 0 0;
  list-style: none;
}

.service-card li {
  position: relative;
  padding-left: 18px;
  color: #46586b;
  font-size: 0.95rem;
}

.service-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: var(--orange);
}

.process {
  background: #f1f6fa;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.process-list article {
  min-height: 265px;
  padding: 22px;
}

.process-list span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 28px;
  border-radius: 8px;
  color: var(--white);
  background: var(--navy);
  font-weight: 850;
}

.audience-list {
  display: grid;
  gap: 12px;
}

.audience-list p {
  margin: 0;
  border-left: 4px solid var(--orange);
  padding: 16px 18px;
  color: #405367;
  background: var(--white);
  box-shadow: 0 12px 28px rgba(15, 42, 68, 0.05);
}

.positioning {
  padding: clamp(76px, 9vw, 124px) clamp(20px, 4vw, 56px);
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(15, 42, 68, 0.98), rgba(23, 58, 91, 0.92)),
    radial-gradient(circle at 88% 20%, rgba(238, 122, 47, 0.55), transparent 30%);
}

.positioning h2,
.positioning .eyebrow {
  color: var(--white);
}

.positioning p:last-child {
  max-width: 790px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.14rem;
}

.about {
  background: var(--white);
}

.contact {
  padding: clamp(76px, 10vw, 132px) clamp(20px, 4vw, 56px);
  background: linear-gradient(180deg, var(--paper), #f4f8fb);
}

.contact-inner {
  display: grid;
  justify-items: start;
  max-width: 850px;
}

.contact h2 {
  margin-bottom: 18px;
}

.contact p {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.12rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(20px, 4vw, 56px);
  color: rgba(255, 255, 255, 0.74);
  background: var(--navy);
}

.site-footer p {
  margin: 0;
}

@media (max-width: 1040px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-card {
    min-height: 330px;
  }

  .process-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .site-header {
    padding: 14px 20px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

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

  .site-nav .nav-cta {
    margin-left: 0;
    text-align: center;
  }

  .hero {
    min-height: 88svh;
  }

  .hero-media {
    background-position: 64% center;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(251, 250, 247, 0.99) 0%, rgba(251, 250, 247, 0.94) 52%, rgba(251, 250, 247, 0.38) 100%),
      linear-gradient(0deg, rgba(251, 250, 247, 0.99) 0%, rgba(251, 250, 247, 0.36) 36%);
  }

  .hero-content {
    padding: 118px 0 70px;
  }

  h1 {
    font-size: clamp(3.5rem, 17vw, 5.2rem);
  }

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

  .capability-grid article {
    min-height: auto;
  }

  .process-list {
    grid-template-columns: 1fr;
  }

  .process-list article {
    min-height: auto;
  }
}

@media (max-width: 580px) {
  .brand span:last-child {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

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

  .service-card,
  .service-card-wide {
    grid-column: auto;
    min-height: auto;
  }

  .site-footer {
    flex-direction: column;
  }
}
