/* ===================================================================
   Martin's Integrated Systems
   Navy institutional system. Inter body, Outfit display.
   =================================================================== */

:root {
  --navy: #000344;
  --navy-deep: #05061a;
  --navy-mid: #0b1040;
  --navy-soft: #eef0f8;
  --navy-hover: #0a1468;

  --ink: #0c0d14;
  --ink-foreground: #f5f6fa;
  --ink-muted: #9aa3b5;

  --paper: #f4f5f8;
  --surface: #ffffff;
  --surface-muted: #eef0f4;

  --foreground: #12141c;
  --muted-foreground: #5c6478;

  --primary: #000344;
  --primary-foreground: #f5f6fa;

  --secondary: #eef0f4;
  --secondary-foreground: #12141c;

  --accent: #e8eaf2;
  --border: #e2e5ee;
  --border-strong: #cfd4e0;

  --gold: #c4a35a;
  --danger: #9a3412;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-xl: 16px;
  --radius-2xl: 22px;

  --container: 1200px;
  --pad-x: 24px;

  --nav-h: 76px;

  --display: "Outfit", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --shadow-sm: 0 1px 2px rgba(5, 6, 26, 0.05);
  --shadow-md: 0 12px 32px -18px rgba(5, 6, 26, 0.35);
  --shadow-lg: 0 28px 64px -28px rgba(5, 6, 26, 0.45);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  background: var(--paper);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--foreground);
  font-family: var(--sans);
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

::selection {
  background: var(--navy);
  color: var(--ink-foreground);
}

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

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

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

ul, ol {
  margin: 0;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  background: var(--navy);
  color: var(--ink-foreground);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
}
.skip-link:focus {
  top: 12px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.page {
  min-height: 100vh;
}

/* --------------------------- Icons --------------------------- */
.icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.icon-sm {
  width: 16px;
  height: 16px;
}

.icon-inline-l {
  margin-right: 8px;
}

.icon-inline-r {
  margin-left: 8px;
}

/* --------------------------- Buttons --------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border-radius: 999px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  border: none;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

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

.btn-primary {
  background: var(--navy);
  color: var(--primary-foreground);
  box-shadow: 0 8px 20px -12px rgba(0, 3, 68, 0.7);
}
.btn-primary:hover {
  background: var(--navy-hover);
}

.btn-secondary {
  background: var(--surface);
  color: var(--foreground);
  box-shadow: inset 0 0 0 1px var(--border-strong);
}
.btn-secondary:hover {
  background: var(--navy-soft);
  box-shadow: inset 0 0 0 1px var(--navy);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-foreground);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.btn-on-dark {
  background: #ffffff;
  color: var(--navy);
}
.btn-on-dark:hover {
  background: #eef0f8;
}

.btn-ink {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink-foreground);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}
.btn-ink:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* --------------------------- Nav --------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--nav-h);
  background: linear-gradient(to bottom, rgba(5, 6, 26, 0.72), rgba(5, 6, 26, 0.18) 70%, transparent);
  border-bottom: 0;
  transition: background 0.22s ease, box-shadow 0.22s ease;
}

.nav.is-scrolled,
.nav.is-open,
.nav.nav-solid {
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border), 0 8px 28px -20px rgba(5, 6, 26, 0.45);
}

.nav.is-open {
  height: auto;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand-plate {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  border-radius: 8px;
  padding: 6px 10px 6px 8px;
}

.brand-logo {
  display: block;
  height: 40px;
  width: auto;
  max-width: min(220px, 54vw);
  object-fit: contain;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 28px;
}

.nav-link {
  white-space: nowrap;
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 10px rgba(5, 6, 26, 0.45);
  transition: color 0.18s ease, text-shadow 0.18s ease;
}
.nav-link:hover {
  color: #ffffff;
}

.nav.is-scrolled .nav-link,
.nav.is-open .nav-link,
.nav.nav-solid .nav-link {
  color: var(--muted-foreground);
  text-shadow: none;
}
.nav.is-scrolled .nav-link:hover,
.nav.is-open .nav-link:hover,
.nav.nav-solid .nav-link:hover {
  color: var(--navy);
}

.nav-links .btn-primary {
  padding: 10px 16px;
}

.nav.is-scrolled .nav-links .btn-primary,
.nav.is-open .nav-links .btn-primary,
.nav.nav-solid .nav-links .btn-primary,
.nav.is-scrolled .nav-links .btn-on-dark,
.nav.is-open .nav-links .btn-on-dark,
.nav.nav-solid .nav-links .btn-on-dark {
  background: var(--navy);
  color: var(--ink-foreground);
}
.nav.is-scrolled .nav-links .btn-on-dark:hover,
.nav.is-open .nav-links .btn-on-dark:hover,
.nav.nav-solid .nav-links .btn-on-dark:hover {
  background: var(--navy-hover);
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  min-width: 42px;
  padding: 0;
  margin-left: auto;
  flex-shrink: 0;
  border: none;
  background: #ffffff;
  color: var(--navy);
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(5, 6, 26, 0.22);
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  z-index: 2;
}

.nav.is-scrolled .menu-toggle,
.nav.is-open .menu-toggle,
.nav.nav-solid .menu-toggle {
  background: var(--navy-soft);
  color: var(--navy);
  box-shadow: inset 0 0 0 1px var(--border);
}

.menu-toggle .icon-close {
  display: none;
}
.nav.is-open .menu-toggle .icon-open {
  display: none;
}
.nav.is-open .menu-toggle .icon-close {
  display: block;
}

.mobile-menu {
  border-top: 1px solid var(--border);
  background: #ffffff;
  padding: 12px var(--pad-x) 24px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: var(--shadow-md);
}
.mobile-menu[hidden] {
  display: none;
}

.mobile-link {
  font-size: 16px;
  font-weight: 500;
  color: var(--foreground);
  padding: 12px 0;
}
.mobile-link:hover {
  color: var(--navy);
}

.mobile-cta {
  margin-top: 12px;
  align-self: stretch;
}

/* --------------------------- Hero --------------------------- */
.hero {
  position: relative;
  display: grid;
  background: var(--navy-deep);
  color: var(--ink-foreground);
  min-height: min(100svh, 900px);
  overflow: hidden;
}

.hero-media {
  position: relative;
  min-height: 240px;
  height: min(42vh, 420px);
  order: -1;
  overflow: hidden;
}

.hero-photo {
  display: block;
  width: 100%;
  height: calc(100% + 2px);
  min-height: 240px;
  object-fit: cover;
  object-position: 48% 42%;
  filter: contrast(1.08) saturate(0.88);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0 0 -2px;
  background: linear-gradient(to top, var(--navy-deep) 0%, rgba(5, 6, 26, 0.15) 42%, transparent 70%);
  pointer-events: none;
}

.hero-copy-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  padding: 28px 0 56px;
  margin-top: -2px;
  background: var(--navy-deep);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 22px;
  max-width: 100%;
}

.hero-kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold);
}

.hero-title {
  max-width: 16ch;
  font-family: var(--display);
  font-size: clamp(2.4rem, 1.2rem + 4.4vw, 4.35rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.hero-lead {
  margin-top: 22px;
  max-width: 46ch;
  font-size: 16.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
}

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

.hero-meta {
  margin: 32px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  max-width: 46ch;
  font-size: 13px;
  line-height: 1.55;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.5);
}

/* --------------------------- Shared type --------------------------- */
.eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--navy);
}

.section-title {
  margin-top: 14px;
  font-family: var(--display);
  font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.45rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--ink);
}

/* --------------------------- Services --------------------------- */
.services {
  padding-block: 96px 88px;
  background: var(--paper);
}

.services-head {
  max-width: 36ch;
  margin-bottom: 48px;
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--surface);
  padding: 28px 26px 30px;
  border-radius: var(--radius-xl);
  box-shadow: inset 0 0 0 1px var(--border), var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: inset 0 0 0 1px rgba(0, 3, 68, 0.22), var(--shadow-md);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--navy-soft);
  color: var(--navy);
}

.card-title {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.card-text {
  max-width: 42ch;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--muted-foreground);
}

.card-service {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  background: var(--navy);
  color: var(--ink-foreground);
  box-shadow: none;
  padding: 28px 32px;
}

.card-service:hover {
  transform: none;
  box-shadow: none;
}

.card-service .card-icon {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.card-service .card-title {
  color: #ffffff;
}

.card-service .card-text {
  color: rgba(255, 255, 255, 0.7);
}

.card-service-copy {
  display: flex;
  align-items: center;
  gap: 20px;
}

.card-service-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--navy);
  transition: transform 0.18s ease, background 0.18s ease;
}
.card-service-btn:hover {
  background: var(--navy-soft);
  transform: translateY(-2px);
}

@media (max-width: 639px) {
  .card-service {
    flex-direction: column;
    align-items: flex-start;
  }
  .card-service-copy {
    align-items: flex-start;
  }
  .card-service-btn {
    align-self: stretch;
    justify-content: center;
  }
}

/* --------------------------- Platform / Verkada --------------------------- */
.platform {
  padding-block: 96px;
  background: var(--navy-deep);
  color: var(--ink-foreground);
}

.platform-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  border-radius: var(--radius-2xl);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  padding: 40px 24px;
}

.platform-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.platform .eyebrow {
  color: var(--gold);
}

.platform-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 18px;
}

.platform-logo-link {
  display: inline-flex;
  /* Clear space = x-height of the wordmark, kept free of other marks. */
  padding: 16px;
  margin: -16px 0 0 -16px;
}

.platform-logo-link:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.platform-logo {
  display: block;
  height: 32px;
  width: auto;
}

.platform-partner {
  margin: 4px 0 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.62);
}

.platform-title {
  margin-top: 26px;
  max-width: 18ch;
  color: #ffffff;
}

.platform-lead {
  max-width: 48ch;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.68);
}

.platform-grid {
  list-style: none;
  margin: 40px 0 0;
  padding: 36px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.platform-item {
  display: flex;
  gap: 16px;
}

.platform-ic {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.platform-ic svg {
  width: 18px;
  height: 18px;
}

.platform-item-title {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.platform-item-text {
  margin-top: 8px;
  max-width: 46ch;
  font-size: 14.5px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.62);
}

.platform-item-text a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.platform-item-text a:hover {
  text-decoration-thickness: 2px;
}

/* --------------------------- Sectors --------------------------- */
.sectors {
  padding-block: 88px;
  background: var(--surface);
}

.sectors-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}

.sectors-copy {
  max-width: 34ch;
}

.sectors-title {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.sectors-text {
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted-foreground);
}

.sector-tags {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  max-width: 640px;
}

.sector-tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--foreground);
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--border);
}

.sector-tag .icon {
  color: var(--navy);
}

/* --------------------------- Process --------------------------- */
.case-study {
  padding-block: 96px;
  background: var(--paper);
}

.case-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-2xl);
  background: var(--navy-deep);
}

.case-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 32px;
}

.eyebrow-ink {
  color: var(--gold);
  letter-spacing: 0.2em;
}

.case-title {
  margin-top: 18px;
  max-width: 18ch;
  font-family: var(--display);
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.15rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.case-text {
  margin-top: 18px;
  max-width: 46ch;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.68);
}

.case-actions {
  margin-top: 28px;
}

.case-media {
  min-height: 280px;
}

.case-photo {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  object-position: 50% 30%;
}

.process-steps {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.pstep {
  background: var(--surface);
  padding: 26px 24px 28px;
  border-radius: var(--radius-xl);
  box-shadow: inset 0 0 0 1px var(--border);
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.pstep:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px rgba(0, 3, 68, 0.2), var(--shadow-md);
}

.pstep-n {
  display: block;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--navy);
}

.pstep-title {
  margin-top: 12px;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.pstep-text {
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--muted-foreground);
}

/* --------------------------- Team --------------------------- */
.team {
  padding-block: 96px;
  background: var(--surface);
}

.team-head {
  max-width: 62ch;
  margin-bottom: 40px;
}

.team-head .section-title {
  max-width: 22ch;
}

.team-lead {
  margin-top: 18px;
  max-width: 62ch;
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted-foreground);
}

.team-roles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.team-role {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--paper);
  padding: 32px 28px;
  border-radius: var(--radius-xl);
  box-shadow: inset 0 0 0 1px var(--border);
}

.team-role-k {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--navy);
}

.team-role-name {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.team-role-text {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--muted-foreground);
}

.team-license {
  margin-top: 20px;
  background: var(--navy-deep);
  color: var(--ink-foreground);
  border-radius: var(--radius-2xl);
  padding: 36px 28px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  position: relative;
  overflow: hidden;
}

.team-license::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(196, 163, 90, 0.28);
  border-radius: 14px;
  pointer-events: none;
}

.tlic-main,
.tlic-points {
  position: relative;
  z-index: 1;
}

.tlic-name {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #ffffff;
}

.tlic-num {
  margin-top: 10px;
  font-family: var(--display);
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.1rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #ffffff;
}

.tlic-class {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.tlic-verify {
  margin-top: 20px;
  max-width: 46ch;
  font-size: 13.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.62);
}

.tlic-verify a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.tlic-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tlic-point {
  display: flex;
  gap: 12px;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.7);
}

.tlic-point svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--gold);
}

/* --------------------------- Contact --------------------------- */
.contact {
  position: relative;
  background: var(--paper);
  padding-block: 96px 48px;
}

.contact-head {
  max-width: 760px;
  margin-bottom: 44px;
}

.contact-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 18px;
}

.contact-eyebrow .pulse {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--navy);
}

.contact-eyebrow .pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--navy);
  animation: ci-pulse 2.4s ease-out infinite;
}

@keyframes ci-pulse {
  0%   { transform: scale(0.55); opacity: 0.7; }
  100% { transform: scale(1.7);  opacity: 0; }
}

.contact-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.contact-lead {
  margin-top: 16px;
  max-width: 560px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted-foreground);
}

.contact-panel {
  display: grid;
  grid-template-columns: 1fr;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border), var(--shadow-lg);
}

@media (min-width: 860px) {
  .contact-panel {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

.cpanel-cta {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--navy-deep);
  color: var(--ink-foreground);
  padding: 42px 36px 36px;
}

.cpanel-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 36px 36px;
  -webkit-mask-image: radial-gradient(120% 95% at 85% -10%, #000 0%, transparent 68%);
  mask-image: radial-gradient(120% 95% at 85% -10%, #000 0%, transparent 68%);
  pointer-events: none;
}

.cpanel-cta > * {
  position: relative;
  z-index: 1;
}

.cpanel-cta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.cpanel-ic {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.cpanel-ic svg {
  width: 24px;
  height: 24px;
}

.cpanel-tag {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--ink-muted);
  padding: 7px 13px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
}

.cpanel-cta-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.85rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.cpanel-cta-text {
  margin-top: 14px;
  max-width: 40ch;
  font-size: 0.98rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.64);
}

.cpanel-features {
  list-style: none;
  margin: 0;
  padding: 0;
  margin-top: auto;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cpanel-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
}

.cpanel-feature svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--gold);
}

.cpanel-info {
  display: flex;
  flex-direction: column;
}

.cinfo-row {
  flex: 1 1 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  min-height: 96px;
  padding: 24px 32px;
  border-bottom: 1px solid var(--border);
  transition: background 0.18s ease;
}

button.cinfo-row {
  width: 100%;
  margin: 0;
  border-top: 0;
  border-right: 0;
  border-left: 0;
  background: transparent;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.cinfo-row:last-child {
  border-bottom: none;
}

.cinfo-row[href]:hover,
button.cinfo-row:hover {
  background: var(--navy-soft);
}

.cinfo-ic {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--navy-soft);
  color: var(--navy);
  transition: background 0.18s ease, color 0.18s ease;
}

.cinfo-ic svg {
  width: 22px;
  height: 22px;
}

.cinfo-row[href]:hover .cinfo-ic,
button.cinfo-row:hover .cinfo-ic {
  background: var(--navy);
  color: #ffffff;
}

.cinfo-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.cinfo-k {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted-foreground);
}

.cinfo-v {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--foreground);
  overflow-wrap: anywhere;
}

.cinfo-arrow {
  display: grid;
  place-items: center;
  color: var(--muted-foreground);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, color 0.18s ease;
}

.cinfo-arrow svg {
  width: 18px;
  height: 18px;
}

.cinfo-row[href]:hover .cinfo-arrow,
button.cinfo-row:hover .cinfo-arrow {
  opacity: 1;
  transform: translateX(0);
  color: var(--navy);
}

button.cinfo-row .cinfo-arrow {
  opacity: 0.45;
  transform: none;
}

button.cinfo-row.is-copied .cinfo-k {
  color: var(--navy);
}

/* --------------------------- Footer --------------------------- */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--navy-deep);
  padding-block: 56px 40px;
  color: var(--ink-muted);
}

.footer .brand-logo {
  height: 48px;
  max-width: 280px;
}

.footer .footer-network-label,
.footer .footer-network-list li,
.footer .footer-network-list a,
.footer .footer-meta-item {
  color: var(--ink-muted);
}

.footer .footer-network-list a:hover {
  color: #ffffff;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 36px;
}

.footer-network-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.footer-network-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-network-list li,
.footer-network-list a {
  font-size: 13.5px;
  color: var(--ink-muted);
}

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (min-width: 560px) {
  .footer-meta {
    flex-direction: row;
    gap: 28px;
  }
}

.footer-meta-item {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-legal {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-legal-text {
  max-width: 100ch;
  font-size: 11.5px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.45);
}

.footer-legal-text + .footer-legal-text {
  margin-top: 12px;
}

.footer-legal-text a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-links {
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 600;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}

.footer-links a:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-links-sep {
  color: rgba(255, 255, 255, 0.4);
}

.quote-recaptcha-note {
  margin: 12px 0 0;
  max-width: 46ch;
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted-foreground);
}

.quote-recaptcha-note a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal {
  padding: calc(var(--nav-h) + 48px) 0 96px;
  background: var(--paper);
}

.legal-wrap {
  max-width: 720px;
}

.legal-kicker {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 14px;
}

.legal h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2rem, 1.4rem + 2vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--ink);
}

.legal-updated {
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--muted-foreground);
}

.legal-wrap h2 {
  margin: 36px 0 10px;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.legal-wrap p,
.legal-wrap li {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--muted-foreground);
}

.legal-wrap p {
  margin: 0 0 14px;
}

.legal-wrap ul {
  margin: 0 0 14px;
  padding-left: 1.2em;
}

.legal-wrap li + li {
  margin-top: 6px;
}

.legal-wrap a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* --------------------------- Quote form --------------------------- */
.quote {
  padding-block: 24px 104px;
  background: var(--paper);
}

.quote-head {
  max-width: 760px;
  margin-bottom: 36px;
}

.quote-panel {
  border-radius: var(--radius-2xl);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border), var(--shadow-lg);
  overflow: hidden;
}

.quote-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  background: var(--navy-deep);
  color: #ffffff;
  padding: 18px 36px;
}

.quote-banner-k {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.quote-banner-v {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.62);
}

.quote-form,
.quote-done {
  padding: 40px 36px 44px;
}

.quote-form[hidden] {
  display: none;
}

.quote-set {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 0 0 28px;
  padding: 26px 0 0;
}

.quote-set:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.quote-legend {
  padding: 0 10px 0 0;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 650;
  color: var(--navy);
}

.quote-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 20px;
}

.quote-field {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.quote-field[hidden] {
  display: none;
}

.quote-field > label,
.quote-grouplabel {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 7px;
}

.quote-panel abbr {
  color: var(--navy);
  text-decoration: none;
  font-weight: 700;
}

.quote-field input[type="text"],
.quote-field input[type="email"],
.quote-field input[type="tel"],
.quote-field select,
.quote-field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  color: var(--foreground);
  background: #ffffff;
  border: none;
  box-shadow: inset 0 0 0 1px var(--border-strong);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  transition: box-shadow 0.18s ease, background 0.18s ease;
}

.quote-field textarea {
  resize: vertical;
  line-height: 1.6;
}

.quote-field select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23000344' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
}

.quote-field input::placeholder,
.quote-field textarea::placeholder {
  color: var(--muted-foreground);
  opacity: 0.7;
}

.quote-field input:hover,
.quote-field select:hover,
.quote-field textarea:hover {
  box-shadow: inset 0 0 0 1px #9aa3b5;
}

.quote-field input:focus,
.quote-field select:focus,
.quote-field textarea:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--navy);
}

.quote-field input:focus-visible,
.quote-field select:focus-visible,
.quote-field textarea:focus-visible,
.quote-check input:focus-visible,
.quote-submit:focus-visible,
.btn:focus-visible,
.menu-toggle:focus-visible,
.nav-link:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

.quote-checks {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 4px;
}

.quote-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--foreground);
  cursor: pointer;
}

.quote-checks .quote-check {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--border);
  transition: box-shadow 0.15s ease, background 0.15s ease;
}

.quote-checks .quote-check:hover {
  box-shadow: inset 0 0 0 1px var(--navy);
}

.quote-checks .quote-check:has(input:checked) {
  background: var(--navy-soft);
  box-shadow: inset 0 0 0 1.5px var(--navy);
}

.quote-check input {
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  margin: 1px 0 0;
  accent-color: var(--navy);
  cursor: pointer;
}

.quote-consent {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  margin-bottom: 26px;
}

.quote-hint {
  margin: 7px 0 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted-foreground);
}

.quote-fielderr,
.quote-formerr {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--danger);
}

.quote-fielderr {
  margin-top: 10px;
}

.quote-formerr {
  margin-bottom: 22px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: #fff7ed;
  box-shadow: inset 0 0 0 1px rgba(154, 52, 18, 0.28);
}

.quote-captcha {
  margin-bottom: 24px;
  max-width: 100%;
  overflow-x: auto;
}

.quote-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 24px;
}

.quote-submit {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  padding: 15px 26px;
  border: none;
  border-radius: 999px;
  background: var(--navy);
  color: var(--primary-foreground);
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, opacity 0.18s ease;
}

.quote-submit:hover:not(:disabled) {
  background: var(--navy-hover);
  transform: translateY(-2px);
}

.quote-submit:disabled {
  opacity: 0.55;
  cursor: progress;
}

.quote-reassure {
  flex: 1 1 260px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted-foreground);
}

.quote-done {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.quote-done[hidden] {
  display: none;
}

.quote-done-ic {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--navy);
  color: #ffffff;
}

.quote-done-ic svg {
  width: 24px;
  height: 24px;
}

.quote-done-title {
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--foreground);
}

.quote-done-text {
  max-width: 52ch;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--muted-foreground);
}

.quote-honey {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* --------------------------- Scroll reveal --------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .contact-eyebrow .pulse::after {
    animation: none;
  }
  .btn:hover,
  .card:hover,
  .pstep:hover,
  .card-service-btn:hover,
  .quote-submit:hover:not(:disabled) {
    transform: none;
  }
}

/* --------------------------- Responsive --------------------------- */
@media (min-width: 640px) {
  .platform-card {
    padding: 48px 40px;
  }
  .team-role {
    padding: 36px 32px;
  }
  .team-license {
    padding: 44px;
  }
  .quote-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .quote-field-wide {
    grid-column: 1 / -1;
  }
  .quote-checks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .quote-form,
  .quote-done {
    padding: 44px 42px 48px;
  }
  .quote-banner {
    padding: 18px 42px;
  }
}

@media (max-width: 639px) {
  .quote {
    padding-block: 8px 72px;
  }
  .quote-form,
  .quote-done {
    padding: 28px 22px 32px;
  }
  .quote-banner {
    padding: 16px 22px;
  }
  .quote-submit {
    width: 100%;
    justify-content: center;
  }
}

@media (min-width: 768px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .platform-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 34px 44px;
  }
  .team-roles {
    grid-template-columns: repeat(2, 1fr);
  }
  .team-license {
    grid-template-columns: 1fr 1.15fr;
    gap: 44px;
  }
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .sectors-inner {
    flex-direction: row;
    align-items: center;
  }
  .footer-inner {
    flex-direction: row;
    align-items: flex-start;
  }
}

@media (min-width: 960px) {
  .hero {
    grid-template-columns: 1.08fr 0.92fr;
    min-height: 680px;
    height: 100vh;
    max-height: 920px;
  }

  .hero-media {
    order: 0;
    min-height: 100%;
    height: auto;
    max-height: none;
  }

  .hero-photo {
    position: absolute;
    inset: 0;
    min-height: 100%;
    height: 100%;
    max-height: none;
  }

  .hero-media::after {
    background: linear-gradient(to right, var(--navy-deep) 0%, rgba(5, 6, 26, 0.35) 28%, transparent 58%);
  }

  .hero-copy-wrap {
    margin-top: 0;
    background: transparent;
    padding: calc(var(--nav-h) + 48px) 0 80px;
  }

  .hero-copy {
    padding-left: max(24px, calc((100vw - var(--container)) / 2));
    padding-right: 32px;
    max-width: none;
  }

  .hero-copy-wrap .container {
    margin-left: 0;
    margin-right: 0;
    max-width: none;
    padding-inline: 0;
  }
}

@media (min-width: 1024px) {
  .brand-logo {
    height: 44px;
    max-width: 260px;
  }

  .nav-links {
    display: flex;
  }
  .menu-toggle {
    display: none;
  }
  .mobile-menu {
    display: none !important;
  }

  .card-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .platform-card {
    padding: 56px;
  }

  .platform-head {
    grid-template-columns: 1.05fr 1fr;
    gap: 56px;
    align-items: end;
  }

  .platform-head-r {
    padding-bottom: 6px;
  }

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

  .team-license {
    padding: 48px 52px;
  }

  .case-card {
    flex-direction: row;
  }

  .case-copy {
    width: 50%;
    padding: 52px 48px;
  }

  .case-media {
    width: 50%;
    min-height: 100%;
  }

  .case-photo {
    min-height: 100%;
  }
}

@media (min-width: 1280px) {
  .hero-copy {
    padding-left: max(48px, calc((100vw - var(--container)) / 2));
  }
}
