:root {
  --bg: #f8f7f3;
  --paper: #ffffff;
  --ink: #171714;
  --muted: #68665d;
  --line: #d8d4c8;
  --accent: #b54e2e;
  --accent-dark: #78331f;
  --sage: #65715a;
  --shadow: 0 24px 70px rgba(39, 35, 26, 0.11);
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  padding: 18px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid rgba(216, 212, 200, 0.72);
  background: rgba(248, 247, 243, 0.9);
  backdrop-filter: blur(18px);
}

.brand,
.nav,
.header-cta {
  font-size: 14px;
  font-weight: 650;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
}

.nav a:hover,
.header-cta:hover {
  color: var(--accent);
}

.header-cta {
  justify-self: end;
  padding-bottom: 2px;
  border-bottom: 1px solid currentColor;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(380px, 0.82fr);
  gap: clamp(36px, 5vw, 64px);
  width: min(var(--max), calc(100% - 40px));
  min-height: calc(100vh - 72px);
  margin: 0 auto;
  padding: clamp(54px, 8vw, 96px) 0 54px;
  align-items: center;
}

.hero h1,
.contact h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 7.2vw, 88px);
  font-weight: 500;
  line-height: 0.96;
}

.hero h1 {
  max-width: 700px;
  font-size: clamp(64px, 5.5vw, 76px);
  line-height: 0.98;
}

.hero h1 span {
  display: block;
}

.hero p {
  max-width: 680px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.45;
}

.hero .proof-line {
  max-width: 560px;
  margin-top: 18px;
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

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

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

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

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

.button.secondary {
  background: transparent;
}

.system-map {
  position: relative;
  min-height: 430px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(rgba(23, 23, 20, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 23, 20, 0.045) 1px, transparent 1px),
    var(--paper);
  background-size: 32px 32px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.system-map::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 6px;
  background: linear-gradient(90deg, var(--accent), var(--sage), var(--ink));
}

.map-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.map-lines path {
  fill: none;
  stroke: rgba(101, 113, 90, 0.55);
  stroke-width: 2;
}

.map-lines circle {
  fill: var(--accent);
}

.map-node {
  position: absolute;
  z-index: 2;
  width: 154px;
  padding: 15px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.92);
}

.map-node span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}

.map-node strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.05;
}

.node-strategy {
  top: 58px;
  left: 42px;
}

.node-build {
  top: 88px;
  right: 42px;
}

.node-operate {
  bottom: 58px;
  left: 70px;
}

.node-scale {
  right: 58px;
  bottom: 84px;
}

.section {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(72px, 10vw, 128px) 0;
  border-top: 1px solid var(--line);
}

.intro-strip {
  padding: 30px 0;
}

.intro-strip p {
  width: min(920px, 100%);
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.14;
}

.section-heading {
  display: grid;
  grid-template-columns: 0.75fr 1fr;
  gap: 42px;
  margin-bottom: 42px;
}

.section h2,
.work h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 500;
  line-height: 1;
}

.section-heading p,
.work-layout > div > p,
.contact p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

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

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

.fit-grid h3,
.work-list h3 {
  margin: 0 0 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.08;
}

.fit-grid p,
.work-list p,
.approach-rail p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.work {
  width: 100%;
  max-width: none;
  padding-right: max(20px, calc((100vw - var(--max)) / 2));
  padding-left: max(20px, calc((100vw - var(--max)) / 2));
  background: #202018;
  color: var(--paper);
}

.work-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(42px, 7vw, 96px);
}

.work-layout > div > p,
.work-list p {
  color: rgba(255, 255, 255, 0.68);
}

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

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

.work-list span {
  color: #d98054;
  font-size: 13px;
  font-weight: 800;
}

.approach-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}

.approach-rail article {
  min-height: 210px;
  padding: 22px 24px 0 0;
  border-right: 1px solid var(--line);
}

.approach-rail article:last-child {
  border-right: 0;
}

.approach-rail span {
  display: block;
  margin-bottom: 52px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(72px, 10vw, 124px) 0;
  align-items: end;
  border-top: 1px solid var(--line);
}

.contact h2 {
  max-width: 760px;
  font-size: clamp(42px, 6vw, 74px);
}

.contact p {
  max-width: 640px;
  margin-top: 24px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px clamp(20px, 4vw, 48px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav {
    display: none;
  }

  .hero,
  .section-heading,
  .work-layout,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 58px;
  }

  .hero h1 {
    max-width: 760px;
    font-size: clamp(54px, 8vw, 68px);
  }

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

  .fit-grid,
  .approach-rail {
    grid-template-columns: 1fr;
  }

  .approach-rail article {
    min-height: auto;
    padding: 22px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .approach-rail span {
    margin-bottom: 18px;
  }

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

  .work-list p {
    grid-column: 2;
  }
}

@media (max-width: 620px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    padding: 14px 18px;
  }

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

  .brand span:last-child {
    overflow: hidden;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
  }

  .header-cta {
    font-size: 13px;
    white-space: nowrap;
  }

  .hero,
  .section,
  .contact {
    width: min(100% - 28px, var(--max));
  }

  .hero h1 {
    font-size: clamp(48px, 12vw, 58px);
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

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

  .map-node {
    width: 128px;
    padding: 12px;
  }

  .map-node strong {
    font-size: 18px;
  }

  .node-strategy {
    top: 35px;
    left: 18px;
  }

  .node-build {
    top: 72px;
    right: 18px;
  }

  .node-operate {
    bottom: 52px;
    left: 22px;
  }

  .node-scale {
    right: 22px;
    bottom: 36px;
  }

  .footer {
    flex-direction: column;
  }
}
