:root {
  --black: #050706;
  --paper: #f4f0e7;
  --paper-deep: #e7dfd0;
  --ink: #111512;
  --body: #2d332f;
  --muted: #6d756e;
  --rule: #cfc6b6;
  --teal: #0b6f68;
  --copper: #bd6b3d;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
}

.topbar {
  background: var(--black);
  border-bottom: 2px solid var(--copper);
  padding: 22px max(24px, calc((100vw - 1180px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.mark img {
  width: 178px;
  display: block;
}

nav {
  display: flex;
  gap: 28px;
}

nav a {
  color: #dfe5e1;
  font-size: 13px;
  text-decoration: none;
}

.thesis,
.diagnostic,
.audit,
.sample,
.close {
  width: min(1180px, calc(100vw - 48px));
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: 760px;
  background: var(--black);
  color: var(--white);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 7, 6, 0.98) 0%, rgba(5, 7, 6, 0.78) 42%, rgba(5, 7, 6, 0.22) 100%),
    linear-gradient(180deg, rgba(5, 7, 6, 0.14) 0%, rgba(5, 7, 6, 0.86) 100%),
    url("/assets/hero-diligence-room.png") center / cover no-repeat;
}

.hero-overlay {
  position: relative;
  width: min(1180px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 112px 0 94px;
}

.eyebrow,
.rule-label,
.diagnostic-header span,
.section-label,
.sample-meta span,
.standard span {
  color: var(--copper);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-layout {
  margin-top: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) 390px;
  gap: 88px;
  align-items: start;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  margin: 0;
  max-width: 770px;
  color: var(--white);
  font-size: clamp(56px, 6vw, 92px);
  line-height: 0.94;
}

.briefing-note {
  background: rgba(5, 7, 6, 0.72);
  border-top: 1px solid rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  padding: 22px 0 24px;
}

.briefing-note span {
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.briefing-note p {
  margin: 24px 0 28px;
  color: #e7ebe8;
  font-size: 20px;
  line-height: 1.5;
}

.briefing-note a {
  display: inline-block;
  border-bottom: 2px solid var(--copper);
  color: var(--white);
  font-size: 14px;
  font-weight: 800;
  padding-bottom: 7px;
  text-decoration: none;
}

.thesis {
  border-top: 1px solid var(--black);
  border-bottom: 1px solid var(--rule);
  padding: 44px 0 50px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 80px;
}

.thesis p {
  margin: 0;
  color: var(--ink);
  font-size: clamp(26px, 3.1vw, 42px);
  line-height: 1.16;
}

.diagnostic {
  padding: 86px 0 74px;
}

.diagnostic-header {
  display: grid;
  grid-template-columns: 220px minmax(0, 760px);
  gap: 80px;
  align-items: end;
}

h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(38px, 4vw, 60px);
  line-height: 1.02;
}

.diagnostic-grid {
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--black);
  border-left: 1px solid var(--rule);
}

.diagnostic-grid article {
  min-height: 260px;
  padding: 28px 24px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: rgba(255, 255, 255, 0.24);
}

.diagnostic-grid article span {
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
}

h3 {
  margin: 42px 0 14px;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.08;
}

.diagnostic-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.audit {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 88px;
  padding: 72px 0;
  border-top: 1px solid var(--black);
}

.audit h2 {
  margin-top: 18px;
}

.audit-copy p {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.48;
}

dl {
  margin: 34px 0 0;
  border-top: 1px solid var(--rule);
}

dl div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
}

dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

dd {
  margin: 0;
  color: var(--ink);
  font-size: 19px;
}

.sample {
  padding: 54px 0 82px;
}

.sample-meta {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid var(--black);
  padding-bottom: 18px;
}

.sample-meta strong {
  color: var(--ink);
  font-size: 26px;
  line-height: 1.1;
  text-align: right;
}

.sample-table {
  background: #fffaf0;
  box-shadow: 0 24px 70px rgba(17, 21, 18, 0.12);
}

.row {
  display: grid;
  grid-template-columns: 1.05fr 1fr 1.1fr;
  border-bottom: 1px solid var(--rule);
}

.row:last-child {
  border-bottom: 0;
}

.row span {
  padding: 22px 24px;
  border-right: 1px solid var(--rule);
  line-height: 1.45;
}

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

.row.head {
  background: var(--black);
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.standard {
  background: var(--black);
  color: var(--white);
}

.standard-inner {
  width: min(1180px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 72px 0;
}

.standard h2 {
  margin-top: 18px;
  color: var(--white);
  max-width: 800px;
}

.standard p {
  max-width: 840px;
  margin: 28px 0 0;
  color: #dfe5e1;
  font-size: 22px;
  line-height: 1.5;
}

.close {
  padding: 58px 0 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
}

.close p {
  margin: 0;
  max-width: 760px;
  color: var(--ink);
  font-size: clamp(28px, 3.5vw, 48px);
  line-height: 1.08;
}

.close a {
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  border-bottom: 2px solid var(--copper);
  padding-bottom: 7px;
}

@media (max-width: 940px) {
  .topbar,
  .close {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    gap: 20px;
  }

  .mark img {
    width: 164px;
  }

  .thesis,
  .diagnostic,
  .audit,
  .sample,
  .close,
  .standard-inner {
    width: min(100% - 40px, 680px);
  }

  .hero {
    min-height: 690px;
  }

  .hero-overlay {
    width: min(100% - 40px, 680px);
    padding: 64px 0 56px;
  }

  .hero-media {
    background:
      linear-gradient(180deg, rgba(5, 7, 6, 0.96) 0%, rgba(5, 7, 6, 0.78) 55%, rgba(5, 7, 6, 0.5) 100%),
      url("/assets/hero-diligence-room.png") 60% center / cover no-repeat;
  }

  .hero-layout,
  .thesis,
  .diagnostic-header,
  .audit,
  .diagnostic-grid,
  .row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  h1 {
    font-size: clamp(40px, 10vw, 58px);
  }

  .briefing-note {
    margin-top: 36px;
  }

  .thesis {
    padding: 34px 0 42px;
  }

  .rule-label,
  .diagnostic-header span {
    margin-bottom: 18px;
  }

  .diagnostic-grid {
    border-left: 0;
  }

  .diagnostic-grid article {
    min-height: auto;
    border-right: 0;
  }

  .sample-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .sample-meta strong {
    text-align: left;
  }

  .row span {
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }

  .row.head {
    display: none;
  }

  dl div {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
