:root {
  --paper: #f7f7f2;
  --paper-strong: #ffffff;
  --ink: #111827;
  --muted: #5d6675;
  --line: #d8ded8;
  --line-dark: #b8c3bd;
  --green: #14746f;
  --green-dark: #0b4d49;
  --red: #c24135;
  --gold: #c99532;
  --blue: #244f86;
  --shadow: 0 24px 70px rgba(22, 30, 42, 0.12);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, #fbfbf7 0%, var(--paper) 42%, #eef3f0 100%);
  background-size: 72px 72px, auto;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 10px 0;
  background: rgba(251, 251, 247, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(216, 222, 216, 0.8);
}

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

.brand img {
  width: 86px;
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 600;
}

.top-nav a {
  transition: color 0.18s ease;
}

.top-nav a:hover {
  color: var(--ink);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
  font-weight: 700;
}

.nav-cta {
  padding: 0 16px;
  color: var(--paper-strong);
  background: var(--ink);
}

.menu-button {
  display: none;
  width: 44px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-strong);
  padding: 9px;
}

.menu-button span {
  display: block;
  height: 2px;
  background: var(--ink);
}

.menu-button span + span {
  margin-top: 6px;
}

main {
  overflow: hidden;
}

.band {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 86px 0;
}

.hero {
  display: flex;
  align-items: center;
  min-height: auto;
  padding-top: clamp(20px, 3vh, 34px);
  padding-bottom: clamp(18px, 3vh, 30px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(430px, 0.95fr);
  gap: clamp(34px, 4vw, 56px);
  align-items: center;
  width: 100%;
}

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

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

h1,
h2 {
  letter-spacing: 0;
  line-height: 0.98;
}

h1 {
  max-width: 12.2ch;
  margin-bottom: 24px;
  font-size: clamp(3rem, 4.2vw, 4.35rem);
  font-weight: 800;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(2.35rem, 4.9vw, 4.7rem);
  font-weight: 800;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.18rem;
  line-height: 1.18;
}

p {
  color: var(--muted);
  line-height: 1.62;
}

.lede {
  max-width: 48ch;
  font-size: clamp(1rem, 1.35vw, 1.16rem);
}

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

.button {
  min-width: 154px;
  padding: 0 20px;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #ffffff;
  background: var(--green-dark);
  box-shadow: 0 16px 36px rgba(11, 77, 73, 0.24);
}

.button-primary:hover {
  background: var(--green);
}

.button-secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  border-color: var(--line-dark);
}

.hero-graphic {
  position: relative;
  min-height: clamp(420px, 54vh, 500px);
  border: 1px solid rgba(216, 222, 216, 0.72);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(17, 24, 39, 0.96), rgba(11, 77, 73, 0.9)),
    url("/sites/default/files/2023-12/mss_homepage_threehexXL.jpg") center/cover;
  box-shadow: 0 30px 90px rgba(17, 24, 39, 0.22);
}

.hero-graphic::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 52px 52px;
  opacity: 0.42;
}

.hero-graphic::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  background: linear-gradient(180deg, transparent, rgba(5, 18, 23, 0.72));
}

.graphic-shell {
  position: absolute;
  inset: 18px;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(8, 18, 25, 0.55);
  backdrop-filter: blur(10px);
}

.graphic-header,
.graphic-footer {
  position: absolute;
  left: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.graphic-header {
  top: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.graphic-header span,
.graphic-node span,
.graphic-footer span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.graphic-header strong {
  color: #ffffff;
  font-size: 1.05rem;
}

.flow-lines {
  position: absolute;
  inset: 92px 50px 72px;
}

.flow-lines span {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.56), transparent);
}

.flow-lines span:nth-child(1) {
  top: 18%;
  transform: rotate(12deg);
}

.flow-lines span:nth-child(2) {
  top: 50%;
  transform: rotate(-8deg);
}

.flow-lines span:nth-child(3) {
  top: 76%;
  transform: rotate(6deg);
}

.graphic-node {
  position: absolute;
  width: min(214px, 42%);
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}

.graphic-node strong {
  display: block;
  margin-top: 7px;
  color: #ffffff;
  line-height: 1.24;
}

.node-source {
  top: 102px;
  left: 24px;
}

.node-ai {
  top: 184px;
  right: 30px;
  border-color: rgba(201, 149, 50, 0.62);
}

.node-gate {
  bottom: 128px;
  left: 68px;
  border-color: rgba(194, 65, 53, 0.68);
}

.node-target {
  bottom: 70px;
  right: 24px;
  border-color: rgba(20, 116, 111, 0.72);
}

.graphic-footer {
  bottom: 16px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.graphic-footer span {
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.08);
}

.system-board,
.workspace-panel {
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.system-board {
  padding: 22px;
}

.board-top,
.board-footer,
.timeline-row,
.workspace-tabs,
.workspace-matrix div {
  display: flex;
  align-items: center;
}

.board-top {
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.board-label,
.signal-grid span,
.workspace-matrix span,
.case-link span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.board-top strong {
  display: block;
  margin-top: 4px;
  font-size: 1.1rem;
}

.status-pill {
  padding: 7px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--green);
  font-size: 0.77rem;
  font-weight: 800;
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.signal-grid div {
  min-height: 96px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf7;
}

.signal-grid strong {
  display: block;
  margin-top: 14px;
  font-size: 2rem;
}

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

.timeline-row {
  gap: 14px;
  min-height: 96px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.timeline-row span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--muted);
  background: #eef2ee;
  font-weight: 800;
}

.timeline-row.complete span {
  color: #ffffff;
  background: var(--green);
}

.timeline-row.active {
  border-color: rgba(194, 65, 53, 0.42);
  background: #fff8f6;
}

.timeline-row.active span {
  color: #ffffff;
  background: var(--red);
}

.timeline-row strong {
  display: block;
  margin-bottom: 4px;
}

.timeline-row p {
  margin-bottom: 0;
  font-size: 0.92rem;
}

.board-footer {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.board-footer span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
}

.logo-strip,
.case-study-strip {
  display: grid;
  width: min(var(--max), calc(100% - 40px));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.logo-strip {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin: -20px auto 24px;
  padding: 18px;
}

.logo-strip img {
  width: 100%;
  height: 54px;
  object-fit: contain;
  filter: grayscale(1);
  mix-blend-mode: multiply;
  opacity: 0.78;
}

.case-study-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0 auto 34px;
  overflow: hidden;
}

.case-study-link {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 18px;
  align-items: center;
  min-height: 86px;
  padding: 14px 20px;
  border-right: 1px solid var(--line);
  transition: background 0.18s ease;
}

.case-study-link:last-child {
  border-right: 0;
}

.case-study-link:hover {
  background: #ffffff;
}

.case-study-link img {
  width: 70px;
  height: 44px;
  object-fit: contain;
  filter: grayscale(1);
  mix-blend-mode: multiply;
}

.case-study-link span {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.22;
}

.section-intro {
  max-width: 780px;
}

.section-intro p:not(.eyebrow),
.workspace-copy p {
  max-width: 68ch;
  font-size: 1.04rem;
}

.offer-grid,
.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 40px;
}

.feature-card,
.case-link,
.stage-track article,
.layer-list article {
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.feature-card,
.case-link {
  min-height: 250px;
  padding: 26px;
}

.feature-card {
  display: flex;
  flex-direction: column;
}

.card-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 48px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--ink);
  font-weight: 800;
}

.feature-card:nth-child(2) .card-index {
  background: var(--red);
}

.feature-card:nth-child(3) .card-index {
  background: var(--blue);
}

.split-band,
.workspace-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(380px, 0.8fr);
  gap: clamp(36px, 6vw, 82px);
  align-items: start;
  border-top: 1px solid var(--line);
}

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

.layer-list article {
  padding: 22px;
}

.layer-list span {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-weight: 800;
}

.layer-list p {
  margin-bottom: 0;
}

.workspace-panel {
  padding: 20px;
}

.workspace-tabs {
  gap: 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.workspace-tabs span {
  padding: 8px 11px;
  border-radius: 8px;
  color: var(--muted);
  background: #f3f6f3;
  font-size: 0.83rem;
  font-weight: 800;
}

.workspace-tabs .selected {
  color: #ffffff;
  background: var(--ink);
}

.workspace-matrix {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.workspace-matrix div {
  justify-content: space-between;
  gap: 18px;
  min-height: 62px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.workspace-matrix strong {
  color: var(--green-dark);
  white-space: nowrap;
}

.proof-band,
.stage-band {
  border-top: 1px solid var(--line);
}

.case-link {
  display: block;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.case-link:hover {
  transform: translateY(-3px);
  border-color: var(--green);
  background: #ffffff;
}

.case-link span {
  color: var(--red);
  margin-bottom: 34px;
}

.stage-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.82);
}

.stage-track article {
  min-height: 260px;
  padding: 24px;
  border-width: 0;
  border-radius: 0;
  border-right: 1px solid var(--line);
}

.stage-track article:last-child {
  border-right: 0;
}

.stage-track span {
  display: block;
  margin-bottom: 70px;
  color: var(--green);
  font-size: 1.35rem;
  font-weight: 800;
}

.final-cta {
  width: 100%;
  max-width: none;
  margin-top: 20px;
  padding: 94px max(20px, calc((100vw - var(--max)) / 2));
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(17, 24, 39, 0.94), rgba(11, 77, 73, 0.94)),
    url("/sites/default/files/2023-12/mss_homepage_threehexXL.jpg") center/cover;
}

.final-cta .eyebrow,
.final-cta p {
  color: rgba(255, 255, 255, 0.78);
}

.final-cta h2 {
  max-width: 840px;
  color: #ffffff;
}

.final-cta .button {
  margin-top: 18px;
  color: var(--ink);
  background: #ffffff;
  box-shadow: none;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 46px;
  color: var(--muted);
}

.site-footer strong {
  display: block;
  color: var(--ink);
}

.site-footer p {
  margin: 6px 0 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  font-weight: 700;
}

[data-reveal] {
  opacity: 1;
  transform: none;
}

@media (max-width: 1040px) {
  .hero-grid,
  .split-band,
  .workspace-band {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  h1 {
    max-width: 13.5ch;
  }

  .hero-graphic {
    min-height: 520px;
  }

  .offer-grid,
  .proof-grid,
  .case-study-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-study-link:nth-child(2) {
    border-right: 0;
  }

  .case-study-link:last-child {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
  }

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

  .stage-track article:nth-child(2) {
    border-right: 0;
  }

  .stage-track article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (min-width: 1041px) and (max-width: 1400px) {
  .hero-graphic {
    min-height: 450px;
  }

  .graphic-node {
    width: min(190px, 39%);
  }

  .node-source {
    top: 86px;
    left: 22px;
  }

  .node-ai {
    top: 158px;
    right: 24px;
  }

  .node-gate {
    top: 238px;
    bottom: auto;
    left: 54px;
  }

  .node-target {
    top: 304px;
    bottom: auto;
    right: 24px;
  }

  .graphic-footer {
    display: none;
  }
}

@media (max-width: 760px) {
  .site-header,
  .band,
  .logo-strip,
  .site-footer {
    width: min(var(--max), calc(100% - 24px));
  }

  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .menu-button {
    display: block;
    margin-left: auto;
  }

  .top-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-top: 10px;
  }

  .top-nav.open {
    display: flex;
  }

  .top-nav a {
    padding: 14px 0;
    border-top: 1px solid var(--line);
  }

  .nav-cta {
    margin-top: 8px;
    padding: 0 14px;
    border-top: 0;
  }

  .band {
    padding: 58px 0;
  }

  .hero {
    padding-top: 42px;
  }

  h1 {
    max-width: 11.5ch;
    font-size: clamp(2.8rem, 13vw, 4rem);
    line-height: 1;
  }

  h2 {
    font-size: clamp(2.2rem, 12vw, 3.4rem);
    line-height: 1.02;
  }

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

  .signal-grid,
  .offer-grid,
  .proof-grid,
  .stage-track,
  .site-footer,
  .case-study-strip {
    grid-template-columns: 1fr;
  }

  .hero-graphic {
    min-height: 600px;
  }

  .graphic-shell {
    inset: 12px;
  }

  .graphic-header,
  .graphic-footer {
    left: 14px;
    right: 14px;
  }

  .graphic-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .flow-lines {
    inset: 120px 34px 110px;
  }

  .graphic-node {
    width: min(232px, 78%);
    padding: 13px;
  }

  .node-source {
    top: 112px;
    left: 14px;
  }

  .node-ai {
    top: 208px;
    right: 14px;
  }

  .node-gate {
    top: 304px;
    bottom: auto;
    left: 14px;
  }

  .node-target {
    top: 400px;
    bottom: auto;
    right: 14px;
  }

  .graphic-footer {
    bottom: 14px;
  }

  .case-study-link,
  .case-study-link:nth-child(2),
  .case-study-link:last-child {
    grid-template-columns: 72px 1fr;
    min-height: 106px;
    border-right: 0;
    border-top: 1px solid var(--line);
  }

  .case-study-link:first-child {
    border-top: 0;
  }

  .case-study-link:last-child {
    grid-column: auto;
  }

  .case-study-link img {
    width: 72px;
    height: 52px;
  }

  .logo-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 0;
  }

  .system-board,
  .workspace-panel {
    padding: 14px;
  }

  .board-top,
  .workspace-matrix div {
    align-items: flex-start;
    flex-direction: column;
  }

  .timeline-row {
    align-items: flex-start;
  }

  .feature-card,
  .case-link,
  .stage-track article {
    min-height: auto;
  }

  .card-index,
  .case-link span,
  .stage-track span {
    margin-bottom: 28px;
  }

  .stage-track article,
  .stage-track article:nth-child(2),
  .stage-track article:nth-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stage-track article:last-child {
    border-bottom: 0;
  }

  .final-cta {
    width: 100%;
    padding: 70px 20px;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}
