:root {
  --m24-ink: #11151c;
  --m24-graphite: #171d27;
  --m24-panel: #f5f3ee;
  --m24-paper: #fbfaf7;
  --m24-muted: #667085;
  --m24-line: #d9d6ce;
  --m24-blue: #245fd3;
  --m24-blue-dark: #1f4fb0;
  --m24-green: #168a78;
  --m24-steel: #dfe7f2;
  --m24-header-mobile: 82px;
  --m24-header-desktop: 88px;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-padding-top: var(--m24-header-mobile);
}

body {
  margin: 0;
  overflow-x: hidden;
  padding-top: var(--m24-header-mobile);
  background: var(--m24-paper);
  color: var(--m24-ink);
  font-family:
    "Manrope", "Aptos", "Segoe UI Variable", "Segoe UI", -apple-system, BlinkMacSystemFont,
    sans-serif;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

p {
  color: var(--m24-muted);
}

h1,
h2,
h3,
p,
li,
dt,
dd,
a,
button {
  overflow-wrap: break-word;
}

a {
  color: inherit;
}

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

.skip-link {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 1200;
  transform: translateY(-150%);
  border-radius: 4px;
  background: #fff;
  color: var(--m24-ink);
  padding: 10px 14px;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  z-index: 1040;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(17, 21, 28, 0.95);
  backdrop-filter: blur(14px);
}

.site-header .navbar {
  min-height: var(--m24-header-mobile);
}

.navbar-brand {
  margin-right: 0;
}

.brand {
  min-width: 0;
  gap: 12px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.95);
}

.brand-mark img {
  width: 27px;
  height: 27px;
  object-fit: contain;
}

.brand-text {
  display: grid;
}

.brand-text strong {
  color: #fff;
  font-size: 1rem;
  line-height: 1.1;
  font-weight: 760;
}

.brand-text small {
  color: rgba(245, 243, 238, 0.72);
  font-size: 0.84rem;
  line-height: 1.2;
}

.navbar-toggler {
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.32);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(36, 95, 211, 0.35);
}

.navbar-collapse {
  margin-top: 10px;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(23, 29, 39, 0.97);
}

.navbar-nav .nav-link {
  border-radius: 6px;
  border: 1px solid transparent;
  color: rgba(250, 249, 246, 0.78);
  font-size: 0.9rem;
  font-weight: 640;
  padding: 8px 11px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus-visible {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.08);
}

.nav-cta {
  border-radius: 6px;
}

.btn {
  border-radius: 6px;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

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

.btn-primary {
  --bs-btn-bg: var(--m24-blue);
  --bs-btn-border-color: var(--m24-blue);
  --bs-btn-hover-bg: var(--m24-blue-dark);
  --bs-btn-hover-border-color: var(--m24-blue-dark);
  --bs-btn-active-bg: var(--m24-blue-dark);
  --bs-btn-active-border-color: var(--m24-blue-dark);
}

.btn-outline-light {
  --bs-btn-color: #fff;
  --bs-btn-border-color: rgba(255, 255, 255, 0.68);
  --bs-btn-hover-color: var(--m24-ink);
  --bs-btn-hover-bg: #fff;
  --bs-btn-hover-border-color: #fff;
}

main section[id] {
  scroll-margin-top: var(--m24-header-mobile);
}

.section-block {
  padding: 104px 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--m24-blue);
  font-size: 0.8rem;
  font-weight: 790;
  line-height: 1.2;
  text-transform: uppercase;
}

.hero .eyebrow,
.software .eyebrow {
  color: #9cbcff;
}

.hero {
  position: relative;
  min-height: calc(100svh - var(--m24-header-mobile));
  isolation: isolate;
  display: flex;
  align-items: stretch;
  background: var(--m24-ink);
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(11, 15, 22, 0.94) 0%, rgba(11, 15, 22, 0.78) 44%, rgba(11, 15, 22, 0.32) 100%),
    linear-gradient(180deg, rgba(11, 15, 22, 0.62) 0%, rgba(11, 15, 22, 0.16) 48%, rgba(11, 15, 22, 0.82) 100%);
}

.hero-content {
  display: flex;
  align-items: flex-end;
  padding-top: clamp(56px, 8vh, 96px);
  padding-bottom: clamp(26px, 5vh, 56px);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.48fr);
  gap: clamp(26px, 4vw, 68px);
  width: 100%;
  align-items: end;
  min-width: 0;
}

.hero-copy,
.hero-brief {
  min-width: 0;
}

.hero-copy h1 {
  max-width: 950px;
  margin: 0 0 22px;
  color: #fff;
  font-size: clamp(3rem, 8vw, 7.6rem);
  font-weight: 810;
  line-height: 0.92;
}

.hero-lead {
  max-width: 760px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.08rem, 1.35vw, 1.34rem);
  line-height: 1.62;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-actions .btn {
  white-space: normal;
}

.hero-brief {
  border-left: 1px solid rgba(255, 255, 255, 0.32);
  padding-left: 24px;
}

.hero-brief p {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.62;
  font-weight: 560;
}

.hero-brief dl {
  display: grid;
  gap: 14px;
  margin: 0;
}

.hero-brief div {
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-brief dt {
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.74rem;
  font-weight: 760;
  text-transform: uppercase;
}

.hero-brief dd {
  margin: 0;
  color: #fff;
  font-weight: 680;
  line-height: 1.4;
}

.problem {
  background: var(--m24-paper);
}

.editorial-split {
  display: grid;
  grid-template-columns: minmax(280px, 0.62fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 100px);
  align-items: start;
}

.editorial-split h2,
.model-copy h2,
.section-heading h2,
.software h2,
.usecase-head h2,
.process h2,
.trust h2,
.audit h2,
.final-cta h2 {
  margin: 0;
  color: var(--m24-ink);
  font-size: clamp(2.35rem, 4vw, 5rem);
  font-weight: 800;
  line-height: 0.98;
}

.problem-index {
  display: grid;
  gap: 0;
}

.problem-index article {
  display: grid;
  grid-template-columns: 52px minmax(0, 0.7fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding: 20px 0;
  border-top: 1px solid var(--m24-line);
}

.problem-index article:last-child {
  border-bottom: 1px solid var(--m24-line);
}

.problem-index span {
  color: var(--m24-blue);
  font-size: 0.88rem;
  font-weight: 800;
}

.problem-index h3,
.service-chapters h3,
.engineering-map h3,
.process-rail h3,
.trust-list h3 {
  margin: 0;
  color: var(--m24-ink);
  font-size: 1.08rem;
  font-weight: 750;
  line-height: 1.26;
}

.problem-index p {
  margin: 0;
  line-height: 1.58;
}

.operating-model {
  background: var(--m24-panel);
}

.model-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 0.72fr);
  gap: clamp(26px, 5vw, 76px);
  align-items: stretch;
}

.model-image {
  min-height: 520px;
  overflow: hidden;
}

.model-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.model-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.model-copy p {
  max-width: 640px;
  margin: 22px 0 0;
  font-size: 1.08rem;
  line-height: 1.7;
}

.model-sequence {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 34px;
  border-top: 1px solid var(--m24-line);
  border-bottom: 1px solid var(--m24-line);
}

.model-sequence span {
  padding: 16px 10px;
  border-right: 1px solid var(--m24-line);
  color: var(--m24-ink);
  font-size: 0.9rem;
  font-weight: 760;
  text-align: center;
}

.model-sequence span:last-child {
  border-right: 0;
}

.services {
  background: var(--m24-paper);
}

.section-heading,
.usecase-head {
  max-width: 900px;
  margin-bottom: 36px;
}

.service-chapters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--m24-line);
  border-left: 1px solid var(--m24-line);
}

.service-chapters article {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(22px, 2.3vw, 34px);
  border-right: 1px solid var(--m24-line);
  border-bottom: 1px solid var(--m24-line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(245, 243, 238, 0.54));
}

.service-chapters span {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--m24-ink);
  color: #fff;
  font-weight: 800;
}

.service-chapters p {
  margin: 14px 0 0;
  line-height: 1.64;
}

.software {
  background:
    linear-gradient(90deg, rgba(17, 21, 28, 0.94), rgba(17, 21, 28, 0.86)),
    url("https://images.pexels.com/photos/3184465/pexels-photo-3184465.jpeg?auto=compress&cs=tinysrgb&w=2000") center / cover;
  color: #fff;
}

.software-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1fr);
  gap: clamp(34px, 6vw, 96px);
  align-items: start;
}

.software h2 {
  color: #fff;
}

.software p {
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.68;
}

.software-layout > div:first-child > p:last-child {
  max-width: 560px;
  margin-top: 22px;
  font-size: 1.06rem;
}

.engineering-map {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
}

.engineering-map article {
  padding: 24px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
}

.engineering-map h3 {
  color: #fff;
}

.engineering-map p {
  margin: 8px 0 0;
  max-width: 680px;
}

.use-cases {
  background: var(--m24-paper);
}

.usecase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--m24-line);
}

.usecase-grid article {
  min-height: 180px;
  display: flex;
  align-items: flex-end;
  background: #fff;
  padding: 24px;
  color: var(--m24-ink);
  font-size: clamp(1.05rem, 1.3vw, 1.3rem);
  font-weight: 740;
  line-height: 1.22;
}

.process {
  background: var(--m24-graphite);
  color: #fff;
}

.process h2 {
  color: #fff;
}

.process-rail {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin: 42px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  border-left: 1px solid rgba(255, 255, 255, 0.22);
}

.process-rail li {
  min-height: 260px;
  padding: 22px;
  border-right: 1px solid rgba(255, 255, 255, 0.22);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.process-rail span {
  display: block;
  margin-bottom: 70px;
  color: #9dbbff;
  font-weight: 800;
}

.process-rail h3 {
  color: #fff;
}

.process-rail p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.58;
}

.trust {
  background: var(--m24-panel);
}

.trust-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.68fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
}

.trust-copy {
  position: sticky;
  top: 120px;
  align-self: start;
}

.trust-copy p:last-child {
  margin-top: 22px;
  max-width: 540px;
  font-size: 1.06rem;
  line-height: 1.68;
}

.trust-list {
  display: grid;
  gap: 0;
}

.trust-list article {
  display: grid;
  grid-template-columns: minmax(0, 0.45fr) minmax(0, 0.55fr);
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid var(--m24-line);
}

.trust-list article:last-child {
  border-bottom: 1px solid var(--m24-line);
}

.trust-list p {
  margin: 0;
  line-height: 1.62;
}

.audit {
  background: var(--m24-paper);
}

.audit-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 0.72fr);
  gap: clamp(28px, 5vw, 86px);
  align-items: center;
  padding: clamp(26px, 4vw, 54px);
  border: 1px solid var(--m24-line);
  background: #fff;
}

.audit p {
  max-width: 620px;
  margin: 20px 0 28px;
  font-size: 1.08rem;
  line-height: 1.68;
}

.audit ul {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--m24-line);
}

.audit li {
  padding: 18px 0;
  border-bottom: 1px solid var(--m24-line);
  color: var(--m24-muted);
  line-height: 1.58;
}

.final-cta {
  background: var(--m24-ink);
  color: #fff;
}

.cta-layout {
  display: flex;
  gap: 28px;
  align-items: flex-end;
  justify-content: space-between;
}

.final-cta h2 {
  max-width: 880px;
  color: #fff;
}

.final-cta p:not(.eyebrow) {
  max-width: 660px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.06rem;
  line-height: 1.65;
}

.site-footer {
  background: var(--m24-ink);
  color: #fff;
}

.footer-links a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 0.89rem;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.42);
}

/* Secondary pages keep the same brand shell. */
.simple-page {
  background: var(--m24-paper);
}

.simple-hero {
  padding-top: 34px;
}

.simple-panel,
.simple-grid article {
  border: 1px solid var(--m24-line);
  background: #fff;
  padding: 22px;
}

.simple-panel h2 {
  font-size: 1.45rem;
  font-weight: 740;
  margin-bottom: 10px;
}

.simple-panel p {
  margin-bottom: 0;
}

.simple-grid {
  display: grid;
  gap: 12px;
}

.simple-grid h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.link-inline {
  color: var(--m24-blue);
  font-weight: 650;
  text-underline-offset: 2px;
}

.topbar-main {
  min-height: 72px;
}

.topbar-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 10px;
}

.nav-chip {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 7px 11px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.86rem;
  font-weight: 620;
}

.nav-chip:hover,
.nav-chip:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

@media (min-width: 992px) {
  html {
    scroll-padding-top: var(--m24-header-desktop);
  }

  body {
    padding-top: var(--m24-header-desktop);
  }

  .site-header .navbar {
    min-height: var(--m24-header-desktop);
  }

  main section[id] {
    scroll-margin-top: var(--m24-header-desktop);
  }

  .navbar-collapse {
    margin-top: 0;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .hero {
    min-height: calc(100svh - var(--m24-header-desktop));
  }
}

@media (max-width: 1199.98px) {
  .hero-layout,
  .editorial-split,
  .model-grid,
  .software-layout,
  .trust-layout,
  .audit-layout {
    grid-template-columns: 1fr;
  }

  .service-chapters,
  .usecase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .trust-copy {
    position: static;
  }
}

@media (max-width: 991.98px) {
  .nav-cta {
    width: 100%;
    text-align: center;
  }

  .hero-content {
    align-items: center;
  }

  .hero-layout {
    gap: 34px;
  }

  .hero-copy h1 {
    max-width: 100%;
    font-size: clamp(2.25rem, 9.2vw, 3rem);
    overflow-wrap: break-word;
  }

  .hero-brief {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.28);
    padding-left: 0;
    padding-top: 22px;
  }

  .problem-index article,
  .trust-list article {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .model-image {
    min-height: 360px;
  }

  .service-chapters,
  .usecase-grid,
  .process-rail {
    grid-template-columns: 1fr;
  }

  .service-chapters article,
  .usecase-grid article,
  .process-rail li {
    min-height: auto;
  }

  .process-rail span {
    margin-bottom: 30px;
  }

  .cta-layout {
    display: grid;
    align-items: start;
  }
}

@media (max-width: 575.98px) {
  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .brand-mark img {
    width: 24px;
    height: 24px;
  }

  .brand-text strong {
    font-size: 0.95rem;
  }

  .section-block {
    padding: 72px 0;
  }

  .hero-copy h1 {
    max-width: 100%;
    font-size: clamp(2.05rem, 8.2vw, 2.34rem);
    line-height: 1.02;
  }

  .hero-lead {
    font-size: 1.02rem;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-content {
    padding-top: 38px;
    padding-bottom: 38px;
  }

  .editorial-split h2,
  .model-copy h2,
  .section-heading h2,
  .software h2,
  .usecase-head h2,
  .process h2,
  .trust h2,
  .audit h2,
  .final-cta h2 {
    font-size: 2.15rem;
  }

  .model-sequence {
    grid-template-columns: 1fr 1fr;
  }

  .model-sequence span:nth-child(2) {
    border-right: 0;
  }

  .audit-layout {
    padding: 24px 18px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
