:root {
  --ink: #121820;
  --muted: #526071;
  --line: #d9dee6;
  --paper: #f7f8fa;
  --panel: #ffffff;
  --navy: #001f3f;
  --navy-deep: #000613;
  --blue: #476083;
  --ice: #d4e3ff;
  --orange: #b02f00;
  --orange-bright: #ff5722;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(0, 31, 63, 0.12);
  font-family: Inter, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 248, 250, 0.92);
  border-bottom: 1px solid rgba(0, 31, 63, 0.12);
  backdrop-filter: blur(14px);
}

.nav {
  width: min(1180px, calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-family: Manrope, Inter, sans-serif;
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--navy);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #26384f;
}

.nav-links a {
  padding: 26px 0 22px;
  border-bottom: 3px solid transparent;
}

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

.nav-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  background: var(--orange);
  color: var(--white);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero {
  position: relative;
  min-height: 760px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background: var(--navy-deep);
}

.hero.hero-light {
  background: var(--paper);
  color: var(--ink);
}

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

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  filter: grayscale(0.35);
}

.hero-light .hero-media {
  left: 46%;
}

.hero-light .hero-media img {
  opacity: 0.9;
  mix-blend-mode: multiply;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(0, 6, 19, 0.94), rgba(0, 31, 63, 0.72), rgba(0, 31, 63, 0.18));
}

.hero-light::before {
  background: linear-gradient(90deg, rgba(247, 248, 250, 1) 0%, rgba(247, 248, 250, 0.95) 42%, rgba(247, 248, 250, 0.25) 75%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  color: var(--orange-bright);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 42px;
  height: 2px;
  background: currentColor;
}

h1,
h2,
h3,
h4 {
  font-family: Manrope, Inter, sans-serif;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  margin: 0 0 28px;
  font-size: clamp(3rem, 7vw, 5.9rem);
  font-weight: 900;
}

h1 span {
  color: var(--ice);
}

.hero-light h1 span {
  color: var(--orange);
}

.lead {
  max-width: 680px;
  margin: 0 0 34px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.14rem;
}

.hero-light .lead {
  color: var(--muted);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid transparent;
  background: var(--orange);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
}

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

.section {
  padding: 96px 0;
}

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

.section.soft {
  background: #edf0f4;
}

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

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
  margin-bottom: 44px;
}

.section-head h2,
.narrow h2 {
  margin: 0;
  max-width: 720px;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
}

.dark .section-head h2,
.dark .narrow h2 {
  color: var(--white);
}

.section-head p,
.narrow p {
  max-width: 560px;
  margin: 14px 0 0;
  color: var(--muted);
}

.dark .section-head p,
.dark .narrow p {
  color: rgba(255, 255, 255, 0.72);
}

.rule {
  width: 130px;
  height: 2px;
  background: var(--line);
}

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

.value-card,
.feature-card,
.metric-card {
  background: var(--panel);
  padding: 34px;
}

.value-card {
  border-bottom: 4px solid rgba(176, 47, 0, 0.14);
}

.value-card.featured {
  border-bottom-color: var(--orange);
}

.kicker {
  display: block;
  margin-bottom: 16px;
  color: var(--orange);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.value-card h3,
.feature-card h3,
.metric-card h3 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 1.35rem;
  font-weight: 900;
}

.value-card p,
.feature-card p,
.metric-card p {
  margin: 0;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}

.split.reverse {
  grid-template-columns: 1.1fr 0.9fr;
}

.media-frame {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  background: #dfe4ea;
  box-shadow: var(--shadow);
}

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

.steps {
  display: grid;
  gap: 24px;
  margin-top: 28px;
}

.step {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: var(--navy);
  color: var(--white);
  font-family: Manrope, Inter, sans-serif;
  font-weight: 900;
}

.step h3 {
  margin: 0 0 6px;
  color: var(--navy);
  font-size: 1rem;
  font-weight: 900;
  text-transform: uppercase;
}

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

.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(210px, auto);
  gap: 18px;
}

.feature-card {
  min-height: 220px;
  border: 1px solid var(--line);
}

.feature-card.large {
  grid-column: span 8;
  grid-row: span 2;
}

.feature-card.small {
  grid-column: span 4;
}

.feature-card.dark-card {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.feature-card.dark-card h3,
.feature-card.dark-card p {
  color: var(--white);
}

.viz {
  position: relative;
  margin-top: 30px;
  min-height: 250px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(71, 96, 131, 0.25) 1px, transparent 1px),
    linear-gradient(rgba(71, 96, 131, 0.25) 1px, transparent 1px),
    #101926;
  background-size: 32px 32px;
}

.viz::after {
  content: "Digital Twin";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #adc7ff;
  font-family: Manrope, Inter, sans-serif;
  font-size: 2rem;
  font-weight: 900;
}

.application-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 18px;
}

.application {
  position: relative;
  min-height: 380px;
  overflow: hidden;
  background: #0b1118;
}

.application img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  opacity: 0.58;
  transition: transform 0.5s ease;
}

.application:hover img {
  transform: scale(1.04);
}

.application-copy {
  position: absolute;
  inset: auto 0 0;
  padding: 34px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), transparent);
}

.application-copy h3 {
  margin: 0 0 8px;
  color: var(--white);
  font-size: 1.6rem;
  font-weight: 900;
}

.application-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.spec-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.spec {
  background: var(--panel);
  padding: 26px;
}

.spec span {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.spec strong {
  display: block;
  margin-top: 8px;
  color: var(--navy);
  font-family: Manrope, Inter, sans-serif;
  font-size: 1.35rem;
  font-weight: 900;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.metric-card strong {
  display: block;
  color: var(--orange);
  font-family: Manrope, Inter, sans-serif;
  font-size: 2.2rem;
  font-weight: 900;
}

.footer {
  padding: 54px 0;
  background: #071326;
  color: rgba(255, 255, 255, 0.74);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 34px;
}

.footer strong {
  display: block;
  margin-bottom: 16px;
  color: var(--white);
  font-family: Manrope, Inter, sans-serif;
  font-size: 1.35rem;
  font-weight: 900;
}

.footer h4 {
  margin: 0 0 14px;
  color: var(--orange-bright);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer p,
.footer a {
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.92rem;
}

.footer a {
  display: block;
  margin: 9px 0;
}

.copyright {
  margin-top: 38px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.86rem;
}

@media (max-width: 860px) {
  .nav {
    flex-wrap: wrap;
    padding: 14px 0;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    overflow-x: auto;
  }

  .nav-links a {
    padding: 8px 0;
    white-space: nowrap;
  }

  .nav-action {
    min-height: 36px;
    padding: 0 12px;
  }

  .hero,
  .hero.hero-light {
    min-height: 680px;
  }

  .hero-light .hero-media {
    left: 0;
  }

  .hero-light::before {
    background: linear-gradient(90deg, rgba(247, 248, 250, 0.96), rgba(247, 248, 250, 0.7));
  }

  .section-head,
  .split,
  .split.reverse,
  .application-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: block;
  }

  .rule {
    display: none;
  }

  .grid-3,
  .spec-strip,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .bento {
    display: block;
  }

  .feature-card {
    margin-bottom: 18px;
  }
}

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

  .brand {
    font-size: 1.05rem;
  }

  .nav-action {
    display: none;
  }

  h1 {
    font-size: 2.65rem;
  }

  .section {
    padding: 70px 0;
  }

  .value-card,
  .feature-card,
  .metric-card {
    padding: 26px;
  }
}

/* ---------------------------------------------------------------------------
   Launch additions: skip link, text wordmark, mobile nav, contact form,
   footer, accessibility. Appended rules intentionally override earlier ones.
   --------------------------------------------------------------------------- */

/* Skip to content */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 18px;
  background: var(--navy);
  color: var(--white);
  font-weight: 800;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* Brand wordmark (text logo) */
.nav {
  position: relative;
}
.brand {
  display: inline-flex;
  align-items: center;
}
.brand-text {
  font-family: Manrope, Inter, sans-serif;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
}
.brand-text span {
  color: var(--blue);
  font-weight: 700;
}

/* Desktop nav menu wrapper */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

/* Hamburger toggle (hidden on desktop) */
.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2.5px;
  background: var(--navy);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle-bars {
  top: 21px;
}
.nav-toggle-bars::before {
  top: -7px;
}
.nav-toggle-bars::after {
  top: 7px;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars {
  background: transparent;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  transform: translateY(-7px) rotate(-45deg);
}

/* Picture wrappers behave like the images they hold */
picture {
  display: block;
}
.hero-media picture,
.media-frame picture,
.application picture {
  width: 100%;
  height: 100%;
}

/* Contact section + form */
.contact-split {
  align-items: start;
}
.contact-intro h2 {
  color: var(--navy);
}
.contact-points {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.contact-points li {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.contact-label {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
}
.contact-points a {
  color: var(--navy);
  font-weight: 700;
}
.contact-form {
  display: grid;
  gap: 18px;
  padding: 34px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.field {
  display: grid;
  gap: 7px;
}
.field label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--navy);
}
.req {
  color: var(--orange);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #fbfcfd;
  color: var(--ink);
  font: inherit;
}
.contact-form textarea {
  resize: vertical;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(176, 47, 0, 0.12);
}
.contact-form .button {
  justify-self: start;
  border: none;
  cursor: pointer;
}
.contact-form .button[disabled] {
  opacity: 0.6;
  cursor: progress;
}
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.form-note {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}
.form-note a {
  color: var(--orange);
  text-decoration: underline;
}
.form-status {
  margin: 0;
  font-weight: 700;
  min-height: 1.2em;
}
.form-status.is-success {
  color: #1b7a3d;
}
.form-status.is-error {
  color: var(--orange);
}

/* Technology spec CTA */
.spec-cta {
  margin-top: 24px;
}

/* Footer bottom row */
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
  margin-top: 38px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-bottom .copyright {
  margin: 0;
  padding: 0;
  border: none;
}
.footer-legal a {
  display: inline;
  margin: 0;
}
.footer-legal a:hover {
  color: var(--white);
}

/* Visible keyboard focus */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--orange-bright);
  outline-offset: 2px;
}

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

/* Mobile navigation (overrides the earlier 860px block) */
@media (max-width: 860px) {
  .nav {
    flex-wrap: nowrap;
    padding: 0;
  }
  .nav-toggle {
    display: block;
  }
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .nav.is-open .nav-menu {
    display: flex;
  }
  .nav-links {
    order: 0;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    overflow: visible;
  }
  .nav-links a {
    padding: 14px 20px;
    border-bottom: none;
  }
  .nav-links a:hover,
  .nav-links a.active {
    border-bottom: none;
    background: rgba(0, 31, 63, 0.05);
  }
  .nav-action {
    margin: 12px 20px 8px;
    min-height: 48px;
  }
}

/* Small screens (overrides the earlier 560px block) */
@media (max-width: 560px) {
  .nav-action {
    display: inline-flex;
  }
  .contact-form {
    padding: 24px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Legal / prose pages */
.prose {
  max-width: 760px;
}
.prose h1 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: clamp(2.2rem, 4vw, 3rem);
}
.prose .updated {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 0.9rem;
}
.prose h2 {
  margin: 34px 0 10px;
  color: var(--navy);
  font-size: 1.4rem;
}
.prose p,
.prose li {
  color: var(--ink);
}
.prose ul {
  padding-left: 20px;
  display: grid;
  gap: 6px;
}
.prose a {
  color: var(--orange);
  text-decoration: underline;
}

/* Centered minimal page (404) */
.center-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
}
.center-page .container {
  text-align: center;
}
.center-page h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(3rem, 10vw, 6rem);
}
.center-page p {
  margin: 12px 0 28px;
  color: var(--muted);
}

/* Secondary button: light-friendly by default, white variant only on dark heroes */
.button.secondary {
  border-color: var(--line);
  color: var(--navy);
  background: var(--white);
}
.hero:not(.hero-light) .button.secondary {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}
