:root {
  --navy: #071629;
  --navy-2: #0d213b;
  --primary: #072ac8;
  --primary-dark: #041f96;
  --slate: #4b5b6f;
  --slate-2: #718096;
  --line: #dbe3ee;
  --soft: #f5f8fc;
  --white: #ffffff;
  --cyan: #1fb6d9;
  --blue: var(--primary);
  --green: #24b47e;
  --shadow: 0 18px 50px rgba(7, 22, 41, 0.12);
  --radius: 8px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--white);
  color: var(--navy);
  border: 1px solid var(--line);
}

.skip-link:focus {
  left: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(219, 227, 238, 0.82);
  backdrop-filter: blur(16px);
}

.nav {
  width: min(100% - 32px, var(--max));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 152px;
}

.brand-logo {
  width: 100%;
  height: auto;
  display: block;
}

.nav-toggle {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  width: 20px;
  height: 2px;
  display: block;
  background: currentColor;
  content: "";
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle span::before {
  transform: translateY(-7px);
}

.nav-toggle span::after {
  transform: translateY(5px);
}

.nav-toggle[aria-expanded="true"] span {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] span::before {
  background: var(--navy);
  transform: translateY(2px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span::after {
  background: var(--navy);
  transform: translateY(0) rotate(-45deg);
}

.nav-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: 72px;
  display: none;
  padding: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 0;
  border-right: 0;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow);
}

.nav-menu.is-open {
  display: block;
}

.nav-menu a {
  display: block;
  padding: 12px;
  border-radius: 6px;
  color: var(--slate);
  font-weight: 650;
}

.nav-menu a:hover,
.nav-menu a:focus {
  color: var(--navy);
  background: var(--soft);
}

.nav-menu a.btn-primary,
.nav-menu a.btn-primary:hover,
.nav-menu a.btn-primary:focus {
  color: var(--white);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 12px 24px rgba(7, 42, 200, 0.24);
}

.nav-menu a.btn-primary {
  margin-top: 4px;
  padding: 14px 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 750;
  line-height: 1.1;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: var(--white);
  background: var(--primary);
  box-shadow: 0 12px 26px rgba(7, 42, 200, 0.22);
}

.btn-secondary {
  color: var(--navy);
  background: var(--white);
  border-color: var(--line);
}

.section {
  padding: 76px 0;
}

.container {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--navy);
  line-height: 1.1;
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  font-size: clamp(2.5rem, 7vw, 5.6rem);
}

h2 {
  font-size: clamp(2rem, 5vw, 3.35rem);
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0;
  color: var(--slate);
}

.lead {
  max-width: 680px;
  margin-top: 20px;
  font-size: 1.08rem;
}

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.82) 52%, rgba(255,255,255,0.48) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1500' height='900' viewBox='0 0 1500 900'%3E%3Crect width='1500' height='900' fill='%23071629'/%3E%3Cg opacity='.82'%3E%3Crect x='855' y='120' width='380' height='240' rx='20' fill='%23ffffff' opacity='.13'/%3E%3Crect x='905' y='178' width='210' height='14' rx='7' fill='%231fb6d9'/%3E%3Crect x='905' y='222' width='270' height='12' rx='6' fill='%23dbe3ee' opacity='.55'/%3E%3Crect x='905' y='260' width='150' height='12' rx='6' fill='%23dbe3ee' opacity='.38'/%3E%3Crect x='770' y='430' width='500' height='290' rx='24' fill='%23ffffff' opacity='.11'/%3E%3Cpath d='M835 635 C900 520 990 690 1070 555 S1195 590 1220 500' fill='none' stroke='%2324b47e' stroke-width='11' stroke-linecap='round'/%3E%3Ccircle cx='835' cy='635' r='13' fill='%2324b47e'/%3E%3Ccircle cx='1070' cy='555' r='13' fill='%231fb6d9'/%3E%3Ccircle cx='1220' cy='500' r='13' fill='%232f6feb'/%3E%3Crect x='1165' y='210' width='190' height='340' rx='28' fill='%23ffffff' opacity='.16'/%3E%3Crect x='1200' y='268' width='118' height='10' rx='5' fill='%23ffffff' opacity='.72'/%3E%3Crect x='1200' y='306' width='88' height='10' rx='5' fill='%23ffffff' opacity='.36'/%3E%3Crect x='1200' y='380' width='118' height='92' rx='14' fill='%231fb6d9' opacity='.7'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
}

.hero-inner {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 66px 0 88px;
}

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

.hero-stats {
  display: grid;
  gap: 12px;
  margin-top: 46px;
}

.stat {
  padding: 18px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.stat strong {
  display: block;
  color: var(--navy);
  font-size: 1.45rem;
  line-height: 1;
}

.stat span {
  color: var(--slate);
  font-size: 0.92rem;
}

.section-head {
  max-width: 760px;
  margin-bottom: 34px;
}

.grid {
  display: grid;
  gap: 18px;
}

.card {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(7, 22, 41, 0.06);
}

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

.icon {
  width: 46px;
  height: 46px;
  margin-bottom: 20px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--primary);
  border-radius: 8px;
  font-weight: 850;
}

.card p,
.card ul {
  margin-top: 12px;
}

.card ul,
.legal-content ul {
  padding-left: 20px;
  color: var(--slate);
}

.band {
  background: var(--soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.portfolio-card {
  position: relative;
  overflow: hidden;
  display: block;
  height: 100%;
  color: inherit;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

a.portfolio-card:hover,
a.portfolio-card:focus {
  border-color: rgba(7, 42, 200, 0.45);
  box-shadow: 0 16px 34px rgba(7, 42, 200, 0.14);
  transform: translateY(-2px);
}

a.portfolio-card:focus {
  outline: 3px solid rgba(7, 42, 200, 0.2);
  outline-offset: 3px;
}

.portfolio-card::before {
  content: "";
  display: block;
  height: 8px;
  margin: -24px -24px 22px;
  background: var(--blue);
}

.portfolio-card:nth-child(2)::before {
  background: var(--green);
}

.portfolio-card:nth-child(3)::before {
  background: var(--cyan);
}

.portfolio-card:nth-child(4)::before {
  background: var(--primary-dark);
}

.portfolio-card:nth-child(5)::before {
  background: var(--slate);
}

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

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

.feature span,
.process-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 30px;
  margin-bottom: 14px;
  padding: 0 10px;
  color: var(--primary);
  background: rgba(7, 42, 200, 0.08);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.feature p {
  margin-top: 10px;
}

.process-list {
  display: grid;
  gap: 14px;
}

.process-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(7, 22, 41, 0.05);
}

.process-step span {
  margin-bottom: 0;
}

.process-step p {
  margin-top: 8px;
}

.industry-grid {
  gap: 12px;
}

.industry-item {
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.industry-item p {
  margin-top: 8px;
}

.cta-section {
  padding-top: 0;
}

.cta-panel {
  display: grid;
  gap: 24px;
  align-items: center;
  padding: 34px;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary), var(--navy));
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(7, 42, 200, 0.22);
}

.cta-panel h2,
.cta-panel p,
.cta-panel .eyebrow {
  color: var(--white);
}

.cta-panel .lead {
  max-width: 760px;
  opacity: 0.86;
}

.cta-panel .btn-primary {
  color: var(--primary);
  background: var(--white);
  box-shadow: none;
}

.split {
  display: grid;
  gap: 32px;
  align-items: start;
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline-item {
  padding-left: 18px;
  border-left: 3px solid var(--blue);
}

.values {
  display: grid;
  gap: 14px;
}

.contact-wrap {
  display: grid;
  gap: 28px;
}

.contact-form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--navy);
  font-weight: 700;
}

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

select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--slate) 50%),
    linear-gradient(135deg, var(--slate) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 50%,
    calc(100% - 14px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

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

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(7, 42, 200, 0.18);
  border-color: var(--blue);
}

.form-note {
  min-height: 24px;
  color: var(--green);
  font-weight: 700;
}

.form-note.is-error {
  color: #b42318;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.page-hero {
  padding: 82px 0 54px;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}

.legal-layout {
  display: grid;
  gap: 26px;
}

.legal-content {
  max-width: 850px;
}

.legal-content h2 {
  margin-top: 34px;
  font-size: 1.55rem;
}

.legal-content p,
.legal-content ul {
  margin-top: 12px;
}

.site-footer {
  padding: 46px 0 28px;
  color: rgba(255, 255, 255, 0.82);
  background: var(--navy);
}

.site-footer .brand {
  width: 168px;
  padding: 7px 10px;
  background: var(--white);
  border-radius: 8px;
}

.footer-grid {
  display: grid;
  gap: 26px;
}

.site-footer p,
.site-footer a {
  color: rgba(255, 255, 255, 0.78);
}

.site-footer a:hover,
.site-footer a:focus {
  color: var(--white);
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-bottom {
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.9rem;
}

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

.hero .reveal,
#portfolio .reveal,
.page-hero .reveal,
.contact-wrap .reveal,
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (min-width: 720px) {
  .hero-stats,
  .services-grid,
  .portfolio-grid,
  .values,
  .feature-grid,
  .industry-grid,
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact-wrap,
  .split {
    grid-template-columns: 1fr 1fr;
  }

  .cta-panel {
    grid-template-columns: 1fr auto;
  }
}

@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }

  .nav-menu {
    position: static;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .nav-menu a {
    padding: 10px 11px;
    font-size: 0.95rem;
  }

  .nav-menu .btn {
    margin-left: 8px;
    padding: 11px 16px;
    color: var(--white);
  }
}
