:root {
  --ink: #141411;
  --ink-2: #24241f;
  --paper: #f7f7f3;
  --paper-2: #efefea;
  --surface: #ffffff;
  --muted: #6b6a61;
  --line: rgba(20, 20, 17, 0.14);
  --line-strong: rgba(20, 20, 17, 0.28);
  --bronze: #9a6a23;
  --bronze-dark: #714810;
  --oxblood: #84352f;
  --sage: #5e6c58;
  --slate: #263b43;
  --white: #ffffff;
  --max: 1180px;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::selection {
  color: var(--white);
  background: var(--oxblood);
}

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

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

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 200;
  padding: 10px 14px;
  color: var(--white);
  background: var(--ink);
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 76px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 0 max(22px, calc((100vw - var(--max)) / 2));
  background: rgba(247, 247, 243, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.site-header.is-scrolled {
  box-shadow: 0 18px 60px rgba(20, 20, 17, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 48px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.brand img {
  width: 25px;
  height: 30px;
  object-fit: contain;
}

.primary-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
}

.primary-nav a,
.nav-toggle {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid transparent;
  color: var(--muted);
  background: transparent;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.primary-nav a:hover,
.primary-nav a.is-active {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.74);
}

.primary-nav .nav-cta {
  margin-left: 8px;
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
}

.primary-nav .nav-cta:hover {
  color: var(--white);
  background: #000000;
}

.nav-toggle {
  display: none;
  justify-self: end;
  color: var(--ink);
  border-color: var(--line);
}

.hero {
  min-height: calc(100svh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.78fr);
  align-items: center;
  gap: clamp(38px, 6vw, 88px);
  padding: clamp(76px, 10vw, 126px) max(22px, calc((100vw - var(--max)) / 2)) 72px;
  background:
    linear-gradient(90deg, rgba(20, 20, 17, 0.045), transparent 42%),
    linear-gradient(180deg, var(--paper), var(--paper-2));
  border-bottom: 1px solid var(--line-strong);
}

.eyebrow {
  margin: 0 0 15px;
  color: var(--bronze-dark);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 860px;
  margin-bottom: 26px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(48px, 6.2vw, 90px);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.028em;
  text-wrap: balance;
}

.hero-lede {
  max-width: 690px;
  margin-bottom: 30px;
  color: var(--ink-2);
  font-size: clamp(18px, 1.7vw, 23px);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid var(--ink);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

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

.button-primary {
  color: var(--white);
  background: var(--ink);
}

.button-primary:hover {
  background: #000000;
}

.button-secondary {
  color: var(--ink);
  background: transparent;
}

.button-secondary:hover {
  background: var(--surface);
}

.cred-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 720px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cred-list li {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.52);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
}

.control-board {
  position: relative;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  box-shadow: 0 24px 80px rgba(20, 20, 17, 0.11);
}

.control-board::before {
  content: "";
  position: absolute;
  inset: 10px;
  pointer-events: none;
  border: 1px solid rgba(154, 106, 35, 0.22);
}

.board-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.board-top span,
.board-rows span,
.trust-strip span,
.phase-grid span,
.signal-grid span,
.work-index {
  color: var(--bronze-dark);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.board-top strong {
  max-width: 160px;
  text-align: right;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.05;
}

.system-map {
  position: relative;
  z-index: 1;
  min-height: 310px;
  margin: 22px 0;
  border: 1px solid var(--line);
  background:
    linear-gradient(rgba(20, 20, 17, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 20, 17, 0.055) 1px, transparent 1px),
    #fbfbf8;
  background-size: 34px 34px;
  overflow: hidden;
}

.system-node {
  position: absolute;
  z-index: 2;
  min-width: 112px;
  padding: 11px 12px;
  border: 1px solid var(--ink);
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 10px 24px rgba(20, 20, 17, 0.08);
}

.node-customer {
  left: 7%;
  top: 17%;
}

.node-orders {
  left: 36%;
  top: 36%;
  color: var(--white);
  background: var(--slate);
  border-color: var(--slate);
}

.node-inventory {
  right: 8%;
  top: 19%;
}

.node-finance {
  left: 13%;
  bottom: 16%;
  color: var(--white);
  background: var(--oxblood);
  border-color: var(--oxblood);
}

.node-reporting {
  right: 10%;
  bottom: 15%;
  color: var(--white);
  background: var(--sage);
  border-color: var(--sage);
}

.system-line {
  position: absolute;
  z-index: 1;
  height: 1px;
  background: var(--line-strong);
  transform-origin: left center;
}

.line-one {
  left: 22%;
  top: 35%;
  width: 58%;
  transform: rotate(14deg);
}

.line-two {
  left: 23%;
  top: 64%;
  width: 56%;
  transform: rotate(-17deg);
}

.line-three {
  left: 45%;
  top: 51%;
  width: 42%;
  transform: rotate(45deg);
}

.board-rows {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.board-rows div {
  display: grid;
  grid-template-columns: minmax(110px, 0.8fr) 1fr;
  gap: 18px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.board-rows div:last-child {
  border-bottom: 0;
}

.board-rows strong {
  font-size: 14px;
  line-height: 1.35;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line-strong);
  background: var(--ink);
  color: var(--paper);
}

.trust-strip div {
  min-height: 132px;
  padding: 24px 26px;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.trust-strip div:first-child {
  padding-left: max(22px, calc((100vw - var(--max)) / 2));
}

.trust-strip div:last-child {
  padding-right: max(22px, calc((100vw - var(--max)) / 2));
  border-right: 0;
}

.trust-strip span {
  color: #c49143;
}

.trust-strip strong {
  display: block;
  margin-top: 12px;
  font-family: var(--serif);
  font-size: clamp(24px, 2.6vw, 36px);
  font-weight: 500;
  line-height: 1;
}

.section {
  padding: clamp(72px, 9vw, 118px) max(22px, calc((100vw - var(--max)) / 2));
}

.section-light {
  background: var(--paper);
}

.section-paper {
  background: var(--paper-2);
}

.section-dark {
  color: var(--paper);
  background: var(--ink);
}

.section-heading {
  max-width: 850px;
  margin-bottom: 42px;
}

.section-heading.compact {
  max-width: 720px;
}

.section-heading h2 {
  margin-bottom: 14px;
  color: inherit;
  font-family: var(--serif);
  font-size: clamp(36px, 4.4vw, 64px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

.section-heading p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
}

.section-dark .section-heading p:not(.eyebrow),
.section-dark p {
  color: rgba(247, 247, 243, 0.72);
}

.section-dark .eyebrow {
  color: #c49143;
}

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

.signal-grid article,
.industry-grid article,
.why-grid article {
  min-height: 246px;
  padding: 26px;
  background: var(--surface);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.signal-grid h3,
.industry-grid h3,
.why-grid h3,
.phase-grid h3 {
  margin: 14px 0 10px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.1;
}

.signal-grid p,
.industry-grid p,
.phase-grid p,
.why-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.work-list {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.work-list article {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 30px;
  padding: 32px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.work-list h3 {
  margin: 0 0 8px;
  color: var(--paper);
  font-family: var(--serif);
  font-size: clamp(26px, 3.2vw, 44px);
  font-weight: 500;
  line-height: 1.05;
}

.work-list p {
  max-width: 820px;
  margin: 0;
  font-size: 17px;
}

.work-index {
  color: #c49143;
  padding-top: 10px;
}

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

.phase-grid article {
  min-height: 250px;
  padding: 28px;
  background: var(--paper);
}

.artifact-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1.15fr);
  gap: 34px;
  align-items: start;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.artifact-copy h3 {
  margin-bottom: 12px;
  font-family: var(--serif);
  font-size: clamp(30px, 3.5vw, 48px);
  font-weight: 500;
  line-height: 1.05;
}

.artifact-copy p:not(.eyebrow) {
  color: var(--muted);
}

.artifact-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.artifact-list li {
  min-height: 88px;
  padding: 18px 18px 18px 36px;
  position: relative;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.artifact-list li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 25px;
  width: 7px;
  height: 7px;
  background: var(--bronze);
}

.industries {
  border-top: 1px solid var(--line);
}

.why-grid {
  border-color: rgba(255, 255, 255, 0.18);
}

.why-grid article {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.18);
}

.why-grid h3 {
  color: var(--paper);
}

.why-grid p {
  color: rgba(247, 247, 243, 0.7);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(420px, 1fr);
  gap: 54px;
  align-items: start;
  background: var(--paper);
}

.contact-copy h2 {
  margin-bottom: 16px;
  font-family: var(--serif);
  font-size: clamp(36px, 4.6vw, 68px);
  font-weight: 500;
  line-height: 1.03;
  letter-spacing: -0.022em;
}

.contact-copy p:not(.eyebrow) {
  max-width: 600px;
  color: var(--muted);
  font-size: 18px;
}

.leader-card {
  max-width: 540px;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-top: 28px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--line);
}

.leader-card img {
  width: 112px;
  height: 112px;
  object-fit: cover;
  border: 1px solid var(--line-strong);
  filter: grayscale(1);
}

.leader-card span {
  display: block;
  margin-bottom: 5px;
  color: var(--bronze-dark);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.leader-card strong {
  display: block;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.05;
}

.leader-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.42;
}

.contact-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.contact-card {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  padding: 28px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  box-shadow: 0 24px 80px rgba(20, 20, 17, 0.08);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.contact-card:hover {
  transform: translateY(-3px);
  border-color: rgba(154, 106, 35, 0.55);
  box-shadow: 0 30px 90px rgba(20, 20, 17, 0.12);
}

.contact-card span {
  color: var(--bronze-dark);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-card strong {
  display: block;
  margin-top: 18px;
  font-family: var(--serif);
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 500;
  line-height: 1.02;
}

.contact-card p {
  margin: 16px 0 30px;
  color: var(--muted);
}

.contact-card em {
  margin-top: auto;
  color: var(--ink);
  font-style: normal;
  font-weight: 800;
  border-bottom: 1px solid var(--bronze);
  width: fit-content;
}

.primary-card {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
}

.primary-card span,
.primary-card em {
  color: #c49143;
}

.primary-card strong {
  color: var(--paper);
}

.primary-card p {
  color: rgba(247, 247, 243, 0.68);
}

.primary-card em {
  border-bottom-color: #c49143;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 34px max(22px, calc((100vw - var(--max)) / 2));
  color: rgba(247, 247, 243, 0.72);
  background: var(--ink);
}

.site-footer .brand {
  color: var(--paper);
}

.site-footer p {
  margin: 0;
  color: rgba(247, 247, 243, 0.58);
  font-size: 14px;
}

@media (max-width: 980px) {
  .hero,
  .contact-section,
  .artifact-panel {
    grid-template-columns: 1fr;
  }

  .control-board {
    max-width: 620px;
  }

  .signal-grid,
  .industry-grid,
  .why-grid,
  .trust-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: auto auto;
    min-height: 68px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .primary-nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    display: none;
    padding: 12px 22px 18px;
    background: rgba(247, 247, 243, 0.98);
    border-bottom: 1px solid var(--line);
  }

  .primary-nav.is-open {
    display: grid;
    gap: 4px;
  }

  .primary-nav a {
    justify-content: flex-start;
  }

  .primary-nav .nav-cta {
    margin-left: 0;
    justify-content: center;
  }

  .hero {
    padding-top: 54px;
  }

  h1 {
    font-size: clamp(42px, 13vw, 64px);
  }

  .trust-strip,
  .signal-grid,
  .industry-grid,
  .why-grid,
  .artifact-list {
    grid-template-columns: 1fr;
  }

  .trust-strip div,
  .trust-strip div:first-child,
  .trust-strip div:last-child {
    min-height: 112px;
    padding: 22px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .work-list article {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .work-index {
    padding-top: 0;
  }

  .artifact-panel,
  .contact-options {
    grid-template-columns: 1fr;
  }

  .leader-card {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .leader-card img {
    width: 86px;
    height: 86px;
  }

  .system-map {
    min-height: 280px;
  }

  .system-node {
    min-width: 96px;
    font-size: 12px;
  }

  .board-rows div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .site-footer {
    display: grid;
  }
}

@media (max-width: 440px) {
  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .system-node {
    min-width: 88px;
    padding: 9px 8px;
  }

  .node-orders {
    left: 33%;
  }

  .node-inventory {
    right: 5%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
